	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwl8k_cmd_tx_power
_mwl8k_cmd_tx_power:                    ## @mwl8k_cmd_tx_power
	.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	%edx, %r15d
	movq	%rdi, %r14
	movq	(%rsi), %rbx
	movq	%rsi, %rdi
	callq	_cfg80211_get_chandef_type
	movl	%eax, %r12d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$64, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r13
	movq	_MWL8K_CMD_TX_POWER@GOTPCREL(%rip), %rax
	movzwl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, 8(%r13)
	movl	$64, %edi
	callq	_cpu_to_le16
	movq	%rax, (%r13)
	movq	_MWL8K_CMD_SET_LIST@GOTPCREL(%rip), %rax
	movzwl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, 56(%r13)
	movq	(%rbx), %rcx
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rdx
	movw	$1, %ax
	cmpq	(%rdx), %rcx
	je	LBB0_5
## %bb.4:
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rdx
	movw	$4, %ax
	cmpq	(%rdx), %rcx
	jne	LBB0_6
LBB0_5:
	movzwl	%ax, %edi
	callq	_cpu_to_le16
	movq	%rax, 48(%r13)
LBB0_6:
	movzwl	8(%rbx), %edi
	callq	_cpu_to_le16
	movq	%rax, 40(%r13)
	movq	_NL80211_CHAN_NO_HT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	je	LBB0_8
## %bb.7:
	movq	_NL80211_CHAN_HT20@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	je	LBB0_8
## %bb.9:
	movl	$4, %edi
	callq	_cpu_to_le16
	movq	%rax, 32(%r13)
	movq	_NL80211_CHAN_HT40MINUS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_11
## %bb.10:
	movl	$3, %edi
	jmp	LBB0_13
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_2
LBB0_8:
	movl	$2, %edi
	callq	_cpu_to_le16
	movq	%rax, 32(%r13)
	jmp	LBB0_14
LBB0_11:
	movq	_NL80211_CHAN_HT40PLUS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_14
## %bb.12:
	movl	$1, %edi
LBB0_13:
	callq	_cpu_to_le16
	movq	%rax, 24(%r13)
LBB0_14:
	movq	_MWL8K_TX_POWER_LEVEL_TOTAL@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_17
## %bb.15:
	movl	%r15d, %eax
	xorl	%r15d, %r15d
	movzwl	%ax, %ebx
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_cpu_to_le16
	movq	16(%r13), %rcx
	movq	%rax, (%rcx,%r15,8)
	incq	%r15
	movslq	(%r12), %rax
	cmpq	%rax, %r15
	jl	LBB0_16
LBB0_17:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_mwl8k_post_cmd
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_kfree
	movl	%ebx, %eax
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MWL8K_CMD_TX_POWER,2,1         ## @MWL8K_CMD_TX_POWER
	.comm	_MWL8K_CMD_SET_LIST,2,1         ## @MWL8K_CMD_SET_LIST
	.comm	_NL80211_BAND_2GHZ,8,3          ## @NL80211_BAND_2GHZ
	.comm	_NL80211_BAND_5GHZ,8,3          ## @NL80211_BAND_5GHZ
	.comm	_NL80211_CHAN_NO_HT,4,2         ## @NL80211_CHAN_NO_HT
	.comm	_NL80211_CHAN_HT20,4,2          ## @NL80211_CHAN_HT20
	.comm	_NL80211_CHAN_HT40MINUS,4,2     ## @NL80211_CHAN_HT40MINUS
	.comm	_NL80211_CHAN_HT40PLUS,4,2      ## @NL80211_CHAN_HT40PLUS
	.comm	_MWL8K_TX_POWER_LEVEL_TOTAL,4,2 ## @MWL8K_TX_POWER_LEVEL_TOTAL
	.no_dead_strip	_mwl8k_cmd_tx_power
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwl8k_cmd_tx_power
_mwl8k_cmd_tx_power:                    ; @mwl8k_cmd_tx_power
	.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	x20, x2
	mov	x19, x0
	ldr	x23, [x1]
	mov	x0, x1
	bl	_cfg80211_get_chandef_type
	mov	x22, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #64
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
Lloh3:
	adrp	x8, _MWL8K_CMD_TX_POWER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MWL8K_CMD_TX_POWER@GOTPAGEOFF]
	ldrh	w0, [x8]
	bl	_cpu_to_le16
	str	x0, [x21, #8]
	mov	w0, #64
	bl	_cpu_to_le16
	str	x0, [x21]
Lloh5:
	adrp	x8, _MWL8K_CMD_SET_LIST@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MWL8K_CMD_SET_LIST@GOTPAGEOFF]
	ldrh	w0, [x8]
	bl	_cpu_to_le16
	str	x0, [x21, #56]
	ldr	x8, [x23]
Lloh7:
	adrp	x9, _NL80211_BAND_2GHZ@GOTPAGE
Lloh8:
	ldr	x9, [x9, _NL80211_BAND_2GHZ@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	mov	w0, #1
	b	LBB0_6
LBB0_3:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_19
LBB0_4:
Lloh13:
	adrp	x9, _NL80211_BAND_5GHZ@GOTPAGE
Lloh14:
	ldr	x9, [x9, _NL80211_BAND_5GHZ@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.5:
	mov	w0, #4
LBB0_6:
	bl	_cpu_to_le16
	str	x0, [x21, #48]
LBB0_7:
	ldrh	w0, [x23, #8]
	bl	_cpu_to_le16
	str	x0, [x21, #40]
Lloh16:
	adrp	x8, _NL80211_CHAN_NO_HT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _NL80211_CHAN_NO_HT@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	cmp	w22, w8
	b.eq	LBB0_11
; %bb.8:
Lloh19:
	adrp	x8, _NL80211_CHAN_HT20@GOTPAGE
Lloh20:
	ldr	x8, [x8, _NL80211_CHAN_HT20@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	cmp	w22, w8
	b.eq	LBB0_11
; %bb.9:
	mov	w0, #4
	bl	_cpu_to_le16
	str	x0, [x21, #32]
Lloh22:
	adrp	x8, _NL80211_CHAN_HT40MINUS@GOTPAGE
Lloh23:
	ldr	x8, [x8, _NL80211_CHAN_HT40MINUS@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	cmp	w22, w8
	b.ne	LBB0_12
; %bb.10:
	mov	w0, #3
	b	LBB0_14
LBB0_11:
	mov	w0, #2
	bl	_cpu_to_le16
	str	x0, [x21, #32]
	b	LBB0_15
LBB0_12:
Lloh25:
	adrp	x8, _NL80211_CHAN_HT40PLUS@GOTPAGE
Lloh26:
	ldr	x8, [x8, _NL80211_CHAN_HT40PLUS@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	cmp	w22, w8
	b.ne	LBB0_15
; %bb.13:
	mov	w0, #1
LBB0_14:
	bl	_cpu_to_le16
	str	x0, [x21, #24]
LBB0_15:
Lloh28:
	adrp	x22, _MWL8K_TX_POWER_LEVEL_TOTAL@GOTPAGE
Lloh29:
	ldr	x22, [x22, _MWL8K_TX_POWER_LEVEL_TOTAL@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.16:
	mov	x23, #0
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_cpu_to_le16
	ldr	x8, [x21, #16]
	str	x0, [x8, x23, lsl #3]
	add	x23, x23, #1
	ldrsw	x8, [x22]
	cmp	x23, x8
	b.lt	LBB0_17
LBB0_18:
	mov	x0, x19
	mov	x1, x21
	bl	_mwl8k_post_cmd
	mov	x19, x0
	mov	x0, x21
	bl	_kfree
	mov	x0, x19
LBB0_19:
	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	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MWL8K_CMD_TX_POWER,2,1         ; @MWL8K_CMD_TX_POWER
	.comm	_MWL8K_CMD_SET_LIST,2,1         ; @MWL8K_CMD_SET_LIST
	.comm	_NL80211_BAND_2GHZ,8,3          ; @NL80211_BAND_2GHZ
	.comm	_NL80211_BAND_5GHZ,8,3          ; @NL80211_BAND_5GHZ
	.comm	_NL80211_CHAN_NO_HT,4,2         ; @NL80211_CHAN_NO_HT
	.comm	_NL80211_CHAN_HT20,4,2          ; @NL80211_CHAN_HT20
	.comm	_NL80211_CHAN_HT40MINUS,4,2     ; @NL80211_CHAN_HT40MINUS
	.comm	_NL80211_CHAN_HT40PLUS,4,2      ; @NL80211_CHAN_HT40PLUS
	.comm	_MWL8K_TX_POWER_LEVEL_TOTAL,4,2 ; @MWL8K_TX_POWER_LEVEL_TOTAL
	.no_dead_strip	_mwl8k_cmd_tx_power
.subsections_via_symbols
