	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdhci_iproc_writew
_sdhci_iproc_writew:                    ## @sdhci_iproc_writew
	.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, %ebx
	movl	%esi, %r14d
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_sdhci_priv
	movq	%rax, %rdi
	callq	_sdhci_pltfm_priv
	movq	%rax, %r12
	movl	%ebx, %edi
	callq	_REG_OFFSET_IN_BITS
	movl	%eax, %r13d
	movl	$65535, %r15d                   ## imm = 0xFFFF
	movl	%r13d, %ecx
	shll	%cl, %r15d
	movq	_SDHCI_COMMAND@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_4
## %bb.1:
	cmpl	$0, (%r12)
	je	LBB0_3
## %bb.2:
	movl	4(%r12), %esi
	movq	_SDHCI_BLOCK_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_sdhci_iproc_writel
	movl	$0, (%r12)
LBB0_3:
	movl	8(%r12), %eax
	movl	$0, 12(%r12)
	jmp	LBB0_9
LBB0_4:
	movq	_SDHCI_BLOCK_SIZE@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	je	LBB0_6
## %bb.5:
	movq	_SDHCI_BLOCK_COUNT@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_8
LBB0_6:
	cmpl	$0, (%r12)
	je	LBB0_8
## %bb.7:
	movl	4(%r12), %eax
	jmp	LBB0_9
LBB0_8:
	movl	%ebx, %esi
	andl	$-4, %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_sdhci_iproc_readl
LBB0_9:
	notl	%r15d
	andl	%eax, %r15d
	movl	%r13d, %ecx
	shll	%cl, %r14d
	orl	%r15d, %r14d
	movq	_SDHCI_TRANSFER_MODE@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_11
## %bb.10:
	movl	%r14d, 8(%r12)
	movl	$1, 12(%r12)
	jmp	LBB0_14
LBB0_11:
	movq	_SDHCI_BLOCK_SIZE@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	je	LBB0_13
## %bb.12:
	movq	_SDHCI_BLOCK_COUNT@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	je	LBB0_13
## %bb.15:
	andl	$-4, %ebx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sdhci_iproc_writel             ## TAILCALL
LBB0_13:
	movl	%r14d, 4(%r12)
	movl	$1, (%r12)
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SDHCI_COMMAND,4,2              ## @SDHCI_COMMAND
	.comm	_SDHCI_BLOCK_SIZE,4,2           ## @SDHCI_BLOCK_SIZE
	.comm	_SDHCI_BLOCK_COUNT,4,2          ## @SDHCI_BLOCK_COUNT
	.comm	_SDHCI_TRANSFER_MODE,4,2        ## @SDHCI_TRANSFER_MODE
	.no_dead_strip	_sdhci_iproc_writew
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdhci_iproc_writew
_sdhci_iproc_writew:                    ; @sdhci_iproc_writew
	.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	x19, x2
	mov	x22, x1
	mov	x20, x0
	bl	_sdhci_priv
	bl	_sdhci_pltfm_priv
	mov	x21, x0
	mov	x0, x19
	bl	_REG_OFFSET_IN_BITS
	mov	x23, x0
	mov	w8, #65535
	lsl	w24, w8, w0
Lloh0:
	adrp	x8, _SDHCI_COMMAND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SDHCI_COMMAND@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_4
; %bb.1:
	ldr	w8, [x21]
	cbz	w8, LBB0_3
; %bb.2:
	ldr	w1, [x21, #4]
Lloh3:
	adrp	x8, _SDHCI_BLOCK_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SDHCI_BLOCK_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_sdhci_iproc_writel
	str	wzr, [x21]
LBB0_3:
	ldr	w0, [x21, #8]
	str	wzr, [x21, #12]
	b	LBB0_8
LBB0_4:
Lloh6:
	adrp	x8, _SDHCI_BLOCK_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SDHCI_BLOCK_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _SDHCI_BLOCK_COUNT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SDHCI_BLOCK_COUNT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w8, w19
	ccmp	w9, w19, #4, ne
	b.ne	LBB0_7
; %bb.5:
	ldr	w8, [x21]
	cbz	w8, LBB0_7
; %bb.6:
	ldr	w0, [x21, #4]
	b	LBB0_8
LBB0_7:
	and	w1, w19, #0xfffffffc
	mov	x0, x20
	bl	_sdhci_iproc_readl
LBB0_8:
	bic	w8, w0, w24
	lsl	w9, w22, w23
	orr	w1, w8, w9
Lloh12:
	adrp	x8, _SDHCI_TRANSFER_MODE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SDHCI_TRANSFER_MODE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_10
; %bb.9:
	mov	w8, #1
	stp	w1, w8, [x21, #8]
	b	LBB0_12
LBB0_10:
Lloh15:
	adrp	x8, _SDHCI_BLOCK_SIZE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SDHCI_BLOCK_SIZE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _SDHCI_BLOCK_COUNT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _SDHCI_BLOCK_COUNT@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	cmp	w8, w19
	ccmp	w9, w19, #4, ne
	b.ne	LBB0_13
; %bb.11:
	mov	w8, #1
	stp	w8, w1, [x21]
LBB0_12:
	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
LBB0_13:
	and	w2, w19, #0xfffffffc
	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
	b	_sdhci_iproc_writel
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_SDHCI_COMMAND,4,2              ; @SDHCI_COMMAND
	.comm	_SDHCI_BLOCK_SIZE,4,2           ; @SDHCI_BLOCK_SIZE
	.comm	_SDHCI_BLOCK_COUNT,4,2          ; @SDHCI_BLOCK_COUNT
	.comm	_SDHCI_TRANSFER_MODE,4,2        ; @SDHCI_TRANSFER_MODE
	.no_dead_strip	_sdhci_iproc_writew
.subsections_via_symbols
