	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sdhci_pci_o2_probe_slot        ## -- Begin function sdhci_pci_o2_probe_slot
	.p2align	4, 0x90
_sdhci_pci_o2_probe_slot:               ## @sdhci_pci_o2_probe_slot
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_sdhci_pci_priv
	movq	(%r15), %rbx
	movq	8(%r15), %r12
	movq	$0, (%rax)
	movq	_SDHCI_CAPABILITIES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_sdhci_readl
	movq	_SDHCI_CAN_DO_8BIT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	_MMC_CAP_8_BIT_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%rbx), %rcx
	orl	%eax, 4(%rcx)
LBB0_2:
	movq	(%r12), %rax
	movl	(%rax), %eax
	addl	$-128, %eax
	xorl	%r14d, %r14d
	cmpl	$4, %eax
	ja	LBB0_13
## %bb.3:
	movq	_O2_SD_VENDOR_SETTING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_sdhci_readl
	movl	%eax, -36(%rbp)
	testb	$1, %al
	je	LBB0_5
## %bb.4:
	movq	_SDHCI_QUIRK_MULTIBLOCK_READ_ACMD12@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 20(%rbx)
LBB0_5:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_sdhci_pci_o2_enable_msi
	movq	(%r12), %rdi
	movl	(%rdi), %eax
	cmpl	$129, %eax
	jne	LBB0_11
## %bb.6:
	movq	_O2_SD_MISC_SETTING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdx
	callq	_pci_read_config_dword
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_13
LBB0_8:
	testb	$16, -36(%rbp)
	je	LBB0_10
## %bb.9:
	movq	8(%rbx), %rdi
	callq	_mmc_hostname
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_info
	movq	_SDHCI_SIGNALING_330@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	16(%rbx), %eax
	movq	_SDHCI_SIGNALING_180@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 16(%rbx)
	movq	_MMC_CAP2_NO_SD@GOTPCREL(%rip), %rax
	movq	8(%rbx), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movl	%edx, (%rcx)
	movq	_MMC_CAP2_NO_SDIO@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	%edx, (%rcx)
	movq	(%r12), %rdi
	movq	_O2_SD_DETECT_SETTING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$3, %edx
	callq	_pci_write_config_dword
LBB0_10:
	movq	_sdhci_o2_get_cd@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r15), %rcx
	movl	%eax, 4(%rcx)
	movq	(%r12), %rax
	movl	(%rax), %eax
LBB0_11:
	movq	_sdhci_o2_execute_tuning@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rbx)
	cmpl	$132, %eax
	jne	LBB0_13
## %bb.12:
	movq	_O2_SD_VENDOR_SETTING2@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_sdhci_readl
	orl	$4096, %eax                     ## imm = 0x1000
	movl	%eax, -36(%rbp)
	movl	(%r15), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_sdhci_writel
LBB0_13:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SDHCI_CAPABILITIES,4,2         ## @SDHCI_CAPABILITIES
	.comm	_SDHCI_CAN_DO_8BIT,4,2          ## @SDHCI_CAN_DO_8BIT
	.comm	_MMC_CAP_8_BIT_DATA,4,2         ## @MMC_CAP_8_BIT_DATA
	.comm	_O2_SD_VENDOR_SETTING,4,2       ## @O2_SD_VENDOR_SETTING
	.comm	_SDHCI_QUIRK_MULTIBLOCK_READ_ACMD12,4,2 ## @SDHCI_QUIRK_MULTIBLOCK_READ_ACMD12
	.comm	_O2_SD_MISC_SETTING,4,2         ## @O2_SD_MISC_SETTING
	.comm	_EIO,4,2                        ## @EIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: emmc 1.8v flag is set, force 1.8v signaling voltage\n"

	.comm	_SDHCI_SIGNALING_330,4,2        ## @SDHCI_SIGNALING_330
	.comm	_SDHCI_SIGNALING_180,4,2        ## @SDHCI_SIGNALING_180
	.comm	_MMC_CAP2_NO_SD,4,2             ## @MMC_CAP2_NO_SD
	.comm	_MMC_CAP2_NO_SDIO,4,2           ## @MMC_CAP2_NO_SDIO
	.comm	_O2_SD_DETECT_SETTING,4,2       ## @O2_SD_DETECT_SETTING
	.comm	_sdhci_o2_get_cd,4,2            ## @sdhci_o2_get_cd
	.comm	_sdhci_o2_execute_tuning,4,2    ## @sdhci_o2_execute_tuning
	.comm	_O2_SD_VENDOR_SETTING2,4,2      ## @O2_SD_VENDOR_SETTING2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sdhci_pci_o2_probe_slot        ; -- Begin function sdhci_pci_o2_probe_slot
	.p2align	2
_sdhci_pci_o2_probe_slot:               ; @sdhci_pci_o2_probe_slot
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x0
	bl	_sdhci_pci_priv
	ldp	x19, x21, [x20]
	str	xzr, [x0]
Lloh0:
	adrp	x8, _SDHCI_CAPABILITIES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SDHCI_CAPABILITIES@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sdhci_readl
Lloh3:
	adrp	x8, _SDHCI_CAN_DO_8BIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SDHCI_CAN_DO_8BIT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _MMC_CAP_8_BIT_DATA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MMC_CAP_8_BIT_DATA@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	x9, [x19, #8]
	ldr	w10, [x9, #4]
	orr	w8, w10, w8
	str	w8, [x9, #4]
LBB0_2:
	ldr	x8, [x21]
	ldr	w8, [x8]
	sub	w8, w8, #128
	cmp	w8, #4
	b.hi	LBB0_13
; %bb.3:
Lloh9:
	adrp	x8, _O2_SD_VENDOR_SETTING@GOTPAGE
Lloh10:
	ldr	x8, [x8, _O2_SD_VENDOR_SETTING@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sdhci_readl
	str	w0, [sp, #12]
	tbz	w0, #0, LBB0_5
; %bb.4:
Lloh12:
	adrp	x8, _SDHCI_QUIRK_MULTIBLOCK_READ_ACMD12@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SDHCI_QUIRK_MULTIBLOCK_READ_ACMD12@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	w9, [x19, #20]
	orr	w8, w9, w8
	str	w8, [x19, #20]
LBB0_5:
	mov	x0, x21
	mov	x1, x19
	bl	_sdhci_pci_o2_enable_msi
	ldr	x0, [x21]
	ldr	w8, [x0]
	cmp	w8, #129
	b.ne	LBB0_11
; %bb.6:
Lloh15:
	adrp	x8, _O2_SD_MISC_SETTING@GOTPAGE
Lloh16:
	ldr	x8, [x8, _O2_SD_MISC_SETTING@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_pci_read_config_dword
	cbz	w0, LBB0_8
; %bb.7:
Lloh18:
	adrp	x8, _EIO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_14
LBB0_8:
	ldrb	w8, [sp, #12]
	tbz	w8, #4, LBB0_10
; %bb.9:
	ldr	x0, [x19, #8]
	bl	_mmc_hostname
	mov	x1, x0
Lloh21:
	adrp	x0, l_.str@PAGE
Lloh22:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
Lloh23:
	adrp	x8, _SDHCI_SIGNALING_330@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SDHCI_SIGNALING_330@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	ldr	w9, [x19, #16]
	bic	w8, w9, w8
Lloh26:
	adrp	x9, _SDHCI_SIGNALING_180@GOTPAGE
Lloh27:
	ldr	x9, [x9, _SDHCI_SIGNALING_180@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19, #16]
Lloh29:
	adrp	x8, _MMC_CAP2_NO_SD@GOTPAGE
Lloh30:
	ldr	x8, [x8, _MMC_CAP2_NO_SD@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	ldr	x9, [x19, #8]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
Lloh32:
	adrp	x10, _MMC_CAP2_NO_SDIO@GOTPAGE
Lloh33:
	ldr	x10, [x10, _MMC_CAP2_NO_SDIO@GOTPAGEOFF]
Lloh34:
	ldr	w10, [x10]
	orr	w8, w10, w8
	str	w8, [x9]
	ldr	x0, [x21]
Lloh35:
	adrp	x8, _O2_SD_DETECT_SETTING@GOTPAGE
Lloh36:
	ldr	x8, [x8, _O2_SD_DETECT_SETTING@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	mov	w2, #3
	bl	_pci_write_config_dword
LBB0_10:
Lloh38:
	adrp	x8, _sdhci_o2_get_cd@GOTPAGE
Lloh39:
	ldr	x8, [x8, _sdhci_o2_get_cd@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	ldr	x9, [x20]
	str	w8, [x9, #4]
	ldr	x8, [x21]
	ldr	w8, [x8]
LBB0_11:
Lloh41:
	adrp	x9, _sdhci_o2_execute_tuning@GOTPAGE
Lloh42:
	ldr	x9, [x9, _sdhci_o2_execute_tuning@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
	str	w9, [x19]
	cmp	w8, #132
	b.ne	LBB0_13
; %bb.12:
Lloh44:
	adrp	x20, _O2_SD_VENDOR_SETTING2@GOTPAGE
Lloh45:
	ldr	x20, [x20, _O2_SD_VENDOR_SETTING2@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_sdhci_readl
	orr	w1, w0, #0x1000
	str	w1, [sp, #12]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_sdhci_writel
LBB0_13:
	mov	w0, #0
LBB0_14:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_SDHCI_CAPABILITIES,4,2         ; @SDHCI_CAPABILITIES
	.comm	_SDHCI_CAN_DO_8BIT,4,2          ; @SDHCI_CAN_DO_8BIT
	.comm	_MMC_CAP_8_BIT_DATA,4,2         ; @MMC_CAP_8_BIT_DATA
	.comm	_O2_SD_VENDOR_SETTING,4,2       ; @O2_SD_VENDOR_SETTING
	.comm	_SDHCI_QUIRK_MULTIBLOCK_READ_ACMD12,4,2 ; @SDHCI_QUIRK_MULTIBLOCK_READ_ACMD12
	.comm	_O2_SD_MISC_SETTING,4,2         ; @O2_SD_MISC_SETTING
	.comm	_EIO,4,2                        ; @EIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: emmc 1.8v flag is set, force 1.8v signaling voltage\n"

	.comm	_SDHCI_SIGNALING_330,4,2        ; @SDHCI_SIGNALING_330
	.comm	_SDHCI_SIGNALING_180,4,2        ; @SDHCI_SIGNALING_180
	.comm	_MMC_CAP2_NO_SD,4,2             ; @MMC_CAP2_NO_SD
	.comm	_MMC_CAP2_NO_SDIO,4,2           ; @MMC_CAP2_NO_SDIO
	.comm	_O2_SD_DETECT_SETTING,4,2       ; @O2_SD_DETECT_SETTING
	.comm	_sdhci_o2_get_cd,4,2            ; @sdhci_o2_get_cd
	.comm	_sdhci_o2_execute_tuning,4,2    ; @sdhci_o2_execute_tuning
	.comm	_O2_SD_VENDOR_SETTING2,4,2      ; @O2_SD_VENDOR_SETTING2
.subsections_via_symbols
