	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ulp_read_write
_ulp_read_write:                        ## @ulp_read_write
	.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
	movl	%ecx, %ebx
	movl	%edx, %r15d
	movq	%rdi, %r14
	movq	_RSI_GSPI_DATA_REG1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$6, %esi
	shrl	$16, %edx
	orl	%esi, %edx
	movl	%eax, %esi
	movl	$2, %ecx
	callq	_rsi_sdio_master_reg_write
	movq	_RSI_GSPI_DATA_REG0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzwl	%r15w, %edx
	movq	%r14, %rdi
	movl	$2, %ecx
	callq	_rsi_sdio_master_reg_write
	movq	_RSI_GSPI_CTRL_REG0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RSI_GSPI_CTRL_REG0_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$2, %ecx
	callq	_rsi_sdio_master_reg_write
	movq	_RSI_GSPI_CTRL_REG1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	decl	%ebx
	movq	_RSI_GSPI_TRIG@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	%r14, %rdi
	movl	%ebx, %edx
	movl	$2, %ecx
	callq	_rsi_sdio_master_reg_write
	movl	$20, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_msleep                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RSI_GSPI_DATA_REG1,4,2         ## @RSI_GSPI_DATA_REG1
	.comm	_RSI_GSPI_DATA_REG0,4,2         ## @RSI_GSPI_DATA_REG0
	.comm	_RSI_GSPI_CTRL_REG0,4,2         ## @RSI_GSPI_CTRL_REG0
	.comm	_RSI_GSPI_CTRL_REG0_VALUE,4,2   ## @RSI_GSPI_CTRL_REG0_VALUE
	.comm	_RSI_GSPI_CTRL_REG1,4,2         ## @RSI_GSPI_CTRL_REG1
	.comm	_RSI_GSPI_TRIG,4,2              ## @RSI_GSPI_TRIG
	.no_dead_strip	_ulp_read_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ulp_read_write
_ulp_read_write:                        ; @ulp_read_write
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x0
Lloh0:
	adrp	x8, _RSI_GSPI_DATA_REG1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RSI_GSPI_DATA_REG1@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsr	w9, w2, #16
	orr	w2, w9, w1, lsl #6
	mov	x1, x8
	mov	w3, #2
	bl	_rsi_sdio_master_reg_write
Lloh3:
	adrp	x8, _RSI_GSPI_DATA_REG0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RSI_GSPI_DATA_REG0@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	and	w2, w20, #0xffff
	mov	x0, x21
	mov	w3, #2
	bl	_rsi_sdio_master_reg_write
Lloh6:
	adrp	x8, _RSI_GSPI_CTRL_REG0@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RSI_GSPI_CTRL_REG0@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _RSI_GSPI_CTRL_REG0_VALUE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RSI_GSPI_CTRL_REG0_VALUE@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x21
	mov	w3, #2
	bl	_rsi_sdio_master_reg_write
Lloh12:
	adrp	x8, _RSI_GSPI_CTRL_REG1@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RSI_GSPI_CTRL_REG1@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	sub	w8, w19, #1
Lloh15:
	adrp	x9, _RSI_GSPI_TRIG@GOTPAGE
Lloh16:
	ldr	x9, [x9, _RSI_GSPI_TRIG@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x21
	mov	w3, #2
	bl	_rsi_sdio_master_reg_write
	mov	w0, #20
	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
	b	_msleep
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RSI_GSPI_DATA_REG1,4,2         ; @RSI_GSPI_DATA_REG1
	.comm	_RSI_GSPI_DATA_REG0,4,2         ; @RSI_GSPI_DATA_REG0
	.comm	_RSI_GSPI_CTRL_REG0,4,2         ; @RSI_GSPI_CTRL_REG0
	.comm	_RSI_GSPI_CTRL_REG0_VALUE,4,2   ; @RSI_GSPI_CTRL_REG0_VALUE
	.comm	_RSI_GSPI_CTRL_REG1,4,2         ; @RSI_GSPI_CTRL_REG1
	.comm	_RSI_GSPI_TRIG,4,2              ; @RSI_GSPI_TRIG
	.no_dead_strip	_ulp_read_write
.subsections_via_symbols
