	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function il3945_hw_reg_init_channel_groups
_il3945_hw_reg_init_channel_groups:     ## @il3945_hw_reg_init_channel_groups
	.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	%rdi, %r14
	movq	8(%rdi), %rbx
	leaq	L_.str(%rip), %rdi
	callq	_D_POWER
	movq	_IL_NUM_TX_CALIB_GROUPS@GOTPCREL(%rip), %r8
	cmpq	$0, (%r8)
	je	LBB0_20
## %bb.1:
	movq	(%rbx), %r9
	movq	_RATE_COUNT_3945@GOTPCREL(%rip), %rax
	movl	(%rax), %r11d
	movl	%r11d, %r13d
	andl	$-2, %r13d
	xorl	%r15d, %r15d
	jmp	LBB0_11
LBB0_8:                                 ##   in Loop: Header=BB0_11 Depth=1
	testq	%r15, %r15
	cmovneq	%r10, %rsi
LBB0_9:                                 ##   in Loop: Header=BB0_11 Depth=1
	movq	%rsi, (%rbx)
LBB0_10:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%r15
	cmpq	(%r8), %r15
	jae	LBB0_20
LBB0_11:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_15 Depth 2
	movl	(%r9,%r15,4), %esi
	cmpl	$39, %esi
	jle	LBB0_21
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	testl	%r11d, %r11d
	jle	LBB0_10
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	shrq	%rsi
	leaq	-5(%rsi), %r10
	xorl	%ecx, %ecx
	movq	(%r14), %rax
	movq	(%rax,%r15,8), %rbx
	cmpl	$1, %r11d
	jne	LBB0_14
LBB0_2:                                 ##   in Loop: Header=BB0_11 Depth=1
	testb	$1, %r11b
	je	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_11 Depth=1
	cmpl	$130, %ecx
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_11 Depth=1
	cmpl	$129, %ecx
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_11 Depth=1
	cmpl	$128, %ecx
	jne	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_11 Depth=1
	xorl	%eax, %eax
	testq	%r15, %r15
	sete	%al
	leaq	(%rax,%rax,2), %rax
	addq	%rax, %rsi
	addq	$-12, %rsi
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=1
	xorl	%eax, %eax
	testq	%r15, %r15
	sete	%al
	leaq	(%rax,%rax,2), %rax
	leaq	-12(%rsi,%rax), %r12
	leaq	-10(%rsi,%rax), %rax
	movq	%r10, %rdi
	cmoveq	%rsi, %rdi
	xorl	%ecx, %ecx
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_15 Depth=2
	movq	%r12, %rdx
LBB0_19:                                ##   in Loop: Header=BB0_15 Depth=2
	movq	%rdx, (%rbx)
	cmpl	$128, %ecx
	movq	%rsi, %rdx
	cmoveq	%rax, %rdx
	movq	%rdx, 8(%rbx)
	addl	$2, %ecx
	addq	$16, %rbx
	cmpl	%ecx, %r13d
	je	LBB0_2
LBB0_15:                                ##   Parent Loop BB0_11 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	$128, %ecx
	je	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=2
	movq	%rsi, %rdx
	cmpl	$130, %ecx
	jne	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=2
	movq	%rdi, %rdx
	jmp	LBB0_19
LBB0_7:                                 ##   in Loop: Header=BB0_11 Depth=1
	xorl	%eax, %eax
	testq	%r15, %r15
	sete	%al
	leaq	(%rax,%rax,2), %rax
	addq	%rax, %rsi
	addq	$-10, %rsi
	jmp	LBB0_9
LBB0_20:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	leaq	L_.str.1(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_IL_WARN                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Initializing factory calib info from EEPROM\n"

	.comm	_IL_NUM_TX_CALIB_GROUPS,8,3     ## @IL_NUM_TX_CALIB_GROUPS
L_.str.1:                               ## @.str.1
	.asciz	"Error: saturation power is %d, less than minimum expected 40\n"

	.comm	_RATE_COUNT_3945,4,2            ## @RATE_COUNT_3945
	.no_dead_strip	_il3945_hw_reg_init_channel_groups
.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_init_channel_groups
_il3945_hw_reg_init_channel_groups:     ; @il3945_hw_reg_init_channel_groups
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x20, [x0, #8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_D_POWER
Lloh2:
	adrp	x8, _IL_NUM_TX_CALIB_GROUPS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IL_NUM_TX_CALIB_GROUPS@GOTPAGEOFF]
	ldr	x9, [x8]
	cbz	x9, LBB0_7
; %bb.1:
	mov	x9, #0
Lloh4:
	adrp	x11, _RATE_COUNT_3945@GOTPAGE
Lloh5:
	ldr	x11, [x11, _RATE_COUNT_3945@GOTPAGEOFF]
	ldr	x10, [x20]
Lloh6:
	ldr	w11, [x11]
	mov	x12, #-12
	mov	x13, #-9
	mov	x14, #-10
	mov	x15, #-7
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #1
	ldr	x16, [x8]
	cmp	x9, x16
	b.hs	LBB0_7
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	w1, [x10, x9, lsl #2]
	cmp	w1, #39
	b.le	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w11, #1
	b.lt	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x16, #0
	lsr	x17, x1, #1
	ldr	x0, [x19]
	ldr	x0, [x0, x9, lsl #3]
	sub	x3, x17, #5
	cmp	x9, #0
	csel	x1, x13, x12, eq
	add	x1, x1, x17
	csel	x2, x15, x14, eq
	add	x2, x2, x17
	csel	x3, x17, x3, eq
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	w16, #130
	csel	x4, x17, x3, ne
	cmp	w16, #129
	csel	x4, x2, x4, eq
	cmp	w16, #128
	csel	x4, x1, x4, eq
	str	x4, [x0, x16, lsl #3]
	add	x16, x16, #1
	cmp	w11, w16
	b.ne	LBB0_6
	b	LBB0_2
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_IL_WARN
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Initializing factory calib info from EEPROM\n"

	.comm	_IL_NUM_TX_CALIB_GROUPS,8,3     ; @IL_NUM_TX_CALIB_GROUPS
l_.str.1:                               ; @.str.1
	.asciz	"Error: saturation power is %d, less than minimum expected 40\n"

	.comm	_RATE_COUNT_3945,4,2            ; @RATE_COUNT_3945
	.no_dead_strip	_il3945_hw_reg_init_channel_groups
.subsections_via_symbols
