	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ite_get_carrier_freq_bits
_ite_get_carrier_freq_bits:             ## @ite_get_carrier_freq_bits
	.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
	movl	%edi, %ebx
	callq	_ite_is_high_carrier_freq
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	cmpl	$424999, %ebx                   ## imm = 0x67C27
	ja	LBB0_3
## %bb.2:
	movq	_ITE_CFQ_400@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_7:
	movq	_ITE_LCF_MIN_CARRIER_FREQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%ebx, %eax
	cmoval	%eax, %ebx
	movq	_ITE_LCF_MAX_CARRIER_FREQ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %ebx
	cmovael	%ecx, %ebx
	subl	%eax, %ebx
	movl	%ebx, %edi
	movl	$1000, %esi                     ## imm = 0x3E8
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_DIV_ROUND_CLOSEST              ## TAILCALL
LBB0_3:
	cmpl	$464999, %ebx                   ## imm = 0x71867
	ja	LBB0_5
## %bb.4:
	movq	_ITE_CFQ_450@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_5:
	cmpl	$489999, %ebx                   ## imm = 0x77A0F
	ja	LBB0_8
## %bb.6:
	movq	_ITE_CFQ_480@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_8:
	movq	_ITE_CFQ_500@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ITE_CFQ_400,4,2                ## @ITE_CFQ_400
	.comm	_ITE_CFQ_450,4,2                ## @ITE_CFQ_450
	.comm	_ITE_CFQ_480,4,2                ## @ITE_CFQ_480
	.comm	_ITE_CFQ_500,4,2                ## @ITE_CFQ_500
	.comm	_ITE_LCF_MIN_CARRIER_FREQ,4,2   ## @ITE_LCF_MIN_CARRIER_FREQ
	.comm	_ITE_LCF_MAX_CARRIER_FREQ,4,2   ## @ITE_LCF_MAX_CARRIER_FREQ
	.no_dead_strip	_ite_get_carrier_freq_bits
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ite_get_carrier_freq_bits
_ite_get_carrier_freq_bits:             ; @ite_get_carrier_freq_bits
	.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
	bl	_ite_is_high_carrier_freq
	cbz	x0, LBB0_3
; %bb.1:
	mov	w8, #31783
	movk	w8, #6, lsl #16
	cmp	w19, w8
	b.hi	LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _ITE_CFQ_400@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ITE_CFQ_400@GOTPAGEOFF]
	b	LBB0_9
LBB0_3:
Lloh2:
	adrp	x8, _ITE_LCF_MIN_CARRIER_FREQ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ITE_LCF_MIN_CARRIER_FREQ@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, w19
	csel	w9, w8, w19, hi
Lloh5:
	adrp	x10, _ITE_LCF_MAX_CARRIER_FREQ@GOTPAGE
Lloh6:
	ldr	x10, [x10, _ITE_LCF_MAX_CARRIER_FREQ@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	cmp	w9, w10
	csel	w9, w9, w10, lo
	sub	w0, w9, w8
	mov	w1, #1000
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_DIV_ROUND_CLOSEST
LBB0_4:
	mov	w8, #6247
	movk	w8, #7, lsl #16
	cmp	w19, w8
	b.hi	LBB0_6
; %bb.5:
Lloh8:
	adrp	x8, _ITE_CFQ_450@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ITE_CFQ_450@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
	mov	w8, #31247
	movk	w8, #7, lsl #16
	cmp	w19, w8
	b.hi	LBB0_8
; %bb.7:
Lloh10:
	adrp	x8, _ITE_CFQ_480@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ITE_CFQ_480@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh12:
	adrp	x8, _ITE_CFQ_500@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ITE_CFQ_500@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ITE_CFQ_400,4,2                ; @ITE_CFQ_400
	.comm	_ITE_CFQ_450,4,2                ; @ITE_CFQ_450
	.comm	_ITE_CFQ_480,4,2                ; @ITE_CFQ_480
	.comm	_ITE_CFQ_500,4,2                ; @ITE_CFQ_500
	.comm	_ITE_LCF_MIN_CARRIER_FREQ,4,2   ; @ITE_LCF_MIN_CARRIER_FREQ
	.comm	_ITE_LCF_MAX_CARRIER_FREQ,4,2   ; @ITE_LCF_MAX_CARRIER_FREQ
	.no_dead_strip	_ite_get_carrier_freq_bits
.subsections_via_symbols
