	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function il3945_hw_reg_fix_power_idx
_il3945_hw_reg_fix_power_idx:           ## @il3945_hw_reg_fix_power_idx
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_IL_MAX_GAIN_ENTRIES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	-1(%rax), %ecx
	cmpl	%edi, %eax
	cmovgl	%edi, %ecx
	xorl	%eax, %eax
	testl	%edi, %edi
	cmovnsl	%ecx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IL_MAX_GAIN_ENTRIES,4,2        ## @IL_MAX_GAIN_ENTRIES
	.no_dead_strip	_il3945_hw_reg_fix_power_idx
.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_fix_power_idx
_il3945_hw_reg_fix_power_idx:           ; @il3945_hw_reg_fix_power_idx
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _IL_MAX_GAIN_ENTRIES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IL_MAX_GAIN_ENTRIES@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sub	w9, w8, #1
	cmp	w8, w0
	csel	w8, w0, w9, gt
	cmp	w0, #0
	csel	w0, wzr, w8, lt
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IL_MAX_GAIN_ENTRIES,4,2        ; @IL_MAX_GAIN_ENTRIES
	.no_dead_strip	_il3945_hw_reg_fix_power_idx
.subsections_via_symbols
