	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_config
_set_config:                            ## @set_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	(%rsi), %r14d
	movl	4(%rsi), %r13d
	movl	8(%rsi), %r12d
	movl	12(%rsi), %ebx
	cmpl	$129, %edx
	je	LBB0_5
## %bb.1:
	cmpl	$128, %edx
	jne	LBB0_12
## %bb.2:
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	_DMA_SLAVE_BUSWIDTH_UNDEFINED@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_4
## %bb.3:
	movq	_DMA_SLAVE_BUSWIDTH_4_BYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_4:
	testl	%r12d, %r12d
	movl	$8, %eax
	cmovel	%eax, %r12d
	jmp	LBB0_8
LBB0_5:
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	_DMA_SLAVE_BUSWIDTH_UNDEFINED@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_7
## %bb.6:
	movq	_DMA_SLAVE_BUSWIDTH_4_BYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_7:
	testl	%ebx, %ebx
	movl	$8, %eax
	cmovel	%eax, %ebx
LBB0_8:
	movl	%r14d, %edi
	callq	_BIT
	testl	%eax, 8(%r15)
	je	LBB0_12
## %bb.9:
	movl	%r13d, %edi
	callq	_BIT
	testl	%eax, 12(%r15)
	je	LBB0_12
## %bb.10:
	movl	%r12d, %edi
	callq	_BIT
	movq	(%r15), %rcx
	testl	%eax, (%rcx)
	je	LBB0_12
## %bb.11:
	movl	%ebx, %edi
	callq	_BIT
	movq	(%r15), %rcx
	testl	%eax, 4(%rcx)
	je	LBB0_12
## %bb.13:
	movl	%r14d, %edi
	callq	_convert_buswidth
	movl	%eax, %r14d
	movl	%r13d, %edi
	callq	_convert_buswidth
	movl	%eax, %r13d
	movl	%ebx, %edi
	callq	_convert_burst
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%r12d, %edi
	callq	_convert_burst
	movl	%eax, %r12d
	movl	%r14d, %edi
	callq	_DMA_CHAN_CFG_SRC_WIDTH
	movl	%eax, %ebx
	movl	%r13d, %edi
	callq	_DMA_CHAN_CFG_DST_WIDTH
	orl	%ebx, %eax
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, (%rdi)
	movq	(%r15), %rax
	movl	%r12d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	*8(%rax)
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_12:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_14:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_SLAVE_BUSWIDTH_UNDEFINED,4,2 ## @DMA_SLAVE_BUSWIDTH_UNDEFINED
	.comm	_DMA_SLAVE_BUSWIDTH_4_BYTES,4,2 ## @DMA_SLAVE_BUSWIDTH_4_BYTES
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_set_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_config
_set_config:                            ; @set_config
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x3
	mov	x20, x0
	ldp	w24, w23, [x1]
	ldp	w21, w22, [x1, #8]
	cmp	w2, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w2, #128
	b.ne	LBB0_9
; %bb.2:
Lloh0:
	adrp	x8, _DMA_SLAVE_BUSWIDTH_UNDEFINED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMA_SLAVE_BUSWIDTH_UNDEFINED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _DMA_SLAVE_BUSWIDTH_4_BYTES@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DMA_SLAVE_BUSWIDTH_4_BYTES@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w24, w8
	csel	w24, w9, w24, eq
	mov	w8, #8
	cmp	w21, #0
	csel	w21, w8, w21, eq
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x8, _DMA_SLAVE_BUSWIDTH_UNDEFINED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DMA_SLAVE_BUSWIDTH_UNDEFINED@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _DMA_SLAVE_BUSWIDTH_4_BYTES@GOTPAGE
Lloh10:
	ldr	x9, [x9, _DMA_SLAVE_BUSWIDTH_4_BYTES@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w23, w8
	csel	w23, w9, w23, eq
	mov	w8, #8
	cmp	w22, #0
	csel	w22, w8, w22, eq
LBB0_4:
	mov	x0, x24
	bl	_BIT
	ldr	w8, [x20, #8]
	tst	w8, w0
	b.eq	LBB0_9
; %bb.5:
	mov	x0, x23
	bl	_BIT
	ldr	w8, [x20, #12]
	tst	w8, w0
	b.eq	LBB0_9
; %bb.6:
	mov	x0, x21
	bl	_BIT
	ldr	x8, [x20]
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_9
; %bb.7:
	mov	x0, x22
	bl	_BIT
	ldr	x8, [x20]
	ldr	w8, [x8, #4]
	tst	w8, w0
	b.eq	LBB0_9
; %bb.8:
	mov	x0, x24
	bl	_convert_buswidth
	mov	x24, x0
	mov	x0, x23
	bl	_convert_buswidth
	mov	x23, x0
	mov	x0, x22
	bl	_convert_burst
	mov	x22, x0
	mov	x0, x21
	bl	_convert_burst
	mov	x21, x0
	mov	x0, x24
	bl	_DMA_CHAN_CFG_SRC_WIDTH
	mov	x24, x0
	mov	x0, x23
	bl	_DMA_CHAN_CFG_DST_WIDTH
	orr	w8, w0, w24
	str	w8, [x19]
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	blr	x8
	mov	w0, #0
	b	LBB0_10
LBB0_9:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_SLAVE_BUSWIDTH_UNDEFINED,4,2 ; @DMA_SLAVE_BUSWIDTH_UNDEFINED
	.comm	_DMA_SLAVE_BUSWIDTH_4_BYTES,4,2 ; @DMA_SLAVE_BUSWIDTH_4_BYTES
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_set_config
.subsections_via_symbols
