	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdhci_sirf_readl_le
_sdhci_sirf_readl_le:                   ## @sdhci_sirf_readl_le
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movslq	%esi, %rbx
	movq	8(%rdi), %rdi
	addq	%rbx, %rdi
	callq	_readl
	movl	%eax, %r12d
	movq	_SDHCI_CAPABILITIES_1@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	%ebx, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	(%r15), %rax
	movq	_MMC_CAP_UHS_SDR50@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%edi, %edi
	testl	%ecx, (%rax)
	setne	%dil
LBB0_2:
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_SDHCI_SUPPORT_DDR50@GOTPCREL(%rip), %rax
	movq	_SDHCI_SUPPORT_SDR50@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	orl	(%rax), %r12d
	movq	_SDHCI_USE_SDR50_TUNING@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
LBB0_4:
	movq	_SDHCI_SLOT_INT_STATUS@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	%r14d, (%rax)
	sete	%dil
	callq	_unlikely
	movl	%r12d, %edx
	andl	$-16711681, %edx                ## imm = 0xFF00FFFF
	movq	_SDHCI_SPEC_300@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	shll	$16, %ecx
	orl	%edx, %ecx
	testq	%rax, %rax
	cmovel	%r12d, %ecx
	movl	%ecx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SDHCI_CAPABILITIES_1,4,2       ## @SDHCI_CAPABILITIES_1
	.comm	_MMC_CAP_UHS_SDR50,4,2          ## @MMC_CAP_UHS_SDR50
	.comm	_SDHCI_SUPPORT_DDR50,4,2        ## @SDHCI_SUPPORT_DDR50
	.comm	_SDHCI_SUPPORT_SDR50,4,2        ## @SDHCI_SUPPORT_SDR50
	.comm	_SDHCI_USE_SDR50_TUNING,4,2     ## @SDHCI_USE_SDR50_TUNING
	.comm	_SDHCI_SLOT_INT_STATUS,4,2      ## @SDHCI_SLOT_INT_STATUS
	.comm	_SDHCI_SPEC_300,4,2             ## @SDHCI_SPEC_300
	.no_dead_strip	_sdhci_sirf_readl_le
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdhci_sirf_readl_le
_sdhci_sirf_readl_le:                   ; @sdhci_sirf_readl_le
	.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, x1
	mov	x21, x0
	ldr	x8, [x0, #8]
	add	x0, x8, w1, sxtw
	bl	_readl
	mov	x20, x0
Lloh0:
	adrp	x8, _SDHCI_CAPABILITIES_1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SDHCI_CAPABILITIES_1@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x21]
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _MMC_CAP_UHS_SDR50@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MMC_CAP_UHS_SDR50@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, ne
	bl	_unlikely
	cbnz	x0, LBB0_3
	b	LBB0_4
LBB0_2:
	mov	w0, #0
	bl	_unlikely
	cbz	x0, LBB0_4
LBB0_3:
Lloh6:
	adrp	x8, _SDHCI_SUPPORT_DDR50@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SDHCI_SUPPORT_DDR50@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _SDHCI_SUPPORT_SDR50@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SDHCI_SUPPORT_SDR50@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh12:
	adrp	x9, _SDHCI_USE_SDR50_TUNING@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SDHCI_USE_SDR50_TUNING@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w20, w8, w9
LBB0_4:
Lloh15:
	adrp	x8, _SDHCI_SLOT_INT_STATUS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SDHCI_SLOT_INT_STATUS@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	w8, w19
	cset	w0, eq
	bl	_unlikely
Lloh18:
	adrp	x8, _SDHCI_SPEC_300@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SDHCI_SPEC_300@GOTPAGEOFF]
	and	w9, w20, #0xff00ffff
Lloh20:
	ldr	w8, [x8]
	orr	w8, w9, w8, lsl #16
	cmp	x0, #0
	csel	w0, w20, w8, eq
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_SDHCI_CAPABILITIES_1,4,2       ; @SDHCI_CAPABILITIES_1
	.comm	_MMC_CAP_UHS_SDR50,4,2          ; @MMC_CAP_UHS_SDR50
	.comm	_SDHCI_SUPPORT_DDR50,4,2        ; @SDHCI_SUPPORT_DDR50
	.comm	_SDHCI_SUPPORT_SDR50,4,2        ; @SDHCI_SUPPORT_SDR50
	.comm	_SDHCI_USE_SDR50_TUNING,4,2     ; @SDHCI_USE_SDR50_TUNING
	.comm	_SDHCI_SLOT_INT_STATUS,4,2      ; @SDHCI_SLOT_INT_STATUS
	.comm	_SDHCI_SPEC_300,4,2             ; @SDHCI_SPEC_300
	.no_dead_strip	_sdhci_sirf_readl_le
.subsections_via_symbols
