	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdricoh_set_ios
_sdricoh_set_ios:                       ## @sdricoh_set_ios
	.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
	movq	%rsi, %rbx
	callq	_mmc_priv
	movq	%rax, %r14
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movq	(%rbx), %rax
	movq	_MMC_POWER_ON@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.1:
	movq	_R228_POWER@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	movl	$49376, %edx                    ## imm = 0xC0E0
	callq	_sdricoh_writel
	movq	8(%rbx), %rax
	movq	_MMC_BUS_WIDTH_4@GOTPCREL(%rip), %rcx
	movq	_R224_MODE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	movl	$33555200, %edx                 ## imm = 0x2000300
	callq	_sdricoh_writel
	movl	(%r15), %esi
	movq	%r14, %rdi
	movl	$16608, %edx                    ## imm = 0x40E0
	jmp	LBB0_4
LBB0_5:
	movq	_MMC_POWER_UP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	movq	_R224_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$33555232, %edx                 ## imm = 0x2000320
	callq	_sdricoh_writel
	movq	_R228_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$224, %edx
	jmp	LBB0_4
LBB0_3:
	movq	%r14, %rdi
	movl	$33555264, %edx                 ## imm = 0x2000340
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sdricoh_writel                 ## TAILCALL
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"set_ios\n"

	.comm	_MMC_POWER_ON,8,3               ## @MMC_POWER_ON
	.comm	_R228_POWER,4,2                 ## @R228_POWER
	.comm	_MMC_BUS_WIDTH_4,8,3            ## @MMC_BUS_WIDTH_4
	.comm	_R224_MODE,4,2                  ## @R224_MODE
	.comm	_MMC_POWER_UP,8,3               ## @MMC_POWER_UP
	.no_dead_strip	_sdricoh_set_ios
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdricoh_set_ios
_sdricoh_set_ios:                       ; @sdricoh_set_ios
	.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	x20, x1
	bl	_mmc_priv
	mov	x19, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _MMC_POWER_ON@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MMC_POWER_ON@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	mov	w22, #768
	movk	w22, #512, lsl #16
Lloh5:
	adrp	x21, _R228_POWER@GOTPAGE
Lloh6:
	ldr	x21, [x21, _R228_POWER@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #49376
	bl	_sdricoh_writel
Lloh7:
	adrp	x8, _MMC_BUS_WIDTH_4@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MMC_BUS_WIDTH_4@GOTPAGEOFF]
	ldr	x9, [x20, #8]
Lloh9:
	ldr	x8, [x8]
Lloh10:
	adrp	x10, _R224_MODE@GOTPAGE
Lloh11:
	ldr	x10, [x10, _R224_MODE@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x10]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.2:
	mov	x0, x19
	mov	w2, #768
	movk	w2, #512, lsl #16
	bl	_sdricoh_writel
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #16608
	b	LBB0_6
LBB0_3:
Lloh13:
	adrp	x9, _MMC_POWER_UP@GOTPAGE
Lloh14:
	ldr	x9, [x9, _MMC_POWER_UP@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.4:
Lloh16:
	adrp	x8, _R224_MODE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _R224_MODE@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	w8, #768
	movk	w8, #512, lsl #16
	orr	w2, w8, #0x20
	mov	x0, x19
	bl	_sdricoh_writel
Lloh19:
	adrp	x8, _R228_POWER@GOTPAGE
Lloh20:
	ldr	x8, [x8, _R228_POWER@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #224
	b	LBB0_6
LBB0_5:
	add	w2, w22, #64
	mov	x0, x19
LBB0_6:
	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	_sdricoh_writel
LBB0_7:
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set_ios\n"

	.comm	_MMC_POWER_ON,8,3               ; @MMC_POWER_ON
	.comm	_R228_POWER,4,2                 ; @R228_POWER
	.comm	_MMC_BUS_WIDTH_4,8,3            ; @MMC_BUS_WIDTH_4
	.comm	_R224_MODE,4,2                  ; @R224_MODE
	.comm	_MMC_POWER_UP,8,3               ; @MMC_POWER_UP
	.no_dead_strip	_sdricoh_set_ios
.subsections_via_symbols
