	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function goldfish_mmc_probe
_goldfish_mmc_probe:                    ## @goldfish_mmc_probe
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%rax, %r14
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	testq	%r14, %r14
	je	LBB0_2
## %bb.1:
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	movl	$40, %edi
	movq	%r13, %rsi
	callq	_mmc_alloc_host
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_mmc_priv
	movq	%rax, %r15
	movq	(%r14), %rsi
	movq	8(%r14), %rdx
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movq	(%r14), %rbx
	movq	%r14, %rdi
	callq	_resource_size
	movq	%rbx, %rdi
	movq	%r15, %rbx
	movl	%eax, %esi
	callq	_ioremap
	movq	%rax, 16(%r15)
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	_BUFFER_SIZE@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-52(%rbp), %rdx
	movq	%r13, %rdi
	callq	_dma_alloc_coherent
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movl	-52(%rbp), %eax
	movl	%eax, 8(%rbx)
	movl	4(%r13), %eax
	movl	%eax, 32(%rbx)
	movl	%r12d, 12(%rbx)
	movq	_goldfish_mmc_ops@GOTPCREL(%rip), %rax
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%rax, 40(%r15)
	movabsq	$103079215104400000, %rax       ## imm = 0x16E360000061A80
	movq	%rax, (%r15)
	movq	_MMC_VDD_32_33@GOTPCREL(%rip), %rax
	movq	_MMC_VDD_33_34@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 8(%r15)
	movq	_MMC_CAP_4_BIT_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r15)
	movabsq	$8796093022240, %rax            ## imm = 0x80000000020
	movq	%rax, 12(%r15)
	movl	$2048, 20(%r15)                 ## imm = 0x800
	movl	(%r14), %eax
	movl	%eax, 24(%r15)
	movl	%eax, 28(%r15)
	movq	_goldfish_mmc_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DRIVER_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r12d, %edi
	xorl	%edx, %edx
	movq	%rbx, %r8
	callq	_request_irq
	movq	%rbx, %r12
	testl	%eax, %eax
	je	LBB0_13
## %bb.10:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	movl	(%r14), %esi
	movq	(%r12), %rdx
	movl	8(%r12), %ecx
	movq	%r13, %rdi
	callq	_dma_free_coherent
	jmp	LBB0_11
LBB0_2:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_16
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_16
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_12
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movq	%rbx, %r12
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	-48(%rbp), %r15                 ## 8-byte Reload
LBB0_11:
	movq	16(%r12), %rdi
	callq	_iounmap
LBB0_12:
	movq	%r15, %rdi
	callq	_mmc_free_host
LBB0_16:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	%r13, 24(%r12)
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_platform_set_drvdata
	movq	_dev_attr_cover_switch@GOTPCREL(%rip), %rsi
	movq	%r13, %rdi
	callq	_device_create_file
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movq	%r15, %rdi
	callq	_mmc_dev
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edi
	callq	_dev_warn
LBB0_15:
	movq	_MMC_SET_BUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r12), %edx
	movq	%r12, %rdi
	callq	_GOLDFISH_MMC_WRITE
	movq	_MMC_STAT_END_OF_CMD@GOTPCREL(%rip), %rax
	movq	_MMC_STAT_END_OF_DATA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_MMC_INT_ENABLE@GOTPCREL(%rip), %rax
	movq	_MMC_STAT_STATE_CHANGE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	(%rax), %esi
	movq	_MMC_STAT_CMD_TIMEOUT@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r12, %rdi
	callq	_GOLDFISH_MMC_WRITE
	movq	%r15, %rdi
	callq	_mmc_add_host
	xorl	%ebx, %ebx
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mmc: Mapping %lX to %lX\n"

	.comm	_BUFFER_SIZE,4,2                ## @BUFFER_SIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_goldfish_mmc_ops,4,2           ## @goldfish_mmc_ops
	.comm	_MMC_VDD_32_33,4,2              ## @MMC_VDD_32_33
	.comm	_MMC_VDD_33_34,4,2              ## @MMC_VDD_33_34
	.comm	_MMC_CAP_4_BIT_DATA,4,2         ## @MMC_CAP_4_BIT_DATA
	.comm	_goldfish_mmc_irq,4,2           ## @goldfish_mmc_irq
	.comm	_DRIVER_NAME,4,2                ## @DRIVER_NAME
L_.str.1:                               ## @.str.1
	.asciz	"Failed IRQ Adding goldfish MMC\n"

	.comm	_dev_attr_cover_switch,4,2      ## @dev_attr_cover_switch
L_.str.2:                               ## @.str.2
	.asciz	"Unable to create sysfs attributes\n"

	.comm	_MMC_SET_BUFFER,4,2             ## @MMC_SET_BUFFER
	.comm	_MMC_INT_ENABLE,4,2             ## @MMC_INT_ENABLE
	.comm	_MMC_STAT_END_OF_CMD,4,2        ## @MMC_STAT_END_OF_CMD
	.comm	_MMC_STAT_END_OF_DATA,4,2       ## @MMC_STAT_END_OF_DATA
	.comm	_MMC_STAT_STATE_CHANGE,4,2      ## @MMC_STAT_STATE_CHANGE
	.comm	_MMC_STAT_CMD_TIMEOUT,4,2       ## @MMC_STAT_CMD_TIMEOUT
	.no_dead_strip	_goldfish_mmc_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function goldfish_mmc_probe
lCPI0_0:
	.long	400000                          ; 0x61a80
	.long	24000000                        ; 0x16e3600
lCPI0_1:
	.long	32                              ; 0x20
	.long	2048                            ; 0x800
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_goldfish_mmc_probe:                    ; @goldfish_mmc_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x0
Lloh0:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_platform_get_resource
	mov	x23, x0
	mov	x0, x21
	mov	w1, #0
	bl	_platform_get_irq
	cbz	x23, LBB0_7
; %bb.1:
	mov	x22, x0
	tbnz	w0, #31, LBB0_7
; %bb.2:
	mov	w0, #40
	mov	x1, x21
	bl	_mmc_alloc_host
	cbz	x0, LBB0_8
; %bb.3:
	mov	x19, x0
	bl	_mmc_priv
	mov	x20, x0
	ldp	x1, x2, [x23]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	ldr	x24, [x23]
	mov	x0, x23
	bl	_resource_size
	mov	x1, x0
	mov	x0, x24
	bl	_ioremap
	str	x0, [x20, #16]
	cbz	x0, LBB0_10
; %bb.4:
Lloh5:
	adrp	x23, _BUFFER_SIZE@GOTPAGE
Lloh6:
	ldr	x23, [x23, _BUFFER_SIZE@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh7:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x8]
	add	x2, sp, #12
	mov	x0, x21
	bl	_dma_alloc_coherent
	str	x0, [x20]
	cbz	x0, LBB0_11
; %bb.5:
	ldr	w8, [sp, #12]
	ldr	w9, [x21, #4]
	str	w9, [x20, #32]
	stp	w8, w22, [x20, #8]
Lloh10:
	adrp	x8, _goldfish_mmc_ops@GOTPAGE
Lloh11:
	ldr	x8, [x8, _goldfish_mmc_ops@GOTPAGEOFF]
	str	x8, [x19, #40]
Lloh12:
	adrp	x8, lCPI0_0@PAGE
Lloh13:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x19]
Lloh14:
	adrp	x8, _MMC_VDD_32_33@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MMC_VDD_32_33@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _MMC_VDD_33_34@GOTPAGE
Lloh18:
	ldr	x9, [x9, _MMC_VDD_33_34@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19, #8]
Lloh20:
	adrp	x8, _MMC_CAP_4_BIT_DATA@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MMC_CAP_4_BIT_DATA@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	adrp	x9, lCPI0_1@PAGE
Lloh24:
	ldr	d0, [x9, lCPI0_1@PAGEOFF]
	stur	d0, [x19, #12]
	mov	w9, #2048
	ldr	w10, [x23]
	stp	w9, w10, [x19, #20]
	stp	w10, w8, [x19, #28]
Lloh25:
	adrp	x8, _goldfish_mmc_irq@GOTPAGE
Lloh26:
	ldr	x8, [x8, _goldfish_mmc_irq@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
Lloh28:
	adrp	x8, _DRIVER_NAME@GOTPAGE
Lloh29:
	ldr	x8, [x8, _DRIVER_NAME@GOTPAGEOFF]
Lloh30:
	ldr	w3, [x8]
	mov	x0, x22
	mov	w2, #0
	mov	x4, x20
	bl	_request_irq
	cbz	w0, LBB0_15
; %bb.6:
	mov	x22, x0
Lloh31:
	adrp	x1, l_.str.1@PAGE
Lloh32:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	ldr	w1, [x23]
	ldr	x2, [x20]
	ldr	w3, [x20, #8]
	mov	x0, x21
	bl	_dma_free_coherent
	b	LBB0_12
LBB0_7:
Lloh33:
	adrp	x8, _ENXIO@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh35:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_14
LBB0_10:
Lloh37:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_13
LBB0_11:
Lloh40:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh41:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_12:
	ldr	x0, [x20, #16]
	bl	_iounmap
LBB0_13:
	mov	x0, x19
	bl	_mmc_free_host
LBB0_14:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_15:
	str	x21, [x20, #24]
	mov	x0, x21
	mov	x1, x20
	bl	_platform_set_drvdata
Lloh43:
	adrp	x1, _dev_attr_cover_switch@GOTPAGE
Lloh44:
	ldr	x1, [x1, _dev_attr_cover_switch@GOTPAGEOFF]
	mov	x0, x21
	bl	_device_create_file
	cbz	w0, LBB0_17
; %bb.16:
	mov	x0, x19
	bl	_mmc_dev
Lloh45:
	adrp	x1, l_.str.2@PAGE
Lloh46:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_warn
LBB0_17:
Lloh47:
	adrp	x8, _MMC_SET_BUFFER@GOTPAGE
Lloh48:
	ldr	x8, [x8, _MMC_SET_BUFFER@GOTPAGEOFF]
Lloh49:
	ldr	w1, [x8]
	ldr	w2, [x20, #8]
	mov	x0, x20
	bl	_GOLDFISH_MMC_WRITE
Lloh50:
	adrp	x8, _MMC_INT_ENABLE@GOTPAGE
Lloh51:
	ldr	x8, [x8, _MMC_INT_ENABLE@GOTPAGEOFF]
Lloh52:
	ldr	w1, [x8]
Lloh53:
	adrp	x8, _MMC_STAT_END_OF_CMD@GOTPAGE
Lloh54:
	ldr	x8, [x8, _MMC_STAT_END_OF_CMD@GOTPAGEOFF]
Lloh55:
	ldr	w8, [x8]
Lloh56:
	adrp	x9, _MMC_STAT_END_OF_DATA@GOTPAGE
Lloh57:
	ldr	x9, [x9, _MMC_STAT_END_OF_DATA@GOTPAGEOFF]
Lloh58:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh59:
	adrp	x9, _MMC_STAT_STATE_CHANGE@GOTPAGE
Lloh60:
	ldr	x9, [x9, _MMC_STAT_STATE_CHANGE@GOTPAGEOFF]
Lloh61:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh62:
	adrp	x9, _MMC_STAT_CMD_TIMEOUT@GOTPAGE
Lloh63:
	ldr	x9, [x9, _MMC_STAT_CMD_TIMEOUT@GOTPAGEOFF]
Lloh64:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x20
	bl	_GOLDFISH_MMC_WRITE
	mov	x0, x19
	bl	_mmc_add_host
	mov	w22, #0
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdr	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdrp	Lloh12, Lloh14
	.loh AdrpLdr	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mmc: Mapping %lX to %lX\n"

	.comm	_BUFFER_SIZE,4,2                ; @BUFFER_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_goldfish_mmc_ops,4,2           ; @goldfish_mmc_ops
	.comm	_MMC_VDD_32_33,4,2              ; @MMC_VDD_32_33
	.comm	_MMC_VDD_33_34,4,2              ; @MMC_VDD_33_34
	.comm	_MMC_CAP_4_BIT_DATA,4,2         ; @MMC_CAP_4_BIT_DATA
	.comm	_goldfish_mmc_irq,4,2           ; @goldfish_mmc_irq
	.comm	_DRIVER_NAME,4,2                ; @DRIVER_NAME
l_.str.1:                               ; @.str.1
	.asciz	"Failed IRQ Adding goldfish MMC\n"

	.comm	_dev_attr_cover_switch,4,2      ; @dev_attr_cover_switch
l_.str.2:                               ; @.str.2
	.asciz	"Unable to create sysfs attributes\n"

	.comm	_MMC_SET_BUFFER,4,2             ; @MMC_SET_BUFFER
	.comm	_MMC_INT_ENABLE,4,2             ; @MMC_INT_ENABLE
	.comm	_MMC_STAT_END_OF_CMD,4,2        ; @MMC_STAT_END_OF_CMD
	.comm	_MMC_STAT_END_OF_DATA,4,2       ; @MMC_STAT_END_OF_DATA
	.comm	_MMC_STAT_STATE_CHANGE,4,2      ; @MMC_STAT_STATE_CHANGE
	.comm	_MMC_STAT_CMD_TIMEOUT,4,2       ; @MMC_STAT_CMD_TIMEOUT
	.no_dead_strip	_goldfish_mmc_probe
.subsections_via_symbols
