	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpc_dma_device_config
_mpc_dma_device_config:                 ## @mpc_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	callq	_dma_chan_to_mpc_dma_chan
	movq	%rax, %r14
	leaq	28(%rax), %rdi
	callq	_dma_chan_to_mpc_dma
	movq	%rax, %r15
	movl	16(%rbx), %esi
	movl	20(%rbx), %edi
	callq	_IS_ALIGNED
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	8(%rbx), %esi
	movl	12(%rbx), %edi
	callq	_IS_ALIGNED
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movl	16(%rbx), %edi
	movl	(%r15), %esi
	callq	_is_buswidth_valid
	testl	%eax, %eax
	je	LBB0_2
## %bb.4:
	movl	8(%rbx), %edi
	movl	(%r15), %esi
	callq	_is_buswidth_valid
	testl	%eax, %eax
	je	LBB0_2
## %bb.5:
	movq	%r14, %r15
	addq	$8, %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movl	(%rbx), %ecx
	movl	%ecx, (%r14)
	movl	4(%rbx), %eax
	movl	%eax, 4(%r14)
	movups	8(%rbx), %xmm0
	movups	%xmm0, 12(%r14)
	testl	%ecx, %ecx
	je	LBB0_6
## %bb.7:
	testl	%eax, %eax
	je	LBB0_8
LBB0_9:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	$1, (%r14)
	testl	%eax, %eax
	jne	LBB0_9
LBB0_8:
	movl	$1, 4(%r14)
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_mpc_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 mpc_dma_device_config
_mpc_dma_device_config:                 ; @mpc_dma_device_config
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	bl	_dma_chan_to_mpc_dma_chan
	mov	x19, x0
	add	x0, x0, #28
	bl	_dma_chan_to_mpc_dma
	mov	x21, x0
	ldp	w1, w0, [x20, #16]
	bl	_IS_ALIGNED
	cbz	w0, LBB0_7
; %bb.1:
	ldp	w1, w0, [x20, #8]
	bl	_IS_ALIGNED
	cbz	w0, LBB0_7
; %bb.2:
	ldr	w0, [x20, #16]
	ldr	w1, [x21]
	bl	_is_buswidth_valid
	cbz	w0, LBB0_7
; %bb.3:
	ldr	w0, [x20, #8]
	ldr	w1, [x21]
	bl	_is_buswidth_valid
	cbz	w0, LBB0_7
; %bb.4:
	add	x21, x19, #8
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldp	w9, w8, [x20]
	stp	w9, w8, [x19]
	ldur	q0, [x20, #8]
	stur	q0, [x19, #12]
	cbz	w9, LBB0_9
; %bb.5:
	cbz	w8, LBB0_10
LBB0_6:
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	mov	w0, #0
	b	LBB0_8
LBB0_7:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_9:
	mov	w9, #1
	str	w9, [x19]
	cbnz	w8, LBB0_6
LBB0_10:
	mov	w8, #1
	str	w8, [x19, #4]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_mpc_dma_device_config
.subsections_via_symbols
