	.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:
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.1:
	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	%rsi, %rbx
	movq	%rdi, %r14
	xorl	%edi, %edi
	cmpl	$0, 4(%r14)
	sete	%dil
	callq	_WARN_ON
	movq	_SDHCI_TRNS_BLK_CNT_EN@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	cmpl	$2, (%rbx)
	jl	LBB0_3
## %bb.2:
	movq	_SDHCI_TRNS_MULTI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
LBB0_3:
	orl	(%rax), %esi
	movq	_MMC_DATA_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	4(%rbx), %eax
	je	LBB0_5
## %bb.4:
	movq	_SDHCI_TRNS_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_5:
	orl	%eax, %esi
	movq	_SDHCI_REQ_USE_DMA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r14), %eax
	je	LBB0_7
## %bb.6:
	movq	_SDHCI_TRNS_DMA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_7:
	orl	%eax, %esi
	movq	_SDHCI_TRANSFER_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_sdhci_writew                   ## TAILCALL
LBB0_8:
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SDHCI_TRNS_BLK_CNT_EN,4,2      ## @SDHCI_TRNS_BLK_CNT_EN
	.comm	_SDHCI_TRNS_MULTI,4,2           ## @SDHCI_TRNS_MULTI
	.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
	.comm	_SDHCI_TRANSFER_MODE,4,2        ## @SDHCI_TRANSFER_MODE
	.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:
	cbz	x1, LBB0_2
; %bb.1:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	ldr	w8, [x0, #4]
	cmp	w8, #0
	cset	w0, eq
	bl	_WARN_ON
Lloh0:
	adrp	x8, _SDHCI_TRNS_BLK_CNT_EN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SDHCI_TRNS_BLK_CNT_EN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _SDHCI_TRNS_MULTI@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SDHCI_TRNS_MULTI@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	ldp	w10, w11, [x20]
	cmp	w10, #1
	csel	w9, w9, wzr, gt
Lloh6:
	adrp	x10, _MMC_DATA_READ@GOTPAGE
Lloh7:
	ldr	x10, [x10, _MMC_DATA_READ@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh8:
	ldr	w9, [x10]
Lloh9:
	adrp	x10, _SDHCI_TRNS_READ@GOTPAGE
Lloh10:
	ldr	x10, [x10, _SDHCI_TRNS_READ@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	tst	w9, w11
	csel	w9, wzr, w10, eq
	orr	w8, w8, w9
	ldr	w9, [x19]
Lloh12:
	adrp	x10, _SDHCI_REQ_USE_DMA@GOTPAGE
Lloh13:
	ldr	x10, [x10, _SDHCI_REQ_USE_DMA@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
Lloh15:
	adrp	x11, _SDHCI_TRNS_DMA@GOTPAGE
Lloh16:
	ldr	x11, [x11, _SDHCI_TRNS_DMA@GOTPAGEOFF]
Lloh17:
	ldr	w11, [x11]
	tst	w10, w9
	csel	w9, wzr, w11, eq
	orr	w1, w8, w9
Lloh18:
	adrp	x8, _SDHCI_TRANSFER_MODE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SDHCI_TRANSFER_MODE@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_sdhci_writew
LBB0_2:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	ret
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.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
	.cfi_endproc
                                        ; -- End function
	.comm	_SDHCI_TRNS_BLK_CNT_EN,4,2      ; @SDHCI_TRNS_BLK_CNT_EN
	.comm	_SDHCI_TRNS_MULTI,4,2           ; @SDHCI_TRNS_MULTI
	.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
	.comm	_SDHCI_TRANSFER_MODE,4,2        ; @SDHCI_TRANSFER_MODE
	.no_dead_strip	_sdhci_set_transfer_mode
.subsections_via_symbols
