	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tda18271_lookup_rf_band        ## -- Begin function tda18271_lookup_rf_band
	.p2align	4, 0x90
_tda18271_lookup_rf_band:               ## @tda18271_lookup_rf_band
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	(%rax), %eax
	imull	$1000, %eax, %edx               ## imm = 0x3E8
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movl	(%rsi), %ecx
	xorl	%ebx, %ebx
	cmpl	%ecx, %edx
	jge	LBB0_7
## %bb.1:
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	leaq	48(%rsi), %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_DBG_ADV@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movq	_tda18271_debug@GOTPCREL(%rip), %rdi
	testl	%esi, (%rdi)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-4(%r14), %r8d
	movl	-8(%r14), %r9d
	movl	-12(%r14), %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	-16(%r14), %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	-20(%r14), %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	-24(%r14), %r12d
	movl	-28(%r14), %r15d
	movl	-32(%r14), %r10d
	movl	-40(%r14), %r11d
	movl	-36(%r14), %r13d
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	pushq	%r11
	pushq	%r13
	pushq	%r10
	pushq	%r15
	pushq	%r12
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	pushq	-80(%rbp)                       ## 8-byte Folded Reload
	pushq	-88(%rbp)                       ## 8-byte Folded Reload
	callq	_tda_map
	addq	$64, %rsp
	movl	-48(%r14), %eax
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r14), %eax
	imull	$1000, %eax, %edx               ## imm = 0x3E8
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %ecx
	addq	$48, %r14
	incl	%ebx
	cmpl	%ecx, %edx
	jl	LBB0_2
LBB0_7:
	movl	%ebx, %eax
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	je	LBB0_9
## %bb.8:
	leaq	(%rax,%rax,2), %rcx
	shlq	$4, %rcx
	movl	4(%rdx,%rcx), %ecx
	movl	%ecx, (%rsi)
LBB0_9:
	leaq	(%rax,%rax,2), %rax
	shlq	$4, %rax
	movl	4(%rdx,%rax), %edx
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_tda_map
	jmp	LBB0_10
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tda18271_debug,4,2             ## @tda18271_debug
	.comm	_DBG_ADV,4,2                    ## @DBG_ADV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(%d) rfmax = %d < freq = %d, rf1_def = %d, rf2_def = %d, rf3_def = %d, rf1 = %d, rf2 = %d, rf3 = %d, rf_a1 = %d, rf_a2 = %d, rf_b1 = %d, rf_b2 = %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"(%d) rf_band = %02x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tda18271_lookup_rf_band        ; -- Begin function tda18271_lookup_rf_band
	.p2align	2
_tda18271_lookup_rf_band:               ; @tda18271_lookup_rf_band
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x2
	ldr	x8, [x0]
	ldr	x23, [x8]
	ldr	w9, [x23]
	mov	w24, #1000
	mul	w2, w9, w24
	ldr	w8, [x1]
	cmp	w2, w8
	b.ge	LBB0_9
; %bb.1:
	mov	x21, x1
	mov	w19, #0
	add	x25, x23, #24
Lloh0:
	adrp	x26, _tda18271_debug@GOTPAGE
Lloh1:
	ldr	x26, [x26, _tda18271_debug@GOTPAGEOFF]
Lloh2:
	adrp	x27, _DBG_ADV@GOTPAGE
Lloh3:
	ldr	x27, [x27, _DBG_ADV@GOTPAGEOFF]
Lloh4:
	adrp	x22, l_.str@PAGE
Lloh5:
	add	x22, x22, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x26]
	ldr	w11, [x27]
	tst	w11, w10
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldp	w10, w9, [x25, #16]
	ldp	w12, w11, [x25, #8]
	ldp	w14, w13, [x25]
	ldp	w16, w15, [x25, #-8]
	ldp	w0, w17, [x25, #-16]
	stp	x17, x0, [sp, #72]
	stp	x15, x16, [sp, #56]
	stp	x13, x14, [sp, #40]
	stp	x11, x12, [sp, #24]
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
	mov	x0, x22
	mov	x1, x19
	bl	_tda_map
	ldur	w9, [x25, #-24]
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	cbz	w9, LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w9, [x25, #24]
	mul	w2, w9, w24
	ldr	w8, [x21]
	add	w19, w19, #1
	add	x25, x25, #48
	cmp	w2, w8
	b.lt	LBB0_2
; %bb.6:
	mov	w8, w19
	cbz	x20, LBB0_8
LBB0_7:
	mov	w9, #48
	madd	x9, x8, x9, x23
	ldr	w9, [x9, #4]
	str	w9, [x20]
LBB0_8:
	mov	w9, #48
	madd	x8, x8, x9, x23
	ldr	w2, [x8, #4]
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_tda_map
	b	LBB0_11
LBB0_9:
	mov	w19, #0
	mov	w8, w19
	cbnz	x20, LBB0_7
	b	LBB0_8
LBB0_10:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_tda18271_debug,4,2             ; @tda18271_debug
	.comm	_DBG_ADV,4,2                    ; @DBG_ADV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(%d) rfmax = %d < freq = %d, rf1_def = %d, rf2_def = %d, rf3_def = %d, rf1 = %d, rf2 = %d, rf3 = %d, rf_a1 = %d, rf_a2 = %d, rf_b1 = %d, rf_b2 = %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"(%d) rf_band = %02x\n"

.subsections_via_symbols
