	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm3510_set_freq
_bcm3510_set_freq:                      ## @bcm3510_set_freq
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movslq	%esi, %r13
	imulq	$274877907, %r13, %rbx          ## imm = 0x10624DD3
	movq	%rbx, %rax
	shrq	$63, %rax
	sarq	$38, %rbx
	addl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_deb_info
	xorl	%eax, %eax
	cmpl	$378001000, %r13d               ## imm = 0x1687D668
	setge	%al
	cmpl	$168001000, %r13d               ## imm = 0xA037DE8
	leal	44(,%rax,4), %eax
	movl	$28, %r15d
	cmovgel	%eax, %r15d
	cmpl	$469999999, %r13d               ## imm = 0x1C03A17F
	jle	LBB0_2
## %bb.1:
	movl	$18805, %eax                    ## imm = 0x4975
	movl	$-470001, %ecx                  ## imm = 0xFFF8D40F
	jmp	LBB0_5
LBB0_2:
	cmpl	$89999999, %r12d                ## imm = 0x55D4A7F
	jle	LBB0_4
## %bb.3:
	movl	$15005, %eax                    ## imm = 0x3A9D
	movl	$-90001, %ecx                   ## imm = 0xFFFEA06F
	jmp	LBB0_5
LBB0_4:
	cmpl	$76000000, %r12d                ## imm = 0x487AB00
	movl	$-76001, %eax                   ## imm = 0xFFFED71F
	movl	$-54001, %ecx                   ## imm = 0xFFFF2D0F
	cmovgel	%eax, %ecx
	movl	$14865, %edx                    ## imm = 0x3A11
	movl	$14645, %eax                    ## imm = 0x3935
	cmovgel	%edx, %eax
LBB0_5:
	addl	%ecx, %ebx
	movslq	%ebx, %rcx
	imulq	$91625969, %rcx, %rcx           ## imm = 0x57619F1
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$39, %rcx
	addl	%edx, %ecx
	imull	$60, %ecx, %r14d
	addl	%eax, %r14d
	leal	(,%r14,4), %eax
	cltq
	imulq	$1717986919, %rax, %rbx         ## imm = 0x66666667
	movq	%rbx, %rax
	shrq	$63, %rax
	sarq	$34, %rbx
	addl	%eax, %ebx
	movl	%ebx, %r12d
	sarl	$6, %r12d
	andl	$63, %ebx
	leaq	L_.str.1(%rip), %rdi
	xorl	%r13d, %r13d
	movl	%r15d, %esi
	movl	%r12d, %edx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_deb_info
	cmpl	$2560, %r14d                    ## imm = 0xA00
	jl	LBB0_6
## %bb.7:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	movl	%r12d, %edx
	movl	%ebx, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bcm3510_tuner_cmd              ## TAILCALL
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%dkHz:"

L_.str.1:                               ## @.str.1
	.asciz	" BC1_2_3_4: %x, N: %x A: %x\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_bcm3510_set_freq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm3510_set_freq
_bcm3510_set_freq:                      ; @bcm3510_set_freq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x1
	mov	x19, x0
	mov	w8, #19923
	movk	w8, #4194, lsl #16
	smull	x8, w1, w8
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w22, w8, w9
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	bl	_deb_info
	mov	w8, #54888
	movk	w8, #5767, lsl #16
	mov	w9, #48
	mov	w10, #44
	cmp	w21, w8
	csel	w8, w10, w9, lt
	mov	w9, #32232
	movk	w9, #2563, lsl #16
	mov	w10, #28
	cmp	w21, w9
	csel	w20, w10, w8, lt
	mov	w8, #18805
	mov	w9, #54287
	movk	w9, #65528, lsl #16
	mov	w10, #41343
	movk	w10, #7171, lsl #16
	mov	w11, #15005
	mov	w12, #41071
	movk	w12, #65534, lsl #16
	mov	w13, #19071
	movk	w13, #1373, lsl #16
	mov	w14, #43775
	movk	w14, #1159, lsl #16
	mov	w15, #-54001
	mov	w16, #55071
	movk	w16, #65534, lsl #16
	cmp	w21, w14
	csel	w14, w16, w15, gt
	mov	w15, #14645
	mov	w16, #14865
	csel	w15, w16, w15, gt
	cmp	w21, w13
	csel	w12, w12, w14, gt
	csel	w11, w11, w15, gt
	cmp	w21, w10
	csel	w9, w9, w12, gt
	csel	w8, w8, w11, gt
	add	w9, w22, w9
	mov	w10, #6641
	movk	w10, #1398, lsl #16
	smull	x9, w9, w10
	lsr	x10, x9, #63
	asr	x9, x9, #39
	add	w9, w9, w10
	mov	w10, #60
	madd	w23, w9, w10, w8
	lsl	w8, w23, #2
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w8, w8, w9
	asr	w22, w8, #6
	and	w21, w8, #0x3f
	stp	x22, x21, [sp]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_deb_info
	cmp	w23, #2560
	b.lt	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	mov	x3, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_bcm3510_tuner_cmd
LBB0_2:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%dkHz:"

l_.str.1:                               ; @.str.1
	.asciz	" BC1_2_3_4: %x, N: %x A: %x\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_bcm3510_set_freq
.subsections_via_symbols
