	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fsl_dma_device_config
_fsl_dma_device_config:                 ## @fsl_dma_device_config
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.3:
	movq	%rsi, %rbx
	callq	_to_fsl_chan
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.5:
	movq	(%rbx), %rdx
	movq	_DMA_MEM_TO_DEV@GOTPCREL(%rip), %rsi
	xorl	%edi, %edi
	cmpq	(%rsi), %rdx
	setne	%dil
	movl	12(%rbx,%rdi,8), %esi
	imull	8(%rbx,%rdi,8), %esi
	movq	%rax, %rdi
	callq	*%rcx
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_4:
	movq	_ENXIO@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_DMA_MEM_TO_DEV,8,3             ## @DMA_MEM_TO_DEV
	.no_dead_strip	_fsl_dma_device_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fsl_dma_device_config
_fsl_dma_device_config:                 ; @fsl_dma_device_config
	.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
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x1
	bl	_to_fsl_chan
	ldr	x8, [x0]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	x9, [x19]
Lloh0:
	adrp	x10, _DMA_MEM_TO_DEV@GOTPAGE
Lloh1:
	ldr	x10, [x10, _DMA_MEM_TO_DEV@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	mov	w11, #20
	mov	w12, #12
	cmp	x9, x10
	csel	x9, x12, x11, eq
	mov	w10, #16
	mov	w11, #8
	csel	x10, x11, x10, eq
	ldr	w10, [x19, x10]
	ldr	w9, [x19, x9]
	mul	w1, w9, w10
	blr	x8
	mov	w0, #0
	b	LBB0_6
LBB0_3:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh5:
	adrp	x8, _ENXIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_DMA_MEM_TO_DEV,8,3             ; @DMA_MEM_TO_DEV
	.no_dead_strip	_fsl_dma_device_config
.subsections_via_symbols
