	.file	"extr_pt_section_posix.c_pt_section_map.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"rb"
	.text
	.p2align 4
	.globl	pt_section_map
	.type	pt_section_map, @function
pt_section_map:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r12d, DWORD PTR pte_internal[rip]
	neg	r12d
	test	rdi, rdi
	je	.L1
	mov	rbp, rdi
	call	pt_section_lock@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L1
	cmp	QWORD PTR 16[rbp], 0
	jne	.L15
	cmp	QWORD PTR 8[rbp], 0
	jne	.L5
	mov	rdi, QWORD PTR 0[rbp]
	test	rdi, rdi
	je	.L5
	mov	esi, DWORD PTR O_RDONLY[rip]
	mov	r12d, DWORD PTR pte_bad_file[rip]
	call	open@PLT
	neg	r12d
	mov	r13d, eax
	cmp	eax, -1
	je	.L5
	mov	esi, eax
	mov	rdi, rbp
	call	check_file_status@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L7
	mov	esi, r13d
	mov	rdi, rbp
	call	pt_sec_posix_map@PLT
	test	eax, eax
	je	.L17
	lea	rsi, .LC0[rip]
	mov	edi, r13d
	call	fdopen@PLT
	mov	r12d, DWORD PTR pte_bad_file[rip]
	mov	r14, rax
	neg	r12d
	test	rax, rax
	je	.L7
	mov	rsi, rax
	mov	rdi, rbp
	call	pt_sec_file_map@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L15
	mov	rdi, r14
	call	fclose@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, rbp
	call	pt_section_unlock@PLT
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	mov	edi, r13d
	call	close@PLT
.L15:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	pt_sec_posix_map_success@PLT
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	edi, r13d
	call	close@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	pt_section_map, .-pt_section_map
	.comm	pte_internal,4,4
	.comm	pte_bad_file,4,4
	.comm	O_RDONLY,4,4
	.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_pt_section_posix.c_pt_section_map.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"rb\000"
	.text
	.align	2
	.global	pt_section_map
	.syntax unified
	.arm
	.fpu softvfp
	.type	pt_section_map, %function
pt_section_map:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	subs	r5, r0, #0
	beq	.L17
	bl	pt_section_lock
	subs	r4, r0, #0
	blt	.L1
	ldr	r3, [r5, #8]
	cmp	r3, #0
	bne	.L15
	ldr	r3, [r5, #4]
	cmp	r3, #0
	bne	.L5
	ldr	r0, [r5]
	cmp	r0, #0
	beq	.L5
	ldr	r3, .L20
	ldr	r7, .L20+4
	ldr	r1, [r3]
	ldr	r4, [r7]
	bl	open
	cmn	r0, #1
	mov	r6, r0
	rsbeq	r4, r4, #0
	beq	.L5
	mov	r1, r0
	mov	r0, r5
	bl	check_file_status
	subs	r4, r0, #0
	blt	.L7
	mov	r1, r6
	mov	r0, r5
	bl	pt_sec_posix_map
	cmp	r0, #0
	beq	.L18
	mov	r0, r6
	ldr	r1, .L20+8
	bl	fdopen
	subs	r8, r0, #0
	beq	.L19
	mov	r1, r8
	mov	r0, r5
	bl	pt_sec_file_map
	subs	r4, r0, #0
	beq	.L15
	mov	r0, r8
	bl	fclose
.L5:
	mov	r0, r5
	bl	pt_section_unlock
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L17:
	ldr	r3, .L20+12
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L15:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, lr}
	b	pt_sec_posix_map_success
.L19:
	ldr	r4, [r7]
	rsb	r4, r4, #0
.L7:
	mov	r0, r6
	bl	close
	b	.L5
.L18:
	mov	r0, r6
	bl	close
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, lr}
	b	pt_sec_posix_map_success
.L21:
	.align	2
.L20:
	.word	O_RDONLY
	.word	pte_bad_file
	.word	.LC0
	.word	pte_internal
	.size	pt_section_map, .-pt_section_map
	.comm	pte_internal,4,4
	.comm	pte_bad_file,4,4
	.comm	O_RDONLY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
