	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sunxi_mmc_resource_request
_sunxi_mmc_resource_request:            ## @sunxi_mmc_resource_request
	.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, %r14
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_of_device_get_match_data
	movq	%rax, 32(%r15)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	64(%r15), %edi
	callq	_mmc_regulator_get_supply
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_20
## %bb.3:
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_devm_ioremap_resource
	movq	%rax, 56(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	56(%r15), %rdi
	jmp	LBB0_5
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_20:
	movl	%ebx, %eax
LBB0_21:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movq	%rax, 48(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	48(%r15), %rdi
	jmp	LBB0_5
LBB0_8:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movq	%rax, 40(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	40(%r15), %rdi
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_10:
	movq	32(%r15), %rax
	cmpq	$0, (%rax)
	je	LBB0_15
## %bb.11:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movq	%rax, 24(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	24(%r15), %rdi
	jmp	LBB0_5
LBB0_13:
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movq	%rax, 16(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	16(%r15), %rdi
	jmp	LBB0_5
LBB0_15:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_reset_control_get_optional_exclusive
	movq	%rax, 8(%r15)
	movq	%rax, %rdi
	callq	_PTR_ERR
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	jne	LBB0_17
## %bb.16:
	movq	8(%r15), %rdi
	jmp	LBB0_5
LBB0_17:
	movq	%r15, %rdi
	callq	_sunxi_mmc_enable
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_20
## %bb.18:
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movq	%rax, (%r15)
	testq	%rax, %rax
	jle	LBB0_19
## %bb.22:
	movq	_sunxi_mmc_irq@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_sunxi_mmc_handle_manual_stop@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r15, (%rsp)
	leaq	L_.str.8(%rip), %r9
	movq	%r14, %rdi
	movq	%rax, %rsi
	xorl	%r8d, %r8d
	callq	_devm_request_threaded_irq
	jmp	LBB0_21
LBB0_19:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_sunxi_mmc_disable
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ahb"

L_.str.1:                               ## @.str.1
	.asciz	"Could not get ahb clock\n"

L_.str.2:                               ## @.str.2
	.asciz	"mmc"

L_.str.3:                               ## @.str.3
	.asciz	"Could not get mmc clock\n"

L_.str.4:                               ## @.str.4
	.asciz	"output"

L_.str.5:                               ## @.str.5
	.asciz	"Could not get output clock\n"

L_.str.6:                               ## @.str.6
	.asciz	"sample"

L_.str.7:                               ## @.str.7
	.asciz	"Could not get sample clock\n"

	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
	.comm	_sunxi_mmc_irq,4,2              ## @sunxi_mmc_irq
	.comm	_sunxi_mmc_handle_manual_stop,4,2 ## @sunxi_mmc_handle_manual_stop
L_.str.8:                               ## @.str.8
	.asciz	"sunxi-mmc"

	.no_dead_strip	_sunxi_mmc_resource_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sunxi_mmc_resource_request
_sunxi_mmc_resource_request:            ; @sunxi_mmc_resource_request
	.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	x19, x0
	mov	x0, x1
	bl	_of_device_get_match_data
	str	x0, [x19, #32]
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w0, [x19, #64]
	bl	_mmc_regulator_get_supply
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_platform_get_resource
	mov	x1, x0
	mov	x0, x20
	bl	_devm_ioremap_resource
	str	x0, [x19, #56]
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.3:
	ldr	x0, [x19, #56]
	b	LBB0_10
LBB0_4:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_5:
	mov	x0, x21
	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_6:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_devm_clk_get
	str	x0, [x19, #48]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.7:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	x0, [x19, #48]
	b	LBB0_10
LBB0_8:
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_devm_clk_get
	str	x0, [x19, #40]
	bl	_IS_ERR
	cbz	x0, LBB0_11
; %bb.9:
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	x0, [x19, #40]
LBB0_10:
	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	_PTR_ERR
LBB0_11:
	ldr	x8, [x19, #32]
	ldr	x8, [x8]
	cbz	x8, LBB0_16
; %bb.12:
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_devm_clk_get
	str	x0, [x19, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_14
; %bb.13:
Lloh16:
	adrp	x1, l_.str.5@PAGE
Lloh17:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	x0, [x19, #24]
	b	LBB0_10
LBB0_14:
Lloh18:
	adrp	x1, l_.str.6@PAGE
Lloh19:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_devm_clk_get
	str	x0, [x19, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_16
; %bb.15:
Lloh20:
	adrp	x1, l_.str.7@PAGE
Lloh21:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	x0, [x19, #16]
	b	LBB0_10
LBB0_16:
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_devm_reset_control_get_optional_exclusive
	str	x0, [x19, #8]
	bl	_PTR_ERR
Lloh24:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_18
; %bb.17:
	ldr	x0, [x19, #8]
	b	LBB0_10
LBB0_18:
	mov	x0, x19
	bl	_sunxi_mmc_enable
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.19:
	mov	x0, x20
	mov	w1, #0
	bl	_platform_get_irq
	str	x0, [x19]
	cmp	x0, #0
	b.le	LBB0_21
; %bb.20:
	mov	x1, x0
Lloh27:
	adrp	x8, _sunxi_mmc_irq@GOTPAGE
Lloh28:
	ldr	x8, [x8, _sunxi_mmc_irq@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
Lloh30:
	adrp	x8, _sunxi_mmc_handle_manual_stop@GOTPAGE
Lloh31:
	ldr	x8, [x8, _sunxi_mmc_handle_manual_stop@GOTPAGEOFF]
Lloh32:
	ldr	w3, [x8]
Lloh33:
	adrp	x5, l_.str.8@PAGE
Lloh34:
	add	x5, x5, l_.str.8@PAGEOFF
	mov	x0, x20
	mov	w4, #0
	mov	x6, 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	_devm_request_threaded_irq
LBB0_21:
Lloh35:
	adrp	x8, _EINVAL@GOTPAGE
Lloh36:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	neg	w21, w8
	mov	x0, x19
	bl	_sunxi_mmc_disable
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ahb"

l_.str.1:                               ; @.str.1
	.asciz	"Could not get ahb clock\n"

l_.str.2:                               ; @.str.2
	.asciz	"mmc"

l_.str.3:                               ; @.str.3
	.asciz	"Could not get mmc clock\n"

l_.str.4:                               ; @.str.4
	.asciz	"output"

l_.str.5:                               ; @.str.5
	.asciz	"Could not get output clock\n"

l_.str.6:                               ; @.str.6
	.asciz	"sample"

l_.str.7:                               ; @.str.7
	.asciz	"Could not get sample clock\n"

	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
	.comm	_sunxi_mmc_irq,4,2              ; @sunxi_mmc_irq
	.comm	_sunxi_mmc_handle_manual_stop,4,2 ; @sunxi_mmc_handle_manual_stop
l_.str.8:                               ; @.str.8
	.asciz	"sunxi-mmc"

	.no_dead_strip	_sunxi_mmc_resource_request
.subsections_via_symbols
