	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sunxi_mmc_enable
_sunxi_mmc_enable:                      ## @sunxi_mmc_enable
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_IS_ERR
	testl	%eax, %eax
	je	LBB0_1
LBB0_3:
	movl	4(%rbx), %edi
	callq	_clk_prepare_enable
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %r14d
	movl	20(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_17
LBB0_1:
	movl	(%rbx), %edi
	callq	_reset_control_reset
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %r14d
	movl	20(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_19
LBB0_5:
	movl	8(%rbx), %edi
	callq	_clk_prepare_enable
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r14d
	movl	20(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_16
LBB0_7:
	movl	12(%rbx), %edi
	callq	_clk_prepare_enable
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %r14d
	movl	20(%rbx), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_15
LBB0_9:
	movl	16(%rbx), %edi
	callq	_clk_prepare_enable
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %r14d
	movl	20(%rbx), %edi
	leaq	L_.str.4(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_14
LBB0_11:
	movq	%rbx, %rdi
	callq	_sunxi_mmc_reset_host
	testl	%eax, %eax
	je	LBB0_12
## %bb.13:
	movl	%eax, %r14d
	movl	16(%rbx), %edi
	callq	_clk_disable_unprepare
LBB0_14:
	movl	12(%rbx), %edi
	callq	_clk_disable_unprepare
LBB0_15:
	movl	8(%rbx), %edi
	callq	_clk_disable_unprepare
LBB0_16:
	movl	4(%rbx), %edi
	callq	_clk_disable_unprepare
LBB0_17:
	movl	(%rbx), %edi
	callq	_IS_ERR
	testl	%eax, %eax
	jne	LBB0_19
## %bb.18:
	movl	(%rbx), %edi
	callq	_reset_control_assert
LBB0_19:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_12:
	xorl	%r14d, %r14d
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Couldn't reset the MMC controller (%d)\n"

L_.str.1:                               ## @.str.1
	.asciz	"Couldn't enable the bus clocks (%d)\n"

L_.str.2:                               ## @.str.2
	.asciz	"Enable mmc clk err %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"Enable output clk err %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"Enable sample clk err %d\n"

	.no_dead_strip	_sunxi_mmc_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sunxi_mmc_enable
_sunxi_mmc_enable:                      ; @sunxi_mmc_enable
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w0, [x0]
	bl	_IS_ERR
	cbz	w0, LBB0_3
LBB0_1:
	ldr	w0, [x19, #4]
	bl	_clk_prepare_enable
	cbz	w0, LBB0_5
; %bb.2:
	mov	x20, x0
	ldr	w0, [x19, #20]
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_dev_err
	b	LBB0_16
LBB0_3:
	ldr	w0, [x19]
	bl	_reset_control_reset
	cbz	w0, LBB0_1
; %bb.4:
	mov	x20, x0
	ldr	w0, [x19, #20]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_err
	b	LBB0_18
LBB0_5:
	ldr	w0, [x19, #8]
	bl	_clk_prepare_enable
	cbz	w0, LBB0_7
; %bb.6:
	mov	x20, x0
	ldr	w0, [x19, #20]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x20
	bl	_dev_err
	b	LBB0_15
LBB0_7:
	ldr	w0, [x19, #12]
	bl	_clk_prepare_enable
	cbz	w0, LBB0_9
; %bb.8:
	mov	x20, x0
	ldr	w0, [x19, #20]
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x20
	bl	_dev_err
	b	LBB0_14
LBB0_9:
	ldr	w0, [x19, #16]
	bl	_clk_prepare_enable
	cbz	w0, LBB0_11
; %bb.10:
	mov	x20, x0
	ldr	w0, [x19, #20]
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, x20
	bl	_dev_err
	b	LBB0_13
LBB0_11:
	mov	x0, x19
	bl	_sunxi_mmc_reset_host
	mov	x20, x0
	cbz	w0, LBB0_18
; %bb.12:
	ldr	w0, [x19, #16]
	bl	_clk_disable_unprepare
LBB0_13:
	ldr	w0, [x19, #12]
	bl	_clk_disable_unprepare
LBB0_14:
	ldr	w0, [x19, #8]
	bl	_clk_disable_unprepare
LBB0_15:
	ldr	w0, [x19, #4]
	bl	_clk_disable_unprepare
LBB0_16:
	ldr	w0, [x19]
	bl	_IS_ERR
	cbnz	w0, LBB0_18
; %bb.17:
	ldr	w0, [x19]
	bl	_reset_control_assert
LBB0_18:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Couldn't reset the MMC controller (%d)\n"

l_.str.1:                               ; @.str.1
	.asciz	"Couldn't enable the bus clocks (%d)\n"

l_.str.2:                               ; @.str.2
	.asciz	"Enable mmc clk err %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"Enable output clk err %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"Enable sample clk err %d\n"

	.no_dead_strip	_sunxi_mmc_enable
.subsections_via_symbols
