	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function il3945_hw_reg_set_new_power
_il3945_hw_reg_set_new_power:           ## @il3945_hw_reg_set_new_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
	movq	_RATE_6M_IDX_TBL@GOTPCREL(%rip), %rax
	movslq	(%rax), %rbx
	movq	_RATE_54M_IDX_TBL@GOTPCREL(%rip), %r12
	cmpl	(%r12), %ebx
	jg	LBB0_9
## %bb.1:
	movq	%rsi, %r14
	movq	(%rdi), %rax
	movq	(%rsi), %rcx
	movq	(%rax,%rcx,8), %r13
	movq	8(%rsi), %r15
	decq	%rbx
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	$16, %r15
	movslq	(%r12), %rax
	incq	%rbx
	cmpq	%rax, %rbx
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	16(%r14), %edi
	movl	4(%r13,%rbx,4), %esi
	callq	_min
	movl	%eax, %ecx
	subl	(%r15), %ecx
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	addl	%ecx, %ecx
	movslq	%ecx, %rcx
	subq	%rcx, 8(%r15)
	movl	%eax, (%r15)
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_4
LBB0_5:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_9
## %bb.6:
	movq	_RATE_1M_IDX_TBL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_RATE_11M_IDX_TBL@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jg	LBB0_9
## %bb.7:
	movq	8(%r14), %rsi
	movq	_RATE_12M_IDX_TBL@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdi
	shlq	$4, %rdi
	movq	_IL_CCK_FROM_OFDM_POWER_DIFF@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	addl	(%rsi,%rdi), %edx
	addq	%rdi, %rsi
	addq	$8, %rsi
	movq	_IL_CCK_FROM_OFDM_IDX_DIFF@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rdi
	decl	%eax
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	%edx, (%r15)
	movq	(%rsi), %rbx
	addq	%rdi, %rbx
	movq	%rbx, 8(%r15)
	incl	%eax
	addq	$16, %r15
	cmpl	(%rcx), %eax
	jl	LBB0_8
LBB0_9:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RATE_6M_IDX_TBL,4,2            ## @RATE_6M_IDX_TBL
	.comm	_RATE_54M_IDX_TBL,4,2           ## @RATE_54M_IDX_TBL
	.comm	_RATE_12M_IDX_TBL,8,3           ## @RATE_12M_IDX_TBL
	.comm	_IL_CCK_FROM_OFDM_POWER_DIFF,4,2 ## @IL_CCK_FROM_OFDM_POWER_DIFF
	.comm	_RATE_1M_IDX_TBL,4,2            ## @RATE_1M_IDX_TBL
	.comm	_RATE_11M_IDX_TBL,4,2           ## @RATE_11M_IDX_TBL
	.comm	_IL_CCK_FROM_OFDM_IDX_DIFF,8,3  ## @IL_CCK_FROM_OFDM_IDX_DIFF
	.no_dead_strip	_il3945_hw_reg_set_new_power
.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_set_new_power
_il3945_hw_reg_set_new_power:           ; @il3945_hw_reg_set_new_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
Lloh0:
	adrp	x8, _RATE_6M_IDX_TBL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RATE_6M_IDX_TBL@GOTPAGEOFF]
Lloh2:
	ldrsw	x21, [x8]
Lloh3:
	adrp	x22, _RATE_54M_IDX_TBL@GOTPAGE
Lloh4:
	ldr	x22, [x22, _RATE_54M_IDX_TBL@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w21, w8
	b.gt	LBB0_9
; %bb.1:
	mov	x19, x1
	mov	w24, #0
	ldr	x8, [x0]
	ldp	x9, x20, [x1]
	ldr	x23, [x8, x9, lsl #3]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x21, #1
	add	x20, x20, #16
	ldrsw	x9, [x22]
	cmp	x21, x9
	mov	x21, x8
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #16]
	ldr	w1, [x23, x21, lsl #2]
	bl	_min
	ldr	w8, [x20]
	subs	w8, w0, w8
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	lsl	w8, w8, #1
	ldr	x9, [x20, #8]
	sub	x8, x9, w8, sxtw
	str	x8, [x20, #8]
	str	w0, [x20]
	mov	w24, #1
	b	LBB0_2
LBB0_5:
	cbz	w24, LBB0_9
; %bb.6:
Lloh5:
	adrp	x8, _RATE_1M_IDX_TBL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RATE_1M_IDX_TBL@GOTPAGEOFF]
Lloh7:
	ldr	w12, [x8]
Lloh8:
	adrp	x8, _RATE_11M_IDX_TBL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RATE_11M_IDX_TBL@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w12, w9
	b.gt	LBB0_9
; %bb.7:
	ldr	x10, [x19, #8]
Lloh10:
	adrp	x9, _RATE_12M_IDX_TBL@GOTPAGE
Lloh11:
	ldr	x9, [x9, _RATE_12M_IDX_TBL@GOTPAGEOFF]
Lloh12:
	ldr	x11, [x9]
	lsl	x9, x11, #4
	ldr	w9, [x10, x9]
Lloh13:
	adrp	x13, _IL_CCK_FROM_OFDM_POWER_DIFF@GOTPAGE
Lloh14:
	ldr	x13, [x13, _IL_CCK_FROM_OFDM_POWER_DIFF@GOTPAGEOFF]
Lloh15:
	ldr	w13, [x13]
	add	w9, w13, w9
	add	x10, x10, x11, lsl #4
	add	x10, x10, #8
Lloh16:
	adrp	x11, _IL_CCK_FROM_OFDM_IDX_DIFF@GOTPAGE
Lloh17:
	ldr	x11, [x11, _IL_CCK_FROM_OFDM_IDX_DIFF@GOTPAGEOFF]
Lloh18:
	ldr	x11, [x11]
	sub	w12, w12, #1
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	str	w9, [x20]
	ldr	x13, [x10]
	add	x13, x11, x13
	str	x13, [x20, #8]
	ldr	w13, [x8]
	add	w12, w12, #1
	add	x20, x20, #16
	cmp	w12, w13
	b.lt	LBB0_8
LBB0_9:
	mov	w0, #0
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_RATE_6M_IDX_TBL,4,2            ; @RATE_6M_IDX_TBL
	.comm	_RATE_54M_IDX_TBL,4,2           ; @RATE_54M_IDX_TBL
	.comm	_RATE_12M_IDX_TBL,8,3           ; @RATE_12M_IDX_TBL
	.comm	_IL_CCK_FROM_OFDM_POWER_DIFF,4,2 ; @IL_CCK_FROM_OFDM_POWER_DIFF
	.comm	_RATE_1M_IDX_TBL,4,2            ; @RATE_1M_IDX_TBL
	.comm	_RATE_11M_IDX_TBL,4,2           ; @RATE_11M_IDX_TBL
	.comm	_IL_CCK_FROM_OFDM_IDX_DIFF,8,3  ; @IL_CCK_FROM_OFDM_IDX_DIFF
	.no_dead_strip	_il3945_hw_reg_set_new_power
.subsections_via_symbols
