	.file	"116705.c"
	.intel_syntax noprefix
	.text
	.globl	backtrace_open
	.type	backtrace_open, @function
backtrace_open:
.LFB29:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -48[rbp], rcx
	cmp	QWORD PTR -48[rbp], 0
	je	.L2
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR [rax], 0
.L2:
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 524288
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jns	.L3
	cmp	QWORD PTR -48[rbp], 0
	je	.L4
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 2
	je	.L5
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 13
	jne	.L4
.L5:
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR [rax], 1
	jmp	.L6
.L4:
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	mov	rcx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	r8, QWORD PTR -32[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	r8
.L6:
	mov	eax, -1
	jmp	.L7
.L3:
	mov	eax, DWORD PTR -4[rbp]
	mov	edx, 1
	mov	esi, 2
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	mov	eax, DWORD PTR -4[rbp]
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE29:
	.size	backtrace_open, .-backtrace_open
	.section	.rodata
.LC0:
	.string	"close"
	.text
	.globl	backtrace_close
	.type	backtrace_close, @function
backtrace_close:
.LFB30:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	close@PLT
	test	eax, eax
	jns	.L9
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR -16[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	rcx
	mov	eax, 0
	jmp	.L10
.L9:
	mov	eax, 1
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE30:
	.size	backtrace_close, .-backtrace_close
	.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	"116705.c"
	.text
	.align	2
	.global	backtrace_open
	.syntax unified
	.arm
	.fpu softvfp
	.type	backtrace_open, %function
backtrace_open:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L2
	ldr	r3, [fp, #-28]
	mov	r2, #0
	str	r2, [r3]
.L2:
	mov	r1, #524288
	ldr	r0, [fp, #-16]
	bl	open
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L3
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L4
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #2
	beq	.L5
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #13
	bne	.L4
.L5:
	ldr	r3, [fp, #-28]
	mov	r2, #1
	str	r2, [r3]
	b	.L6
.L4:
	bl	__errno_location
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-24]
	blx	r3
.L6:
	mvn	r3, #0
	b	.L7
.L3:
	mov	r2, #1
	mov	r1, #2
	ldr	r0, [fp, #-8]
	bl	fcntl
	ldr	r3, [fp, #-8]
.L7:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	backtrace_open, .-backtrace_open
	.section	.rodata
	.align	2
.LC0:
	.ascii	"close\000"
	.text
	.align	2
	.global	backtrace_close
	.syntax unified
	.arm
	.fpu softvfp
	.type	backtrace_close, %function
backtrace_close:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r0, [fp, #-8]
	bl	close
	mov	r3, r0
	cmp	r3, #0
	bge	.L9
	bl	__errno_location
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	ldr	r1, .L11
	ldr	r0, [fp, #-16]
	blx	r3
	mov	r3, #0
	b	.L10
.L9:
	mov	r3, #1
.L10:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC0
	.size	backtrace_close, .-backtrace_close
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
