	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdhci_arasan_syscon_write
_sdhci_arasan_syscon_write:             ## @sdhci_arasan_syscon_write
	.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, %r13d
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_sdhci_priv
	movq	%rax, %rdi
	callq	_sdhci_pltfm_priv
	movl	4(%r15), %ebx
	testl	%ebx, %ebx
	js	LBB0_1
## %bb.2:
	movq	8(%rax), %r12
	movl	(%r15), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	8(%r15), %rdi
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.3:
	xorl	%esi, %esi
	callq	_GENMASK
	movl	%r13d, %edi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_HIWORD_UPDATE
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%eax, %edx
	callq	_regmap_write
	jmp	LBB0_5
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_4:
	addq	%rbx, %rdi
	movl	%ebx, %esi
	callq	_GENMASK
	movl	%ebx, %ecx
	shll	%cl, %r13d
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%eax, %edx
	movl	%r13d, %ecx
	callq	_regmap_update_bits
LBB0_5:
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movl	(%r14), %edi
	callq	_mmc_hostname
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_pr_warn
	jmp	LBB0_8
LBB0_6:
	xorl	%ebx, %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Regmap write fail: %d\n"

	.no_dead_strip	_sdhci_arasan_syscon_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdhci_arasan_syscon_write
_sdhci_arasan_syscon_write:             ; @sdhci_arasan_syscon_write
	.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	x20, x2
	mov	x23, x1
	mov	x19, x0
	bl	_sdhci_priv
	bl	_sdhci_pltfm_priv
	ldr	w22, [x23, #4]
	tbnz	w22, #31, LBB0_3
; %bb.1:
	ldr	w21, [x23]
	ldr	x8, [x23, #8]
	ldp	x9, x23, [x0]
	ldr	x9, [x9]
	cbz	x9, LBB0_4
; %bb.2:
	mov	x0, x8
	mov	w1, #0
	bl	_GENMASK
	mov	x1, x0
	mov	x0, x20
	mov	x2, x22
	bl	_HIWORD_UPDATE
	mov	x2, x0
	mov	x0, x23
	mov	x1, x21
	bl	_regmap_write
	mov	x20, x0
	cbnz	w0, LBB0_5
	b	LBB0_6
LBB0_3:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_6
LBB0_4:
	add	x0, x8, x22
	mov	x1, x22
	bl	_GENMASK
	mov	x2, x0
	lsl	w3, w20, w22
	mov	x0, x23
	mov	x1, x21
	bl	_regmap_update_bits
	mov	x20, x0
	cbz	w0, LBB0_6
LBB0_5:
	ldr	w0, [x19]
	bl	_mmc_hostname
	mov	x1, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x20
	bl	_pr_warn
LBB0_6:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Regmap write fail: %d\n"

	.no_dead_strip	_sdhci_arasan_syscon_write
.subsections_via_symbols
