	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fm_rx_update_af_cache
_fm_rx_update_af_cache:                 ## @fm_rx_update_af_cache
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	_FM_RDS_1_AF_FOLLOWS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rsi, %rcx
	jg	LBB0_2
## %bb.1:
	movq	_FM_RDS_25_AF_FOLLOWS@GOTPCREL(%rip), %rdx
	cmpq	%rsi, (%rdx)
	jl	LBB0_2
## %bb.19:
	subq	%rcx, %rsi
	incq	%rsi
	movq	%rsi, 24(%rbx)
	movq	$0, 32(%rbx)
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fmdbg                          ## TAILCALL
LBB0_2:
	movq	_FM_RDS_MIN_AF@GOTPCREL(%rip), %rcx
	cmpq	%rsi, (%rcx)
	jg	LBB0_18
## %bb.3:
	movq	_FM_BAND_EUROPE_US@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	_FM_RDS_MAX_AF@GOTPCREL(%rip), %rcx
	cmpq	%rsi, (%rcx)
	jl	LBB0_18
LBB0_5:
	movq	_FM_BAND_JAPAN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	movq	_FM_RDS_MAX_AF_JAPAN@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	jge	LBB0_7
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	imulq	$100, %rsi, %r14
	addq	16(%rbx), %r14
	cmpq	(%rbx), %r14
	jne	LBB0_8
## %bb.10:
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fmdbg                          ## TAILCALL
LBB0_8:
	movq	32(%rbx), %r15
	testq	%r15, %r15
	jle	LBB0_9
## %bb.11:
	movq	40(%rbx), %rcx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%r14, (%rcx,%rax,8)
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	incq	%rax
	cmpq	%rax, %r15
	jne	LBB0_12
## %bb.14:
	movq	%r15, %rax
	jmp	LBB0_15
LBB0_9:
	xorl	%eax, %eax
LBB0_15:
	cmpq	24(%rbx), %rax
	jne	LBB0_16
## %bb.20:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fmdbg                          ## TAILCALL
LBB0_16:
	cmpq	%r15, %rax
	jne	LBB0_18
## %bb.17:
	leaq	L_.str.3(%rip), %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_fmdbg
	movq	40(%rbx), %rax
	movq	%r14, (%rax,%r15,8)
	incq	32(%rbx)
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_FM_RDS_1_AF_FOLLOWS,8,3        ## @FM_RDS_1_AF_FOLLOWS
	.comm	_FM_RDS_25_AF_FOLLOWS,8,3       ## @FM_RDS_25_AF_FOLLOWS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No of expected AF : %d\n"

	.comm	_FM_RDS_MIN_AF,8,3              ## @FM_RDS_MIN_AF
	.comm	_FM_BAND_EUROPE_US,8,3          ## @FM_BAND_EUROPE_US
	.comm	_FM_RDS_MAX_AF,8,3              ## @FM_RDS_MAX_AF
	.comm	_FM_BAND_JAPAN,8,3              ## @FM_BAND_JAPAN
	.comm	_FM_RDS_MAX_AF_JAPAN,8,3        ## @FM_RDS_MAX_AF_JAPAN
L_.str.1:                               ## @.str.1
	.asciz	"Current freq(%d) is matching with received AF(%d)\n"

L_.str.2:                               ## @.str.2
	.asciz	"AF cache is full\n"

L_.str.3:                               ## @.str.3
	.asciz	"Storing AF %d to cache index %d\n"

	.no_dead_strip	_fm_rx_update_af_cache
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fm_rx_update_af_cache
_fm_rx_update_af_cache:                 ; @fm_rx_update_af_cache
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _FM_RDS_1_AF_FOLLOWS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FM_RDS_1_AF_FOLLOWS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _FM_RDS_25_AF_FOLLOWS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FM_RDS_25_AF_FOLLOWS@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x1
	ccmp	x9, x1, #8, le
	b.ge	LBB0_6
; %bb.1:
Lloh6:
	adrp	x8, _FM_RDS_MIN_AF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FM_RDS_MIN_AF@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x8, x1
	b.gt	LBB0_8
; %bb.2:
	ldr	x8, [x19, #8]
Lloh9:
	adrp	x9, _FM_BAND_EUROPE_US@GOTPAGE
Lloh10:
	ldr	x9, [x9, _FM_BAND_EUROPE_US@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
Lloh12:
	adrp	x10, _FM_RDS_MAX_AF@GOTPAGE
Lloh13:
	ldr	x10, [x10, _FM_RDS_MAX_AF@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x10, x1, #0, eq
	b.lt	LBB0_8
; %bb.3:
Lloh15:
	adrp	x9, _FM_BAND_JAPAN@GOTPAGE
Lloh16:
	ldr	x9, [x9, _FM_BAND_JAPAN@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
Lloh18:
	adrp	x10, _FM_RDS_MAX_AF_JAPAN@GOTPAGE
Lloh19:
	ldr	x10, [x10, _FM_RDS_MAX_AF_JAPAN@GOTPAGEOFF]
Lloh20:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x10, x1, #0, eq
	b.lt	LBB0_8
; %bb.4:
	ldr	x8, [x19, #16]
	mov	w9, #100
	madd	x20, x1, x9, x8
	ldr	x8, [x19]
	cmp	x20, x8
	b.ne	LBB0_9
; %bb.5:
	stp	x20, x20, [sp]
Lloh21:
	adrp	x0, l_.str.1@PAGE
Lloh22:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_6:
	sub	x8, x1, x8
	add	x8, x8, #1
	stp	x8, xzr, [x19, #24]
	str	x8, [sp]
Lloh23:
	adrp	x0, l_.str@PAGE
Lloh24:
	add	x0, x0, l_.str@PAGEOFF
LBB0_7:
	bl	_fmdbg
LBB0_8:
	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
	add	sp, sp, #64
	ret
LBB0_9:
	ldr	x21, [x19, #32]
	cmp	x21, #1
	b.lt	LBB0_14
; %bb.10:
	mov	x8, #0
	ldr	x9, [x19, #40]
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9, x8, lsl #3]
	cmp	x10, x20
	b.eq	LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x8, x8, #1
	cmp	x21, x8
	b.ne	LBB0_11
; %bb.13:
	mov	x8, x21
	b	LBB0_15
LBB0_14:
	mov	x8, #0
LBB0_15:
	ldr	x9, [x19, #24]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.16:
Lloh25:
	adrp	x0, l_.str.2@PAGE
Lloh26:
	add	x0, x0, l_.str.2@PAGEOFF
	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
	add	sp, sp, #64
	b	_fmdbg
LBB0_17:
	cmp	x8, x21
	b.ne	LBB0_8
; %bb.18:
	stp	x20, x21, [sp]
Lloh27:
	adrp	x0, l_.str.3@PAGE
Lloh28:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_fmdbg
	ldr	x8, [x19, #40]
	str	x20, [x8, x21, lsl #3]
	ldr	x8, [x19, #32]
	add	x8, x8, #1
	str	x8, [x19, #32]
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_FM_RDS_1_AF_FOLLOWS,8,3        ; @FM_RDS_1_AF_FOLLOWS
	.comm	_FM_RDS_25_AF_FOLLOWS,8,3       ; @FM_RDS_25_AF_FOLLOWS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No of expected AF : %d\n"

	.comm	_FM_RDS_MIN_AF,8,3              ; @FM_RDS_MIN_AF
	.comm	_FM_BAND_EUROPE_US,8,3          ; @FM_BAND_EUROPE_US
	.comm	_FM_RDS_MAX_AF,8,3              ; @FM_RDS_MAX_AF
	.comm	_FM_BAND_JAPAN,8,3              ; @FM_BAND_JAPAN
	.comm	_FM_RDS_MAX_AF_JAPAN,8,3        ; @FM_RDS_MAX_AF_JAPAN
l_.str.1:                               ; @.str.1
	.asciz	"Current freq(%d) is matching with received AF(%d)\n"

l_.str.2:                               ; @.str.2
	.asciz	"AF cache is full\n"

l_.str.3:                               ; @.str.3
	.asciz	"Storing AF %d to cache index %d\n"

	.no_dead_strip	_fm_rx_update_af_cache
.subsections_via_symbols
