	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ctl_page_to_phys
_ctl_page_to_phys:                      ## @ctl_page_to_phys
	.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
	movq	%rsi, %rbx
	movq	(%rdi), %r14
	leaq	L_.str(%rip), %rsi
	movl	$3, %edi
	callq	_edac_dbg
	movq	(%r14), %rcx
	cmpq	%rbx, %rcx
	ja	LBB0_1
## %bb.2:
	movq	8(%r14), %rax
	cmpq	$1048576, %rbx                  ## imm = 0x100000
	jb	LBB0_5
## %bb.3:
	cmpq	%rbx, %rax
	jbe	LBB0_5
LBB0_1:
	movq	%rbx, %rax
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movq	%rbx, %rdx
	subq	%rcx, %rdx
	addq	%rdx, %rax
	cmpq	16(%r14), %rax
	jl	LBB0_7
## %bb.6:
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdx
	callq	_e752x_printk
	movq	(%r14), %rax
	decq	%rax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_KERN_ERR,4,2                   ## @KERN_ERR
L_.str.1:                               ## @.str.1
	.asciz	"Invalid page %lx - out of range\n"

	.no_dead_strip	_ctl_page_to_phys
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ctl_page_to_phys
_ctl_page_to_phys:                      ; @ctl_page_to_phys
	.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
	mov	x19, x1
	ldr	x20, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #3
	bl	_edac_dbg
	ldr	x8, [x20]
	cmp	x8, x19
	b.hi	LBB0_3
; %bb.1:
	ldr	x9, [x20, #8]
	cmp	x19, #256, lsl #12              ; =1048576
	b.lo	LBB0_5
; %bb.2:
	cmp	x9, x19
	b.ls	LBB0_5
LBB0_3:
	mov	x0, x19
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	sub	x8, x19, x8
	add	x0, x9, x8
	ldr	x8, [x20, #16]
	cmp	x0, x8
	b.lt	LBB0_4
; %bb.6:
Lloh2:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_e752x_printk
	ldr	x8, [x20]
	sub	x0, x8, #1
	b	LBB0_4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_KERN_ERR,4,2                   ; @KERN_ERR
l_.str.1:                               ; @.str.1
	.asciz	"Invalid page %lx - out of range\n"

	.no_dead_strip	_ctl_page_to_phys
.subsections_via_symbols
