	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdhci_sprd_writel
_sdhci_sprd_writel:                     ## @sdhci_sprd_writel
	.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
	movl	%edx, %ebx
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	_SDHCI_MAX_CURRENT@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	%edx, (%rax)
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_SDHCI_SIGNAL_ENABLE@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	sete	%al
	movq	_SDHCI_INT_ENABLE@GOTPCREL(%rip), %rcx
	cmpl	%ebx, (%rcx)
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_unlikely
	movq	_SDHCI_SPRD_INT_SIGNAL_MASK@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	$1, %rax
	sbbl	%edi, %edi
	orl	(%rcx), %edi
	andl	%r15d, %edi
	movslq	%ebx, %rsi
	addq	(%r14), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel_relaxed                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SDHCI_MAX_CURRENT,4,2          ## @SDHCI_MAX_CURRENT
	.comm	_SDHCI_SIGNAL_ENABLE,4,2        ## @SDHCI_SIGNAL_ENABLE
	.comm	_SDHCI_INT_ENABLE,4,2           ## @SDHCI_INT_ENABLE
	.comm	_SDHCI_SPRD_INT_SIGNAL_MASK,4,2 ## @SDHCI_SPRD_INT_SIGNAL_MASK
	.no_dead_strip	_sdhci_sprd_writel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdhci_sprd_writel
_sdhci_sprd_writel:                     ; @sdhci_sprd_writel
	.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, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _SDHCI_MAX_CURRENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SDHCI_MAX_CURRENT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w2
	cset	w0, eq
	bl	_unlikely
	cbz	x0, 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:
Lloh3:
	adrp	x8, _SDHCI_SIGNAL_ENABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SDHCI_SIGNAL_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w19
Lloh6:
	adrp	x8, _SDHCI_INT_ENABLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SDHCI_INT_ENABLE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ccmp	w8, w19, #4, ne
	cset	w0, eq
	bl	_unlikely
Lloh9:
	adrp	x8, _SDHCI_SPRD_INT_SIGNAL_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SDHCI_SPRD_INT_SIGNAL_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	x0, #0
	csinv	w8, w8, wzr, ne
	and	w0, w8, w21
	ldr	x8, [x20]
	add	x1, x8, w19, sxtw
	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	_writel_relaxed
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SDHCI_MAX_CURRENT,4,2          ; @SDHCI_MAX_CURRENT
	.comm	_SDHCI_SIGNAL_ENABLE,4,2        ; @SDHCI_SIGNAL_ENABLE
	.comm	_SDHCI_INT_ENABLE,4,2           ; @SDHCI_INT_ENABLE
	.comm	_SDHCI_SPRD_INT_SIGNAL_MASK,4,2 ; @SDHCI_SPRD_INT_SIGNAL_MASK
	.no_dead_strip	_sdhci_sprd_writel
.subsections_via_symbols
