	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s3cmci_send_command
_s3cmci_send_command:                   ## @s3cmci_send_command
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_S3C2410_SDIIMSK_CRCSTATUS@GOTPCREL(%rip), %rcx
	movq	_S3C2410_SDIIMSK_CMDTIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movq	_S3C2410_SDIIMSK_RESPONSEND@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_S3C2410_SDIIMSK_CMDSENT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_S3C2410_SDIIMSK_RESPONSECRC@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, %esi
	callq	_enable_imask
	cmpq	$0, 16(%rbx)
	je	LBB0_2
## %bb.1:
	movq	_COMPLETION_XFERFINISH_RSPFIN@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_2:
	movq	_MMC_RSP_PRESENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	jne	LBB0_3
## %bb.4:
	movq	_COMPLETION_CMDSENT@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_COMPLETION_RSPFIN@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movl	4(%rbx), %edi
	movq	_S3C2410_SDICMDARG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	callq	_writel
	movq	_S3C2410_SDICMDCON_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %eax
	movq	_MMC_RSP_PRESENT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	je	LBB0_7
## %bb.6:
	movq	_S3C2410_SDICMDCON_WAITRSP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_7:
	andl	8(%rbx), %edi
	movq	_S3C2410_SDICMDCON_SENDERHOST@GOTPCREL(%rip), %rsi
	movq	_S3C2410_SDICMDCON_CMDSTART@GOTPCREL(%rip), %rdx
	movq	_MMC_RSP_136@GOTPCREL(%rip), %rbx
	andl	(%rbx), %eax
	je	LBB0_9
## %bb.8:
	movq	_S3C2410_SDICMDCON_LONGRSP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_9:
	orl	(%rsi), %edi
	orl	(%rdx), %edi
	orl	%ecx, %edi
	orl	%eax, %edi
	movq	_S3C2410_SDICMDCON@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_S3C2410_SDIIMSK_CRCSTATUS,4,2  ## @S3C2410_SDIIMSK_CRCSTATUS
	.comm	_S3C2410_SDIIMSK_CMDTIMEOUT,4,2 ## @S3C2410_SDIIMSK_CMDTIMEOUT
	.comm	_S3C2410_SDIIMSK_RESPONSEND,4,2 ## @S3C2410_SDIIMSK_RESPONSEND
	.comm	_S3C2410_SDIIMSK_CMDSENT,4,2    ## @S3C2410_SDIIMSK_CMDSENT
	.comm	_S3C2410_SDIIMSK_RESPONSECRC,4,2 ## @S3C2410_SDIIMSK_RESPONSECRC
	.comm	_COMPLETION_XFERFINISH_RSPFIN,4,2 ## @COMPLETION_XFERFINISH_RSPFIN
	.comm	_MMC_RSP_PRESENT,4,2            ## @MMC_RSP_PRESENT
	.comm	_COMPLETION_RSPFIN,4,2          ## @COMPLETION_RSPFIN
	.comm	_COMPLETION_CMDSENT,4,2         ## @COMPLETION_CMDSENT
	.comm	_S3C2410_SDICMDARG,8,3          ## @S3C2410_SDICMDARG
	.comm	_S3C2410_SDICMDCON_INDEX,4,2    ## @S3C2410_SDICMDCON_INDEX
	.comm	_S3C2410_SDICMDCON_SENDERHOST,4,2 ## @S3C2410_SDICMDCON_SENDERHOST
	.comm	_S3C2410_SDICMDCON_CMDSTART,4,2 ## @S3C2410_SDICMDCON_CMDSTART
	.comm	_S3C2410_SDICMDCON_WAITRSP,4,2  ## @S3C2410_SDICMDCON_WAITRSP
	.comm	_MMC_RSP_136,4,2                ## @MMC_RSP_136
	.comm	_S3C2410_SDICMDCON_LONGRSP,4,2  ## @S3C2410_SDICMDCON_LONGRSP
	.comm	_S3C2410_SDICMDCON,8,3          ## @S3C2410_SDICMDCON
	.no_dead_strip	_s3cmci_send_command
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s3cmci_send_command
_s3cmci_send_command:                   ; @s3cmci_send_command
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _S3C2410_SDIIMSK_CRCSTATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _S3C2410_SDIIMSK_CRCSTATUS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _S3C2410_SDIIMSK_CMDTIMEOUT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _S3C2410_SDIIMSK_CMDTIMEOUT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _S3C2410_SDIIMSK_RESPONSEND@GOTPAGE
Lloh7:
	ldr	x9, [x9, _S3C2410_SDIIMSK_RESPONSEND@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh9:
	adrp	x9, _S3C2410_SDIIMSK_CMDSENT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _S3C2410_SDIIMSK_CMDSENT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh12:
	adrp	x9, _S3C2410_SDIIMSK_RESPONSECRC@GOTPAGE
Lloh13:
	ldr	x9, [x9, _S3C2410_SDIIMSK_RESPONSECRC@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w1, w8, w9
	bl	_enable_imask
	ldr	x8, [x20, #16]
Lloh15:
	adrp	x21, _MMC_RSP_PRESENT@GOTPAGE
Lloh16:
	ldr	x21, [x21, _MMC_RSP_PRESENT@GOTPAGEOFF]
	cbz	x8, LBB0_2
; %bb.1:
Lloh17:
	adrp	x8, _COMPLETION_XFERFINISH_RSPFIN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _COMPLETION_XFERFINISH_RSPFIN@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
	ldr	w8, [x20]
	ldr	w9, [x21]
Lloh19:
	adrp	x10, _COMPLETION_RSPFIN@GOTPAGE
Lloh20:
	ldr	x10, [x10, _COMPLETION_RSPFIN@GOTPAGEOFF]
Lloh21:
	adrp	x11, _COMPLETION_CMDSENT@GOTPAGE
Lloh22:
	ldr	x11, [x11, _COMPLETION_CMDSENT@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x11, x10, eq
LBB0_3:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	ldr	w0, [x20, #4]
	ldr	x8, [x19]
Lloh23:
	adrp	x9, _S3C2410_SDICMDARG@GOTPAGE
Lloh24:
	ldr	x9, [x9, _S3C2410_SDICMDARG@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	w8, [x20, #8]
Lloh26:
	adrp	x9, _S3C2410_SDICMDCON_INDEX@GOTPAGE
Lloh27:
	ldr	x9, [x9, _S3C2410_SDICMDCON_INDEX@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh29:
	adrp	x9, _S3C2410_SDICMDCON_SENDERHOST@GOTPAGE
Lloh30:
	ldr	x9, [x9, _S3C2410_SDICMDCON_SENDERHOST@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
Lloh32:
	adrp	x10, _S3C2410_SDICMDCON_CMDSTART@GOTPAGE
Lloh33:
	ldr	x10, [x10, _S3C2410_SDICMDCON_CMDSTART@GOTPAGEOFF]
Lloh34:
	ldr	w10, [x10]
	ldr	w11, [x20]
	ldr	w12, [x21]
Lloh35:
	adrp	x13, _S3C2410_SDICMDCON_WAITRSP@GOTPAGE
Lloh36:
	ldr	x13, [x13, _S3C2410_SDICMDCON_WAITRSP@GOTPAGEOFF]
Lloh37:
	ldr	w13, [x13]
	tst	w12, w11
Lloh38:
	adrp	x12, _MMC_RSP_136@GOTPAGE
Lloh39:
	ldr	x12, [x12, _MMC_RSP_136@GOTPAGEOFF]
	csel	w13, wzr, w13, eq
Lloh40:
	ldr	w12, [x12]
Lloh41:
	adrp	x14, _S3C2410_SDICMDCON_LONGRSP@GOTPAGE
Lloh42:
	ldr	x14, [x14, _S3C2410_SDICMDCON_LONGRSP@GOTPAGEOFF]
Lloh43:
	ldr	w14, [x14]
	tst	w12, w11
	csel	w11, wzr, w14, eq
	orr	w8, w8, w9
	orr	w8, w8, w10
	orr	w8, w8, w13
	orr	w0, w8, w11
	ldr	x8, [x19]
Lloh44:
	adrp	x9, _S3C2410_SDICMDCON@GOTPAGE
Lloh45:
	ldr	x9, [x9, _S3C2410_SDICMDCON@GOTPAGEOFF]
Lloh46:
	ldr	x9, [x9]
	add	x1, x9, x8
	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
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_S3C2410_SDIIMSK_CRCSTATUS,4,2  ; @S3C2410_SDIIMSK_CRCSTATUS
	.comm	_S3C2410_SDIIMSK_CMDTIMEOUT,4,2 ; @S3C2410_SDIIMSK_CMDTIMEOUT
	.comm	_S3C2410_SDIIMSK_RESPONSEND,4,2 ; @S3C2410_SDIIMSK_RESPONSEND
	.comm	_S3C2410_SDIIMSK_CMDSENT,4,2    ; @S3C2410_SDIIMSK_CMDSENT
	.comm	_S3C2410_SDIIMSK_RESPONSECRC,4,2 ; @S3C2410_SDIIMSK_RESPONSECRC
	.comm	_COMPLETION_XFERFINISH_RSPFIN,4,2 ; @COMPLETION_XFERFINISH_RSPFIN
	.comm	_MMC_RSP_PRESENT,4,2            ; @MMC_RSP_PRESENT
	.comm	_COMPLETION_RSPFIN,4,2          ; @COMPLETION_RSPFIN
	.comm	_COMPLETION_CMDSENT,4,2         ; @COMPLETION_CMDSENT
	.comm	_S3C2410_SDICMDARG,8,3          ; @S3C2410_SDICMDARG
	.comm	_S3C2410_SDICMDCON_INDEX,4,2    ; @S3C2410_SDICMDCON_INDEX
	.comm	_S3C2410_SDICMDCON_SENDERHOST,4,2 ; @S3C2410_SDICMDCON_SENDERHOST
	.comm	_S3C2410_SDICMDCON_CMDSTART,4,2 ; @S3C2410_SDICMDCON_CMDSTART
	.comm	_S3C2410_SDICMDCON_WAITRSP,4,2  ; @S3C2410_SDICMDCON_WAITRSP
	.comm	_MMC_RSP_136,4,2                ; @MMC_RSP_136
	.comm	_S3C2410_SDICMDCON_LONGRSP,4,2  ; @S3C2410_SDICMDCON_LONGRSP
	.comm	_S3C2410_SDICMDCON,8,3          ; @S3C2410_SDICMDCON
	.no_dead_strip	_s3cmci_send_command
.subsections_via_symbols
