	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function esdhc_writeb_fixup
_esdhc_writeb_fixup:                    ## @esdhc_writeb_fixup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%ecx, %eax
	movq	_SDHCI_POWER_CONTROL@GOTPCREL(%rip), %rcx
	cmpl	%esi, (%rcx)
	je	LBB0_5
## %bb.1:
	movq	_SDHCI_HOST_CONTROL@GOTPCREL(%rip), %rcx
	cmpl	%esi, (%rcx)
	jne	LBB0_4
## %bb.2:
	movq	_SDHCI_QUIRK2_BROKEN_HOST_CONTROL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rdi)
	je	LBB0_3
LBB0_5:
	popq	%rbp
	retq
LBB0_4:
	shll	$3, %esi
	andl	$24, %esi
	movl	$255, %edi
	movl	%esi, %ecx
	shll	%cl, %edi
	notl	%edi
	andl	%eax, %edi
	shll	%cl, %edx
	orl	%edi, %edx
	movl	%edx, %eax
	popq	%rbp
	retq
LBB0_3:
	movq	_SDHCI_CTRL_DMA_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %esi
	shll	$5, %esi
	notl	%esi
	andl	%eax, %esi
	xorl	%edx, %eax
	andl	%ecx, %eax
	andl	%edx, %ecx
	shll	$5, %ecx
	orl	%ecx, %esi
	xorl	%edx, %eax
	andl	$-256, %esi
	orl	%eax, %esi
	movq	_ESDHC_HOST_CONTROL_RES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%esi, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SDHCI_POWER_CONTROL,4,2        ## @SDHCI_POWER_CONTROL
	.comm	_SDHCI_HOST_CONTROL,4,2         ## @SDHCI_HOST_CONTROL
	.comm	_SDHCI_QUIRK2_BROKEN_HOST_CONTROL,4,2 ## @SDHCI_QUIRK2_BROKEN_HOST_CONTROL
	.comm	_SDHCI_CTRL_DMA_MASK,4,2        ## @SDHCI_CTRL_DMA_MASK
	.comm	_ESDHC_HOST_CONTROL_RES,4,2     ## @ESDHC_HOST_CONTROL_RES
	.no_dead_strip	_esdhc_writeb_fixup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function esdhc_writeb_fixup
_esdhc_writeb_fixup:                    ; @esdhc_writeb_fixup
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _SDHCI_POWER_CONTROL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SDHCI_POWER_CONTROL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.eq	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _SDHCI_HOST_CONTROL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SDHCI_HOST_CONTROL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_4
; %bb.2:
	ldr	w8, [x0]
Lloh6:
	adrp	x9, _SDHCI_QUIRK2_BROKEN_HOST_CONTROL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SDHCI_QUIRK2_BROKEN_HOST_CONTROL@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
LBB0_3:
	mov	x0, x3
	ret
LBB0_4:
	ubfiz	w8, w1, #3, #2
	mov	w9, #255
	lsl	w9, w9, w8
	bic	w9, w3, w9
	lsl	w8, w2, w8
	orr	w3, w9, w8
	mov	x0, x3
	ret
LBB0_5:
Lloh9:
	adrp	x8, _SDHCI_CTRL_DMA_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SDHCI_CTRL_DMA_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	and	w9, w8, w2
	bic	w10, w3, w8, lsl #5
	orr	w9, w10, w9, lsl #5
	bic	w10, w2, w8
	and	w8, w8, w3
	orr	w8, w10, w8
	and	w9, w9, #0xffffff00
	orr	w8, w8, w9
Lloh12:
	adrp	x9, _ESDHC_HOST_CONTROL_RES@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ESDHC_HOST_CONTROL_RES@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	bic	w0, w8, w9
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_SDHCI_POWER_CONTROL,4,2        ; @SDHCI_POWER_CONTROL
	.comm	_SDHCI_HOST_CONTROL,4,2         ; @SDHCI_HOST_CONTROL
	.comm	_SDHCI_QUIRK2_BROKEN_HOST_CONTROL,4,2 ; @SDHCI_QUIRK2_BROKEN_HOST_CONTROL
	.comm	_SDHCI_CTRL_DMA_MASK,4,2        ; @SDHCI_CTRL_DMA_MASK
	.comm	_ESDHC_HOST_CONTROL_RES,4,2     ; @ESDHC_HOST_CONTROL_RES
	.no_dead_strip	_esdhc_writeb_fixup
.subsections_via_symbols
