	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdricoh_get_ro
_sdricoh_get_ro:                        ## @sdricoh_get_ro
	.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
	callq	_mmc_priv
	movq	%rax, %r14
	movq	_R21C_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_sdricoh_readl
	movl	%eax, %ebx
	movq	_R2E4_STATUS_RESP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_sdricoh_writel
	movq	_switchlocked@GOTPCREL(%rip), %rcx
	movq	_STATUS_CARD_LOCKED@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	andl	(%rdx), %ebx
	sete	%al
	cmpq	$0, (%rcx)
	cmovel	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_R21C_STATUS,4,2                ## @R21C_STATUS
	.comm	_R2E4_STATUS_RESP,4,2           ## @R2E4_STATUS_RESP
	.comm	_switchlocked,8,3               ## @switchlocked
	.comm	_STATUS_CARD_LOCKED,4,2         ## @STATUS_CARD_LOCKED
	.no_dead_strip	_sdricoh_get_ro
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdricoh_get_ro
_sdricoh_get_ro:                        ; @sdricoh_get_ro
	.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
	bl	_mmc_priv
	mov	x19, x0
Lloh0:
	adrp	x8, _R21C_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _R21C_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_sdricoh_readl
	mov	x20, x0
Lloh3:
	adrp	x8, _R2E4_STATUS_RESP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _R2E4_STATUS_RESP@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_sdricoh_writel
Lloh6:
	adrp	x8, _switchlocked@GOTPAGE
Lloh7:
	ldr	x8, [x8, _switchlocked@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _STATUS_CARD_LOCKED@GOTPAGE
Lloh10:
	ldr	x9, [x9, _STATUS_CARD_LOCKED@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	ands	w9, w9, w20
	cset	w10, eq
	cmp	x8, #0
	csel	w0, w9, w10, eq
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.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	_R21C_STATUS,4,2                ; @R21C_STATUS
	.comm	_R2E4_STATUS_RESP,4,2           ; @R2E4_STATUS_RESP
	.comm	_switchlocked,8,3               ; @switchlocked
	.comm	_STATUS_CARD_LOCKED,4,2         ; @STATUS_CARD_LOCKED
	.no_dead_strip	_sdricoh_get_ro
.subsections_via_symbols
