	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function it821x_set_dma_mode
_it821x_set_dma_mode:                   ## @it821x_set_dma_mode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_XFER_UDMA_0@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rsi, %rax
	jg	LBB0_2
## %bb.1:
	movq	_XFER_UDMA_6@GOTPCREL(%rip), %rcx
	cmpq	%rsi, (%rcx)
	jl	LBB0_2
## %bb.5:
	subq	%rax, %rsi
	popq	%rbp
	jmp	_it821x_tune_udma               ## TAILCALL
LBB0_2:
	movq	_XFER_MW_DMA_0@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rsi, %rax
	jg	LBB0_4
## %bb.3:
	movq	_XFER_MW_DMA_2@GOTPCREL(%rip), %rcx
	cmpq	%rsi, (%rcx)
	jl	LBB0_4
## %bb.6:
	subq	%rax, %rsi
	popq	%rbp
	jmp	_it821x_tune_mwdma              ## TAILCALL
LBB0_4:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XFER_UDMA_0,8,3                ## @XFER_UDMA_0
	.comm	_XFER_UDMA_6,8,3                ## @XFER_UDMA_6
	.comm	_XFER_MW_DMA_0,8,3              ## @XFER_MW_DMA_0
	.comm	_XFER_MW_DMA_2,8,3              ## @XFER_MW_DMA_2
	.no_dead_strip	_it821x_set_dma_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function it821x_set_dma_mode
_it821x_set_dma_mode:                   ; @it821x_set_dma_mode
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _XFER_UDMA_0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XFER_UDMA_0@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _XFER_UDMA_6@GOTPAGE
Lloh4:
	ldr	x9, [x9, _XFER_UDMA_6@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x1
	ccmp	x9, x1, #8, le
	b.ge	LBB0_3
; %bb.1:
Lloh6:
	adrp	x8, _XFER_MW_DMA_0@GOTPAGE
Lloh7:
	ldr	x8, [x8, _XFER_MW_DMA_0@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _XFER_MW_DMA_2@GOTPAGE
Lloh10:
	ldr	x9, [x9, _XFER_MW_DMA_2@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x1
	ccmp	x9, x1, #8, le
	b.ge	LBB0_4
; %bb.2:
	ret
LBB0_3:
	sub	x1, x1, x8
	b	_it821x_tune_udma
LBB0_4:
	sub	x1, x1, x8
	b	_it821x_tune_mwdma
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_XFER_UDMA_0,8,3                ; @XFER_UDMA_0
	.comm	_XFER_UDMA_6,8,3                ; @XFER_UDMA_6
	.comm	_XFER_MW_DMA_0,8,3              ; @XFER_MW_DMA_0
	.comm	_XFER_MW_DMA_2,8,3              ; @XFER_MW_DMA_2
	.no_dead_strip	_it821x_set_dma_mode
.subsections_via_symbols
