	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rmi_set_page
_rmi_set_page:                          ## @rmi_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	%esi, -12(%rbp)
	movq	_RMI_SPI_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -20(%rbp)
	movq	_RMI_PAGE_SELECT_REGISTER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	leaq	-24(%rbp), %rsi
	leaq	-12(%rbp), %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_rmi_spi_xfer
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	-12(%rbp), %ecx
	movl	%ecx, (%rbx)
LBB0_2:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RMI_SPI_WRITE,4,2              ## @RMI_SPI_WRITE
	.comm	_RMI_PAGE_SELECT_REGISTER,4,2   ## @RMI_PAGE_SELECT_REGISTER
	.no_dead_strip	_rmi_set_page
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rmi_set_page
_rmi_set_page:                          ; @rmi_set_page
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	str	w1, [sp, #12]
Lloh0:
	adrp	x8, _RMI_SPI_WRITE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RMI_SPI_WRITE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _RMI_PAGE_SELECT_REGISTER@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RMI_PAGE_SELECT_REGISTER@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [sp]
	mov	x1, sp
	add	x2, sp, #12
	mov	w3, #1
	mov	x4, #0
	mov	w5, #0
	bl	_rmi_spi_xfer
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w8, [sp, #12]
	str	w8, [x19]
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RMI_SPI_WRITE,4,2              ; @RMI_SPI_WRITE
	.comm	_RMI_PAGE_SELECT_REGISTER,4,2   ; @RMI_PAGE_SELECT_REGISTER
	.no_dead_strip	_rmi_set_page
.subsections_via_symbols
