	.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_4
## %bb.1:
	movq	%rdi, %r14
	callq	_pt_section_lock
	testl	%eax, %eax
	js	LBB0_5
## %bb.2:
	cmpq	$0, 16(%r14)
	je	LBB0_6
LBB0_3:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pt_sec_windows_map_success     ## TAILCALL
LBB0_4:
	movq	_pte_internal@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_5:
	movl	%eax, %ebx
	jmp	LBB0_10
LBB0_6:
	cmpq	$0, 8(%r14)
	je	LBB0_11
LBB0_7:
	movq	_pte_internal@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_8:
	subl	(%rax), %ebx
LBB0_9:
	movq	%r14, %rdi
	callq	_pt_section_unlock
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	(%r14), %r15
	testq	%r15, %r15
	je	LBB0_7
## %bb.12:
	movq	_GENERIC_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FILE_SHARE_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_OPEN_EXISTING@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_FILE_ATTRIBUTE_NORMAL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r9d
	movq	$0, (%rsp)
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_CreateFileA
	movq	%rax, %r12
	movq	_INVALID_HANDLE_VALUE@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_15
## %bb.13:
	movq	_GENERIC_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FILE_SHARE_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_OPEN_EXISTING@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	(%rbx), %r9d
	movq	$0, (%rsp)
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_CreateFileA
	movq	%rax, %r12
	cmpq	(%r13), %rax
	jne	LBB0_15
## %bb.14:
	movq	_pte_bad_file@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_15:
	movq	__O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	__open_osfhandle
	cmpl	$-1, %eax
	je	LBB0_21
## %bb.16:
	movl	%eax, %r15d
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_check_file_status
	testl	%eax, %eax
	js	LBB0_22
## %bb.17:
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_pt_sec_windows_map
	testl	%eax, %eax
	je	LBB0_3
## %bb.18:
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edi
	callq	__fdopen
	testq	%rax, %rax
	je	LBB0_23
## %bb.19:
	movq	%rax, %r12
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_pt_sec_file_map
	testl	%eax, %eax
	je	LBB0_3
## %bb.20:
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_fclose
	jmp	LBB0_9
LBB0_21:
	movq	_pte_bad_file@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	%r12, %rdi
	callq	_CloseHandle
	jmp	LBB0_9
LBB0_22:
	movl	%eax, %ebx
	jmp	LBB0_24
LBB0_23:
	movq	_pte_bad_file@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_24:
	movl	%r15d, %edi
	callq	__close
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_pte_internal,4,2               ## @pte_internal
	.comm	_GENERIC_READ,4,2               ## @GENERIC_READ
	.comm	_FILE_SHARE_READ,4,2            ## @FILE_SHARE_READ
	.comm	_OPEN_EXISTING,4,2              ## @OPEN_EXISTING
	.comm	_FILE_ATTRIBUTE_NORMAL,4,2      ## @FILE_ATTRIBUTE_NORMAL
	.comm	_INVALID_HANDLE_VALUE,8,3       ## @INVALID_HANDLE_VALUE
	.comm	_FILE_SHARE_WRITE,4,2           ## @FILE_SHARE_WRITE
	.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	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	bl	_pt_section_lock
	tbnz	w0, #31, LBB0_5
; %bb.2:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_6
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_pt_sec_windows_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_10
LBB0_5:
	mov	x20, x0
	b	LBB0_10
LBB0_6:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_11
LBB0_7:
Lloh3:
	adrp	x8, _pte_internal@GOTPAGE
Lloh4:
	ldr	x8, [x8, _pte_internal@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_9:
	mov	x0, x19
	bl	_pt_section_unlock
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_11:
	ldr	x20, [x19]
	cbz	x20, LBB0_7
; %bb.12:
Lloh5:
	adrp	x21, _GENERIC_READ@GOTPAGE
Lloh6:
	ldr	x21, [x21, _GENERIC_READ@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh7:
	adrp	x8, _FILE_SHARE_READ@GOTPAGE
Lloh8:
	ldr	x8, [x8, _FILE_SHARE_READ@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
Lloh10:
	adrp	x23, _OPEN_EXISTING@GOTPAGE
Lloh11:
	ldr	x23, [x23, _OPEN_EXISTING@GOTPAGEOFF]
	ldr	w4, [x23]
Lloh12:
	adrp	x24, _FILE_ATTRIBUTE_NORMAL@GOTPAGE
Lloh13:
	ldr	x24, [x24, _FILE_ATTRIBUTE_NORMAL@GOTPAGEOFF]
	ldr	w5, [x24]
	mov	x0, x20
	mov	x3, #0
	mov	x6, #0
	bl	_CreateFileA
	mov	x22, x0
Lloh14:
	adrp	x25, _INVALID_HANDLE_VALUE@GOTPAGE
Lloh15:
	ldr	x25, [x25, _INVALID_HANDLE_VALUE@GOTPAGEOFF]
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_15
; %bb.13:
	ldr	w1, [x21]
Lloh16:
	adrp	x8, _FILE_SHARE_WRITE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _FILE_SHARE_WRITE@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	ldr	w4, [x23]
	ldr	w5, [x24]
	mov	x0, x20
	mov	x3, #0
	mov	x6, #0
	bl	_CreateFileA
	mov	x22, x0
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_15
; %bb.14:
Lloh19:
	adrp	x8, _pte_bad_file@GOTPAGE
Lloh20:
	ldr	x8, [x8, _pte_bad_file@GOTPAGEOFF]
	b	LBB0_8
LBB0_15:
Lloh21:
	adrp	x8, __O_RDONLY@GOTPAGE
Lloh22:
	ldr	x8, [x8, __O_RDONLY@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x22
	bl	__open_osfhandle
	cmn	w0, #1
	b.eq	LBB0_21
; %bb.16:
	mov	x21, x0
	mov	x0, x19
	mov	x1, x21
	bl	_check_file_status
	tbnz	w0, #31, LBB0_22
; %bb.17:
	mov	x0, x19
	mov	x1, x21
	bl	_pt_sec_windows_map
	cbz	w0, LBB0_3
; %bb.18:
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	__fdopen
	cbz	x0, LBB0_23
; %bb.19:
	mov	x22, x0
	mov	x0, x19
	mov	x1, x22
	bl	_pt_sec_file_map
	cbz	w0, LBB0_3
; %bb.20:
	mov	x20, x0
	mov	x0, x22
	bl	_fclose
	b	LBB0_9
LBB0_21:
Lloh26:
	adrp	x8, _pte_bad_file@GOTPAGE
Lloh27:
	ldr	x8, [x8, _pte_bad_file@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	neg	w20, w8
	mov	x0, x22
	bl	_CloseHandle
	b	LBB0_9
LBB0_22:
	mov	x20, x0
	b	LBB0_24
LBB0_23:
Lloh29:
	adrp	x8, _pte_bad_file@GOTPAGE
Lloh30:
	ldr	x8, [x8, _pte_bad_file@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_24:
	mov	x0, x21
	bl	__close
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_pte_internal,4,2               ; @pte_internal
	.comm	_GENERIC_READ,4,2               ; @GENERIC_READ
	.comm	_FILE_SHARE_READ,4,2            ; @FILE_SHARE_READ
	.comm	_OPEN_EXISTING,4,2              ; @OPEN_EXISTING
	.comm	_FILE_ATTRIBUTE_NORMAL,4,2      ; @FILE_ATTRIBUTE_NORMAL
	.comm	_INVALID_HANDLE_VALUE,8,3       ; @INVALID_HANDLE_VALUE
	.comm	_FILE_SHARE_WRITE,4,2           ; @FILE_SHARE_WRITE
	.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
