	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function il4965_send_tx_power
_il4965_send_tx_power:                  ## @il4965_send_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	$0, -44(%rbp)
	movq	$0, -52(%rbp)
	movq	_S_SCAN_HW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	16(%rbx), %rsi
	callq	_test_bit
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_WARN_ONCE
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_2:
	leaq	-52(%rbp), %r14
	movq	(%rbx), %rax
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	cmpq	(%rcx), %rax
	sete	%r15b
	movl	8(%rbx), %edi
	callq	_iw4965_is_ht40_channel
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	_RXON_FLG_CTRL_CHANNEL_LOC_HI_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r13d, %r13d
	testl	%eax, 8(%rbx)
	setne	%r13b
	jmp	LBB0_5
LBB0_3:
	xorl	%r13d, %r13d
LBB0_5:
	movl	%r15d, -56(%rbp)
	movl	12(%rbx), %edi
	movl	%edi, -48(%rbp)
	callq	_le16_to_cpu
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	movl	%r12d, %ecx
	movl	%r13d, %r8d
	movq	%r14, %r9
	callq	_il4965_fill_txpower_tbl
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	_C_TX_PWR_TBL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$16, %edx
	callq	_il_send_cmd_pdu
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_S_SCAN_HW,4,2                  ## @S_SCAN_HW
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TX Power requested while scanning!\n"

	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_NL80211_BAND_2GHZ,8,3          ## @NL80211_BAND_2GHZ
	.comm	_RXON_FLG_CTRL_CHANNEL_LOC_HI_MSK,4,2 ## @RXON_FLG_CTRL_CHANNEL_LOC_HI_MSK
	.comm	_C_TX_PWR_TBL,4,2               ## @C_TX_PWR_TBL
	.no_dead_strip	_il4965_send_tx_power
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function il4965_send_tx_power
_il4965_send_tx_power:                  ; @il4965_send_tx_power
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x0
	str	wzr, [sp, #12]
	stur	xzr, [sp, #4]
Lloh0:
	adrp	x8, _S_SCAN_HW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _S_SCAN_HW@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x19, #16
	bl	_test_bit
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_WARN_ONCE
	cbz	x0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_2:
	mov	x8, sp
	orr	x20, x8, #0x4
	ldr	x8, [x19]
Lloh8:
	adrp	x9, _NL80211_BAND_2GHZ@GOTPAGE
Lloh9:
	ldr	x9, [x9, _NL80211_BAND_2GHZ@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w21, eq
	ldr	w0, [x19, #8]
	bl	_iw4965_is_ht40_channel
	mov	x22, x0
	cbz	w0, LBB0_4
; %bb.3:
	ldr	w8, [x19, #8]
Lloh11:
	adrp	x9, _RXON_FLG_CTRL_CHANNEL_LOC_HI_MSK@GOTPAGE
Lloh12:
	ldr	x9, [x9, _RXON_FLG_CTRL_CHANNEL_LOC_HI_MSK@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w23, ne
	b	LBB0_5
LBB0_4:
	mov	w23, #0
LBB0_5:
	ldr	w0, [x19, #12]
	str	w21, [sp]
	str	w0, [sp, #8]
	bl	_le16_to_cpu
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	mov	x3, x22
	mov	x4, x23
	mov	x5, x20
	bl	_il4965_fill_txpower_tbl
	cbnz	w0, LBB0_7
; %bb.6:
Lloh14:
	adrp	x8, _C_TX_PWR_TBL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _C_TX_PWR_TBL@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x3, sp
	mov	x0, x19
	mov	w2, #16
	bl	_il_send_cmd_pdu
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_S_SCAN_HW,4,2                  ; @S_SCAN_HW
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TX Power requested while scanning!\n"

	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_NL80211_BAND_2GHZ,8,3          ; @NL80211_BAND_2GHZ
	.comm	_RXON_FLG_CTRL_CHANNEL_LOC_HI_MSK,4,2 ; @RXON_FLG_CTRL_CHANNEL_LOC_HI_MSK
	.comm	_C_TX_PWR_TBL,4,2               ; @C_TX_PWR_TBL
	.no_dead_strip	_il4965_send_tx_power
.subsections_via_symbols
