	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alcor_pci_sdmmc_drv_probe
_alcor_pci_sdmmc_drv_probe:             ## @alcor_pci_sdmmc_drv_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	(%rdi), %rbx
	movl	$32, %edi
	movq	%r12, %rsi
	callq	_mmc_alloc_host
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_mmc_priv
	movq	%rax, %r13
	movq	%r12, 24(%rax)
	movq	_MMC_POWER_UNDEFINED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r13)
	movq	%rbx, 8(%r13)
	movq	_AU6601_REG_INT_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_alcor_write32
	movq	_AU6601_MS_INT_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_alcor_write32
	movl	(%rbx), %esi
	movq	_alcor_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_alcor_irq_thread@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_DRV_NAME_ALCOR_PCI_SDMMC@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r13, (%rsp)
	movq	%r12, %rdi
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	movl	%ebx, %r15d
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_5
LBB0_4:
	movq	%r13, %rdi
	addq	$4, %rdi
	callq	_mutex_init
	movq	_alcor_timeout_timer@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_INIT_DELAYED_WORK
	movq	%r13, %rdi
	callq	_alcor_init_mmc
	movq	%r13, %rdi
	callq	_alcor_hw_init
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_dev_set_drvdata
	movq	%r14, %rdi
	callq	_mmc_add_host
LBB0_5:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't allocate MMC\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MMC_POWER_UNDEFINED,4,2        ## @MMC_POWER_UNDEFINED
	.comm	_AU6601_REG_INT_ENABLE,4,2      ## @AU6601_REG_INT_ENABLE
	.comm	_AU6601_MS_INT_ENABLE,4,2       ## @AU6601_MS_INT_ENABLE
	.comm	_alcor_irq,4,2                  ## @alcor_irq
	.comm	_alcor_irq_thread,4,2           ## @alcor_irq_thread
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.comm	_DRV_NAME_ALCOR_PCI_SDMMC,4,2   ## @DRV_NAME_ALCOR_PCI_SDMMC
L_.str.1:                               ## @.str.1
	.asciz	"Failed to get irq for data line\n"

	.comm	_alcor_timeout_timer,4,2        ## @alcor_timeout_timer
	.no_dead_strip	_alcor_pci_sdmmc_drv_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alcor_pci_sdmmc_drv_probe
_alcor_pci_sdmmc_drv_probe:             ; @alcor_pci_sdmmc_drv_probe
	.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	x22, [x0]
	mov	w0, #32
	mov	x1, x19
	bl	_mmc_alloc_host
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	bl	_mmc_priv
	mov	x21, x0
	str	x19, [x0, #24]
Lloh0:
	adrp	x8, _MMC_POWER_UNDEFINED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MMC_POWER_UNDEFINED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #16]
	str	x22, [x0, #8]
Lloh3:
	adrp	x8, _AU6601_REG_INT_ENABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AU6601_REG_INT_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x22
	mov	w1, #0
	bl	_alcor_write32
Lloh6:
	adrp	x8, _AU6601_MS_INT_ENABLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AU6601_MS_INT_ENABLE@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x22
	mov	w1, #0
	bl	_alcor_write32
	ldr	w1, [x22]
Lloh9:
	adrp	x8, _alcor_irq@GOTPAGE
Lloh10:
	ldr	x8, [x8, _alcor_irq@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
Lloh12:
	adrp	x8, _alcor_irq_thread@GOTPAGE
Lloh13:
	ldr	x8, [x8, _alcor_irq_thread@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
Lloh15:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh17:
	ldr	w4, [x8]
Lloh18:
	adrp	x8, _DRV_NAME_ALCOR_PCI_SDMMC@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DRV_NAME_ALCOR_PCI_SDMMC@GOTPAGEOFF]
Lloh20:
	ldr	w5, [x8]
	mov	x0, x19
	mov	x6, x21
	bl	_devm_request_threaded_irq
	mov	x22, x0
	cbz	w0, LBB0_4
; %bb.2:
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_5
LBB0_3:
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh25:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_5
LBB0_4:
	add	x0, x21, #4
	bl	_mutex_init
Lloh28:
	adrp	x8, _alcor_timeout_timer@GOTPAGE
Lloh29:
	ldr	x8, [x8, _alcor_timeout_timer@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_INIT_DELAYED_WORK
	mov	x0, x21
	bl	_alcor_init_mmc
	mov	x0, x21
	bl	_alcor_hw_init
	mov	x0, x19
	mov	x1, x21
	bl	_dev_set_drvdata
	mov	x0, x20
	bl	_mmc_add_host
LBB0_5:
	mov	x0, x22
	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
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't allocate MMC\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MMC_POWER_UNDEFINED,4,2        ; @MMC_POWER_UNDEFINED
	.comm	_AU6601_REG_INT_ENABLE,4,2      ; @AU6601_REG_INT_ENABLE
	.comm	_AU6601_MS_INT_ENABLE,4,2       ; @AU6601_MS_INT_ENABLE
	.comm	_alcor_irq,4,2                  ; @alcor_irq
	.comm	_alcor_irq_thread,4,2           ; @alcor_irq_thread
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.comm	_DRV_NAME_ALCOR_PCI_SDMMC,4,2   ; @DRV_NAME_ALCOR_PCI_SDMMC
l_.str.1:                               ; @.str.1
	.asciz	"Failed to get irq for data line\n"

	.comm	_alcor_timeout_timer,4,2        ; @alcor_timeout_timer
	.no_dead_strip	_alcor_pci_sdmmc_drv_probe
.subsections_via_symbols
