	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function esdhc_writeb_le
_esdhc_writeb_le:                       ## @esdhc_writeb_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	%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
	movl	%edx, %ebx
	movl	%esi, %r13d
	movq	%rdi, %r15
	callq	_sdhci_priv
	movq	%rax, %rdi
	callq	_sdhci_pltfm_priv
	movq	%rax, %r14
	cmpl	$128, %ebx
	je	LBB0_4
## %bb.1:
	cmpl	$129, %ebx
	je	LBB0_11
## %bb.2:
	cmpl	$130, %ebx
	jne	LBB0_6
## %bb.3:
	movq	_SDHCI_CTRL_LED@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	%r13d, %ebx
	movq	_ESDHC_HOST_CONTROL_LE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_is_imx25_esdhc
	movq	_SDHCI_CTRL_DMA_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %r13d
	shll	$5, %r13d
	xorl	%edx, %edx
	testl	%eax, %eax
	cmovel	%r13d, %edx
	orl	%ebx, %edx
	movq	_ESDHC_CTRL_BUSWIDTH_MASK@GOTPCREL(%rip), %rax
	movzwl	(%rax), %eax
	movq	_ESDHC_CTRL_D3CD@GOTPCREL(%rip), %rcx
	movzwl	(%rcx), %esi
	orl	%eax, %esi
	xorl	$65535, %esi                    ## imm = 0xFFFF
	movq	%r15, %rdi
LBB0_14:
	movl	$130, %ecx
	jmp	LBB0_15
LBB0_4:
	movq	_SDHCI_RESET_DATA@GOTPCREL(%rip), %rbx
	testl	%r13d, (%rbx)
	je	LBB0_5
## %bb.7:
	movl	$130, %edi
	addq	(%r15), %rdi
	callq	_readl
	movl	%eax, %r12d
	jmp	LBB0_8
LBB0_6:
	movq	%r15, %rdi
	movl	$255, %esi
	movl	%r13d, %edx
	movl	%ebx, %ecx
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_esdhc_clrset_le                ## TAILCALL
LBB0_5:
	xorl	%r12d, %r12d
LBB0_8:
	movq	%r15, %rdi
	movl	$255, %esi
	movl	%r13d, %edx
	movl	$128, %ecx
	callq	_esdhc_clrset_le
	movq	_SDHCI_RESET_ALL@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_12
## %bb.9:
	movq	_ESDHC_SYSTEM_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	$7, %esi
	movl	$7, %edx
	callq	_esdhc_clrset_le
	movq	%r14, %rdi
	callq	_esdhc_is_usdhc
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	_ESDHC_MIX_CTRL@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	(%r15), %rdi
	callq	_readl
	movq	_ESDHC_MIX_CTRL_TUNING_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	(%rbx), %rsi
	addq	(%r15), %rsi
	movl	%eax, %edi
	callq	_writel
	movq	$0, (%r14)
	jmp	LBB0_11
LBB0_12:
	testl	%r13d, (%rbx)
	je	LBB0_11
## %bb.13:
	movq	%r15, %rdi
	movl	$255, %esi
	movl	%r12d, %edx
	jmp	LBB0_14
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SDHCI_CTRL_LED,4,2             ## @SDHCI_CTRL_LED
	.comm	_ESDHC_HOST_CONTROL_LE,4,2      ## @ESDHC_HOST_CONTROL_LE
	.comm	_SDHCI_CTRL_DMA_MASK,4,2        ## @SDHCI_CTRL_DMA_MASK
	.comm	_ESDHC_CTRL_BUSWIDTH_MASK,4,2   ## @ESDHC_CTRL_BUSWIDTH_MASK
	.comm	_ESDHC_CTRL_D3CD,4,2            ## @ESDHC_CTRL_D3CD
	.comm	_SDHCI_RESET_DATA,4,2           ## @SDHCI_RESET_DATA
	.comm	_SDHCI_RESET_ALL,4,2            ## @SDHCI_RESET_ALL
	.comm	_ESDHC_SYSTEM_CONTROL,4,2       ## @ESDHC_SYSTEM_CONTROL
	.comm	_ESDHC_MIX_CTRL,8,3             ## @ESDHC_MIX_CTRL
	.comm	_ESDHC_MIX_CTRL_TUNING_MASK,4,2 ## @ESDHC_MIX_CTRL_TUNING_MASK
	.no_dead_strip	_esdhc_writeb_le
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function esdhc_writeb_le
_esdhc_writeb_le:                       ; @esdhc_writeb_le
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	bl	_sdhci_priv
	bl	_sdhci_pltfm_priv
	mov	x20, x0
	cmp	w22, #128
	b.eq	LBB0_5
; %bb.1:
	cmp	w22, #129
	b.eq	LBB0_15
; %bb.2:
	cmp	w22, #130
	b.ne	LBB0_7
; %bb.3:
Lloh0:
	adrp	x8, _SDHCI_CTRL_LED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SDHCI_CTRL_LED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w21
Lloh3:
	adrp	x9, _ESDHC_HOST_CONTROL_LE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ESDHC_HOST_CONTROL_LE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w22, w8, w9
	mov	x0, x20
	bl	_is_imx25_esdhc
Lloh6:
	adrp	x8, _SDHCI_CTRL_DMA_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SDHCI_CTRL_DMA_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	and	w8, w8, w21
	lsl	w8, w8, #5
	cmp	w0, #0
	csel	w8, w8, wzr, eq
	orr	w2, w22, w8
Lloh9:
	adrp	x8, _ESDHC_CTRL_BUSWIDTH_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ESDHC_CTRL_BUSWIDTH_MASK@GOTPAGEOFF]
	ldrh	w8, [x8]
Lloh11:
	adrp	x9, _ESDHC_CTRL_D3CD@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ESDHC_CTRL_D3CD@GOTPAGEOFF]
	ldrh	w9, [x9]
	orr	w8, w9, w8
	eor	w1, w8, #0xffff
	mov	x0, x19
LBB0_4:
	mov	w3, #130
	b	LBB0_8
LBB0_5:
Lloh13:
	adrp	x23, _SDHCI_RESET_DATA@GOTPAGE
Lloh14:
	ldr	x23, [x23, _SDHCI_RESET_DATA@GOTPAGEOFF]
	ldr	w8, [x23]
	tst	w8, w21
	b.eq	LBB0_9
; %bb.6:
	ldr	x8, [x19]
	add	x0, x8, #130
	bl	_readl
	mov	x22, x0
	b	LBB0_10
LBB0_7:
	mov	x0, x19
	mov	w1, #255
	mov	x2, x21
	mov	x3, x22
LBB0_8:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_esdhc_clrset_le
LBB0_9:
	mov	w22, #0
LBB0_10:
	mov	x0, x19
	mov	w1, #255
	mov	x2, x21
	mov	w3, #128
	bl	_esdhc_clrset_le
Lloh15:
	adrp	x8, _SDHCI_RESET_ALL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SDHCI_RESET_ALL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_13
; %bb.11:
Lloh18:
	adrp	x8, _ESDHC_SYSTEM_CONTROL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ESDHC_SYSTEM_CONTROL@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w1, #7
	mov	w2, #7
	bl	_esdhc_clrset_le
	mov	x0, x20
	bl	_esdhc_is_usdhc
	cbz	x0, LBB0_15
; %bb.12:
	ldr	x8, [x19]
Lloh21:
	adrp	x21, _ESDHC_MIX_CTRL@GOTPAGE
Lloh22:
	ldr	x21, [x21, _ESDHC_MIX_CTRL@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl
Lloh23:
	adrp	x8, _ESDHC_MIX_CTRL_TUNING_MASK@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ESDHC_MIX_CTRL_TUNING_MASK@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	and	w0, w8, w0
	ldr	x8, [x19]
	ldr	x9, [x21]
	add	x1, x9, x8
	bl	_writel
	str	xzr, [x20]
	b	LBB0_15
LBB0_13:
	ldr	w8, [x23]
	tst	w8, w21
	b.eq	LBB0_15
; %bb.14:
	mov	x0, x19
	mov	w1, #255
	mov	x2, x22
	b	LBB0_4
LBB0_15:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_SDHCI_CTRL_LED,4,2             ; @SDHCI_CTRL_LED
	.comm	_ESDHC_HOST_CONTROL_LE,4,2      ; @ESDHC_HOST_CONTROL_LE
	.comm	_SDHCI_CTRL_DMA_MASK,4,2        ; @SDHCI_CTRL_DMA_MASK
	.comm	_ESDHC_CTRL_BUSWIDTH_MASK,4,2   ; @ESDHC_CTRL_BUSWIDTH_MASK
	.comm	_ESDHC_CTRL_D3CD,4,2            ; @ESDHC_CTRL_D3CD
	.comm	_SDHCI_RESET_DATA,4,2           ; @SDHCI_RESET_DATA
	.comm	_SDHCI_RESET_ALL,4,2            ; @SDHCI_RESET_ALL
	.comm	_ESDHC_SYSTEM_CONTROL,4,2       ; @ESDHC_SYSTEM_CONTROL
	.comm	_ESDHC_MIX_CTRL,8,3             ; @ESDHC_MIX_CTRL
	.comm	_ESDHC_MIX_CTRL_TUNING_MASK,4,2 ; @ESDHC_MIX_CTRL_TUNING_MASK
	.no_dead_strip	_esdhc_writeb_le
.subsections_via_symbols
