	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function il4965_get_voltage_compensation
_il4965_get_voltage_compensation:       ## @il4965_get_voltage_compensation
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	$0, -16(%rbp)
	movq	_TX_POWER_IL_ILLEGAL_VOLTAGE@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	xorl	%eax, %eax
	cmpq	%rdi, %rcx
	je	LBB0_3
## %bb.1:
	cmpq	%rsi, %rcx
	je	LBB0_3
## %bb.2:
	movq	_TX_POWER_IL_VOLTAGE_CODES_PER_03V@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subq	%rdi, %rsi
	setg	%bl
	leaq	-16(%rbp), %rdx
	movq	%rsi, %rdi
	movl	%eax, %esi
	callq	_il4965_math_div_round
	movq	-16(%rbp), %rdx
	movl	%ebx, %ecx
	shlq	%cl, %rdx
	leaq	-3(%rdx), %rcx
	xorl	%eax, %eax
	cmpq	$-5, %rcx
	cmovaeq	%rdx, %rax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TX_POWER_IL_ILLEGAL_VOLTAGE,8,3 ## @TX_POWER_IL_ILLEGAL_VOLTAGE
	.comm	_TX_POWER_IL_VOLTAGE_CODES_PER_03V,4,2 ## @TX_POWER_IL_VOLTAGE_CODES_PER_03V
	.no_dead_strip	_il4965_get_voltage_compensation
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function il4965_get_voltage_compensation
_il4965_get_voltage_compensation:       ; @il4965_get_voltage_compensation
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x8, x0
	mov	x0, #0
	str	xzr, [sp, #8]
Lloh0:
	adrp	x9, _TX_POWER_IL_ILLEGAL_VOLTAGE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TX_POWER_IL_ILLEGAL_VOLTAGE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x9, x8
	ccmp	x9, x1, #4, ne
	b.eq	LBB0_2
; %bb.1:
	subs	x0, x1, x8
Lloh3:
	adrp	x8, _TX_POWER_IL_VOLTAGE_CODES_PER_03V@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TX_POWER_IL_VOLTAGE_CODES_PER_03V@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	cset	w19, gt
	add	x2, sp, #8
	bl	_il4965_math_div_round
	ldr	x8, [sp, #8]
	lsl	x8, x8, x19
	sub	x9, x8, #3
	cmn	x9, #5
	csel	x0, xzr, x8, lo
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_TX_POWER_IL_ILLEGAL_VOLTAGE,8,3 ; @TX_POWER_IL_ILLEGAL_VOLTAGE
	.comm	_TX_POWER_IL_VOLTAGE_CODES_PER_03V,4,2 ; @TX_POWER_IL_VOLTAGE_CODES_PER_03V
	.no_dead_strip	_il4965_get_voltage_compensation
.subsections_via_symbols
