	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pt_section_map                 ## -- Begin function pt_section_map
	.p2align	4, 0x90
_pt_section_map:                        ## @pt_section_map
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	callq	_pt_section_lock
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_18
## %bb.3:
	cmpq	$0, 16(%r14)
	je	LBB0_4
LBB0_11:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pt_sec_posix_map_success       ## TAILCALL
LBB0_1:
	movq	_pte_internal@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_18
LBB0_4:
	cmpq	$0, 8(%r14)
	je	LBB0_5
LBB0_17:
	movq	%r14, %rdi
	callq	_pt_section_unlock
LBB0_18:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_17
## %bb.6:
	movq	_pte_bad_file@GOTPCREL(%rip), %r13
	xorl	%ebx, %ebx
	subl	(%r13), %ebx
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_open
	cmpl	$-1, %eax
	je	LBB0_17
## %bb.7:
	movl	%eax, %r15d
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_check_file_status
	testl	%eax, %eax
	js	LBB0_8
## %bb.9:
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_pt_sec_posix_map
	testl	%eax, %eax
	je	LBB0_10
## %bb.12:
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edi
	callq	_fdopen
	testq	%rax, %rax
	je	LBB0_13
## %bb.15:
	movq	%rax, %r12
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_pt_sec_file_map
	testl	%eax, %eax
	je	LBB0_11
## %bb.16:
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_fclose
	jmp	LBB0_17
LBB0_8:
	movl	%eax, %ebx
	jmp	LBB0_14
LBB0_10:
	movl	%r15d, %edi
	callq	_close
	jmp	LBB0_11
LBB0_13:
	xorl	%ebx, %ebx
	subl	(%r13), %ebx
LBB0_14:
	movl	%r15d, %edi
	callq	_close
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_pte_internal,4,2               ## @pte_internal
	.comm	_pte_bad_file,4,2               ## @pte_bad_file
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rb"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pt_section_map                 ; -- Begin function pt_section_map
	.p2align	2
_pt_section_map:                        ; @pt_section_map
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	bl	_pt_section_lock
	mov	x20, x0
	tbnz	w0, #31, LBB0_7
; %bb.2:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_5
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_pt_sec_posix_map_success
LBB0_4:
Lloh0:
	adrp	x8, _pte_internal@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pte_internal@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_7
LBB0_5:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_8
LBB0_6:
	mov	x0, x19
	bl	_pt_section_unlock
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_8:
	ldr	x0, [x19]
	cbz	x0, LBB0_6
; %bb.9:
Lloh3:
	adrp	x23, _pte_bad_file@GOTPAGE
Lloh4:
	ldr	x23, [x23, _pte_bad_file@GOTPAGEOFF]
	ldr	w20, [x23]
Lloh5:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_open
	cmn	w0, #1
	b.eq	LBB0_15
; %bb.10:
	mov	x21, x0
	mov	x0, x19
	mov	x1, x21
	bl	_check_file_status
	tbnz	w0, #31, LBB0_16
; %bb.11:
	mov	x0, x19
	mov	x1, x21
	bl	_pt_sec_posix_map
	cbz	w0, LBB0_17
; %bb.12:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_fdopen
	cbz	x0, LBB0_18
; %bb.13:
	mov	x22, x0
	mov	x0, x19
	mov	x1, x22
	bl	_pt_sec_file_map
	cbz	w0, LBB0_3
; %bb.14:
	mov	x20, x0
	mov	x0, x22
	bl	_fclose
	b	LBB0_6
LBB0_15:
	neg	w20, w20
	b	LBB0_6
LBB0_16:
	mov	x20, x0
	b	LBB0_19
LBB0_17:
	mov	x0, x21
	bl	_close
	b	LBB0_3
LBB0_18:
	ldr	w8, [x23]
	neg	w20, w8
LBB0_19:
	mov	x0, x21
	bl	_close
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_pte_internal,4,2               ; @pte_internal
	.comm	_pte_bad_file,4,2               ; @pte_bad_file
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rb"

.subsections_via_symbols
