	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pt_section_unmap               ## -- Begin function pt_section_unmap
	.p2align	4, 0x90
_pt_section_unmap:                      ## @pt_section_unmap
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	callq	_pt_section_lock
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	16(%r14), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	decq	%rax
	movq	%rax, 16(%r14)
	je	LBB0_7
## %bb.11:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_pt_section_unlock              ## TAILCALL
LBB0_1:
	movq	_pte_internal@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_3:
	movl	%eax, %ebx
	jmp	LBB0_10
LBB0_5:
	movq	_pte_nomap@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_7:
	movq	(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.12:
	movq	%r14, %rdi
	callq	*%rcx
	movl	%eax, %ebx
	movq	8(%r14), %rdi
	callq	_pt_bcache_free
	movq	$0, 8(%r14)
	movq	%r14, %rdi
	callq	_pt_section_unlock
	testl	%eax, %eax
	cmovsl	%eax, %ebx
	jmp	LBB0_10
LBB0_8:
	movq	_pte_internal@GOTPCREL(%rip), %rax
LBB0_9:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_pt_section_unlock
LBB0_10:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pte_internal,4,2               ## @pte_internal
	.comm	_pte_nomap,4,2                  ## @pte_nomap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pt_section_unmap               ; -- Begin function pt_section_unmap
	.p2align	2
_pt_section_unmap:                      ; @pt_section_unmap
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	bl	_pt_section_lock
	tbnz	w0, #31, LBB0_6
; %bb.2:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_7
; %bb.3:
	subs	x8, x8, #1
	str	x8, [x19, #16]
	b.eq	LBB0_8
; %bb.4:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_pt_section_unlock
LBB0_5:
Lloh0:
	adrp	x8, _pte_internal@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pte_internal@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_12
LBB0_6:
	mov	x20, x0
	b	LBB0_12
LBB0_7:
Lloh3:
	adrp	x8, _pte_nomap@GOTPAGE
Lloh4:
	ldr	x8, [x8, _pte_nomap@GOTPAGEOFF]
	b	LBB0_11
LBB0_8:
	ldr	x8, [x19]
	cbz	x8, LBB0_10
; %bb.9:
	mov	x0, x19
	blr	x8
	mov	x20, x0
	ldr	x0, [x19, #8]
	bl	_pt_bcache_free
	str	xzr, [x19, #8]
	mov	x0, x19
	bl	_pt_section_unlock
	cmp	w0, #0
	csel	w20, w0, w20, lt
	b	LBB0_12
LBB0_10:
Lloh5:
	adrp	x8, _pte_internal@GOTPAGE
Lloh6:
	ldr	x8, [x8, _pte_internal@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w20, w8
	mov	x0, x19
	bl	_pt_section_unlock
LBB0_12:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_pte_internal,4,2               ; @pte_internal
	.comm	_pte_nomap,4,2                  ; @pte_nomap
.subsections_via_symbols
