	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pt_section_alloc_bcache        ## -- Begin function pt_section_alloc_bcache
	.p2align	4, 0x90
_pt_section_alloc_bcache:               ## @pt_section_alloc_bcache
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.1:
	movq	%rdi, %r14
	cmpl	$0, 16(%rdi)
	je	LBB0_6
## %bb.2:
	movq	%r14, %rdi
	callq	_pt_section_size
	movq	%rax, %r15
	movq	$0, -32(%rbp)
	movq	%r14, %rdi
	callq	_pt_section_lock_attach
	testl	%eax, %eax
	js	LBB0_16
## %bb.3:
	movq	%r14, %rdi
	callq	_pt_section_lock
	testl	%eax, %eax
	js	LBB0_7
## %bb.4:
	movq	%r14, %rdi
	callq	_pt_section_bcache
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_9
LBB0_5:
	movq	%r14, %rdi
	callq	_pt_section_unlock
	jmp	LBB0_8
LBB0_6:
	movq	_pte_internal@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_17
LBB0_9:
	movq	%r15, %rdi
	callq	_pt_bcache_alloc
	testq	%rax, %rax
	je	LBB0_18
## %bb.10:
	movq	%rax, 8(%r14)
	leaq	-32(%rbp), %rsi
	movq	%r14, %rdi
	callq	_pt_section_memsize_locked
	testl	%eax, %eax
	js	LBB0_19
## %bb.11:
	movq	%r14, %rdi
	callq	_pt_section_unlock
	testl	%eax, %eax
	js	LBB0_7
## %bb.12:
	movq	-32(%rbp), %rdx
	testq	%rdx, %rdx
	je	LBB0_15
## %bb.13:
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.14:
	movq	%r14, %rsi
	callq	_pt_iscache_notify_resize
	testl	%eax, %eax
	js	LBB0_7
LBB0_15:
	movq	%r14, %rdi
	callq	_pt_section_unlock_attach
LBB0_16:
	movl	%eax, %ebx
	jmp	LBB0_17
LBB0_7:
	movl	%eax, %ebx
LBB0_8:
	movq	%r14, %rdi
	callq	_pt_section_unlock_attach
LBB0_17:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	_pte_nomem@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_5
LBB0_19:
	movl	%eax, %ebx
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_pte_internal,4,2               ## @pte_internal
	.comm	_pte_not_supported,4,2          ## @pte_not_supported
	.comm	_pte_nomem,4,2                  ## @pte_nomem
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pt_section_alloc_bcache        ; -- Begin function pt_section_alloc_bcache
	.p2align	2
_pt_section_alloc_bcache:               ; @pt_section_alloc_bcache
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0, #16]
	cbz	w8, LBB0_7
; %bb.2:
	mov	x0, x19
	bl	_pt_section_size
	mov	x21, x0
	str	xzr, [sp, #8]
	mov	x0, x19
	bl	_pt_section_lock_attach
	tbnz	w0, #31, LBB0_15
; %bb.3:
	mov	x0, x19
	bl	_pt_section_lock
	tbnz	w0, #31, LBB0_16
; %bb.4:
	mov	x0, x19
	bl	_pt_section_bcache
	cbz	x0, LBB0_8
; %bb.5:
	mov	w20, #0
LBB0_6:
	mov	x0, x19
	bl	_pt_section_unlock
	b	LBB0_17
LBB0_7:
Lloh0:
	adrp	x8, _pte_internal@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pte_internal@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_18
LBB0_8:
	mov	x0, x21
	bl	_pt_bcache_alloc
	cbz	x0, LBB0_19
; %bb.9:
	str	x0, [x19, #8]
	add	x1, sp, #8
	mov	x0, x19
	bl	_pt_section_memsize_locked
	tbnz	w0, #31, LBB0_20
; %bb.10:
	mov	x0, x19
	bl	_pt_section_unlock
	tbnz	w0, #31, LBB0_16
; %bb.11:
	ldr	x2, [sp, #8]
	cbz	x2, LBB0_14
; %bb.12:
	ldr	x0, [x19]
	cbz	x0, LBB0_14
; %bb.13:
	mov	x1, x19
	bl	_pt_iscache_notify_resize
	tbnz	w0, #31, LBB0_16
LBB0_14:
	mov	x0, x19
	bl	_pt_section_unlock_attach
LBB0_15:
	mov	x20, x0
	b	LBB0_18
LBB0_16:
	mov	x20, x0
LBB0_17:
	mov	x0, x19
	bl	_pt_section_unlock_attach
LBB0_18:
	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
	add	sp, sp, #64
	ret
LBB0_19:
Lloh3:
	adrp	x8, _pte_nomem@GOTPAGE
Lloh4:
	ldr	x8, [x8, _pte_nomem@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_6
LBB0_20:
	mov	x20, x0
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_pte_internal,4,2               ; @pte_internal
	.comm	_pte_not_supported,4,2          ; @pte_not_supported
	.comm	_pte_nomem,4,2                  ; @pte_nomem
.subsections_via_symbols
