	.file	"177475.c"
	.intel_syntax noprefix
	.text
	.globl	g
	.bss
	.align 8
	.type	g, @object
	.size	g, 8
g:
	.zero	8
	.globl	h
	.align 8
	.type	h, @object
	.size	h, 8
h:
	.zero	8
	.text
	.globl	bar
	.type	bar, @function
bar:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, edi
	mov	DWORD PTR -24[rbp], esi
	mov	BYTE PTR -20[rbp], al
.L2:
	jmp	.L3
.L9:
	mov	QWORD PTR g[rip], 0
	jmp	.L4
.L8:
	mov	DWORD PTR -4[rbp], 1
	mov	rax, QWORD PTR h[rip]
	test	rax, rax
	je	.L5
	cmp	DWORD PTR -4[rbp], 0
	je	.L6
	jmp	.L2
.L6:
	mov	eax, DWORD PTR -24[rbp]
	jmp	.L7
.L5:
	mov	rax, QWORD PTR h[rip]
	add	rax, 1
	mov	QWORD PTR h[rip], rax
.L4:
	mov	rax, QWORD PTR h[rip]
	test	rax, rax
	jne	.L8
	mov	rax, QWORD PTR h[rip]
	mov	QWORD PTR g[rip], rax
.L3:
	mov	rax, QWORD PTR h[rip]
	test	rax, rax
	jne	.L9
	movzx	eax, BYTE PTR -20[rbp]
.L7:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	bar, .-bar
	.globl	foo
	.type	foo, @function
foo:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	esi, 1
	mov	edi, 0
	call	bar
	test	eax, eax
	je	.L12
	mov	esi, 0
	mov	edi, 1
	call	bar
.L12:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	foo, .-foo
	.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	"177475.c"
	.text
	.comm	g,4,4
	.comm	h,4,4
	.align	2
	.global	bar
	.syntax unified
	.arm
	.fpu softvfp
	.type	bar, %function
bar:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	mov	r3, r0
	str	r1, [fp, #-20]
	strb	r3, [fp, #-13]
.L2:
	b	.L3
.L9:
	ldr	r3, .L10
	mov	r2, #0
	str	r2, [r3]
	b	.L4
.L8:
	mov	r3, #1
	str	r3, [fp, #-8]
	ldr	r3, .L10+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L5
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L6
	b	.L2
.L6:
	ldr	r3, [fp, #-20]
	b	.L7
.L5:
	ldr	r3, .L10+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L10+4
	str	r3, [r2]
.L4:
	ldr	r3, .L10+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L8
	ldr	r3, .L10+4
	ldr	r3, [r3]
	ldr	r2, .L10
	str	r3, [r2]
.L3:
	ldr	r3, .L10+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L9
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
.L7:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L11:
	.align	2
.L10:
	.word	g
	.word	h
	.size	bar, .-bar
	.align	2
	.global	foo
	.syntax unified
	.arm
	.fpu softvfp
	.type	foo, %function
foo:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r1, #1
	mov	r0, #0
	bl	bar
	mov	r3, r0
	cmp	r3, #0
	beq	.L14
	mov	r1, #0
	mov	r0, #1
	bl	bar
.L14:
	nop
	pop	{fp, pc}
	.size	foo, .-foo
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
