	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function moxart_slave_config
_moxart_slave_config:                   ## @moxart_slave_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	_to_moxart_dma_chan
	movq	%rax, %r14
	movups	(%rbx), %xmm0
	movups	%xmm0, 16(%rax)
	movq	_REG_OFF_CTRL@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	8(%rax), %rdi
	callq	_readl
	movq	_APB_DMA_BURST_MODE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_APB_DMA_DEST_MASK@GOTPCREL(%rip), %rdx
	movq	_APB_DMA_SOURCE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_APB_DMA_DEST_REQ_NO_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_APB_DMA_SOURCE_REQ_NO_MASK@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	(%rdx), %edi
	movl	%ecx, %edx
	orl	%esi, %edx
	orl	%edi, %edx
	notl	%edx
	andl	%eax, %edx
	movl	16(%r14), %eax
	cmpl	$128, %eax
	je	LBB0_12
## %bb.1:
	cmpl	$129, %eax
	je	LBB0_9
## %bb.2:
	cmpl	$130, %eax
	jne	LBB0_17
## %bb.3:
	movq	_APB_DMA_DATA_WIDTH_1@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	24(%r14), %rax
	movq	_DMA_MEM_TO_DEV@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rdi
	cmpq	%rdi, %rax
	jne	LBB0_4
## %bb.8:
	movq	_APB_DMA_SOURCE_INC_1_4@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_12:
	movq	_APB_DMA_DATA_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %edx
	movq	24(%r14), %rax
	movq	_DMA_MEM_TO_DEV@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rdi
	cmpq	%rdi, %rax
	jne	LBB0_13
## %bb.14:
	movq	_APB_DMA_SOURCE_INC_4_16@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_9:
	movq	_APB_DMA_DATA_WIDTH_2@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	24(%r14), %rax
	movq	_DMA_MEM_TO_DEV@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rdi
	cmpq	%rdi, %rax
	jne	LBB0_10
## %bb.11:
	movq	_APB_DMA_SOURCE_INC_2_8@GOTPCREL(%rip), %rax
LBB0_15:
	orl	(%rax), %edx
	jmp	LBB0_16
LBB0_17:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_18
LBB0_13:
	movq	_APB_DMA_DEST_INC_4_16@GOTPCREL(%rip), %rbx
	jmp	LBB0_5
LBB0_10:
	movq	_APB_DMA_DEST_INC_2_8@GOTPCREL(%rip), %rbx
	jmp	LBB0_5
LBB0_4:
	movq	_APB_DMA_DEST_INC_1_4@GOTPCREL(%rip), %rbx
LBB0_5:
	orl	(%rbx), %edx
	cmpq	%rdi, %rax
	jne	LBB0_6
LBB0_16:
	movq	_APB_DMA_DEST_SELECT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%edx, %eax
	movq	_APB_DMA_SOURCE_SELECT@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
	movl	(%r14), %edi
	shll	$16, %edi
	andl	%ecx, %edi
	jmp	LBB0_7
LBB0_6:
	movq	_APB_DMA_DEST_SELECT@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_APB_DMA_SOURCE_SELECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	notl	%edi
	andl	%edx, %edi
	movl	(%r14), %eax
	shll	$24, %eax
	andl	%esi, %eax
LBB0_7:
	orl	%eax, %edi
	movq	(%r15), %rsi
	addq	8(%r14), %rsi
	callq	_writel
	xorl	%eax, %eax
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_OFF_CTRL,8,3               ## @REG_OFF_CTRL
	.comm	_APB_DMA_BURST_MODE,4,2         ## @APB_DMA_BURST_MODE
	.comm	_APB_DMA_DEST_MASK,4,2          ## @APB_DMA_DEST_MASK
	.comm	_APB_DMA_SOURCE_MASK,4,2        ## @APB_DMA_SOURCE_MASK
	.comm	_APB_DMA_DEST_REQ_NO_MASK,4,2   ## @APB_DMA_DEST_REQ_NO_MASK
	.comm	_APB_DMA_SOURCE_REQ_NO_MASK,4,2 ## @APB_DMA_SOURCE_REQ_NO_MASK
	.comm	_APB_DMA_DATA_WIDTH_1,4,2       ## @APB_DMA_DATA_WIDTH_1
	.comm	_DMA_MEM_TO_DEV,8,3             ## @DMA_MEM_TO_DEV
	.comm	_APB_DMA_DEST_INC_1_4,4,2       ## @APB_DMA_DEST_INC_1_4
	.comm	_APB_DMA_SOURCE_INC_1_4,4,2     ## @APB_DMA_SOURCE_INC_1_4
	.comm	_APB_DMA_DATA_WIDTH_2,4,2       ## @APB_DMA_DATA_WIDTH_2
	.comm	_APB_DMA_DEST_INC_2_8,4,2       ## @APB_DMA_DEST_INC_2_8
	.comm	_APB_DMA_SOURCE_INC_2_8,4,2     ## @APB_DMA_SOURCE_INC_2_8
	.comm	_APB_DMA_DATA_WIDTH,4,2         ## @APB_DMA_DATA_WIDTH
	.comm	_APB_DMA_DEST_INC_4_16,4,2      ## @APB_DMA_DEST_INC_4_16
	.comm	_APB_DMA_SOURCE_INC_4_16,4,2    ## @APB_DMA_SOURCE_INC_4_16
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_APB_DMA_DEST_SELECT,4,2        ## @APB_DMA_DEST_SELECT
	.comm	_APB_DMA_SOURCE_SELECT,4,2      ## @APB_DMA_SOURCE_SELECT
	.no_dead_strip	_moxart_slave_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function moxart_slave_config
_moxart_slave_config:                   ; @moxart_slave_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
	mov	x20, x1
	bl	_to_moxart_dma_chan
	mov	x19, x0
	ldr	q0, [x20]
	str	q0, [x0, #16]
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x20, _REG_OFF_CTRL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _REG_OFF_CTRL@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
Lloh2:
	adrp	x8, _APB_DMA_BURST_MODE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _APB_DMA_BURST_MODE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	orr	w10, w8, w0
Lloh5:
	adrp	x8, _APB_DMA_DEST_MASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _APB_DMA_DEST_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w11, [x8]
Lloh8:
	adrp	x8, _APB_DMA_SOURCE_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _APB_DMA_SOURCE_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w12, [x8]
Lloh11:
	adrp	x8, _APB_DMA_DEST_REQ_NO_MASK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _APB_DMA_DEST_REQ_NO_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _APB_DMA_SOURCE_REQ_NO_MASK@GOTPAGE
Lloh15:
	ldr	x9, [x9, _APB_DMA_SOURCE_REQ_NO_MASK@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w11, w12, w11
	orr	w11, w11, w8
	orr	w11, w11, w9
	bic	w10, w10, w11
	ldr	w11, [x19, #16]
	cmp	w11, #128
	b.eq	LBB0_5
; %bb.1:
	cmp	w11, #129
	b.eq	LBB0_7
; %bb.2:
	cmp	w11, #130
	b.ne	LBB0_10
; %bb.3:
Lloh17:
	adrp	x11, _APB_DMA_DATA_WIDTH_1@GOTPAGE
Lloh18:
	ldr	x11, [x11, _APB_DMA_DATA_WIDTH_1@GOTPAGEOFF]
Lloh19:
	ldr	w11, [x11]
	orr	w10, w11, w10
	ldr	x11, [x19, #24]
Lloh20:
	adrp	x12, _DMA_MEM_TO_DEV@GOTPAGE
Lloh21:
	ldr	x12, [x12, _DMA_MEM_TO_DEV@GOTPAGEOFF]
Lloh22:
	ldr	x12, [x12]
	cmp	x11, x12
	b.ne	LBB0_13
; %bb.4:
Lloh23:
	adrp	x9, _APB_DMA_SOURCE_INC_1_4@GOTPAGE
Lloh24:
	ldr	x9, [x9, _APB_DMA_SOURCE_INC_1_4@GOTPAGEOFF]
	b	LBB0_9
LBB0_5:
Lloh25:
	adrp	x11, _APB_DMA_DATA_WIDTH@GOTPAGE
Lloh26:
	ldr	x11, [x11, _APB_DMA_DATA_WIDTH@GOTPAGEOFF]
Lloh27:
	ldr	w11, [x11]
	bic	w10, w10, w11
	ldr	x11, [x19, #24]
Lloh28:
	adrp	x12, _DMA_MEM_TO_DEV@GOTPAGE
Lloh29:
	ldr	x12, [x12, _DMA_MEM_TO_DEV@GOTPAGEOFF]
Lloh30:
	ldr	x12, [x12]
	cmp	x11, x12
	b.ne	LBB0_11
; %bb.6:
Lloh31:
	adrp	x9, _APB_DMA_SOURCE_INC_4_16@GOTPAGE
Lloh32:
	ldr	x9, [x9, _APB_DMA_SOURCE_INC_4_16@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
Lloh33:
	adrp	x11, _APB_DMA_DATA_WIDTH_2@GOTPAGE
Lloh34:
	ldr	x11, [x11, _APB_DMA_DATA_WIDTH_2@GOTPAGEOFF]
Lloh35:
	ldr	w11, [x11]
	orr	w10, w11, w10
	ldr	x11, [x19, #24]
Lloh36:
	adrp	x12, _DMA_MEM_TO_DEV@GOTPAGE
Lloh37:
	ldr	x12, [x12, _DMA_MEM_TO_DEV@GOTPAGEOFF]
Lloh38:
	ldr	x12, [x12]
	cmp	x11, x12
	b.ne	LBB0_12
; %bb.8:
Lloh39:
	adrp	x9, _APB_DMA_SOURCE_INC_2_8@GOTPAGE
Lloh40:
	ldr	x9, [x9, _APB_DMA_SOURCE_INC_2_8@GOTPAGEOFF]
LBB0_9:
	ldr	w9, [x9]
	orr	w10, w9, w10
	b	LBB0_15
LBB0_10:
Lloh41:
	adrp	x8, _EINVAL@GOTPAGE
Lloh42:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_18
LBB0_11:
Lloh44:
	adrp	x13, _APB_DMA_DEST_INC_4_16@GOTPAGE
Lloh45:
	ldr	x13, [x13, _APB_DMA_DEST_INC_4_16@GOTPAGEOFF]
	b	LBB0_14
LBB0_12:
Lloh46:
	adrp	x13, _APB_DMA_DEST_INC_2_8@GOTPAGE
Lloh47:
	ldr	x13, [x13, _APB_DMA_DEST_INC_2_8@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
Lloh48:
	adrp	x13, _APB_DMA_DEST_INC_1_4@GOTPAGE
Lloh49:
	ldr	x13, [x13, _APB_DMA_DEST_INC_1_4@GOTPAGEOFF]
LBB0_14:
	ldr	w13, [x13]
	orr	w10, w13, w10
	cmp	x11, x12
	b.ne	LBB0_16
LBB0_15:
Lloh50:
	adrp	x9, _APB_DMA_DEST_SELECT@GOTPAGE
Lloh51:
	ldr	x9, [x9, _APB_DMA_DEST_SELECT@GOTPAGEOFF]
Lloh52:
	ldr	w9, [x9]
	bic	w9, w10, w9
Lloh53:
	adrp	x10, _APB_DMA_SOURCE_SELECT@GOTPAGE
Lloh54:
	ldr	x10, [x10, _APB_DMA_SOURCE_SELECT@GOTPAGEOFF]
Lloh55:
	ldr	w10, [x10]
	orr	w9, w9, w10
	ldr	w10, [x19]
	and	w8, w8, w10, lsl #16
	b	LBB0_17
LBB0_16:
Lloh56:
	adrp	x8, _APB_DMA_DEST_SELECT@GOTPAGE
Lloh57:
	ldr	x8, [x8, _APB_DMA_DEST_SELECT@GOTPAGEOFF]
Lloh58:
	ldr	w8, [x8]
	orr	w8, w8, w10
Lloh59:
	adrp	x10, _APB_DMA_SOURCE_SELECT@GOTPAGE
Lloh60:
	ldr	x10, [x10, _APB_DMA_SOURCE_SELECT@GOTPAGEOFF]
Lloh61:
	ldr	w10, [x10]
	bic	w8, w8, w10
	ldr	w10, [x19]
	and	w9, w9, w10, lsl #24
LBB0_17:
	orr	w0, w9, w8
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writel
	mov	w0, #0
LBB0_18:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_OFF_CTRL,8,3               ; @REG_OFF_CTRL
	.comm	_APB_DMA_BURST_MODE,4,2         ; @APB_DMA_BURST_MODE
	.comm	_APB_DMA_DEST_MASK,4,2          ; @APB_DMA_DEST_MASK
	.comm	_APB_DMA_SOURCE_MASK,4,2        ; @APB_DMA_SOURCE_MASK
	.comm	_APB_DMA_DEST_REQ_NO_MASK,4,2   ; @APB_DMA_DEST_REQ_NO_MASK
	.comm	_APB_DMA_SOURCE_REQ_NO_MASK,4,2 ; @APB_DMA_SOURCE_REQ_NO_MASK
	.comm	_APB_DMA_DATA_WIDTH_1,4,2       ; @APB_DMA_DATA_WIDTH_1
	.comm	_DMA_MEM_TO_DEV,8,3             ; @DMA_MEM_TO_DEV
	.comm	_APB_DMA_DEST_INC_1_4,4,2       ; @APB_DMA_DEST_INC_1_4
	.comm	_APB_DMA_SOURCE_INC_1_4,4,2     ; @APB_DMA_SOURCE_INC_1_4
	.comm	_APB_DMA_DATA_WIDTH_2,4,2       ; @APB_DMA_DATA_WIDTH_2
	.comm	_APB_DMA_DEST_INC_2_8,4,2       ; @APB_DMA_DEST_INC_2_8
	.comm	_APB_DMA_SOURCE_INC_2_8,4,2     ; @APB_DMA_SOURCE_INC_2_8
	.comm	_APB_DMA_DATA_WIDTH,4,2         ; @APB_DMA_DATA_WIDTH
	.comm	_APB_DMA_DEST_INC_4_16,4,2      ; @APB_DMA_DEST_INC_4_16
	.comm	_APB_DMA_SOURCE_INC_4_16,4,2    ; @APB_DMA_SOURCE_INC_4_16
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_APB_DMA_DEST_SELECT,4,2        ; @APB_DMA_DEST_SELECT
	.comm	_APB_DMA_SOURCE_SELECT,4,2      ; @APB_DMA_SOURCE_SELECT
	.no_dead_strip	_moxart_slave_config
.subsections_via_symbols
