	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function idma32_prepare_ctllo
_idma32_prepare_ctllo:                  ## @idma32_prepare_ctllo
	.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	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_is_slave_direction
	leaq	4(%rbx), %rcx
	addq	$8, %rbx
	testl	%eax, %eax
	movq	_IDMA32_MSIZE_8@GOTPCREL(%rip), %rax
	cmoveq	%rax, %rbx
	movl	(%rbx), %r14d
	cmoveq	%rax, %rcx
	movl	(%rcx), %edi
	movq	_DWC_CTLL_LLP_D_EN@GOTPCREL(%rip), %rax
	movq	_DWC_CTLL_LLP_S_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	orl	(%rax), %r15d
	callq	_DWC_CTLL_DST_MSIZE
	movl	%eax, %ebx
	orl	%r15d, %ebx
	movl	%r14d, %edi
	callq	_DWC_CTLL_SRC_MSIZE
	orl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IDMA32_MSIZE_8,4,2             ## @IDMA32_MSIZE_8
	.comm	_DWC_CTLL_LLP_D_EN,4,2          ## @DWC_CTLL_LLP_D_EN
	.comm	_DWC_CTLL_LLP_S_EN,4,2          ## @DWC_CTLL_LLP_S_EN
	.no_dead_strip	_idma32_prepare_ctllo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function idma32_prepare_ctllo
_idma32_prepare_ctllo:                  ; @idma32_prepare_ctllo
	.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, x0
	mov	x20, x0
	ldr	w0, [x20], #8
	bl	_is_slave_direction
	add	x8, x19, #4
Lloh0:
	adrp	x9, _IDMA32_MSIZE_8@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IDMA32_MSIZE_8@GOTPAGEOFF]
	cmp	w0, #0
	csel	x10, x9, x20, eq
	ldr	w19, [x10]
	csel	x8, x9, x8, eq
Lloh2:
	adrp	x9, _DWC_CTLL_LLP_D_EN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DWC_CTLL_LLP_D_EN@GOTPAGEOFF]
	ldr	w0, [x8]
Lloh4:
	ldr	w8, [x9]
Lloh5:
	adrp	x9, _DWC_CTLL_LLP_S_EN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _DWC_CTLL_LLP_S_EN@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w20, w9, w8
	bl	_DWC_CTLL_DST_MSIZE
	orr	w20, w20, w0
	mov	x0, x19
	bl	_DWC_CTLL_SRC_MSIZE
	orr	w0, w20, w0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_IDMA32_MSIZE_8,4,2             ; @IDMA32_MSIZE_8
	.comm	_DWC_CTLL_LLP_D_EN,4,2          ; @DWC_CTLL_LLP_D_EN
	.comm	_DWC_CTLL_LLP_S_EN,4,2          ; @DWC_CTLL_LLP_S_EN
	.no_dead_strip	_idma32_prepare_ctllo
.subsections_via_symbols
