	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl_set_page
_rtl_set_page:                          ## @rtl_set_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
	cmpq	$0, 8(%rdi)
	jne	LBB0_2
## %bb.1:
	movl	%esi, %ebx
	cmpl	%esi, (%rdi)
	jne	LBB0_3
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	16(%rdi), %r14
	movq	_RTL8306_NUM_PAGES@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	%ebx, (%rax)
	setb	%dil
	callq	_BUG_ON
	movq	_RTL8306_REG_PAGE@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	*(%r14)
	movq	_RTL8306_REG_PAGE_LO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_RTL8306_REG_PAGE_HI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %esi
	orl	%edx, %esi
	notl	%esi
	andl	%eax, %esi
	movl	%ebx, %eax
	andl	$1, %eax
	negl	%eax
	andl	%edx, %eax
	testb	$2, %bl
	cmovnel	%r12d, %ecx
	orl	%eax, %ecx
	orl	%esi, %ecx
	movq	8(%r14), %rax
	movl	(%r15), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RTL8306_NUM_PAGES,4,2          ## @RTL8306_NUM_PAGES
	.comm	_RTL8306_REG_PAGE,4,2           ## @RTL8306_REG_PAGE
	.comm	_RTL8306_REG_PAGE_LO,4,2        ## @RTL8306_REG_PAGE_LO
	.comm	_RTL8306_REG_PAGE_HI,4,2        ## @RTL8306_REG_PAGE_HI
	.no_dead_strip	_rtl_set_page
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl_set_page
_rtl_set_page:                          ; @rtl_set_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
	ldr	x8, [x0, #8]
	cbnz	x8, LBB0_2
; %bb.1:
	mov	x19, x1
	ldr	w8, [x0]
	cmp	w8, w1
	b.ne	LBB0_3
LBB0_2:
	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_3:
	ldr	x20, [x0, #16]
Lloh0:
	adrp	x8, _RTL8306_NUM_PAGES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RTL8306_NUM_PAGES@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w19
	cset	w0, lo
	bl	_BUG_ON
	ldr	x8, [x20]
Lloh3:
	adrp	x21, _RTL8306_REG_PAGE@GOTPAGE
Lloh4:
	ldr	x21, [x21, _RTL8306_REG_PAGE@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x20
	mov	w1, #0
	blr	x8
Lloh5:
	adrp	x8, _RTL8306_REG_PAGE_LO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RTL8306_REG_PAGE_LO@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _RTL8306_REG_PAGE_HI@GOTPAGE
Lloh9:
	ldr	x9, [x9, _RTL8306_REG_PAGE_HI@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w10, w9, w8
	bic	w10, w0, w10
	sbfx	w11, w19, #0, #1
	and	w8, w11, w8
	tst	w19, #0x2
	csel	w9, w9, wzr, eq
	orr	w8, w9, w8
	orr	w3, w8, w10
	ldr	x4, [x20, #8]
	ldr	w2, [x21]
	mov	x0, x20
	mov	w1, #0
	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
	br	x4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RTL8306_NUM_PAGES,4,2          ; @RTL8306_NUM_PAGES
	.comm	_RTL8306_REG_PAGE,4,2           ; @RTL8306_REG_PAGE
	.comm	_RTL8306_REG_PAGE_LO,4,2        ; @RTL8306_REG_PAGE_LO
	.comm	_RTL8306_REG_PAGE_HI,4,2        ; @RTL8306_REG_PAGE_HI
	.no_dead_strip	_rtl_set_page
.subsections_via_symbols
