	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	_SDHCI_SPEC_300@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_6
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %rbx
	cmpl	%esi, 8(%rdi)
	je	LBB0_6
## %bb.2:
	movq	_SDHCI_HOST_CONTROL2@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_sdhci_readw
	movq	_SDHCI_CTRL_PRESET_VAL_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.3:
	orl	%eax, %esi
	movl	(%r15), %edx
	movq	%rbx, %rdi
	callq	_sdhci_writew
	movq	_SDHCI_PV_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 12(%rbx)
	jmp	LBB0_5
LBB0_4:
	notl	%esi
	andl	%esi, %eax
	movl	(%r15), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_sdhci_writew
	movq	_SDHCI_PV_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 12(%rbx)
LBB0_5:
	movl	%r14d, 8(%rbx)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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
	.comm	_SDHCI_PV_ENABLED,4,2           ## @SDHCI_PV_ENABLED
	.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
	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.lt	LBB0_6
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x0, #8]
	cmp	w8, w1
	b.eq	LBB0_6
; %bb.2:
Lloh3:
	adrp	x21, _SDHCI_HOST_CONTROL2@GOTPAGE
Lloh4:
	ldr	x21, [x21, _SDHCI_HOST_CONTROL2@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	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]
	cbz	w19, LBB0_4
; %bb.3:
	orr	w1, w8, w0
	ldr	w2, [x21]
	mov	x0, x20
	bl	_sdhci_writew
Lloh8:
	adrp	x8, _SDHCI_PV_ENABLED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SDHCI_PV_ENABLED@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	w9, [x20, #12]
	orr	w8, w9, w8
	b	LBB0_5
LBB0_4:
	bic	w1, w0, w8
	ldr	w2, [x21]
	mov	x0, x20
	bl	_sdhci_writew
Lloh11:
	adrp	x8, _SDHCI_PV_ENABLED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SDHCI_PV_ENABLED@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	w9, [x20, #12]
	bic	w8, w9, w8
LBB0_5:
	stp	w19, w8, [x20, #8]
LBB0_6:
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.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
	.comm	_SDHCI_PV_ENABLED,4,2           ; @SDHCI_PV_ENABLED
	.no_dead_strip	_sdhci_enable_preset_value
.subsections_via_symbols
