	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function byt_sd_probe_slot
_byt_sd_probe_slot:                     ## @byt_sd_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_byt_probe_slot
	movq	_MMC_CAP_WAIT_WHILE_BUSY@GOTPCREL(%rip), %rax
	movq	_MMC_CAP_AGGRESSIVE_PM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_MMC_CAP_CD_WAKE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	8(%rbx), %rdx
	movq	(%rdx), %rax
	orl	%ecx, (%rax)
	movq	$0, 24(%rbx)
	movl	$1, (%rbx)
	movq	16(%rbx), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %rsi
	movq	_PCI_DEVICE_ID_INTEL_BXT_SD@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rsi
	je	LBB0_4
## %bb.1:
	movq	_PCI_DEVICE_ID_INTEL_BXTM_SD@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rsi
	je	LBB0_4
## %bb.2:
	movq	_PCI_DEVICE_ID_INTEL_APL_SD@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rsi
	je	LBB0_4
## %bb.3:
	movq	_PCI_DEVICE_ID_INTEL_GLK_SD@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rsi
	jne	LBB0_5
LBB0_4:
	movq	_bxt_get_cd@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, 8(%rdx)
LBB0_5:
	movq	8(%rcx), %rdx
	movq	_PCI_VENDOR_ID_NI@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_8
## %bb.6:
	movq	16(%rcx), %rcx
	movq	_PCI_SUBDEVICE_ID_NI_78E3@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_8
## %bb.7:
	movq	_MMC_CAP2_AVOID_3_3V@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 4(%rax)
LBB0_8:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMC_CAP_WAIT_WHILE_BUSY,4,2    ## @MMC_CAP_WAIT_WHILE_BUSY
	.comm	_MMC_CAP_AGGRESSIVE_PM,4,2      ## @MMC_CAP_AGGRESSIVE_PM
	.comm	_MMC_CAP_CD_WAKE,4,2            ## @MMC_CAP_CD_WAKE
	.comm	_PCI_DEVICE_ID_INTEL_BXT_SD,8,3 ## @PCI_DEVICE_ID_INTEL_BXT_SD
	.comm	_PCI_DEVICE_ID_INTEL_BXTM_SD,8,3 ## @PCI_DEVICE_ID_INTEL_BXTM_SD
	.comm	_PCI_DEVICE_ID_INTEL_APL_SD,8,3 ## @PCI_DEVICE_ID_INTEL_APL_SD
	.comm	_PCI_DEVICE_ID_INTEL_GLK_SD,8,3 ## @PCI_DEVICE_ID_INTEL_GLK_SD
	.comm	_bxt_get_cd,4,2                 ## @bxt_get_cd
	.comm	_PCI_VENDOR_ID_NI,8,3           ## @PCI_VENDOR_ID_NI
	.comm	_PCI_SUBDEVICE_ID_NI_78E3,8,3   ## @PCI_SUBDEVICE_ID_NI_78E3
	.comm	_MMC_CAP2_AVOID_3_3V,4,2        ## @MMC_CAP2_AVOID_3_3V
	.no_dead_strip	_byt_sd_probe_slot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function byt_sd_probe_slot
_byt_sd_probe_slot:                     ; @byt_sd_probe_slot
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_byt_probe_slot
Lloh0:
	adrp	x8, _MMC_CAP_WAIT_WHILE_BUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MMC_CAP_WAIT_WHILE_BUSY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _MMC_CAP_AGGRESSIVE_PM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MMC_CAP_AGGRESSIVE_PM@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _MMC_CAP_CD_WAKE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _MMC_CAP_CD_WAKE@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh8:
	ldr	w9, [x10]
	orr	w10, w8, w9
	ldp	x9, x11, [x19, #8]
	ldr	x8, [x9]
	ldr	w12, [x8]
	orr	w10, w10, w12
	str	w10, [x8]
	str	xzr, [x19, #24]
	mov	w10, #1
	str	w10, [x19]
	ldr	x10, [x11]
	ldr	x11, [x10]
Lloh9:
	adrp	x12, _PCI_DEVICE_ID_INTEL_BXT_SD@GOTPAGE
Lloh10:
	ldr	x12, [x12, _PCI_DEVICE_ID_INTEL_BXT_SD@GOTPAGEOFF]
Lloh11:
	adrp	x13, _PCI_DEVICE_ID_INTEL_BXTM_SD@GOTPAGE
Lloh12:
	ldr	x13, [x13, _PCI_DEVICE_ID_INTEL_BXTM_SD@GOTPAGEOFF]
Lloh13:
	ldr	x12, [x12]
Lloh14:
	ldr	x13, [x13]
Lloh15:
	adrp	x14, _PCI_DEVICE_ID_INTEL_APL_SD@GOTPAGE
Lloh16:
	ldr	x14, [x14, _PCI_DEVICE_ID_INTEL_APL_SD@GOTPAGEOFF]
Lloh17:
	adrp	x15, _PCI_DEVICE_ID_INTEL_GLK_SD@GOTPAGE
Lloh18:
	ldr	x15, [x15, _PCI_DEVICE_ID_INTEL_GLK_SD@GOTPAGEOFF]
Lloh19:
	ldr	x14, [x14]
Lloh20:
	ldr	x15, [x15]
	cmp	x11, x12
	ccmp	x11, x13, #4, ne
	ccmp	x11, x14, #4, ne
	ccmp	x11, x15, #4, ne
	b.ne	LBB0_2
; %bb.1:
Lloh21:
	adrp	x11, _bxt_get_cd@GOTPAGE
Lloh22:
	ldr	x11, [x11, _bxt_get_cd@GOTPAGEOFF]
Lloh23:
	ldr	w11, [x11]
	str	w11, [x9, #8]
LBB0_2:
	ldr	x9, [x10, #8]
Lloh24:
	adrp	x11, _PCI_VENDOR_ID_NI@GOTPAGE
Lloh25:
	ldr	x11, [x11, _PCI_VENDOR_ID_NI@GOTPAGEOFF]
Lloh26:
	ldr	x11, [x11]
	cmp	x9, x11
	b.ne	LBB0_5
; %bb.3:
	ldr	x9, [x10, #16]
Lloh27:
	adrp	x10, _PCI_SUBDEVICE_ID_NI_78E3@GOTPAGE
Lloh28:
	ldr	x10, [x10, _PCI_SUBDEVICE_ID_NI_78E3@GOTPAGEOFF]
Lloh29:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_5
; %bb.4:
Lloh30:
	adrp	x9, _MMC_CAP2_AVOID_3_3V@GOTPAGE
Lloh31:
	ldr	x9, [x9, _MMC_CAP2_AVOID_3_3V@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	ldr	w10, [x8, #4]
	orr	w9, w10, w9
	str	w9, [x8, #4]
LBB0_5:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh19
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_MMC_CAP_WAIT_WHILE_BUSY,4,2    ; @MMC_CAP_WAIT_WHILE_BUSY
	.comm	_MMC_CAP_AGGRESSIVE_PM,4,2      ; @MMC_CAP_AGGRESSIVE_PM
	.comm	_MMC_CAP_CD_WAKE,4,2            ; @MMC_CAP_CD_WAKE
	.comm	_PCI_DEVICE_ID_INTEL_BXT_SD,8,3 ; @PCI_DEVICE_ID_INTEL_BXT_SD
	.comm	_PCI_DEVICE_ID_INTEL_BXTM_SD,8,3 ; @PCI_DEVICE_ID_INTEL_BXTM_SD
	.comm	_PCI_DEVICE_ID_INTEL_APL_SD,8,3 ; @PCI_DEVICE_ID_INTEL_APL_SD
	.comm	_PCI_DEVICE_ID_INTEL_GLK_SD,8,3 ; @PCI_DEVICE_ID_INTEL_GLK_SD
	.comm	_bxt_get_cd,4,2                 ; @bxt_get_cd
	.comm	_PCI_VENDOR_ID_NI,8,3           ; @PCI_VENDOR_ID_NI
	.comm	_PCI_SUBDEVICE_ID_NI_78E3,8,3   ; @PCI_SUBDEVICE_ID_NI_78E3
	.comm	_MMC_CAP2_AVOID_3_3V,4,2        ; @MMC_CAP2_AVOID_3_3V
	.no_dead_strip	_byt_sd_probe_slot
.subsections_via_symbols
