	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function il3945_hw_reg_comp_txpower_temp
_il3945_hw_reg_comp_txpower_temp:       ## @il3945_hw_reg_comp_txpower_temp
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, 48(%rdi)
	jne	LBB0_14
## %bb.1:
	movq	%rdi, %r15
	movq	56(%rdi), %rbx
	movl	(%rdi), %r13d
	movq	_S_SCANNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	40(%r15), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_2
LBB0_14:
	xorl	%eax, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	cmpq	$0, 8(%r15)
	je	LBB0_13
## %bb.3:
	xorl	%r12d, %r12d
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%r12
	cmpq	8(%r15), %r12
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	jae	LBB0_13
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
                                        ##     Child Loop BB0_9 Depth 2
	movq	32(%r15), %r15
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	shlq	$4, %r12
	leaq	(%r15,%r12), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_il_is_channel_a_band
	movq	%rax, %r14
	movq	(%rbx), %rax
	movq	(%r15,%r12), %rcx
	movl	(%rax,%rcx,8), %esi
	movl	%r13d, %edi
	callq	_il3945_hw_reg_adjust_power_by_temp
	movl	%eax, %ebx
	movq	_RATE_COUNT_3945@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movq	_power_gain_table@GOTPCREL(%rip), %rsi
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	(%r15,%r12), %rax
	addq	$8, %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	8(%r15,%r12), %rax
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rax,%r15), %edi
	addl	%ebx, %edi
	movq	%r14, %r13
	movq	%rsi, %r14
	callq	_il3945_hw_reg_fix_power_idx
	movq	%r14, %rsi
	movq	%r13, %r14
	movslq	%eax, %rcx
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	%rcx, 8(%rax,%r15)
	movq	(%rsi), %rdx
	movq	(%rdx,%r13,8), %rdx
	movl	(%rdx,%rcx,4), %ecx
	movl	%ecx, 16(%rax,%r15)
	movq	_RATE_COUNT_3945@GOTPCREL(%rip), %rcx
	incq	%r12
	addq	$24, %r15
	cmpq	(%rcx), %r12
	jb	LBB0_6
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	_IL_NUM_SCAN_RATES@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	24(%r15), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %r13
	xorl	%ebx, %ebx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=2
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rcx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	%r14, %r9
	callq	_il3945_hw_reg_set_scan_power
	incq	%rbx
	movq	_IL_NUM_SCAN_RATES@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jae	LBB0_12
LBB0_9:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_RATE_6M_IDX_TBL@GOTPCREL(%rip), %rax
	testq	%rbx, %rbx
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	_RATE_1M_IDX_TBL@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_13:
	movq	16(%r15), %rax
	movq	%r15, %rdi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*(%rax)                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_S_SCANNING,4,2                 ## @S_SCANNING
	.comm	_RATE_COUNT_3945,8,3            ## @RATE_COUNT_3945
	.comm	_power_gain_table,8,3           ## @power_gain_table
	.comm	_IL_NUM_SCAN_RATES,8,3          ## @IL_NUM_SCAN_RATES
	.comm	_RATE_1M_IDX_TBL,4,2            ## @RATE_1M_IDX_TBL
	.comm	_RATE_6M_IDX_TBL,4,2            ## @RATE_6M_IDX_TBL
	.no_dead_strip	_il3945_hw_reg_comp_txpower_temp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function il3945_hw_reg_comp_txpower_temp
_il3945_hw_reg_comp_txpower_temp:       ; @il3945_hw_reg_comp_txpower_temp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x8, [x0, #48]
	cbnz	x8, LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	x21, [x0, #56]
	ldr	w23, [x0]
Lloh0:
	adrp	x8, _S_SCANNING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _S_SCANNING@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x19, #40
	bl	_test_bit
	cbz	x0, LBB0_3
LBB0_2:
	mov	w0, #0
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_3:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_12
; %bb.4:
	mov	x9, #0
Lloh3:
	adrp	x27, _RATE_COUNT_3945@GOTPAGE
Lloh4:
	ldr	x27, [x27, _RATE_COUNT_3945@GOTPAGEOFF]
Lloh5:
	adrp	x28, _IL_NUM_SCAN_RATES@GOTPAGE
Lloh6:
	ldr	x28, [x28, _IL_NUM_SCAN_RATES@GOTPAGEOFF]
Lloh7:
	adrp	x26, _power_gain_table@GOTPAGE
Lloh8:
	ldr	x26, [x26, _power_gain_table@GOTPAGEOFF]
	str	x21, [sp, #16]                  ; 8-byte Folded Spill
	str	w23, [sp, #12]                  ; 4-byte Folded Spill
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldp	x21, x9, [sp, #16]              ; 16-byte Folded Reload
	add	x9, x9, #1
	ldr	x8, [x19, #8]
	cmp	x9, x8
	ldr	w23, [sp, #12]                  ; 4-byte Folded Reload
	b.hs	LBB0_12
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;     Child Loop BB0_11 Depth 2
	ldr	x8, [x19, #32]
	str	x9, [sp, #24]                   ; 8-byte Folded Spill
	add	x20, x8, x9, lsl #4
	mov	x0, x20
	bl	_il_is_channel_a_band
	mov	x22, x0
	ldr	x8, [x21]
	ldr	x9, [x20]
	ldr	x1, [x8, x9, lsl #3]
	mov	x0, x23
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_il3945_hw_reg_adjust_power_by_temp
	ldr	x8, [x27]
	cbz	x8, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x23, x0
	mov	x24, #0
	mov	x25, #0
	mov	x21, x20
	ldr	x8, [x21, #8]!
LBB0_8:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [x8, x24]
	add	w0, w8, w23
	bl	_il3945_hw_reg_fix_power_idx
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x9, w0
	ldr	x8, [x21]
	add	x10, x8, x24
	ldr	x11, [x26]
	ldr	x11, [x11, x22, lsl #3]
	ldr	w11, [x11, w0, sxtw #2]
	str	x9, [x10, #8]
	str	w11, [x10, #16]
	add	x25, x25, #1
	ldr	x9, [x27]
	add	x24, x24, #24
	cmp	x25, x9
	b.lo	LBB0_8
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x28]
Lloh9:
	adrp	x21, _RATE_1M_IDX_TBL@GOTPAGE
Lloh10:
	ldr	x21, [x21, _RATE_1M_IDX_TBL@GOTPAGEOFF]
Lloh11:
	adrp	x25, _RATE_6M_IDX_TBL@GOTPAGE
Lloh12:
	ldr	x25, [x25, _RATE_6M_IDX_TBL@GOTPAGEOFF]
	cbz	x8, LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x23, #0
	ldr	x8, [x19, #24]
	ldr	x9, [x20]
	ldr	x24, [x8, x9, lsl #3]
LBB0_11:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	x23, #0
	csel	x8, x21, x25, eq
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x23
	mov	x3, x24
	mov	x4, x20
	mov	x5, x22
	bl	_il3945_hw_reg_set_scan_power
	add	x23, x23, #1
	ldr	x8, [x28]
	cmp	x23, x8
	b.lo	LBB0_11
	b	LBB0_5
LBB0_12:
	ldr	x8, [x19, #16]
	ldr	x1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	br	x1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_S_SCANNING,4,2                 ; @S_SCANNING
	.comm	_RATE_COUNT_3945,8,3            ; @RATE_COUNT_3945
	.comm	_power_gain_table,8,3           ; @power_gain_table
	.comm	_IL_NUM_SCAN_RATES,8,3          ; @IL_NUM_SCAN_RATES
	.comm	_RATE_1M_IDX_TBL,4,2            ; @RATE_1M_IDX_TBL
	.comm	_RATE_6M_IDX_TBL,4,2            ; @RATE_6M_IDX_TBL
	.no_dead_strip	_il3945_hw_reg_comp_txpower_temp
.subsections_via_symbols
