	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dib7000m_set_channel
_dib7000m_set_channel:                  ## @dib7000m_set_channel
	.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, %rbx
	movl	24(%rsi), %edi
	callq	_BANDWIDTH_TO_KHZ
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_dib7000m_set_bandwidth
	movl	(%r14), %ecx
	movl	4(%r14), %eax
	xorl	%esi, %esi
	cmpl	$129, %ecx
	sete	%sil
	shll	$7, %esi
	subl	$-128, %esi
	xorl	%edx, %edx
	cmpl	$130, %ecx
	cmovnel	%esi, %edx
	cmpl	$138, %eax
	je	LBB0_4
## %bb.1:
	cmpl	$139, %eax
	je	LBB0_6
## %bb.2:
	cmpl	$140, %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	$131, %eax
	je	LBB0_10
## %bb.7:
	cmpl	$133, %eax
	jne	LBB0_9
## %bb.8:
	orl	$8, %edx
	jmp	LBB0_10
LBB0_9:
	orl	$16, %edx
LBB0_10:
	orl	$1, %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_dib7000m_write_word
	shll	$4, %r15d
	movq	%rbx, %rdi
	movl	$5, %esi
	movl	%r15d, %edx
	callq	_dib7000m_write_word
	xorl	%edx, %edx
	cmpl	$1, 12(%r14)
	sete	%dl
	shll	$4, %edx
	orl	$65, %edx
	movl	$-141, %ecx
	addl	16(%r14), %ecx
	movl	$2, %eax
	cmpl	$3, %ecx
	ja	LBB0_12
## %bb.11:
	movslq	%ecx, %rax
	leaq	L_switch.table.dib7000m_set_channel(%rip), %rcx
	movl	(%rcx,%rax,4), %eax
LBB0_12:
	orl	%eax, %edx
	movl	$267, %esi                      ## imm = 0x10B
	addl	(%rbx), %esi
	movq	%rbx, %rdi
	callq	_dib7000m_write_word
	movq	%rbx, %rdi
	movl	$26, %esi
	movl	$26240, %edx                    ## imm = 0x6680
	callq	_dib7000m_write_word
	movq	%rbx, %rdi
	movl	$29, %esi
	movl	$4723, %edx                     ## imm = 0x1273
	callq	_dib7000m_write_word
	movq	%rbx, %rdi
	movl	$32, %esi
	movl	$3, %edx
	callq	_dib7000m_write_word
	movq	%rbx, %rdi
	movl	$33, %esi
	movl	$5, %edx
	callq	_dib7000m_write_word
	movl	(%r14), %eax
	movl	4(%r14), %ecx
	xorl	%edx, %edx
	cmpl	$129, %eax
	sete	%dl
	shll	$6, %edx
	addl	$64, %edx
	cmpl	$128, %eax
	movl	$256, %eax                      ## imm = 0x100
	cmovnel	%edx, %eax
	cmpl	$137, %ecx
	je	LBB0_16
## %bb.13:
	cmpl	$138, %ecx
	je	LBB0_17
## %bb.14:
	cmpl	$140, %ecx
	jne	LBB0_18
## %bb.15:
	addl	%eax, %eax
	jmp	LBB0_18
LBB0_16:
	shll	$2, %eax
	jmp	LBB0_18
LBB0_17:
	shll	$3, %eax
LBB0_18:
	leal	(%rax,%rax,2), %eax
	shrl	%eax
	addl	$32, %eax
	movl	%eax, 4(%rbx)
	movl	$0, 12(%rbx)
	leaq	20(%rbx), %rdi
	movl	16(%rbx), %esi
	callq	_dib7000m_set_diversity_in
	movl	8(%r14), %eax
	movl	$164, %r15d
	movl	$65528, %r14d                   ## imm = 0xFFF8
	cmpl	$132, %eax
	je	LBB0_19
## %bb.20:
	cmpl	$133, %eax
	jne	LBB0_22
## %bb.21:
	movl	$573, %edx                      ## imm = 0x23D
	movl	$65503, %r12d                   ## imm = 0xFFDF
	movl	$65520, %r14d                   ## imm = 0xFFF0
	jmp	LBB0_23
LBB0_19:
	movl	$328, %edx                      ## imm = 0x148
	movl	$65520, %r12d                   ## imm = 0xFFF0
	jmp	LBB0_23
LBB0_22:
	movl	$2458, %edx                     ## imm = 0x99A
	movl	$65454, %r12d                   ## imm = 0xFFAE
	movl	$819, %r15d                     ## imm = 0x333
LBB0_23:
	movl	$214, %esi
	addl	(%rbx), %esi
	movq	%rbx, %rdi
	callq	_dib7000m_write_word
	movl	$215, %esi
	addl	(%rbx), %esi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	callq	_dib7000m_write_word
	movl	$216, %esi
	addl	(%rbx), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_dib7000m_write_word
	movl	$217, %esi
	addl	(%rbx), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_dib7000m_write_word
	movq	_DIB7000M_POWER_COR4_DINTLV_ICIRM_EQUAL_CFROD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dib7000m_set_power_mode        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DIB7000M_POWER_COR4_DINTLV_ICIRM_EQUAL_CFROD,4,2 ## @DIB7000M_POWER_COR4_DINTLV_ICIRM_EQUAL_CFROD
	.no_dead_strip	_dib7000m_set_channel
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ## @switch.table.dib7000m_set_channel
L_switch.table.dib7000m_set_channel:
	.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 dib7000m_set_channel
_dib7000m_set_channel:                  ; @dib7000m_set_channel
	.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, x2
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x1, #24]
	bl	_BANDWIDTH_TO_KHZ
	mov	x1, x0
	mov	x0, x19
	bl	_dib7000m_set_bandwidth
	mov	w22, #128
	mov	w23, #256
	ldp	w8, w9, [x20]
	cmp	w8, #129
	csel	w10, w23, w22, eq
	cmp	w8, #130
	csel	w8, wzr, w10, eq
	orr	w10, w8, #0x60
	orr	w11, w8, #0x40
	orr	w12, w8, #0x20
	cmp	w9, #140
	csel	w11, w11, w12, ne
	cmp	w9, #139
	csel	w8, w8, w11, eq
	cmp	w9, #138
	csel	w8, w10, w8, eq
	ldr	w9, [x20, #8]
	orr	w10, w8, #0x10
	orr	w11, w8, #0x8
	cmp	w9, #133
	csel	w10, w10, w11, ne
	cmp	w9, #131
	csel	w8, w8, w10, eq
	orr	w2, w8, #0x1
	mov	x0, x19
	mov	w1, #0
	bl	_dib7000m_write_word
	lsl	w2, w21, #4
	mov	x0, x19
	mov	w1, #5
	bl	_dib7000m_write_word
	mov	w8, #65
	mov	w9, #81
	ldp	w10, w11, [x20, #12]
	cmp	w10, #1
	csel	w8, w9, w8, eq
	sub	w9, w11, #141
	cmp	w9, #3
	b.hi	LBB0_2
; %bb.1:
Lloh0:
	adrp	x10, l_switch.table.dib7000m_set_channel@PAGE
Lloh1:
	add	x10, x10, l_switch.table.dib7000m_set_channel@PAGEOFF
	ldr	w9, [x10, w9, sxtw #2]
	b	LBB0_3
LBB0_2:
	mov	w9, #2
LBB0_3:
	orr	w2, w8, w9
	ldr	w8, [x19]
	add	w1, w8, #267
	mov	x0, x19
	bl	_dib7000m_write_word
	mov	x0, x19
	mov	w1, #26
	mov	w2, #26240
	bl	_dib7000m_write_word
	mov	x0, x19
	mov	w1, #29
	mov	w2, #4723
	bl	_dib7000m_write_word
	mov	x0, x19
	mov	w1, #32
	mov	w2, #3
	bl	_dib7000m_write_word
	mov	x0, x19
	mov	w1, #33
	mov	w2, #5
	bl	_dib7000m_write_word
	mov	w8, #64
	ldp	w10, w9, [x20]
	cmp	w10, #129
	csel	w8, w22, w8, eq
	cmp	w10, #128
	csel	w8, w23, w8, eq
	cmp	w9, #137
	b.eq	LBB0_7
; %bb.4:
	cmp	w9, #138
	b.eq	LBB0_8
; %bb.5:
	cmp	w9, #140
	b.ne	LBB0_9
; %bb.6:
	lsl	w8, w8, #1
	b	LBB0_9
LBB0_7:
	lsl	w8, w8, #2
	b	LBB0_9
LBB0_8:
	lsl	w8, w8, #3
LBB0_9:
	add	w8, w8, w8, lsl #1
	lsr	w8, w8, #1
	add	w8, w8, #32
	str	w8, [x19, #4]
	str	wzr, [x19, #12]
	add	x0, x19, #20
	ldr	w1, [x19, #16]
	bl	_dib7000m_set_diversity_in
	ldr	w8, [x20, #8]
	cmp	w8, #132
	b.eq	LBB0_12
; %bb.10:
	cmp	w8, #133
	b.ne	LBB0_13
; %bb.11:
	mov	w2, #573
	mov	w22, #65503
	mov	w21, #164
	mov	w20, #65520
	b	LBB0_15
LBB0_12:
	mov	w2, #328
	mov	w22, #65520
	mov	w21, #164
	b	LBB0_14
LBB0_13:
	mov	w2, #2458
	mov	w22, #65454
	mov	w21, #819
LBB0_14:
	mov	w20, #65528
LBB0_15:
	ldr	w8, [x19]
	add	w1, w8, #214
	mov	x0, x19
	bl	_dib7000m_write_word
	ldr	w8, [x19]
	add	w1, w8, #215
	mov	x0, x19
	mov	x2, x22
	bl	_dib7000m_write_word
	ldr	w8, [x19]
	add	w1, w8, #216
	mov	x0, x19
	mov	x2, x21
	bl	_dib7000m_write_word
	ldr	w8, [x19]
	add	w1, w8, #217
	mov	x0, x19
	mov	x2, x20
	bl	_dib7000m_write_word
Lloh2:
	adrp	x8, _DIB7000M_POWER_COR4_DINTLV_ICIRM_EQUAL_CFROD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DIB7000M_POWER_COR4_DINTLV_ICIRM_EQUAL_CFROD@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	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
	b	_dib7000m_set_power_mode
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_DIB7000M_POWER_COR4_DINTLV_ICIRM_EQUAL_CFROD,4,2 ; @DIB7000M_POWER_COR4_DINTLV_ICIRM_EQUAL_CFROD
	.no_dead_strip	_dib7000m_set_channel
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @switch.table.dib7000m_set_channel
l_switch.table.dib7000m_set_channel:
	.long	14                              ; 0xe
	.long	10                              ; 0xa
	.long	6                               ; 0x6
	.long	4                               ; 0x4

.subsections_via_symbols
