	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_register_kmmio_probe           ## -- Begin function register_kmmio_probe
	.p2align	4, 0x90
_register_kmmio_probe:                  ## @register_kmmio_probe
	.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
	movq	%rdi, %r15
	movq	_PAGE_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	notq	%r12
	andq	8(%rdi), %r12
	addq	(%rdi), %r12
	movq	_kmmio_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_irqsave
	movq	8(%r15), %rdi
	callq	_get_kmmio_probe
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EEXIST@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_2:
	movq	_kmmio_count@GOTPCREL(%rip), %rax
	incl	(%rax)
	leaq	16(%r15), %rdi
	movq	_kmmio_probes@GOTPCREL(%rip), %rsi
	callq	_list_add_rcu
	testq	%r12, %r12
	je	LBB0_7
## %bb.3:
	xorl	%ebx, %ebx
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r13
	leaq	L_.str(%rip), %r14
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	addq	(%r13), %rbx
	cmpq	%r12, %rbx
	jae	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rdi
	addq	%rbx, %rdi
	callq	_add_kmmio_fault_page
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	callq	_pr_err
	jmp	LBB0_6
LBB0_7:
	xorl	%ebx, %ebx
LBB0_8:
	movq	_kmmio_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_irqrestore
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_MASK,8,3                  ## @PAGE_MASK
	.comm	_kmmio_lock,4,2                 ## @kmmio_lock
	.comm	_EEXIST,4,2                     ## @EEXIST
	.comm	_kmmio_count,4,2                ## @kmmio_count
	.comm	_kmmio_probes,4,2               ## @kmmio_probes
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"kmmio: Unable to set page fault.\n"

	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_register_kmmio_probe           ; -- Begin function register_kmmio_probe
	.p2align	2
_register_kmmio_probe:                  ; @register_kmmio_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldp	x20, x21, [x0]
Lloh0:
	adrp	x8, _PAGE_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
Lloh3:
	adrp	x0, _kmmio_lock@GOTPAGE
Lloh4:
	ldr	x0, [x0, _kmmio_lock@GOTPAGEOFF]
	bl	_spin_lock_irqsave
	ldr	x0, [x19, #8]
	bl	_get_kmmio_probe
	cbz	x0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _EEXIST@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_8
LBB0_2:
	bic	x8, x21, x22
	add	x21, x8, x20
Lloh8:
	adrp	x8, _kmmio_count@GOTPAGE
Lloh9:
	ldr	x8, [x8, _kmmio_count@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	add	x0, x19, #16
Lloh10:
	adrp	x1, _kmmio_probes@GOTPAGE
Lloh11:
	ldr	x1, [x1, _kmmio_probes@GOTPAGEOFF]
	bl	_list_add_rcu
	cbz	x21, LBB0_7
; %bb.3:
	mov	x22, #0
Lloh12:
	adrp	x23, _PAGE_SIZE@GOTPAGE
Lloh13:
	ldr	x23, [x23, _PAGE_SIZE@GOTPAGEOFF]
Lloh14:
	adrp	x20, l_.str@PAGE
Lloh15:
	add	x20, x20, l_.str@PAGEOFF
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x23]
	add	x22, x8, x22
	cmp	x22, x21
	b.hs	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x0, x8, x22
	bl	_add_kmmio_fault_page
	cbz	x0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	bl	_pr_err
	b	LBB0_4
LBB0_7:
	mov	w19, #0
LBB0_8:
Lloh16:
	adrp	x0, _kmmio_lock@GOTPAGE
Lloh17:
	ldr	x0, [x0, _kmmio_lock@GOTPAGEOFF]
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_MASK,8,3                  ; @PAGE_MASK
	.comm	_kmmio_lock,4,2                 ; @kmmio_lock
	.comm	_EEXIST,4,2                     ; @EEXIST
	.comm	_kmmio_count,4,2                ; @kmmio_count
	.comm	_kmmio_probes,4,2               ; @kmmio_probes
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"kmmio: Unable to set page fault.\n"

	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
.subsections_via_symbols
