	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sunxi_mmc_card_power
_sunxi_mmc_card_power:                  ## @sunxi_mmc_card_power
	.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	%rdi, %r14
	movq	8(%rdi), %r15
	movl	(%rsi), %eax
	cmpl	$129, %eax
	je	LBB0_7
## %bb.1:
	cmpl	$128, %eax
	jne	LBB0_15
## %bb.2:
	movq	%rsi, %rbx
	movq	%r15, %rdi
	callq	_mmc_dev
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_dev_dbg
	movl	4(%r15), %edi
	callq	_IS_ERR
	testl	%eax, %eax
	je	LBB0_3
LBB0_4:
	movl	(%r15), %edi
	callq	_IS_ERR
	testl	%eax, %eax
	jne	LBB0_13
## %bb.5:
	movl	(%r15), %edi
	callq	_regulator_enable
	movl	%eax, 4(%r14)
	testl	%eax, %eax
	je	LBB0_6
## %bb.14:
	movq	%r15, %rdi
	callq	_mmc_dev
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
LBB0_7:
	movq	%r15, %rdi
	callq	_mmc_dev
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edi
	callq	_dev_dbg
	movl	4(%r15), %edi
	callq	_IS_ERR
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movl	4(%r15), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_mmc_regulator_set_ocr
LBB0_9:
	movl	(%r15), %edi
	callq	_IS_ERR
	testl	%eax, %eax
	jne	LBB0_12
## %bb.10:
	cmpl	$0, (%r14)
	je	LBB0_12
## %bb.11:
	movl	(%r15), %edi
	callq	_regulator_disable
LBB0_12:
	movl	$0, (%r14)
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	%r15, %rdi
	callq	_mmc_dev
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_dbg                        ## TAILCALL
LBB0_3:
	movl	4(%r15), %esi
	movl	4(%rbx), %edx
	movq	%r15, %rdi
	callq	_mmc_regulator_set_ocr
	movl	%eax, 4(%r14)
	testl	%eax, %eax
	jne	LBB0_13
	jmp	LBB0_4
LBB0_6:
	movl	$1, (%r14)
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Powering card up\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to enable vqmmc\n"

L_.str.2:                               ## @.str.2
	.asciz	"Powering card off\n"

L_.str.3:                               ## @.str.3
	.asciz	"Ignoring unknown card power state\n"

	.no_dead_strip	_sunxi_mmc_card_power
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sunxi_mmc_card_power
_sunxi_mmc_card_power:                  ; @sunxi_mmc_card_power
	.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	x19, x0
	ldr	x20, [x0, #8]
	ldr	w8, [x1]
	cmp	w8, #129
	b.eq	LBB0_6
; %bb.1:
	cmp	w8, #128
	b.ne	LBB0_13
; %bb.2:
	mov	x21, x1
	mov	x0, x20
	bl	_mmc_dev
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	ldr	w0, [x20, #4]
	bl	_IS_ERR
	cbz	w0, LBB0_14
LBB0_3:
	ldr	w0, [x20]
	bl	_IS_ERR
	cbnz	w0, LBB0_12
; %bb.4:
	ldr	w0, [x20]
	bl	_regulator_enable
	str	w0, [x19, #4]
	cbz	w0, LBB0_15
; %bb.5:
	mov	x0, x20
	bl	_mmc_dev
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@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:
	mov	x0, x20
	bl	_mmc_dev
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_dbg
	ldr	w0, [x20, #4]
	bl	_IS_ERR
	cbnz	w0, LBB0_8
; %bb.7:
	ldr	w1, [x20, #4]
	mov	x0, x20
	mov	w2, #0
	bl	_mmc_regulator_set_ocr
LBB0_8:
	ldr	w0, [x20]
	bl	_IS_ERR
	cbnz	w0, LBB0_11
; %bb.9:
	ldr	w8, [x19]
	cbz	w8, LBB0_11
; %bb.10:
	ldr	w0, [x20]
	bl	_regulator_disable
LBB0_11:
	str	wzr, [x19]
LBB0_12:
	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_13:
	mov	x0, x20
	bl	_mmc_dev
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@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_dbg
LBB0_14:
	ldr	w1, [x20, #4]
	ldr	w2, [x21, #4]
	mov	x0, x20
	bl	_mmc_regulator_set_ocr
	str	w0, [x19, #4]
	cbnz	w0, LBB0_12
	b	LBB0_3
LBB0_15:
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_12
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Powering card up\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to enable vqmmc\n"

l_.str.2:                               ; @.str.2
	.asciz	"Powering card off\n"

l_.str.3:                               ; @.str.3
	.asciz	"Ignoring unknown card power state\n"

	.no_dead_strip	_sunxi_mmc_card_power
.subsections_via_symbols
