	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function esdhc_readl_fixup
_esdhc_readl_fixup:                     ## @esdhc_readl_fixup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edx, %ebx
	movl	%esi, %r14d
	callq	_sdhci_priv
	movq	%rax, %rdi
	callq	_sdhci_pltfm_priv
	movq	_SDHCI_CAPABILITIES@GOTPCREL(%rip), %rcx
	cmpl	%r14d, (%rcx)
	jne	LBB0_4
## %bb.1:
	movq	_SDHCI_CAN_DO_ADMA1@GOTPCREL(%rip), %rcx
	testl	%ebx, (%rcx)
	je	LBB0_4
## %bb.2:
	movq	(%rax), %rax
	movq	_VENDOR_V_22@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_4
## %bb.3:
	movq	_SDHCI_CAN_DO_ADMA2@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	jmp	LBB0_8
LBB0_4:
	movq	_SDHCI_PRESENT_STATE@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_6
## %bb.5:
	movl	%ebx, %eax
	andl	$1048575, %eax                  ## imm = 0xFFFFF
	movl	%ebx, %ecx
	sarl	$4, %ecx
	movq	_SDHCI_DATA_LVL_MASK@GOTPCREL(%rip), %rdx
	andl	(%rdx), %ecx
	orl	%eax, %ecx
	addl	%ebx, %ebx
	movq	_SDHCI_CMD_LVL@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	orl	%ecx, %ebx
	jmp	LBB0_8
LBB0_6:
	movq	_SDHCI_CAPABILITIES_1@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_8
## %bb.7:
	movq	_SDHCI_SUPPORT_SDR50@GOTPCREL(%rip), %rax
	movq	_SDHCI_SUPPORT_SDR104@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_SDHCI_SUPPORT_DDR50@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, %ebx
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SDHCI_CAPABILITIES,4,2         ## @SDHCI_CAPABILITIES
	.comm	_SDHCI_CAN_DO_ADMA1,4,2         ## @SDHCI_CAN_DO_ADMA1
	.comm	_VENDOR_V_22,8,3                ## @VENDOR_V_22
	.comm	_SDHCI_CAN_DO_ADMA2,4,2         ## @SDHCI_CAN_DO_ADMA2
	.comm	_SDHCI_PRESENT_STATE,4,2        ## @SDHCI_PRESENT_STATE
	.comm	_SDHCI_DATA_LVL_MASK,4,2        ## @SDHCI_DATA_LVL_MASK
	.comm	_SDHCI_CMD_LVL,4,2              ## @SDHCI_CMD_LVL
	.comm	_SDHCI_CAPABILITIES_1,4,2       ## @SDHCI_CAPABILITIES_1
	.comm	_SDHCI_SUPPORT_SDR50,4,2        ## @SDHCI_SUPPORT_SDR50
	.comm	_SDHCI_SUPPORT_SDR104,4,2       ## @SDHCI_SUPPORT_SDR104
	.comm	_SDHCI_SUPPORT_DDR50,4,2        ## @SDHCI_SUPPORT_DDR50
	.comm	_SDHCI_DATA_INHIBIT,4,2         ## @SDHCI_DATA_INHIBIT
	.no_dead_strip	_esdhc_readl_fixup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function esdhc_readl_fixup
_esdhc_readl_fixup:                     ; @esdhc_readl_fixup
	.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, x2
	mov	x20, x1
	bl	_sdhci_priv
	bl	_sdhci_pltfm_priv
Lloh0:
	adrp	x8, _SDHCI_CAPABILITIES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SDHCI_CAPABILITIES@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _SDHCI_CAN_DO_ADMA1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SDHCI_CAN_DO_ADMA1@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_4
; %bb.2:
	ldr	x8, [x0]
Lloh6:
	adrp	x9, _VENDOR_V_22@GOTPAGE
Lloh7:
	ldr	x9, [x9, _VENDOR_V_22@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_4
; %bb.3:
Lloh9:
	adrp	x8, _SDHCI_CAN_DO_ADMA2@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SDHCI_CAN_DO_ADMA2@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	orr	w19, w8, w19
	b	LBB0_8
LBB0_4:
Lloh12:
	adrp	x8, _SDHCI_PRESENT_STATE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SDHCI_PRESENT_STATE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_6
; %bb.5:
	and	w8, w19, #0xfffff
Lloh15:
	adrp	x9, _SDHCI_DATA_LVL_MASK@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SDHCI_DATA_LVL_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	and	w9, w9, w19, asr #4
	orr	w8, w9, w8
Lloh18:
	adrp	x9, _SDHCI_CMD_LVL@GOTPAGE
Lloh19:
	ldr	x9, [x9, _SDHCI_CMD_LVL@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	and	w9, w9, w19, lsl #1
	orr	w19, w8, w9
	b	LBB0_8
LBB0_6:
Lloh21:
	adrp	x8, _SDHCI_CAPABILITIES_1@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SDHCI_CAPABILITIES_1@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_8
; %bb.7:
Lloh24:
	adrp	x8, _SDHCI_SUPPORT_SDR50@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SDHCI_SUPPORT_SDR50@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _SDHCI_SUPPORT_SDR104@GOTPAGE
Lloh28:
	ldr	x9, [x9, _SDHCI_SUPPORT_SDR104@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh30:
	adrp	x9, _SDHCI_SUPPORT_DDR50@GOTPAGE
Lloh31:
	ldr	x9, [x9, _SDHCI_SUPPORT_DDR50@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	orr	w8, w8, w9
	bic	w19, w19, w8
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_SDHCI_CAPABILITIES,4,2         ; @SDHCI_CAPABILITIES
	.comm	_SDHCI_CAN_DO_ADMA1,4,2         ; @SDHCI_CAN_DO_ADMA1
	.comm	_VENDOR_V_22,8,3                ; @VENDOR_V_22
	.comm	_SDHCI_CAN_DO_ADMA2,4,2         ; @SDHCI_CAN_DO_ADMA2
	.comm	_SDHCI_PRESENT_STATE,4,2        ; @SDHCI_PRESENT_STATE
	.comm	_SDHCI_DATA_LVL_MASK,4,2        ; @SDHCI_DATA_LVL_MASK
	.comm	_SDHCI_CMD_LVL,4,2              ; @SDHCI_CMD_LVL
	.comm	_SDHCI_CAPABILITIES_1,4,2       ; @SDHCI_CAPABILITIES_1
	.comm	_SDHCI_SUPPORT_SDR50,4,2        ; @SDHCI_SUPPORT_SDR50
	.comm	_SDHCI_SUPPORT_SDR104,4,2       ; @SDHCI_SUPPORT_SDR104
	.comm	_SDHCI_SUPPORT_DDR50,4,2        ; @SDHCI_SUPPORT_DDR50
	.comm	_SDHCI_DATA_INHIBIT,4,2         ; @SDHCI_DATA_INHIBIT
	.no_dead_strip	_esdhc_readl_fixup
.subsections_via_symbols
