	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function au1xmmc_set_ios
_au1xmmc_set_ios:                       ## @au1xmmc_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
	movq	(%rbx), %rax
	movq	_MMC_POWER_OFF@GOTPCREL(%rip), %rcx
	xorl	%esi, %esi
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	_MMC_POWER_ON@GOTPCREL(%rip), %rcx
	movl	$1, %esi
	cmpq	(%rcx), %rax
	jne	LBB0_3
LBB0_2:
	movq	%r14, %rdi
	callq	_au1xmmc_set_power
LBB0_3:
	movq	8(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.4:
	cmpq	(%r14), %rsi
	je	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	callq	_au1xmmc_set_clock
	movq	8(%rbx), %rax
	movq	%rax, (%r14)
LBB0_6:
	movq	%r14, %rdi
	callq	_HOST_CONFIG2
	movl	%eax, %edi
	callq	___raw_readl
	movl	%eax, %r15d
	movl	16(%rbx), %eax
	cmpl	$130, %eax
	je	LBB0_10
## %bb.7:
	cmpl	$129, %eax
	je	LBB0_11
## %bb.8:
	cmpl	$128, %eax
	jne	LBB0_13
## %bb.9:
	movq	_SD_CONFIG2_BB@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_10:
	movq	_SD_CONFIG2_WB@GOTPCREL(%rip), %rax
	movq	_SD_CONFIG2_BB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, %r15d
	jmp	LBB0_13
LBB0_11:
	movq	_SD_CONFIG2_BB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %r15d
	movq	_SD_CONFIG2_WB@GOTPCREL(%rip), %rax
LBB0_12:
	orl	(%rax), %r15d
LBB0_13:
	movq	%r14, %rdi
	callq	_HOST_CONFIG2
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	___raw_writel
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wmb                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MMC_POWER_OFF,8,3              ## @MMC_POWER_OFF
	.comm	_MMC_POWER_ON,8,3               ## @MMC_POWER_ON
	.comm	_SD_CONFIG2_BB,4,2              ## @SD_CONFIG2_BB
	.comm	_SD_CONFIG2_WB,4,2              ## @SD_CONFIG2_WB
	.no_dead_strip	_au1xmmc_set_ios
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function au1xmmc_set_ios
_au1xmmc_set_ios:                       ; @au1xmmc_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	x8, [x20]
Lloh0:
	adrp	x9, _MMC_POWER_OFF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MMC_POWER_OFF@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	w1, #0
	b	LBB0_4
LBB0_2:
Lloh3:
	adrp	x9, _MMC_POWER_ON@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MMC_POWER_ON@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	mov	w1, #1
LBB0_4:
	mov	x0, x19
	bl	_au1xmmc_set_power
LBB0_5:
	ldr	x1, [x20, #8]
	cbz	x1, LBB0_8
; %bb.6:
	ldr	x8, [x19]
	cmp	x1, x8
	b.eq	LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_au1xmmc_set_clock
	ldr	x8, [x20, #8]
	str	x8, [x19]
LBB0_8:
	mov	x0, x19
	bl	_HOST_CONFIG2
	bl	___raw_readl
	mov	x21, x0
	ldr	w8, [x20, #16]
	cmp	w8, #130
	b.eq	LBB0_12
; %bb.9:
	cmp	w8, #129
	b.eq	LBB0_13
; %bb.10:
	cmp	w8, #128
	b.ne	LBB0_14
; %bb.11:
Lloh6:
	adrp	x8, _SD_CONFIG2_BB@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SD_CONFIG2_BB@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	orr	w21, w8, w21
	b	LBB0_14
LBB0_12:
Lloh9:
	adrp	x8, _SD_CONFIG2_WB@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SD_CONFIG2_WB@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _SD_CONFIG2_BB@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SD_CONFIG2_BB@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w21, w21, w8
	b	LBB0_14
LBB0_13:
Lloh15:
	adrp	x8, _SD_CONFIG2_BB@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SD_CONFIG2_BB@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	bic	w8, w21, w8
Lloh18:
	adrp	x9, _SD_CONFIG2_WB@GOTPAGE
Lloh19:
	ldr	x9, [x9, _SD_CONFIG2_WB@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w21, w8, w9
LBB0_14:
	mov	x0, x19
	bl	_HOST_CONFIG2
	mov	x1, x0
	mov	x0, x21
	bl	___raw_writel
	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	_wmb
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MMC_POWER_OFF,8,3              ; @MMC_POWER_OFF
	.comm	_MMC_POWER_ON,8,3               ; @MMC_POWER_ON
	.comm	_SD_CONFIG2_BB,4,2              ; @SD_CONFIG2_BB
	.comm	_SD_CONFIG2_WB,4,2              ; @SD_CONFIG2_WB
	.no_dead_strip	_au1xmmc_set_ios
.subsections_via_symbols
