	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ep93xx_dma_slave_config_write
_ep93xx_dma_slave_config_write:         ## @ep93xx_dma_slave_config_write
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %ebx
	callq	_to_ep93xx_dma_chan
	movq	%rax, %r14
	movq	24(%rax), %rax
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.2:
	cmpl	$131, %ebx
	je	LBB0_5
## %bb.3:
	cmpl	$132, %ebx
	jne	LBB0_1
## %bb.4:
	movq	%r15, %rax
	addq	$16, %rax
	jmp	LBB0_6
LBB0_5:
	movq	%r15, %rax
	addq	$4, %r15
	addq	$8, %rax
LBB0_6:
	movq	(%rax), %r12
	movl	(%r15), %eax
	cmpl	$128, %eax
	je	LBB0_11
## %bb.7:
	cmpl	$130, %eax
	je	LBB0_8
## %bb.9:
	cmpl	$129, %eax
	jne	LBB0_1
## %bb.10:
	movq	_M2M_CONTROL_PW_16@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_14
LBB0_11:
	movq	_M2M_CONTROL_PW_32@GOTPCREL(%rip), %rax
LBB0_12:
	movq	(%rax), %rbx
	jmp	LBB0_13
LBB0_8:
	xorl	%ebx, %ebx
LBB0_13:
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	%r12, 16(%r14)
	movq	%rbx, 8(%r14)
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
LBB0_14:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_M2M_CONTROL_PW_16,8,3          ## @M2M_CONTROL_PW_16
	.comm	_M2M_CONTROL_PW_32,8,3          ## @M2M_CONTROL_PW_32
	.no_dead_strip	_ep93xx_dma_slave_config_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ep93xx_dma_slave_config_write
_ep93xx_dma_slave_config_write:         ; @ep93xx_dma_slave_config_write
	.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, x2
	mov	x21, x1
	bl	_to_ep93xx_dma_chan
	ldr	x8, [x0, #24]
	ldr	w8, [x8]
	cbz	w8, LBB0_9
; %bb.1:
	mov	x19, x0
	cmp	w21, #131
	b.eq	LBB0_4
; %bb.2:
	cmp	w21, #132
	b.ne	LBB0_9
; %bb.3:
	add	x8, x20, #16
	b	LBB0_5
LBB0_4:
	add	x8, x20, #8
	add	x20, x20, #4
LBB0_5:
	ldr	x21, [x8]
	ldr	w8, [x20]
	cmp	w8, #128
	b.eq	LBB0_10
; %bb.6:
	cmp	w8, #130
	b.eq	LBB0_12
; %bb.7:
	cmp	w8, #129
	b.ne	LBB0_9
; %bb.8:
Lloh0:
	adrp	x8, _M2M_CONTROL_PW_16@GOTPAGE
Lloh1:
	ldr	x8, [x8, _M2M_CONTROL_PW_16@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_14
LBB0_10:
Lloh5:
	adrp	x8, _M2M_CONTROL_PW_32@GOTPAGE
Lloh6:
	ldr	x8, [x8, _M2M_CONTROL_PW_32@GOTPAGEOFF]
LBB0_11:
	ldr	x20, [x8]
	b	LBB0_13
LBB0_12:
	mov	x20, #0
LBB0_13:
	mov	x0, x19
	bl	_spin_lock_irqsave
	stp	x20, x21, [x19, #8]
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	w0, #0
LBB0_14:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_M2M_CONTROL_PW_16,8,3          ; @M2M_CONTROL_PW_16
	.comm	_M2M_CONTROL_PW_32,8,3          ; @M2M_CONTROL_PW_32
	.no_dead_strip	_ep93xx_dma_slave_config_write
.subsections_via_symbols
