	.file	"extr_h_tools.c_getfh_main.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"out of memory"
.LC1:
	.string	"getfh"
.LC2:
	.string	"write"
	.text
	.p2align 4
	.globl	getfh_main
	.type	getfh_main, @function
getfh_main:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	cmp	edi, 1
	jle	.L23
	mov	QWORD PTR [rsp], 0
	mov	rbx, rsi
	xor	edi, edi
	xor	ebp, ebp
	mov	r12, rsp
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L27:
	call	malloc@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L26
	mov	rdi, QWORD PTR 8[rbx]
	mov	rsi, rax
	mov	rdx, r12
	xor	eax, eax
	call	getfh@PLT
	test	eax, eax
	je	.L6
.L11:
	mov	rdi, rbp
	call	free@PLT
	mov	rax, QWORD PTR E2BIG[rip]
	cmp	QWORD PTR errno[rip], rax
	jne	.L8
.L28:
	mov	rdi, QWORD PTR [rsp]
.L9:
	test	rdi, rdi
	jne	.L27
	mov	rdi, QWORD PTR 8[rbx]
	xor	eax, eax
	mov	rdx, r12
	mov	rsi, rbp
	call	getfh@PLT
	test	eax, eax
	je	.L6
	test	rbp, rbp
	jne	.L11
	mov	rax, QWORD PTR E2BIG[rip]
	cmp	QWORD PTR errno[rip], rax
	je	.L28
.L8:
	lea	rdi, .LC1[rip]
	call	warn@PLT
	mov	eax, DWORD PTR EXIT_FAILURE[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdx, QWORD PTR [rsp]
	mov	edi, DWORD PTR STDOUT_FILENO[rip]
	mov	rsi, rbp
	call	write@PLT
	cmp	eax, -1
	je	.L29
	mov	rdi, rbp
	call	free@PLT
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L30
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
.L29:
	.cfi_restore_state
	lea	rdi, .LC2[rip]
	call	warn@PLT
.L23:
	mov	eax, DWORD PTR EXIT_FAILURE[rip]
	jmp	.L1
.L26:
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	call	fprintf@PLT
	mov	eax, DWORD PTR EXIT_FAILURE[rip]
	jmp	.L1
.L30:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	getfh_main, .-getfh_main
	.comm	stderr,4,4
	.comm	errno,8,8
	.comm	STDOUT_FILENO,4,4
	.comm	EXIT_FAILURE,4,4
	.comm	E2BIG,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_h_tools.c_getfh_main.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"out of memory\000"
	.align	2
.LC1:
	.ascii	"getfh\000"
	.align	2
.LC2:
	.ascii	"write\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	getfh_main
	.syntax unified
	.arm
	.fpu softvfp
	.type	getfh_main, %function
getfh_main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L31
	sub	sp, sp, #12
	cmp	r0, #1
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	ble	.L23
	mov	r3, #0
	mov	r5, r1
	mov	r0, r3
	mov	r4, r3
	ldr	r7, .L31+4
	ldr	r6, .L31+8
	str	r3, [sp]
	b	.L9
.L27:
	bl	malloc
	subs	r4, r0, #0
	beq	.L26
	mov	r2, sp
	mov	r1, r4
	ldr	r0, [r5, #4]
	bl	getfh
	cmp	r0, #0
	beq	.L6
.L11:
	mov	r0, r4
	bl	free
	ldr	r2, [r7]
	ldr	r3, [r6]
	cmp	r2, r3
	bne	.L8
.L28:
	ldr	r0, [sp]
.L9:
	cmp	r0, #0
	bne	.L27
	mov	r2, sp
	mov	r1, r4
	ldr	r0, [r5, #4]
	bl	getfh
	cmp	r0, #0
	beq	.L6
	cmp	r4, #0
	bne	.L11
	ldr	r2, [r7]
	ldr	r3, [r6]
	cmp	r2, r3
	beq	.L28
.L8:
	ldr	r0, .L31+12
	bl	warn
	ldr	r3, .L31+16
	ldr	r0, [r3]
	b	.L1
.L6:
	ldr	r3, .L31+20
	mov	r1, r4
	ldr	r2, [sp]
	ldr	r0, [r3]
	bl	write
	cmn	r0, #1
	beq	.L29
	mov	r0, r4
	bl	free
	mov	r0, #0
.L1:
	ldr	r3, .L31
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L30
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L29:
	ldr	r0, .L31+24
	bl	warn
.L23:
	ldr	r3, .L31+16
	ldr	r0, [r3]
	b	.L1
.L26:
	ldr	r3, .L31+28
	ldr	r1, .L31+32
	ldr	r0, [r3]
	bl	fprintf
	ldr	r3, .L31+16
	ldr	r0, [r3]
	b	.L1
.L30:
	bl	__stack_chk_fail
.L32:
	.align	2
.L31:
	.word	.LC3
	.word	errno
	.word	E2BIG
	.word	.LC1
	.word	EXIT_FAILURE
	.word	STDOUT_FILENO
	.word	.LC2
	.word	stderr
	.word	.LC0
	.size	getfh_main, .-getfh_main
	.comm	stderr,4,4
	.comm	errno,4,4
	.comm	STDOUT_FILENO,4,4
	.comm	EXIT_FAILURE,4,4
	.comm	E2BIG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
