	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function config_reqctrl
_config_reqctrl:                        ## @config_reqctrl
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movl	64(%rdi), %r14d
	movq	56(%rdi), %r13
	cmpl	$132, %esi
	je	LBB0_3
## %bb.1:
	cmpl	$133, %r15d
	jne	LBB0_5
## %bb.2:
	movq	_FDMA_REQ_CTRL_WNR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	4(%rbx), %eax
	leaq	48(%rbx), %rcx
	leaq	16(%rbx), %rdx
	leaq	40(%rbx), %rsi
	jmp	LBB0_4
LBB0_3:
	movq	_FDMA_REQ_CTRL_WNR@GOTPCREL(%rip), %rcx
	movl	4(%rbx), %eax
	orl	(%rcx), %eax
	leaq	32(%rbx), %rcx
	leaq	20(%rbx), %rdx
	leaq	24(%rbx), %rsi
LBB0_4:
	movq	(%rcx), %rdi
	movl	(%rdx), %edx
	movq	(%rsi), %r12
	movq	_FDMA_REQ_CTRL_OPCODE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movl	%ecx, 4(%rbx)
	addl	$-128, %edx
	cmpl	$4, %edx
	jae	LBB0_5
## %bb.6:
	movslq	%edx, %rax
	leaq	l_switch.table.config_reqctrl(%rip), %rdx
	movq	(%rdx,%rax,8), %rax
	orl	(%rax), %ecx
	movq	_FDMA_REQ_CTRL_NUM_OPS_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%ecx, %eax
	movl	%eax, 4(%rbx)
	decq	%rdi
	callq	_FDMA_REQ_CTRL_NUM_OPS
	orl	4(%rbx), %eax
	movl	%eax, 4(%rbx)
	movq	_FDMA_REQ_CTRL_OFST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_dreq_write
	movq	%r12, 8(%rbx)
	movl	%r15d, (%rbx)
	movl	(%r13), %edi
	movl	4(%rbx), %r8d
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	movq	%r12, %rcx
	callq	_dev_dbg
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FDMA_REQ_CTRL_WNR,4,2          ## @FDMA_REQ_CTRL_WNR
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_FDMA_REQ_CTRL_OPCODE_MASK,4,2  ## @FDMA_REQ_CTRL_OPCODE_MASK
	.comm	_FDMA_REQ_CTRL_OPCODE_LD_ST1,4,2 ## @FDMA_REQ_CTRL_OPCODE_LD_ST1
	.comm	_FDMA_REQ_CTRL_OPCODE_LD_ST2,4,2 ## @FDMA_REQ_CTRL_OPCODE_LD_ST2
	.comm	_FDMA_REQ_CTRL_OPCODE_LD_ST4,4,2 ## @FDMA_REQ_CTRL_OPCODE_LD_ST4
	.comm	_FDMA_REQ_CTRL_OPCODE_LD_ST8,4,2 ## @FDMA_REQ_CTRL_OPCODE_LD_ST8
	.comm	_FDMA_REQ_CTRL_NUM_OPS_MASK,4,2 ## @FDMA_REQ_CTRL_NUM_OPS_MASK
	.comm	_FDMA_REQ_CTRL_OFST,4,2         ## @FDMA_REQ_CTRL_OFST
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"chan:%d config_reqctrl:%#x req_ctrl:%#lx\n"

	.no_dead_strip	_config_reqctrl
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.config_reqctrl
l_switch.table.config_reqctrl:
	.quad	_FDMA_REQ_CTRL_OPCODE_LD_ST8
	.quad	_FDMA_REQ_CTRL_OPCODE_LD_ST4
	.quad	_FDMA_REQ_CTRL_OPCODE_LD_ST2
	.quad	_FDMA_REQ_CTRL_OPCODE_LD_ST1

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function config_reqctrl
_config_reqctrl:                        ; @config_reqctrl
	.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	x21, x1
	mov	x20, x0
	ldr	w19, [x0, #64]
	ldr	x23, [x0, #56]
	cmp	w1, #132
	b.eq	LBB0_3
; %bb.1:
	cmp	w21, #133
	b.ne	LBB0_6
; %bb.2:
Lloh0:
	adrp	x8, _FDMA_REQ_CTRL_WNR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FDMA_REQ_CTRL_WNR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x20, #4]
	bic	w8, w9, w8
	add	x9, x20, #48
	add	x10, x20, #16
	add	x11, x20, #40
	b	LBB0_4
LBB0_3:
Lloh3:
	adrp	x8, _FDMA_REQ_CTRL_WNR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FDMA_REQ_CTRL_WNR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x20, #4]
	orr	w8, w9, w8
	add	x9, x20, #32
	add	x10, x20, #20
	add	x11, x20, #24
LBB0_4:
	ldr	x9, [x9]
	ldr	w10, [x10]
Lloh6:
	adrp	x12, _FDMA_REQ_CTRL_OPCODE_MASK@GOTPAGE
Lloh7:
	ldr	x12, [x12, _FDMA_REQ_CTRL_OPCODE_MASK@GOTPAGEOFF]
	ldr	x22, [x11]
Lloh8:
	ldr	w11, [x12]
	bic	w8, w8, w11
	str	w8, [x20, #4]
	sub	w10, w10, #128
	cmp	w10, #4
	b.hs	LBB0_6
; %bb.5:
Lloh9:
	adrp	x11, l_switch.table.config_reqctrl@PAGE
Lloh10:
	add	x11, x11, l_switch.table.config_reqctrl@PAGEOFF
	ldr	x10, [x11, w10, sxtw #3]
	ldr	w10, [x10]
	orr	w8, w10, w8
Lloh11:
	adrp	x10, _FDMA_REQ_CTRL_NUM_OPS_MASK@GOTPAGE
Lloh12:
	ldr	x10, [x10, _FDMA_REQ_CTRL_NUM_OPS_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	bic	w8, w8, w10
	str	w8, [x20, #4]
	sub	x0, x9, #1
	bl	_FDMA_REQ_CTRL_NUM_OPS
	ldr	w8, [x20, #4]
	orr	w1, w8, w0
	str	w1, [x20, #4]
Lloh14:
	adrp	x8, _FDMA_REQ_CTRL_OFST@GOTPAGE
Lloh15:
	ldr	x8, [x8, _FDMA_REQ_CTRL_OFST@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_dreq_write
	str	x22, [x20, #8]
	str	w21, [x20]
	ldr	w0, [x23]
	ldr	w4, [x20, #4]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	mov	x3, x22
	bl	_dev_dbg
	mov	w0, #0
	b	LBB0_7
LBB0_6:
Lloh19:
	adrp	x8, _EINVAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_FDMA_REQ_CTRL_WNR,4,2          ; @FDMA_REQ_CTRL_WNR
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_FDMA_REQ_CTRL_OPCODE_MASK,4,2  ; @FDMA_REQ_CTRL_OPCODE_MASK
	.comm	_FDMA_REQ_CTRL_OPCODE_LD_ST1,4,2 ; @FDMA_REQ_CTRL_OPCODE_LD_ST1
	.comm	_FDMA_REQ_CTRL_OPCODE_LD_ST2,4,2 ; @FDMA_REQ_CTRL_OPCODE_LD_ST2
	.comm	_FDMA_REQ_CTRL_OPCODE_LD_ST4,4,2 ; @FDMA_REQ_CTRL_OPCODE_LD_ST4
	.comm	_FDMA_REQ_CTRL_OPCODE_LD_ST8,4,2 ; @FDMA_REQ_CTRL_OPCODE_LD_ST8
	.comm	_FDMA_REQ_CTRL_NUM_OPS_MASK,4,2 ; @FDMA_REQ_CTRL_NUM_OPS_MASK
	.comm	_FDMA_REQ_CTRL_OFST,4,2         ; @FDMA_REQ_CTRL_OFST
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"chan:%d config_reqctrl:%#x req_ctrl:%#lx\n"

	.no_dead_strip	_config_reqctrl
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.config_reqctrl
l_switch.table.config_reqctrl:
	.quad	_FDMA_REQ_CTRL_OPCODE_LD_ST8
	.quad	_FDMA_REQ_CTRL_OPCODE_LD_ST4
	.quad	_FDMA_REQ_CTRL_OPCODE_LD_ST2
	.quad	_FDMA_REQ_CTRL_OPCODE_LD_ST1

.subsections_via_symbols
