	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmci_set_ios
_mmci_set_ios:                          ## @mmci_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_mmc_priv
	movq	%rax, %r13
	movq	%rax, %r14
	movl	(%r15), %eax
	xorl	%r12d, %r12d
	cmpl	$128, %eax
	je	LBB0_6
## %bb.1:
	cmpl	$129, %eax
	je	LBB0_11
## %bb.2:
	cmpl	$130, %eax
	jne	LBB0_13
## %bb.3:
	movl	40(%r14), %edi
	testl	%edi, %edi
	je	LBB0_13
## %bb.4:
	callq	_regulator_is_enabled
	testl	%eax, %eax
	je	LBB0_13
## %bb.5:
	movl	40(%r14), %edi
	callq	_regulator_disable
	jmp	LBB0_13
LBB0_6:
	cmpl	$0, 40(%r14)
	jne	LBB0_9
## %bb.7:
	movq	32(%r14), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	movq	%rax, %rbx
	callq	_mmc_dev
	movl	20(%r15), %esi
	movl	%eax, %edi
	callq	*%rbx
	movl	%eax, %r12d
LBB0_9:
	movq	(%r14), %rax
	movq	_AMBA_VENDOR_ST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
LBB0_11:
	movq	_MCI_PWR_ON@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_10:
	movq	_MCI_PWR_UP@GOTPCREL(%rip), %rax
LBB0_12:
	orl	(%rax), %r12d
LBB0_13:
	movq	8(%r15), %rax
	movq	_MMC_BUSMODE_OPENDRAIN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_18
## %bb.14:
	movq	(%r14), %rax
	movq	_AMBA_VENDOR_ST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.16:
	movq	_MCI_OD@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_15:
	movq	_MCI_ROD@GOTPCREL(%rip), %rax
LBB0_17:
	orl	(%rax), %r12d
LBB0_18:
	addq	$8, %r13
	movq	%r13, %rdi
	callq	_spin_lock_irqsave
	movl	16(%r15), %esi
	movq	%r14, %rdi
	callq	_mmci_set_clkreg
	cmpl	%r12d, 24(%r14)
	je	LBB0_20
## %bb.19:
	movl	%r12d, 24(%r14)
	movq	_MMCIPOWER@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%r14), %rsi
	movl	%r12d, %edi
	callq	_writel
LBB0_20:
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AMBA_VENDOR_ST,8,3             ## @AMBA_VENDOR_ST
	.comm	_MCI_PWR_UP,4,2                 ## @MCI_PWR_UP
	.comm	_MCI_PWR_ON,4,2                 ## @MCI_PWR_ON
	.comm	_MMC_BUSMODE_OPENDRAIN,8,3      ## @MMC_BUSMODE_OPENDRAIN
	.comm	_MCI_ROD,4,2                    ## @MCI_ROD
	.comm	_MCI_OD,4,2                     ## @MCI_OD
	.comm	_MMCIPOWER,8,3                  ## @MMCIPOWER
	.no_dead_strip	_mmci_set_ios
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmci_set_ios
_mmci_set_ios:                          ; @mmci_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
	mov	x21, x0
	bl	_mmc_priv
	mov	x19, x0
	ldr	w8, [x20]
	cmp	w8, #128
	b.eq	LBB0_6
; %bb.1:
	mov	w21, #0
	cmp	w8, #129
	b.eq	LBB0_12
; %bb.2:
	cmp	w8, #130
	b.ne	LBB0_15
; %bb.3:
	ldr	w0, [x19, #40]
	cbz	w0, LBB0_8
; %bb.4:
	bl	_regulator_is_enabled
	cbz	w0, LBB0_8
; %bb.5:
	ldr	w0, [x19, #40]
	bl	_regulator_disable
	mov	w21, #0
	b	LBB0_15
LBB0_6:
	ldr	w8, [x19, #40]
	cbz	w8, LBB0_9
LBB0_7:
	mov	w21, #0
	b	LBB0_11
LBB0_8:
	mov	w21, #0
	b	LBB0_15
LBB0_9:
	ldr	x8, [x19, #32]
	ldr	x22, [x8]
	cbz	x22, LBB0_7
; %bb.10:
	mov	x0, x21
	bl	_mmc_dev
	ldr	w1, [x20, #20]
	blr	x22
	mov	x21, x0
LBB0_11:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _AMBA_VENDOR_ST@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AMBA_VENDOR_ST@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
LBB0_12:
Lloh3:
	adrp	x8, _MCI_PWR_ON@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MCI_PWR_ON@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
Lloh5:
	adrp	x8, _MCI_PWR_UP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MCI_PWR_UP@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
	orr	w21, w8, w21
LBB0_15:
	ldr	x8, [x20, #8]
Lloh7:
	adrp	x9, _MMC_BUSMODE_OPENDRAIN@GOTPAGE
Lloh8:
	ldr	x9, [x9, _MMC_BUSMODE_OPENDRAIN@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_20
; %bb.16:
	ldr	x8, [x19]
Lloh10:
	adrp	x9, _AMBA_VENDOR_ST@GOTPAGE
Lloh11:
	ldr	x9, [x9, _AMBA_VENDOR_ST@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_18
; %bb.17:
Lloh13:
	adrp	x8, _MCI_OD@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MCI_OD@GOTPAGEOFF]
	b	LBB0_19
LBB0_18:
Lloh15:
	adrp	x8, _MCI_ROD@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MCI_ROD@GOTPAGEOFF]
LBB0_19:
	ldr	w8, [x8]
	orr	w21, w8, w21
LBB0_20:
	add	x22, x19, #8
	mov	x0, x22
	bl	_spin_lock_irqsave
	ldr	w1, [x20, #16]
	mov	x0, x19
	bl	_mmci_set_clkreg
	ldr	w8, [x19, #24]
	cmp	w8, w21
	b.eq	LBB0_22
; %bb.21:
	str	w21, [x19, #24]
	ldr	x8, [x19, #16]
Lloh17:
	adrp	x9, _MMCIPOWER@GOTPAGE
Lloh18:
	ldr	x9, [x9, _MMCIPOWER@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x21
	bl	_writel
LBB0_22:
	mov	x0, x22
	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	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_AMBA_VENDOR_ST,8,3             ; @AMBA_VENDOR_ST
	.comm	_MCI_PWR_UP,4,2                 ; @MCI_PWR_UP
	.comm	_MCI_PWR_ON,4,2                 ; @MCI_PWR_ON
	.comm	_MMC_BUSMODE_OPENDRAIN,8,3      ; @MMC_BUSMODE_OPENDRAIN
	.comm	_MCI_ROD,4,2                    ; @MCI_ROD
	.comm	_MCI_OD,4,2                     ; @MCI_OD
	.comm	_MMCIPOWER,8,3                  ; @MMCIPOWER
	.no_dead_strip	_mmci_set_ios
.subsections_via_symbols
