	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dib3000mc_set_channel_cfg
_dib3000mc_set_channel_cfg:             ## @dib3000mc_set_channel_cfg
	.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
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %r12
	movl	24(%rsi), %edi
	callq	_BANDWIDTH_TO_KHZ
	movl	%eax, %ebx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_dib3000mc_set_bandwidth
	movl	(%r14), %esi
	movq	%r12, %rdi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	callq	_dib3000mc_set_timing
	movq	%r12, %rdi
	movl	$100, %esi
	movl	$1033, %edx                     ## imm = 0x409
	callq	_dib3000mc_write_word
	movq	%r12, %rdi
	movl	$1027, %esi                     ## imm = 0x403
	movl	$2048, %edx                     ## imm = 0x800
	callq	_dib3000mc_write_word
	movq	%r12, %rdi
	movl	$1027, %esi                     ## imm = 0x403
	xorl	%edx, %edx
	callq	_dib3000mc_write_word
	movq	%r12, %rdi
	movl	$26, %esi
	movl	$26240, %edx                    ## imm = 0x6680
	callq	_dib3000mc_write_word
	movq	%r12, %rdi
	movl	$29, %esi
	movl	$4723, %edx                     ## imm = 0x1273
	callq	_dib3000mc_write_word
	movq	%r12, %rdi
	movl	$33, %esi
	movl	$5, %edx
	callq	_dib3000mc_write_word
	movq	%r12, %rdi
	movl	$132, %esi
	callq	_dib3000mc_set_adp_cfg
	movq	%r12, %rdi
	movl	$133, %esi
	movl	$15564, %edx                    ## imm = 0x3CCC
	callq	_dib3000mc_write_word
	movq	%r12, %rdi
	movl	$12, %esi
	xorl	%edx, %edx
	callq	_dib3000mc_write_word
	movq	%r12, %rdi
	movl	$13, %esi
	movl	$1000, %edx                     ## imm = 0x3E8
	callq	_dib3000mc_write_word
	movq	%r12, %rdi
	movl	$14, %esi
	xorl	%edx, %edx
	callq	_dib3000mc_write_word
	movq	%r12, %rdi
	movl	$15, %esi
	movl	$1010, %edx                     ## imm = 0x3F2
	callq	_dib3000mc_write_word
	movq	%r12, %rdi
	movl	$93, %esi
	xorl	%edx, %edx
	callq	_dib3000mc_write_word
	movq	%r12, %rdi
	movl	$94, %esi
	xorl	%edx, %edx
	callq	_dib3000mc_write_word
	movq	%r12, %rdi
	movl	$95, %esi
	xorl	%edx, %edx
	callq	_dib3000mc_write_word
	movq	%r12, %rdi
	movl	$96, %esi
	xorl	%edx, %edx
	callq	_dib3000mc_write_word
	movq	%r12, %rdi
	movl	$97, %esi
	xorl	%edx, %edx
	callq	_dib3000mc_write_word
	movq	%r12, %rdi
	movl	$98, %esi
	xorl	%edx, %edx
	callq	_dib3000mc_write_word
	movl	(%r14), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_dib3000mc_set_impulse_noise
	xorl	%edx, %edx
	cmpl	$129, (%r14)
	movl	4(%r14), %eax
	setne	%dl
	shll	$7, %edx
	cmpl	$137, %eax
	je	LBB0_4
## %bb.1:
	cmpl	$138, %eax
	je	LBB0_6
## %bb.2:
	cmpl	$139, %eax
	jne	LBB0_5
## %bb.3:
	orl	$32, %edx
	jmp	LBB0_6
LBB0_4:
	orl	$96, %edx
	jmp	LBB0_6
LBB0_5:
	orl	$64, %edx
LBB0_6:
	movl	8(%r14), %eax
	cmpl	$130, %eax
	je	LBB0_10
## %bb.7:
	cmpl	$132, %eax
	jne	LBB0_9
## %bb.8:
	orl	$8, %edx
	jmp	LBB0_10
LBB0_9:
	orl	$16, %edx
LBB0_10:
	orl	$1, %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_dib3000mc_write_word
	shll	$4, %r15d
	movzbl	%r15b, %edx
	orl	$256, %edx                      ## imm = 0x100
	movq	%r12, %rdi
	movl	$5, %esi
	callq	_dib3000mc_write_word
	xorl	%edx, %edx
	cmpl	$1, 12(%r14)
	sete	%dl
	shll	$4, %edx
	orl	$1, %edx
	movl	$-140, %ecx
	addl	16(%r14), %ecx
	movl	$2, %eax
	cmpl	$3, %ecx
	ja	LBB0_12
## %bb.11:
	movslq	%ecx, %rax
	leaq	L_switch.table.dib3000mc_set_channel_cfg(%rip), %rcx
	movl	(%rcx,%rax,4), %eax
LBB0_12:
	orl	%eax, %edx
	movq	%r12, %rdi
	movl	$181, %esi
	callq	_dib3000mc_write_word
	movl	4(%r14), %eax
	cmpl	$128, (%r14)
	movl	$256, %ecx                      ## imm = 0x100
	movl	$64, %ebx
	cmovel	%ecx, %ebx
	cmpl	$136, %eax
	je	LBB0_16
## %bb.13:
	cmpl	$137, %eax
	je	LBB0_17
## %bb.14:
	cmpl	$139, %eax
	jne	LBB0_18
## %bb.15:
	addl	%ebx, %ebx
	jmp	LBB0_18
LBB0_16:
	shll	$2, %ebx
	jmp	LBB0_18
LBB0_17:
	shll	$3, %ebx
LBB0_18:
	shll	$4, %ebx
	movq	%r12, %rdi
	movl	$180, %esi
	callq	_dib3000mc_read_word
	andl	$15, %eax
	orl	%eax, %ebx
	movq	%r12, %rdi
	movl	$180, %esi
	movl	%ebx, %edx
	callq	_dib3000mc_write_word
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_dib3000mc_read_word
	movl	%eax, %ebx
	movl	%eax, %edx
	orl	$512, %edx                      ## imm = 0x200
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_dib3000mc_write_word
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_dib3000mc_write_word
	movl	$30, %edi
	callq	_msleep
	movq	(%r12), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dib3000mc_set_impulse_noise    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_boost,8,3                      ## @boost
	.no_dead_strip	_dib3000mc_set_channel_cfg
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ## @switch.table.dib3000mc_set_channel_cfg
L_switch.table.dib3000mc_set_channel_cfg:
	.long	14                              ## 0xe
	.long	10                              ## 0xa
	.long	6                               ## 0x6
	.long	4                               ## 0x4

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dib3000mc_set_channel_cfg
_dib3000mc_set_channel_cfg:             ; @dib3000mc_set_channel_cfg
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x1, #24]
	bl	_BANDWIDTH_TO_KHZ
	mov	x22, x0
	mov	x0, x19
	mov	x1, x22
	bl	_dib3000mc_set_bandwidth
	ldr	w1, [x20]
	mov	x0, x19
	mov	x2, x22
	mov	w3, #0
	bl	_dib3000mc_set_timing
	mov	x0, x19
	mov	w1, #100
	mov	w2, #1033
	bl	_dib3000mc_write_word
	mov	x0, x19
	mov	w1, #1027
	mov	w2, #2048
	bl	_dib3000mc_write_word
	mov	x0, x19
	mov	w1, #1027
	mov	w2, #0
	bl	_dib3000mc_write_word
	mov	x0, x19
	mov	w1, #26
	mov	w2, #26240
	bl	_dib3000mc_write_word
	mov	x0, x19
	mov	w1, #29
	mov	w2, #4723
	bl	_dib3000mc_write_word
	mov	x0, x19
	mov	w1, #33
	mov	w2, #5
	bl	_dib3000mc_write_word
	mov	x0, x19
	mov	w1, #132
	bl	_dib3000mc_set_adp_cfg
	mov	x0, x19
	mov	w1, #133
	mov	w2, #15564
	bl	_dib3000mc_write_word
	mov	x0, x19
	mov	w1, #12
	mov	w2, #0
	bl	_dib3000mc_write_word
	mov	x0, x19
	mov	w1, #13
	mov	w2, #1000
	bl	_dib3000mc_write_word
	mov	x0, x19
	mov	w1, #14
	mov	w2, #0
	bl	_dib3000mc_write_word
	mov	x0, x19
	mov	w1, #15
	mov	w2, #1010
	bl	_dib3000mc_write_word
	mov	x0, x19
	mov	w1, #93
	mov	w2, #0
	bl	_dib3000mc_write_word
	mov	x0, x19
	mov	w1, #94
	mov	w2, #0
	bl	_dib3000mc_write_word
	mov	x0, x19
	mov	w1, #95
	mov	w2, #0
	bl	_dib3000mc_write_word
	mov	x0, x19
	mov	w1, #96
	mov	w2, #0
	bl	_dib3000mc_write_word
	mov	x0, x19
	mov	w1, #97
	mov	w2, #0
	bl	_dib3000mc_write_word
	mov	x0, x19
	mov	w1, #98
	mov	w2, #0
	bl	_dib3000mc_write_word
	ldr	w2, [x20]
	mov	x0, x19
	mov	w1, #0
	bl	_dib3000mc_set_impulse_noise
	ldp	w8, w9, [x20]
	cmp	w8, #129
	cset	w8, ne
	lsl	w8, w8, #7
	orr	w10, w8, #0x60
	orr	w11, w8, #0x40
	orr	w12, w8, #0x20
	cmp	w9, #139
	csel	w11, w11, w12, ne
	cmp	w9, #138
	csel	w8, w8, w11, eq
	cmp	w9, #137
	csel	w8, w10, w8, eq
	ldr	w9, [x20, #8]
	orr	w10, w8, #0x10
	orr	w11, w8, #0x8
	cmp	w9, #132
	csel	w10, w10, w11, ne
	cmp	w9, #130
	csel	w8, w8, w10, eq
	orr	w2, w8, #0x1
	mov	x0, x19
	mov	w1, #0
	bl	_dib3000mc_write_word
	mov	w22, #256
	mov	w2, #256
	bfi	w2, w21, #4, #4
	mov	x0, x19
	mov	w1, #5
	bl	_dib3000mc_write_word
	ldp	w8, w9, [x20, #12]
	cmp	w8, #1
	mov	w8, #17
	csinc	w8, w8, wzr, eq
	sub	w9, w9, #140
	cmp	w9, #3
	b.hi	LBB0_2
; %bb.1:
Lloh0:
	adrp	x10, l_switch.table.dib3000mc_set_channel_cfg@PAGE
Lloh1:
	add	x10, x10, l_switch.table.dib3000mc_set_channel_cfg@PAGEOFF
	ldr	w9, [x10, w9, sxtw #2]
	b	LBB0_3
LBB0_2:
	mov	w9, #2
LBB0_3:
	orr	w2, w8, w9
	mov	x0, x19
	mov	w1, #181
	bl	_dib3000mc_write_word
	mov	w8, #64
	ldp	w9, w10, [x20]
	cmp	w9, #128
	csel	w8, w22, w8, eq
	lsl	w9, w8, #2
	lsl	w11, w8, #3
	lsl	w12, w8, #1
	cmp	w10, #139
	csel	w8, w8, w12, ne
	cmp	w10, #137
	csel	w8, w11, w8, eq
	cmp	w10, #136
	csel	w21, w9, w8, eq
	mov	x0, x19
	mov	w1, #180
	bl	_dib3000mc_read_word
	and	w2, w0, #0xf
	bfi	w2, w21, #4, #12
	mov	x0, x19
	mov	w1, #180
	bl	_dib3000mc_write_word
	mov	x0, x19
	mov	w1, #0
	bl	_dib3000mc_read_word
	mov	x21, x0
	orr	w2, w0, #0x200
	mov	x0, x19
	mov	w1, #0
	bl	_dib3000mc_write_word
	mov	x0, x19
	mov	w1, #0
	mov	x2, x21
	bl	_dib3000mc_write_word
	mov	w0, #30
	bl	_msleep
	ldr	x8, [x19]
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	x0, x19
	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
	b	_dib3000mc_set_impulse_noise
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_boost,8,3                      ; @boost
	.no_dead_strip	_dib3000mc_set_channel_cfg
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @switch.table.dib3000mc_set_channel_cfg
l_switch.table.dib3000mc_set_channel_cfg:
	.long	14                              ; 0xe
	.long	10                              ; 0xa
	.long	6                               ; 0x6
	.long	4                               ; 0x4

.subsections_via_symbols
