	.file	"491611.c"
	.intel_syntax noprefix
	.text
	.globl	a
	.bss
	.align 4
	.type	a, @object
	.size	a, 4
a:
	.zero	4
	.globl	c
	.align 4
	.type	c, @object
	.size	c, 4
c:
	.zero	4
	.globl	f
	.align 4
	.type	f, @object
	.size	f, 4
f:
	.zero	4
	.globl	b
	.align 2
	.type	b, @object
	.size	b, 2
b:
	.zero	2
	.globl	d
	.align 2
	.type	d, @object
	.size	d, 2
d:
	.zero	2
	.globl	e
	.align 2
	.type	e, @object
	.size	e, 2
e:
	.zero	2
	.text
	.globl	fn1
	.type	fn1, @function
fn1:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR a[rip]
	cmp	eax, 2
	jg	.L2
	mov	eax, DWORD PTR a[rip]
	cmp	DWORD PTR -4[rbp], eax
	jg	.L2
	mov	eax, DWORD PTR a[rip]
	mov	edx, DWORD PTR -4[rbp]
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	jmp	.L4
.L2:
	mov	eax, DWORD PTR -4[rbp]
.L4:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	fn1, .-fn1
	.globl	fn2
	.type	fn2, @function
fn2:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 16
	.cfi_offset 3, -24
.L12:
	mov	eax, DWORD PTR c[rip]
	test	eax, eax
	je	.L6
	movzx	eax, WORD PTR b[rip]
	test	ax, ax
	je	.L6
	mov	eax, 1
	jmp	.L7
.L6:
	mov	eax, 0
.L7:
	mov	DWORD PTR -16[rbp], eax
	movzx	eax, WORD PTR e[rip]
	movsx	ebx, ax
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	fn1
	test	eax, eax
	je	.L8
	cmp	DWORD PTR -12[rbp], 0
	je	.L8
	mov	eax, 1
	jmp	.L9
.L8:
	mov	eax, 0
.L9:
	cmp	eax, ebx
	setl	al
	movzx	edx, al
	mov	eax, DWORD PTR f[rip]
	and	eax, edx
	mov	DWORD PTR f[rip], eax
	movzx	eax, WORD PTR d[rip]
	test	ax, ax
	je	.L14
	jmp	.L12
.L14:
	nop
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	fn2, .-fn2
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, 0
	call	fn2
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"491611.c"
	.text
	.comm	a,4,4
	.comm	c,4,4
	.comm	f,4,4
	.comm	b,2,2
	.comm	d,2,2
	.comm	e,2,2
	.align	2
	.global	fn1
	.syntax unified
	.arm
	.fpu softvfp
	.type	fn1, %function
fn1:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, .L5
	ldr	r3, [r3]
	cmp	r3, #2
	bgt	.L2
	ldr	r3, .L5
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bgt	.L2
	ldr	r3, .L5
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	lsl	r3, r2, r3
	b	.L4
.L2:
	ldr	r3, [fp, #-8]
.L4:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L6:
	.align	2
.L5:
	.word	a
	.size	fn1, .-fn1
	.align	2
	.global	fn2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fn2, %function
fn2:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #12
.L14:
	ldr	r3, .L17
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L8
	ldr	r3, .L17+4
	ldrsh	r3, [r3]
	cmp	r3, #0
	beq	.L8
	mov	r3, #1
	b	.L9
.L8:
	mov	r3, #0
.L9:
	str	r3, [fp, #-20]
	ldr	r3, .L17+8
	ldrsh	r3, [r3]
	mov	r4, r3
	ldr	r0, [fp, #-20]
	bl	fn1
	mov	r3, r0
	cmp	r3, #0
	beq	.L10
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L10
	mov	r3, #1
	b	.L11
.L10:
	mov	r3, #0
.L11:
	cmp	r3, r4
	movlt	r3, #1
	movge	r3, #0
	and	r3, r3, #255
	mov	r2, r3
	ldr	r3, .L17+12
	ldr	r3, [r3]
	and	r3, r3, r2
	ldr	r2, .L17+12
	str	r3, [r2]
	ldr	r3, .L17+16
	ldrsh	r3, [r3]
	cmp	r3, #0
	beq	.L16
	b	.L14
.L16:
	nop
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L18:
	.align	2
.L17:
	.word	c
	.word	b
	.word	e
	.word	f
	.word	d
	.size	fn2, .-fn2
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	fn2
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
