	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwl8k_config
_mwl8k_config:                          ## @mwl8k_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %r15
	movq	(%rdi), %r13
	callq	_mwl8k_fw_lock
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
## %bb.1:
	leaq	8(%r15), %r14
	movq	_IEEE80211_CONF_IDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	callq	_mwl8k_cmd_radio_disable
	jmp	LBB0_4
LBB0_3:
	movq	%r15, %rdi
	callq	_mwl8k_cmd_radio_enable
LBB0_4:
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_5
LBB0_16:
	movq	%r15, %rdi
	callq	_mwl8k_fw_unlock
LBB0_17:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_IEEE80211_CONF_CHANGE_CHANNEL@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_mwl8k_cmd_set_rf_channel
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
LBB0_7:
	movl	12(%r15), %edx
	cmpl	$19, %edx
	jl	LBB0_9
## %bb.8:
	movl	$18, 12(%r15)
	movl	$18, %edx
LBB0_9:
	cmpq	$0, (%r13)
	je	LBB0_13
## %bb.10:
	movq	_IEEE80211_CONF_CHANGE_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_11
## %bb.12:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_mwl8k_cmd_tx_power
	jmp	LBB0_15
LBB0_13:
	movq	%r15, %rdi
	movl	%edx, %esi
	callq	_mwl8k_cmd_rf_tx_power
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.14:
	movq	%r15, %rdi
	movl	$7, %esi
	movl	$7, %edx
	callq	_mwl8k_cmd_mimo_config
LBB0_15:
	movl	%eax, %ebx
	jmp	LBB0_16
LBB0_11:
	xorl	%ebx, %ebx
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_CONF_IDLE,4,2        ## @IEEE80211_CONF_IDLE
	.comm	_IEEE80211_CONF_CHANGE_CHANNEL,4,2 ## @IEEE80211_CONF_CHANGE_CHANNEL
	.comm	_IEEE80211_CONF_CHANGE_POWER,4,2 ## @IEEE80211_CONF_CHANGE_POWER
	.no_dead_strip	_mwl8k_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwl8k_config
_mwl8k_config:                          ; @mwl8k_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	x21, x1
	mov	x19, x0
	mov	x20, x0
	ldr	x23, [x20], #8
	bl	_mwl8k_fw_lock
	mov	x22, x0
	cbnz	w0, LBB0_16
; %bb.1:
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _IEEE80211_CONF_IDLE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEEE80211_CONF_IDLE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	mov	x0, x19
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	bl	_mwl8k_cmd_radio_disable
	mov	x22, x0
	cbnz	w0, LBB0_15
	b	LBB0_4
LBB0_3:
	bl	_mwl8k_cmd_radio_enable
	mov	x22, x0
	cbnz	w0, LBB0_15
LBB0_4:
Lloh3:
	adrp	x8, _IEEE80211_CONF_CHANGE_CHANNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IEEE80211_CONF_CHANGE_CHANNEL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x19
	mov	x1, x20
	bl	_mwl8k_cmd_set_rf_channel
	mov	x22, x0
	cbnz	w0, LBB0_15
LBB0_6:
	ldr	w2, [x19, #12]
	cmp	w2, #19
	b.lt	LBB0_8
; %bb.7:
	mov	w2, #18
	str	w2, [x19, #12]
LBB0_8:
	ldr	x8, [x23]
	cbz	x8, LBB0_11
; %bb.9:
	ldr	w8, [x20]
Lloh6:
	adrp	x9, _IEEE80211_CONF_CHANGE_POWER@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IEEE80211_CONF_CHANGE_POWER@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.10:
	mov	x0, x19
	mov	x1, x20
	bl	_mwl8k_cmd_tx_power
	b	LBB0_13
LBB0_11:
	mov	x0, x19
	mov	x1, x2
	bl	_mwl8k_cmd_rf_tx_power
	mov	x22, x0
	cbnz	w0, LBB0_15
; %bb.12:
	mov	x0, x19
	mov	w1, #7
	mov	w2, #7
	bl	_mwl8k_cmd_mimo_config
LBB0_13:
	mov	x22, x0
	b	LBB0_15
LBB0_14:
	mov	w22, #0
LBB0_15:
	mov	x0, x19
	bl	_mwl8k_fw_unlock
LBB0_16:
	mov	x0, x22
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_CONF_IDLE,4,2        ; @IEEE80211_CONF_IDLE
	.comm	_IEEE80211_CONF_CHANGE_CHANNEL,4,2 ; @IEEE80211_CONF_CHANGE_CHANNEL
	.comm	_IEEE80211_CONF_CHANGE_POWER,4,2 ; @IEEE80211_CONF_CHANGE_POWER
	.no_dead_strip	_mwl8k_config
.subsections_via_symbols
