	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dib7000p_set_agc_config
_dib7000p_set_agc_config:               ## @dib7000p_set_agc_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	%rdi, %r15
	cmpl	%esi, (%rdi)
	jne	LBB0_2
## %bb.1:
	xorl	%r14d, %r14d
	cmpq	$0, 8(%r15)
	jne	LBB0_12
LBB0_2:
	movl	%esi, (%r15)
	movl	16(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_6
## %bb.3:
	movq	24(%r15), %rbx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	testl	%esi, (%rbx)
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	addq	$112, %rbx
	decq	%rax
	jne	LBB0_4
LBB0_6:
	leaq	L_.str(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_dprintk
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_12
LBB0_7:
	movq	%rbx, 8(%r15)
	movl	4(%rbx), %edx
	movq	%r15, %rdi
	movl	$75, %esi
	callq	_dib7000p_write_word
	movl	8(%rbx), %edx
	movq	%r15, %rdi
	movl	$76, %esi
	callq	_dib7000p_write_word
	movl	12(%rbx), %edx
	movq	%r15, %rdi
	movl	$77, %esi
	callq	_dib7000p_write_word
	movl	16(%rbx), %edx
	shll	$12, %edx
	orl	20(%rbx), %edx
	movq	%r15, %rdi
	movl	$100, %esi
	callq	_dib7000p_write_word
	movl	24(%rbx), %edx
	shll	$5, %edx
	orl	28(%rbx), %edx
	movq	%r15, %rdi
	movl	$101, %esi
	callq	_dib7000p_write_word
	movl	32(%rbx), %edx
	shll	$6, %edx
	orl	36(%rbx), %edx
	movq	%r15, %rdi
	movl	$102, %esi
	callq	_dib7000p_write_word
	movl	4(%r15), %esi
	testl	%esi, %esi
	jne	LBB0_9
## %bb.8:
	movl	40(%rbx), %esi
LBB0_9:
	movl	44(%rbx), %edx
	xorl	%ecx, %ecx
	cmpl	$0, 48(%rbx)
	sete	%cl
	leaq	L_.str.1(%rip), %rdi
	xorl	%r14d, %r14d
	movl	%edx, %r8d
	xorl	%eax, %eax
	callq	_dprintk
	movl	4(%r15), %eax
	movl	52(%rbx), %edx
	shll	$12, %edx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:
	movl	40(%rbx), %eax
LBB0_11:
	orl	%eax, %edx
	movq	%r15, %rdi
	movl	$105, %esi
	callq	_dib7000p_write_word
	movl	44(%rbx), %eax
	movl	48(%rbx), %edx
	shll	$13, %eax
	movl	56(%rbx), %ecx
	shll	$9, %ecx
	orl	%eax, %ecx
	shll	$8, %edx
	orl	%ecx, %edx
	movq	%r15, %rdi
	movl	$106, %esi
	callq	_dib7000p_write_word
	movl	60(%rbx), %edx
	movq	%r15, %rdi
	movl	$107, %esi
	callq	_dib7000p_write_word
	movl	64(%rbx), %edx
	movq	%r15, %rdi
	movl	$108, %esi
	callq	_dib7000p_write_word
	movl	68(%rbx), %edx
	movq	%r15, %rdi
	movl	$109, %esi
	callq	_dib7000p_write_word
	movl	72(%rbx), %edx
	movq	%r15, %rdi
	movl	$110, %esi
	callq	_dib7000p_write_word
	movl	76(%rbx), %edx
	shll	$8, %edx
	orl	80(%rbx), %edx
	movq	%r15, %rdi
	movl	$111, %esi
	callq	_dib7000p_write_word
	movl	84(%rbx), %edx
	movq	%r15, %rdi
	movl	$112, %esi
	callq	_dib7000p_write_word
	movl	88(%rbx), %edx
	shll	$8, %edx
	orl	92(%rbx), %edx
	movq	%r15, %rdi
	movl	$113, %esi
	callq	_dib7000p_write_word
	movl	96(%rbx), %edx
	shll	$8, %edx
	orl	100(%rbx), %edx
	movq	%r15, %rdi
	movl	$114, %esi
	callq	_dib7000p_write_word
	movl	104(%rbx), %edx
	shll	$8, %edx
	orl	108(%rbx), %edx
	movq	%r15, %rdi
	movl	$115, %esi
	callq	_dib7000p_write_word
LBB0_12:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no valid AGC configuration found for band 0x%02x\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"WBD: ref: %d, sel: %d, active: %d, alpha: %d\n"

	.no_dead_strip	_dib7000p_set_agc_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dib7000p_set_agc_config
_dib7000p_set_agc_config:               ; @dib7000p_set_agc_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, w1
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_12
LBB0_2:
	str	w1, [x19]
	ldr	w8, [x19, #16]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.3:
	ldr	x20, [x19, #24]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x20]
	tst	w9, w1
	b.ne	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x20, x20, #112
	subs	x8, x8, #1
	b.ne	LBB0_4
LBB0_6:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_13
LBB0_7:
	str	x20, [x19, #8]
	ldr	w2, [x20, #4]
	mov	x0, x19
	mov	w1, #75
	bl	_dib7000p_write_word
	ldr	w2, [x20, #8]
	mov	x0, x19
	mov	w1, #76
	bl	_dib7000p_write_word
	ldr	w2, [x20, #12]
	mov	x0, x19
	mov	w1, #77
	bl	_dib7000p_write_word
	ldp	w8, w9, [x20, #16]
	orr	w2, w9, w8, lsl #12
	mov	x0, x19
	mov	w1, #100
	bl	_dib7000p_write_word
	ldp	w8, w9, [x20, #24]
	orr	w2, w9, w8, lsl #5
	mov	x0, x19
	mov	w1, #101
	bl	_dib7000p_write_word
	ldp	w8, w9, [x20, #32]
	orr	w2, w9, w8, lsl #6
	mov	x0, x19
	mov	w1, #102
	bl	_dib7000p_write_word
	ldr	w1, [x19, #4]
	cbnz	w1, LBB0_9
; %bb.8:
	ldr	w1, [x20, #40]
LBB0_9:
	ldp	w9, w8, [x20, #44]
	cmp	w8, #0
	cset	w8, eq
	stp	x8, x9, [sp, #8]
	str	x9, [sp]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_dprintk
	ldr	w8, [x19, #4]
	ldr	w9, [x20, #52]
	lsl	w9, w9, #12
	cbnz	w8, LBB0_11
; %bb.10:
	ldr	w8, [x20, #40]
LBB0_11:
	orr	w2, w9, w8
	mov	x0, x19
	mov	w1, #105
	bl	_dib7000p_write_word
	ldr	w8, [x20, #56]
	lsl	w8, w8, #9
	ldp	w9, w10, [x20, #44]
	orr	w8, w8, w9, lsl #13
	orr	w2, w8, w10, lsl #8
	mov	x0, x19
	mov	w1, #106
	bl	_dib7000p_write_word
	ldr	w2, [x20, #60]
	mov	x0, x19
	mov	w1, #107
	bl	_dib7000p_write_word
	ldr	w2, [x20, #64]
	mov	x0, x19
	mov	w1, #108
	bl	_dib7000p_write_word
	ldr	w2, [x20, #68]
	mov	x0, x19
	mov	w1, #109
	bl	_dib7000p_write_word
	ldr	w2, [x20, #72]
	mov	x0, x19
	mov	w1, #110
	bl	_dib7000p_write_word
	ldp	w8, w9, [x20, #76]
	orr	w2, w9, w8, lsl #8
	mov	x0, x19
	mov	w1, #111
	bl	_dib7000p_write_word
	ldr	w2, [x20, #84]
	mov	x0, x19
	mov	w1, #112
	bl	_dib7000p_write_word
	ldp	w8, w9, [x20, #88]
	orr	w2, w9, w8, lsl #8
	mov	x0, x19
	mov	w1, #113
	bl	_dib7000p_write_word
	ldp	w8, w9, [x20, #96]
	orr	w2, w9, w8, lsl #8
	mov	x0, x19
	mov	w1, #114
	bl	_dib7000p_write_word
	ldp	w8, w9, [x20, #104]
	orr	w2, w9, w8, lsl #8
	mov	x0, x19
	mov	w1, #115
	bl	_dib7000p_write_word
LBB0_12:
	mov	w0, #0
LBB0_13:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no valid AGC configuration found for band 0x%02x\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"WBD: ref: %d, sel: %d, active: %d, alpha: %d\n"

	.no_dead_strip	_dib7000p_set_agc_config
.subsections_via_symbols
