	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function toshsd_probe
_toshsd_probe:                          ## @toshsd_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, %r15
	callq	_pci_enable_device
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.1:
	movl	$24, %edi
	movq	%r15, %rsi
	callq	_mmc_alloc_host
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_mmc_priv
	movq	%rax, %r12
	movq	%r14, 16(%rax)
	movq	%r15, 8(%rax)
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_pci_set_drvdata
	movq	_DRIVER_NAME@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_pci_request_regions
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.4:
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_pci_iomap
	movl	%eax, (%r12)
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movq	_toshsd_ops@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r14)
	movq	_MMC_CAP_4_BIT_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
	movq	_MMC_VDD_32_33@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movq	_HCLK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leal	511(%rcx), %edx
	testl	%ecx, %ecx
	cmovnsl	%ecx, %edx
	sarl	$9, %edx
	movl	%edx, (%r14)
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movq	%r12, %rdi
	addq	$4, %rdi
	callq	_spin_lock_init
	movq	%r12, %rdi
	callq	_toshsd_init
	movl	4(%r15), %edi
	movq	_toshsd_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_toshsd_thread_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%r13), %r8d
	movq	%r12, %r9
	callq	_request_threaded_irq
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movl	%eax, %ebx
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_pci_iounmap
	jmp	LBB0_9
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_9:
	movq	%r15, %rdi
	callq	_pci_release_regions
LBB0_10:
	movq	%r14, %rdi
	callq	_mmc_free_host
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_pci_set_drvdata
LBB0_11:
	movq	%r15, %rdi
	callq	_pci_disable_device
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r14, %rdi
	callq	_mmc_add_host
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_pci_resource_start
	movl	%eax, -44(%rbp)
	movl	4(%r15), %ecx
	leaq	L_.str(%rip), %rsi
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	callq	_dev_dbg
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_pm_suspend_ignore_children
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_DRIVER_NAME,4,2                ## @DRIVER_NAME
	.comm	_toshsd_ops,4,2                 ## @toshsd_ops
	.comm	_MMC_CAP_4_BIT_DATA,4,2         ## @MMC_CAP_4_BIT_DATA
	.comm	_MMC_VDD_32_33,4,2              ## @MMC_VDD_32_33
	.comm	_HCLK,4,2                       ## @HCLK
	.comm	_toshsd_irq,4,2                 ## @toshsd_irq
	.comm	_toshsd_thread_irq,4,2          ## @toshsd_thread_irq
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MMIO %pa, IRQ %d\n"

	.no_dead_strip	_toshsd_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function toshsd_probe
_toshsd_probe:                          ; @toshsd_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	x19, x0
	bl	_pci_enable_device
	mov	x22, x0
	cbnz	w0, LBB0_11
; %bb.1:
	mov	w0, #24
	mov	x1, x19
	bl	_mmc_alloc_host
	cbz	x0, LBB0_6
; %bb.2:
	mov	x20, x0
	bl	_mmc_priv
	mov	x21, x0
	stp	x19, x20, [x0, #8]
	mov	x0, x19
	mov	x1, x21
	bl	_pci_set_drvdata
Lloh0:
	adrp	x23, _DRIVER_NAME@GOTPAGE
Lloh1:
	ldr	x23, [x23, _DRIVER_NAME@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_pci_request_regions
	mov	x22, x0
	cbnz	w0, LBB0_9
; %bb.3:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_pci_iomap
	str	w0, [x21]
	cbz	w0, LBB0_7
; %bb.4:
Lloh2:
	adrp	x8, _toshsd_ops@GOTPAGE
Lloh3:
	ldr	x8, [x8, _toshsd_ops@GOTPAGEOFF]
Lloh4:
	adrp	x9, _MMC_CAP_4_BIT_DATA@GOTPAGE
Lloh5:
	ldr	x9, [x9, _MMC_CAP_4_BIT_DATA@GOTPAGEOFF]
	str	x8, [x20, #16]
Lloh6:
	ldr	w8, [x9]
	str	w8, [x20, #12]
Lloh7:
	adrp	x8, _HCLK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HCLK@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w10, w9, #511
	cmp	w9, #0
	csel	w9, w10, w9, lt
Lloh9:
	adrp	x10, _MMC_VDD_32_33@GOTPAGE
Lloh10:
	ldr	x10, [x10, _MMC_VDD_32_33@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	asr	w9, w9, #9
	str	w9, [x20]
	ldr	w8, [x8]
	stp	w8, w10, [x20, #4]
	add	x0, x21, #4
	bl	_spin_lock_init
	mov	x0, x21
	bl	_toshsd_init
	ldr	w0, [x19, #4]
Lloh12:
	adrp	x8, _toshsd_irq@GOTPAGE
Lloh13:
	ldr	x8, [x8, _toshsd_irq@GOTPAGEOFF]
Lloh14:
	adrp	x9, _toshsd_thread_irq@GOTPAGE
Lloh15:
	ldr	x9, [x9, _toshsd_thread_irq@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	ldr	w2, [x9]
Lloh18:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
	ldr	w4, [x23]
	mov	x5, x21
	bl	_request_threaded_irq
	mov	x22, x0
	cbz	w0, LBB0_12
; %bb.5:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_pci_iounmap
	b	LBB0_8
LBB0_6:
Lloh21:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_10
LBB0_7:
Lloh24:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_8:
	mov	x0, x19
	bl	_pci_release_regions
LBB0_9:
	mov	x0, x20
	bl	_mmc_free_host
	mov	x0, x19
	mov	x1, #0
	bl	_pci_set_drvdata
LBB0_10:
	mov	x0, x19
	bl	_pci_disable_device
LBB0_11:
	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_12:
	mov	x0, x20
	bl	_mmc_add_host
	mov	x0, x19
	mov	w1, #0
	bl	_pci_resource_start
	str	w0, [sp, #12]
	ldr	w3, [x19, #4]
Lloh27:
	adrp	x1, l_.str@PAGE
Lloh28:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	mov	x0, x19
	bl	_dev_dbg
	mov	x0, x19
	mov	w1, #1
	bl	_pm_suspend_ignore_children
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_DRIVER_NAME,4,2                ; @DRIVER_NAME
	.comm	_toshsd_ops,4,2                 ; @toshsd_ops
	.comm	_MMC_CAP_4_BIT_DATA,4,2         ; @MMC_CAP_4_BIT_DATA
	.comm	_MMC_VDD_32_33,4,2              ; @MMC_VDD_32_33
	.comm	_HCLK,4,2                       ; @HCLK
	.comm	_toshsd_irq,4,2                 ; @toshsd_irq
	.comm	_toshsd_thread_irq,4,2          ; @toshsd_thread_irq
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MMIO %pa, IRQ %d\n"

	.no_dead_strip	_toshsd_probe
.subsections_via_symbols
