	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function msdc_ops_set_ios
_msdc_ops_set_ios:                      ## @msdc_ops_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
	movq	%rdi, %r15
	callq	_mmc_priv
	movq	%rax, %r14
	movl	24(%rbx), %esi
	movq	%rax, %rdi
	callq	_msdc_set_buswidth
	movl	(%rbx), %eax
	cmpl	$130, %eax
	je	LBB0_11
## %bb.1:
	cmpl	$129, %eax
	je	LBB0_6
## %bb.2:
	cmpl	$128, %eax
	jne	LBB0_16
## %bb.3:
	movl	4(%r15), %edi
	callq	_IS_ERR
	testl	%eax, %eax
	jne	LBB0_16
## %bb.4:
	movq	%r14, %rdi
	callq	_msdc_init_hw
	movl	4(%r15), %esi
	movl	20(%rbx), %edx
	movq	%r15, %rdi
	callq	_mmc_regulator_set_ocr
	testl	%eax, %eax
	je	LBB0_16
## %bb.5:
	movl	20(%r14), %edi
	leaq	L_.str(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
LBB0_11:
	movl	4(%r15), %edi
	callq	_IS_ERR
	testl	%eax, %eax
	jne	LBB0_13
## %bb.12:
	movl	4(%r15), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_mmc_regulator_set_ocr
LBB0_13:
	movl	(%r15), %edi
	callq	_IS_ERR
	testl	%eax, %eax
	jne	LBB0_16
## %bb.14:
	cmpl	$0, (%r14)
	je	LBB0_16
## %bb.15:
	movl	(%r15), %edi
	callq	_regulator_disable
	movl	$0, (%r14)
	jmp	LBB0_16
LBB0_6:
	movl	(%r15), %edi
	callq	_IS_ERR
	testl	%eax, %eax
	jne	LBB0_16
## %bb.7:
	cmpl	$0, (%r14)
	jne	LBB0_16
## %bb.8:
	movl	(%r15), %edi
	callq	_regulator_enable
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	20(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_16
LBB0_10:
	movl	$1, (%r14)
LBB0_16:
	movl	16(%rbx), %edx
	cmpl	%edx, 16(%r14)
	jne	LBB0_17
## %bb.19:
	movq	8(%rbx), %rsi
	cmpq	%rsi, 8(%r14)
	jne	LBB0_18
## %bb.20:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	8(%rbx), %rsi
LBB0_18:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_msdc_set_mclk                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to set vmmc power!\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to set vqmmc power!\n"

	.no_dead_strip	_msdc_ops_set_ios
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function msdc_ops_set_ios
_msdc_ops_set_ios:                      ; @msdc_ops_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	w1, [x20, #24]
	bl	_msdc_set_buswidth
	ldr	w8, [x20]
	cmp	w8, #130
	b.eq	LBB0_6
; %bb.1:
	cmp	w8, #129
	b.eq	LBB0_11
; %bb.2:
	cmp	w8, #128
	b.ne	LBB0_16
; %bb.3:
	ldr	w0, [x21, #4]
	bl	_IS_ERR
	cbnz	w0, LBB0_16
; %bb.4:
	mov	x0, x19
	bl	_msdc_init_hw
	ldr	w1, [x21, #4]
	ldr	w2, [x20, #20]
	mov	x0, x21
	bl	_mmc_regulator_set_ocr
	cbz	w0, LBB0_16
; %bb.5:
	ldr	w0, [x19, #20]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	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	_dev_err
LBB0_6:
	ldr	w0, [x21, #4]
	bl	_IS_ERR
	cbnz	w0, LBB0_8
; %bb.7:
	ldr	w1, [x21, #4]
	mov	x0, x21
	mov	w2, #0
	bl	_mmc_regulator_set_ocr
LBB0_8:
	ldr	w0, [x21]
	bl	_IS_ERR
	cbnz	w0, LBB0_16
; %bb.9:
	ldr	w8, [x19]
	cbz	w8, LBB0_16
; %bb.10:
	ldr	w0, [x21]
	bl	_regulator_disable
	str	wzr, [x19]
	b	LBB0_16
LBB0_11:
	ldr	w0, [x21]
	bl	_IS_ERR
	cbnz	w0, LBB0_16
; %bb.12:
	ldr	w8, [x19]
	cbnz	w8, LBB0_16
; %bb.13:
	ldr	w0, [x21]
	bl	_regulator_enable
	cbz	w0, LBB0_15
; %bb.14:
	ldr	w0, [x19, #20]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	b	LBB0_16
LBB0_15:
	mov	w8, #1
	str	w8, [x19]
LBB0_16:
	ldr	w8, [x19, #16]
	ldr	w2, [x20, #16]
	cmp	w8, w2
	b.ne	LBB0_19
; %bb.17:
	ldr	x8, [x19, #8]
	ldr	x1, [x20, #8]
	cmp	x8, x1
	b.ne	LBB0_20
; %bb.18:
	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
LBB0_19:
	ldr	x1, [x20, #8]
LBB0_20:
	mov	x0, x19
	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	_msdc_set_mclk
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to set vmmc power!\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to set vqmmc power!\n"

	.no_dead_strip	_msdc_ops_set_ios
.subsections_via_symbols
