	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brd_insert_page
_brd_insert_page:                       ## @brd_insert_page
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	callq	_brd_lookup_page
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	_GFP_NOIO@GOTPCREL(%rip), %r12
	movq	___GFP_ZERO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	orl	(%r12), %edi
	movq	___GFP_HIGHMEM@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	callq	_alloc_page
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%rax, %rbx
	movl	(%r12), %edi
	callq	_radix_tree_preload
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	%rbx, %rdi
	callq	___free_page
LBB0_5:
	xorl	%ebx, %ebx
	jmp	LBB0_1
LBB0_6:
	movq	%r14, %rdi
	callq	_spin_lock
	movq	_PAGE_SECTORS_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %r15d
	leaq	4(%r14), %r12
	movq	%r12, %rdi
	movl	%r15d, %esi
	movq	%rbx, %rdx
	callq	_radix_tree_insert
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	___free_page
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_radix_tree_lookup
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_BUG_ON
	xorl	%edi, %edi
	cmpl	%r15d, (%rbx)
	setne	%dil
	callq	_BUG_ON
	jmp	LBB0_9
LBB0_8:
	movl	%r15d, (%rbx)
LBB0_9:
	movq	%r14, %rdi
	callq	_spin_unlock
	xorl	%eax, %eax
	callq	_radix_tree_preload_end
LBB0_1:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_NOIO,4,2                   ## @GFP_NOIO
	.comm	___GFP_ZERO,4,2                 ## @__GFP_ZERO
	.comm	___GFP_HIGHMEM,4,2              ## @__GFP_HIGHMEM
	.comm	_PAGE_SECTORS_SHIFT,4,2         ## @PAGE_SECTORS_SHIFT
	.no_dead_strip	_brd_insert_page
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brd_insert_page
_brd_insert_page:                       ; @brd_insert_page
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x1
	mov	x19, x0
	bl	_brd_lookup_page
	mov	x20, x0
	cbz	x0, LBB0_2
LBB0_1:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh0:
	adrp	x22, _GFP_NOIO@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GFP_NOIO@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh2:
	adrp	x9, ___GFP_ZERO@GOTPAGE
Lloh3:
	ldr	x9, [x9, ___GFP_ZERO@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh5:
	adrp	x9, ___GFP_HIGHMEM@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___GFP_HIGHMEM@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w0, w8, w9
	bl	_alloc_page
	mov	x20, x0
	cbz	x0, LBB0_1
; %bb.3:
	ldr	w0, [x22]
	bl	_radix_tree_preload
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x20
	bl	___free_page
	mov	x20, #0
	b	LBB0_1
LBB0_5:
	mov	x0, x19
	bl	_spin_lock
Lloh8:
	adrp	x8, _PAGE_SECTORS_SHIFT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PAGE_SECTORS_SHIFT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	asr	w21, w21, w8
	add	x22, x19, #4
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_radix_tree_insert
	cbz	x0, LBB0_7
; %bb.6:
	mov	x0, x20
	bl	___free_page
	mov	x0, x22
	mov	x1, x21
	bl	_radix_tree_lookup
	mov	x20, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_BUG_ON
	ldr	w8, [x20]
	cmp	w8, w21
	cset	w0, ne
	bl	_BUG_ON
	b	LBB0_8
LBB0_7:
	str	w21, [x20]
LBB0_8:
	mov	x0, x19
	bl	_spin_unlock
	bl	_radix_tree_preload_end
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_NOIO,4,2                   ; @GFP_NOIO
	.comm	___GFP_ZERO,4,2                 ; @__GFP_ZERO
	.comm	___GFP_HIGHMEM,4,2              ; @__GFP_HIGHMEM
	.comm	_PAGE_SECTORS_SHIFT,4,2         ; @PAGE_SECTORS_SHIFT
	.no_dead_strip	_brd_insert_page
.subsections_via_symbols
