	.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, %r15
	callq	_mmc_priv
	movq	%rax, %r14
	movq	(%r15), %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(%r15), %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(%r15), %rax
	movq	%rax, (%r14)
LBB0_6:
	movq	%r14, %rdi
	callq	_HOST_CONFIG2
	movl	%eax, %edi
	callq	_au_readl
	movl	%eax, %ebx
	movl	16(%r15), %eax
	cmpl	$129, %eax
	je	LBB0_9
## %bb.7:
	cmpl	$128, %eax
	jne	LBB0_10
## %bb.8:
	movq	_SD_CONFIG2_WB@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	jmp	LBB0_10
LBB0_9:
	movq	_SD_CONFIG2_WB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %ebx
LBB0_10:
	movq	%r14, %rdi
	callq	_HOST_CONFIG2
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_au_writel
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_au_sync                        ## 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_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	_au_readl
	mov	x21, x0
	ldr	w8, [x20, #16]
	cmp	w8, #129
	b.eq	LBB0_11
; %bb.9:
	cmp	w8, #128
	b.ne	LBB0_12
; %bb.10:
Lloh6:
	adrp	x8, _SD_CONFIG2_WB@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SD_CONFIG2_WB@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	orr	w21, w8, w21
	b	LBB0_12
LBB0_11:
Lloh9:
	adrp	x8, _SD_CONFIG2_WB@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SD_CONFIG2_WB@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	bic	w21, w21, w8
LBB0_12:
	mov	x0, x19
	bl	_HOST_CONFIG2
	mov	x1, x0
	mov	x0, x21
	bl	_au_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	_au_sync
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.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_WB,4,2              ; @SD_CONFIG2_WB
	.no_dead_strip	_au1xmmc_set_ios
.subsections_via_symbols
