	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdhci_enable_preset_value
_sdhci_enable_preset_value:             ## @sdhci_enable_preset_value
	.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, %r15d
	callq	_mmc_priv
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	_SDHCI_SPEC_300@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_1
## %bb.8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rbx, %r14
	addq	$8, %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_SDHCI_HOST_CONTROL2@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_sdhci_readw
	movq	_SDHCI_CTRL_PRESET_VAL_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	testl	%r15d, %r15d
	je	LBB0_4
## %bb.2:
	testl	%eax, %esi
	jne	LBB0_7
## %bb.3:
	orl	%eax, %esi
	jmp	LBB0_6
LBB0_4:
	testl	%eax, %esi
	je	LBB0_7
## %bb.5:
	notl	%esi
	andl	%eax, %esi
LBB0_6:
	movl	(%r12), %edx
	movq	%rbx, %rdi
	callq	_sdhci_writew
LBB0_7:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SDHCI_SPEC_300,8,3             ## @SDHCI_SPEC_300
	.comm	_SDHCI_HOST_CONTROL2,4,2        ## @SDHCI_HOST_CONTROL2
	.comm	_SDHCI_CTRL_PRESET_VAL_ENABLE,4,2 ## @SDHCI_CTRL_PRESET_VAL_ENABLE
	.no_dead_strip	_sdhci_enable_preset_value
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdhci_enable_preset_value
_sdhci_enable_preset_value:             ; @sdhci_enable_preset_value
	.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	x21, x1
	bl	_mmc_priv
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _SDHCI_SPEC_300@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SDHCI_SPEC_300@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_2
; %bb.1:
	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
LBB0_2:
	mov	x19, x0
	add	x20, x0, #8
	mov	x0, x20
	bl	_spin_lock_irqsave
Lloh3:
	adrp	x22, _SDHCI_HOST_CONTROL2@GOTPAGE
Lloh4:
	ldr	x22, [x22, _SDHCI_HOST_CONTROL2@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_sdhci_readw
Lloh5:
	adrp	x8, _SDHCI_CTRL_PRESET_VAL_ENABLE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SDHCI_CTRL_PRESET_VAL_ENABLE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	and	w9, w8, w0
	cbz	w21, LBB0_5
; %bb.3:
	cbnz	w9, LBB0_8
; %bb.4:
	orr	w1, w8, w0
	b	LBB0_7
LBB0_5:
	cbz	w9, LBB0_8
; %bb.6:
	bic	w1, w0, w8
LBB0_7:
	ldr	w2, [x22]
	mov	x0, x19
	bl	_sdhci_writew
LBB0_8:
	mov	x0, x20
	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
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_SDHCI_SPEC_300,8,3             ; @SDHCI_SPEC_300
	.comm	_SDHCI_HOST_CONTROL2,4,2        ; @SDHCI_HOST_CONTROL2
	.comm	_SDHCI_CTRL_PRESET_VAL_ENABLE,4,2 ; @SDHCI_CTRL_PRESET_VAL_ENABLE
	.no_dead_strip	_sdhci_enable_preset_value
.subsections_via_symbols
