	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_kmmio_fault_page
_add_kmmio_fault_page:                  ## @add_kmmio_fault_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_PAGE_MASK@GOTPCREL(%rip), %rax
	andq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_get_kmmio_fault_page
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %r14
	movl	(%rax), %eax
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	_arm_kmmio_fault_page
	movl	(%r14), %eax
LBB0_3:
	incl	%eax
	movl	%eax, (%r14)
LBB0_8:
	xorl	%r14d, %r14d
LBB0_9:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	movl	$-1, %r14d
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	movq	%rax, %r15
	movl	$1, (%rax)
	movq	%rbx, 8(%rax)
	movq	%rax, %rdi
	callq	_arm_kmmio_fault_page
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	callq	_kfree
	jmp	LBB0_9
LBB0_7:
	movq	%r15, %rbx
	addq	$16, %rbx
	movq	8(%r15), %rdi
	callq	_kmmio_page_list
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_list_add_rcu
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_MASK,8,3                  ## @PAGE_MASK
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.no_dead_strip	_add_kmmio_fault_page
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_kmmio_fault_page
_add_kmmio_fault_page:                  ; @add_kmmio_fault_page
	.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
Lloh0:
	adrp	x8, _PAGE_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	and	x19, x8, x0
	mov	x0, x19
	bl	_get_kmmio_fault_page
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	ldr	w8, [x0]
	cbnz	w8, LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_arm_kmmio_fault_page
	ldr	w8, [x20]
LBB0_3:
	mov	w0, #0
	add	w8, w8, #1
	str	w8, [x20]
	b	LBB0_9
LBB0_4:
Lloh3:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kzalloc
	cbz	x0, LBB0_7
; %bb.5:
	mov	x20, x0
	mov	w8, #1
	str	w8, [x0]
	str	x19, [x0, #8]
	bl	_arm_kmmio_fault_page
	cbz	x0, LBB0_8
; %bb.6:
	mov	x0, x20
	bl	_kfree
LBB0_7:
	mov	w0, #-1
	b	LBB0_9
LBB0_8:
	add	x19, x20, #16
	ldr	x0, [x20, #8]
	bl	_kmmio_page_list
	mov	x1, x0
	mov	x0, x19
	bl	_list_add_rcu
	mov	w0, #0
LBB0_9:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_MASK,8,3                  ; @PAGE_MASK
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.no_dead_strip	_add_kmmio_fault_page
.subsections_via_symbols
