	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdhci_set_transfer_mode
_sdhci_set_transfer_mode:               ## @sdhci_set_transfer_mode
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movl	$0, -28(%rbp)
	movq	16(%rsi), %r15
	testq	%r15, %r15
	je	LBB0_1
## %bb.6:
	xorl	%edi, %edi
	cmpl	$0, 8(%r14)
	sete	%dil
	callq	_WARN_ON
	movq	_SDHCI_QUIRK2_SUPPORT_SINGLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	jne	LBB0_8
## %bb.7:
	movq	_SDHCI_TRNS_BLK_CNT_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -28(%rbp)
LBB0_8:
	movq	(%rbx), %rdi
	callq	_mmc_op_multi
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	cmpl	$2, (%r15)
	jl	LBB0_13
LBB0_10:
	movq	_SDHCI_TRNS_BLK_CNT_EN@GOTPCREL(%rip), %rax
	movq	_SDHCI_TRNS_MULTI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, -28(%rbp)
	leaq	-28(%rbp), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_sdhci_auto_cmd_select
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	movq	_SDHCI_AUTO_CMD23@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 4(%r14)
	je	LBB0_13
## %bb.12:
	movl	(%rax), %esi
	movq	_SDHCI_ARGUMENT2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_sdhci_writel
LBB0_13:
	movq	_MMC_DATA_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r15)
	je	LBB0_15
## %bb.14:
	movq	_SDHCI_TRNS_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -28(%rbp)
LBB0_15:
	movq	_SDHCI_REQ_USE_DMA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r14)
	je	LBB0_16
## %bb.17:
	movq	_SDHCI_TRNS_DMA@GOTPCREL(%rip), %rax
	movl	-28(%rbp), %esi
	orl	(%rax), %esi
	movl	%esi, -28(%rbp)
	jmp	LBB0_18
LBB0_1:
	movq	_SDHCI_QUIRK2_CLEAR_TRANSFERMODE_REG_BEFORE_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_5
## %bb.2:
	movq	(%rbx), %rax
	movq	_MMC_SEND_TUNING_BLOCK_HS200@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_19
## %bb.3:
	movq	_SDHCI_TRANSFER_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	jmp	LBB0_4
LBB0_16:
	movl	-28(%rbp), %esi
LBB0_18:
	movq	_SDHCI_TRANSFER_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_sdhci_writew
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_SDHCI_TRANSFER_MODE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_sdhci_readw
	movq	_SDHCI_TRNS_AUTO_CMD12@GOTPCREL(%rip), %rcx
	movq	_SDHCI_TRNS_AUTO_CMD23@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movl	(%rbx), %edx
	movq	%r14, %rdi
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sdhci_writew                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SDHCI_QUIRK2_CLEAR_TRANSFERMODE_REG_BEFORE_CMD,4,2 ## @SDHCI_QUIRK2_CLEAR_TRANSFERMODE_REG_BEFORE_CMD
	.comm	_MMC_SEND_TUNING_BLOCK_HS200,8,3 ## @MMC_SEND_TUNING_BLOCK_HS200
	.comm	_SDHCI_TRANSFER_MODE,4,2        ## @SDHCI_TRANSFER_MODE
	.comm	_SDHCI_TRNS_AUTO_CMD12,4,2      ## @SDHCI_TRNS_AUTO_CMD12
	.comm	_SDHCI_TRNS_AUTO_CMD23,4,2      ## @SDHCI_TRNS_AUTO_CMD23
	.comm	_SDHCI_QUIRK2_SUPPORT_SINGLE,4,2 ## @SDHCI_QUIRK2_SUPPORT_SINGLE
	.comm	_SDHCI_TRNS_BLK_CNT_EN,4,2      ## @SDHCI_TRNS_BLK_CNT_EN
	.comm	_SDHCI_TRNS_MULTI,4,2           ## @SDHCI_TRNS_MULTI
	.comm	_SDHCI_AUTO_CMD23,4,2           ## @SDHCI_AUTO_CMD23
	.comm	_SDHCI_ARGUMENT2,4,2            ## @SDHCI_ARGUMENT2
	.comm	_MMC_DATA_READ,4,2              ## @MMC_DATA_READ
	.comm	_SDHCI_TRNS_READ,4,2            ## @SDHCI_TRNS_READ
	.comm	_SDHCI_REQ_USE_DMA,4,2          ## @SDHCI_REQ_USE_DMA
	.comm	_SDHCI_TRNS_DMA,4,2             ## @SDHCI_TRNS_DMA
	.no_dead_strip	_sdhci_set_transfer_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdhci_set_transfer_mode
_sdhci_set_transfer_mode:               ; @sdhci_set_transfer_mode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	str	wzr, [sp, #12]
	ldr	x21, [x1, #16]
	cbz	x21, LBB0_12
; %bb.1:
	ldr	w8, [x19, #8]
	cmp	w8, #0
	cset	w0, eq
	bl	_WARN_ON
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _SDHCI_QUIRK2_SUPPORT_SINGLE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SDHCI_QUIRK2_SUPPORT_SINGLE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x22, _SDHCI_TRNS_BLK_CNT_EN@GOTPAGE
Lloh4:
	ldr	x22, [x22, _SDHCI_TRNS_BLK_CNT_EN@GOTPAGEOFF]
	tst	w9, w8
	b.ne	LBB0_3
; %bb.2:
	ldr	w8, [x22]
	str	w8, [sp, #12]
LBB0_3:
	ldr	x0, [x20]
	bl	_mmc_op_multi
	cbnz	x0, LBB0_5
; %bb.4:
	ldr	w8, [x21]
	cmp	w8, #2
	b.lt	LBB0_8
LBB0_5:
	ldr	w8, [x22]
Lloh5:
	adrp	x9, _SDHCI_TRNS_MULTI@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SDHCI_TRNS_MULTI@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [sp, #12]
	add	x2, sp, #12
	mov	x0, x19
	mov	x1, x20
	bl	_sdhci_auto_cmd_select
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.6:
	ldr	w9, [x19, #4]
Lloh8:
	adrp	x10, _SDHCI_AUTO_CMD23@GOTPAGE
Lloh9:
	ldr	x10, [x10, _SDHCI_AUTO_CMD23@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_8
; %bb.7:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _SDHCI_ARGUMENT2@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SDHCI_ARGUMENT2@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_sdhci_writel
LBB0_8:
	ldr	w8, [x21, #4]
Lloh14:
	adrp	x9, _MMC_DATA_READ@GOTPAGE
Lloh15:
	ldr	x9, [x9, _MMC_DATA_READ@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
Lloh17:
	adrp	x8, _SDHCI_TRNS_READ@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SDHCI_TRNS_READ@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	orr	w8, w9, w8
	str	w8, [sp, #12]
LBB0_10:
	ldr	w8, [x19, #4]
Lloh20:
	adrp	x9, _SDHCI_REQ_USE_DMA@GOTPAGE
Lloh21:
	ldr	x9, [x9, _SDHCI_REQ_USE_DMA@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.11:
Lloh23:
	adrp	x8, _SDHCI_TRNS_DMA@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SDHCI_TRNS_DMA@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	orr	w1, w9, w8
	str	w1, [sp, #12]
	b	LBB0_16
LBB0_12:
	ldr	w8, [x19]
Lloh26:
	adrp	x9, _SDHCI_QUIRK2_CLEAR_TRANSFERMODE_REG_BEFORE_CMD@GOTPAGE
Lloh27:
	ldr	x9, [x9, _SDHCI_QUIRK2_CLEAR_TRANSFERMODE_REG_BEFORE_CMD@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_18
; %bb.13:
	ldr	x8, [x20]
Lloh29:
	adrp	x9, _MMC_SEND_TUNING_BLOCK_HS200@GOTPAGE
Lloh30:
	ldr	x9, [x9, _MMC_SEND_TUNING_BLOCK_HS200@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_17
; %bb.14:
Lloh32:
	adrp	x8, _SDHCI_TRANSFER_MODE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _SDHCI_TRANSFER_MODE@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	b	LBB0_19
LBB0_15:
	ldr	w1, [sp, #12]
LBB0_16:
Lloh35:
	adrp	x8, _SDHCI_TRANSFER_MODE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _SDHCI_TRANSFER_MODE@GOTPAGEOFF]
Lloh37:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_sdhci_writew
LBB0_17:
	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
	add	sp, sp, #64
	ret
LBB0_18:
Lloh38:
	adrp	x20, _SDHCI_TRANSFER_MODE@GOTPAGE
Lloh39:
	ldr	x20, [x20, _SDHCI_TRANSFER_MODE@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_sdhci_readw
Lloh40:
	adrp	x8, _SDHCI_TRNS_AUTO_CMD12@GOTPAGE
Lloh41:
	ldr	x8, [x8, _SDHCI_TRNS_AUTO_CMD12@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
Lloh43:
	adrp	x9, _SDHCI_TRNS_AUTO_CMD23@GOTPAGE
Lloh44:
	ldr	x9, [x9, _SDHCI_TRNS_AUTO_CMD23@GOTPAGEOFF]
Lloh45:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w1, w0, w8
	ldr	w2, [x20]
	mov	x0, x19
LBB0_19:
	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
	add	sp, sp, #64
	b	_sdhci_writew
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_SDHCI_QUIRK2_CLEAR_TRANSFERMODE_REG_BEFORE_CMD,4,2 ; @SDHCI_QUIRK2_CLEAR_TRANSFERMODE_REG_BEFORE_CMD
	.comm	_MMC_SEND_TUNING_BLOCK_HS200,8,3 ; @MMC_SEND_TUNING_BLOCK_HS200
	.comm	_SDHCI_TRANSFER_MODE,4,2        ; @SDHCI_TRANSFER_MODE
	.comm	_SDHCI_TRNS_AUTO_CMD12,4,2      ; @SDHCI_TRNS_AUTO_CMD12
	.comm	_SDHCI_TRNS_AUTO_CMD23,4,2      ; @SDHCI_TRNS_AUTO_CMD23
	.comm	_SDHCI_QUIRK2_SUPPORT_SINGLE,4,2 ; @SDHCI_QUIRK2_SUPPORT_SINGLE
	.comm	_SDHCI_TRNS_BLK_CNT_EN,4,2      ; @SDHCI_TRNS_BLK_CNT_EN
	.comm	_SDHCI_TRNS_MULTI,4,2           ; @SDHCI_TRNS_MULTI
	.comm	_SDHCI_AUTO_CMD23,4,2           ; @SDHCI_AUTO_CMD23
	.comm	_SDHCI_ARGUMENT2,4,2            ; @SDHCI_ARGUMENT2
	.comm	_MMC_DATA_READ,4,2              ; @MMC_DATA_READ
	.comm	_SDHCI_TRNS_READ,4,2            ; @SDHCI_TRNS_READ
	.comm	_SDHCI_REQ_USE_DMA,4,2          ; @SDHCI_REQ_USE_DMA
	.comm	_SDHCI_TRNS_DMA,4,2             ; @SDHCI_TRNS_DMA
	.no_dead_strip	_sdhci_set_transfer_mode
.subsections_via_symbols
