	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jz4780_dma_transfer_size
_jz4780_dma_transfer_size:              ## @jz4780_dma_transfer_size
	.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	%rdx, %r14
	movq	%rsi, %rbx
	callq	_jz4780_dma_chan_parent
	bsfq	%rbx, %rdx
	xorl	%ecx, %ecx
	cmpq	$1, %rbx
	sbbl	%ecx, %ecx
	orl	%edx, %ecx
	cmpl	$3, %ecx
	jne	LBB0_2
## %bb.1:
	movl	$2, (%r14)
	movq	_JZ_DMA_SIZE_4_BYTE@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_2:
	movq	(%rax), %rax
	movl	(%rax), %eax
	cmpl	%eax, %ecx
	cmovll	%ecx, %eax
	movl	%eax, (%r14)
	cmpl	$6, %eax
	ja	LBB0_3
## %bb.4:
	cltq
	leaq	l_switch.table.jz4780_dma_transfer_size(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_JZ_DMA_SIZE_128_BYTE@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_JZ_DMA_SIZE_1_BYTE,4,2         ## @JZ_DMA_SIZE_1_BYTE
	.comm	_JZ_DMA_SIZE_2_BYTE,4,2         ## @JZ_DMA_SIZE_2_BYTE
	.comm	_JZ_DMA_SIZE_4_BYTE,4,2         ## @JZ_DMA_SIZE_4_BYTE
	.comm	_JZ_DMA_SIZE_16_BYTE,4,2        ## @JZ_DMA_SIZE_16_BYTE
	.comm	_JZ_DMA_SIZE_32_BYTE,4,2        ## @JZ_DMA_SIZE_32_BYTE
	.comm	_JZ_DMA_SIZE_64_BYTE,4,2        ## @JZ_DMA_SIZE_64_BYTE
	.comm	_JZ_DMA_SIZE_128_BYTE,4,2       ## @JZ_DMA_SIZE_128_BYTE
	.no_dead_strip	_jz4780_dma_transfer_size
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.jz4780_dma_transfer_size
l_switch.table.jz4780_dma_transfer_size:
	.quad	_JZ_DMA_SIZE_1_BYTE
	.quad	_JZ_DMA_SIZE_2_BYTE
	.quad	_JZ_DMA_SIZE_4_BYTE
	.quad	_JZ_DMA_SIZE_128_BYTE
	.quad	_JZ_DMA_SIZE_16_BYTE
	.quad	_JZ_DMA_SIZE_32_BYTE
	.quad	_JZ_DMA_SIZE_64_BYTE

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function jz4780_dma_transfer_size
_jz4780_dma_transfer_size:              ; @jz4780_dma_transfer_size
	.cfi_startproc
; %bb.0:
	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	x19, x2
	mov	x20, x1
	bl	_jz4780_dma_chan_parent
	rbit	x8, x20
	clz	x8, x8
	cmp	x20, #0
	csinv	w8, w8, wzr, ne
	cmp	w8, #3
	b.ne	LBB0_2
; %bb.1:
	mov	w8, #2
	str	w8, [x19]
Lloh0:
	adrp	x8, _JZ_DMA_SIZE_4_BYTE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _JZ_DMA_SIZE_4_BYTE@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:
	ldr	x9, [x0]
	ldr	w9, [x9]
	cmp	w8, w9
	csel	w8, w8, w9, lt
	str	w8, [x19]
	cmp	w8, #6
	b.hi	LBB0_4
; %bb.3:
Lloh2:
	adrp	x9, l_switch.table.jz4780_dma_transfer_size@PAGE
Lloh3:
	add	x9, x9, l_switch.table.jz4780_dma_transfer_size@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	b	LBB0_5
LBB0_4:
Lloh4:
	adrp	x8, _JZ_DMA_SIZE_128_BYTE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _JZ_DMA_SIZE_128_BYTE@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_JZ_DMA_SIZE_1_BYTE,4,2         ; @JZ_DMA_SIZE_1_BYTE
	.comm	_JZ_DMA_SIZE_2_BYTE,4,2         ; @JZ_DMA_SIZE_2_BYTE
	.comm	_JZ_DMA_SIZE_4_BYTE,4,2         ; @JZ_DMA_SIZE_4_BYTE
	.comm	_JZ_DMA_SIZE_16_BYTE,4,2        ; @JZ_DMA_SIZE_16_BYTE
	.comm	_JZ_DMA_SIZE_32_BYTE,4,2        ; @JZ_DMA_SIZE_32_BYTE
	.comm	_JZ_DMA_SIZE_64_BYTE,4,2        ; @JZ_DMA_SIZE_64_BYTE
	.comm	_JZ_DMA_SIZE_128_BYTE,4,2       ; @JZ_DMA_SIZE_128_BYTE
	.no_dead_strip	_jz4780_dma_transfer_size
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.jz4780_dma_transfer_size
l_switch.table.jz4780_dma_transfer_size:
	.quad	_JZ_DMA_SIZE_1_BYTE
	.quad	_JZ_DMA_SIZE_2_BYTE
	.quad	_JZ_DMA_SIZE_4_BYTE
	.quad	_JZ_DMA_SIZE_128_BYTE
	.quad	_JZ_DMA_SIZE_16_BYTE
	.quad	_JZ_DMA_SIZE_32_BYTE
	.quad	_JZ_DMA_SIZE_64_BYTE

.subsections_via_symbols
