	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tuner_status
_tuner_status:                          ## @tuner_status
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	16(%rdi), %rbx
	movl	(%rbx), %eax
	cmpl	$129, %eax
	leaq	L_.str.1(%rip), %rcx
	leaq	L_.str.2(%rip), %rdx
	cmoveq	%rcx, %rdx
	leaq	L_.str(%rip), %rsi
	cmpl	$128, %eax
	cmovneq	%rdx, %rsi
	jne	LBB0_2
## %bb.1:
	movslq	4(%rbx), %rcx
	imulq	$274877907, %rcx, %rax          ## imm = 0x10624DD3
	movq	%rax, %rdx
	shrq	$63, %rdx
	sarq	$42, %rax
	addl	%edx, %eax
	imull	$16000, %eax, %edx              ## imm = 0x3E80
	subl	%edx, %ecx
	movswl	%cx, %ecx
	imull	$26215, %ecx, %ecx              ## imm = 0x6667
	movl	%ecx, %edx
	shrl	$31, %edx
	sarl	$22, %ecx
	addl	%edx, %ecx
	jmp	LBB0_3
LBB0_2:
	movl	8(%rbx), %ecx
	leal	15(%rcx), %edx
	testl	%ecx, %ecx
	cmovnsl	%ecx, %edx
	movl	%edx, %eax
	sarl	$4, %eax
	andl	$-16, %edx
	subl	%edx, %ecx
	imull	$100, %ecx, %ecx
	leal	15(%rcx), %edx
	testw	%cx, %cx
	cmovnsl	%ecx, %edx
	movswl	%dx, %ecx
	shrl	$4, %ecx
LBB0_3:
	movslq	%eax, %r15
	movswq	%cx, %r12
	cmpq	$0, 24(%rbx)
	leaq	L_.str.5(%rip), %rax
	leaq	L_.str.4(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_info
	leaq	L_.str.6(%rip), %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_pr_info
	movq	16(%rbx), %rsi
	leaq	L_.str.7(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_info
	cmpl	$128, (%rbx)
	jne	LBB0_12
## %bb.4:
	movq	8(%r14), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	addq	$12, %rbx
	leaq	-36(%rbp), %rsi
	movq	%rbx, %rdi
	callq	*%rax
	movl	-36(%rbp), %eax
	movq	_TUNER_STATUS_LOCKED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.6:
	leaq	L_.str.8(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_info
	movl	-36(%rbp), %eax
LBB0_7:
	movq	_TUNER_STATUS_STEREO@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.8:
	leaq	L_.str.9(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_info
LBB0_9:
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	*%rax
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	movq	-48(%rbp), %rsi
	leaq	L_.str.10(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_info
LBB0_12:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"radio"

L_.str.1:                               ## @.str.1
	.asciz	"digital TV"

L_.str.2:                               ## @.str.2
	.asciz	"analog TV"

L_.str.3:                               ## @.str.3
	.asciz	"Tuner mode:      %s%s\n"

L_.str.4:                               ## @.str.4
	.asciz	" on standby mode"

L_.str.5:                               ## @.str.5
	.space	1

L_.str.6:                               ## @.str.6
	.asciz	"Frequency:       %lu.%02lu MHz\n"

L_.str.7:                               ## @.str.7
	.asciz	"Standard:        0x%08lx\n"

	.comm	_TUNER_STATUS_LOCKED,4,2        ## @TUNER_STATUS_LOCKED
L_.str.8:                               ## @.str.8
	.asciz	"Tuner is locked.\n"

	.comm	_TUNER_STATUS_STEREO,4,2        ## @TUNER_STATUS_STEREO
L_.str.9:                               ## @.str.9
	.asciz	"Stereo:          yes\n"

L_.str.10:                              ## @.str.10
	.asciz	"Signal strength: %hu\n"

	.no_dead_strip	_tuner_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tuner_status
_tuner_status:                          ; @tuner_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
	ldr	x20, [x0, #16]
	ldr	w8, [x20]
Lloh0:
	adrp	x9, l_.str.2@PAGE
Lloh1:
	add	x9, x9, l_.str.2@PAGEOFF
Lloh2:
	adrp	x10, l_.str.1@PAGE
Lloh3:
	add	x10, x10, l_.str.1@PAGEOFF
	cmp	w8, #129
	csel	x9, x10, x9, eq
Lloh4:
	adrp	x10, l_.str@PAGE
Lloh5:
	add	x10, x10, l_.str@PAGEOFF
	cmp	w8, #128
	csel	x8, x10, x9, eq
	b.ne	LBB0_2
; %bb.1:
	ldr	w10, [x20, #4]
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	smull	x9, w10, w9
	lsr	x11, x9, #63
	asr	x9, x9, #42
	add	w9, w9, w11
	mov	w11, #16000
	msub	w10, w9, w11, w10
	sxth	w10, w10
	mov	w11, #26215
	mul	w10, w10, w11
	asr	w11, w10, #22
	add	w10, w11, w10, lsr #31
	b	LBB0_3
LBB0_2:
	ldr	w10, [x20, #8]
	add	w9, w10, #15
	cmp	w10, #0
	csel	w11, w9, w10, lt
	asr	w9, w11, #4
	and	w11, w11, #0xfffffff0
	sub	w10, w10, w11
	mov	w11, #100
	mul	w10, w10, w11
	sxth	w11, w10
	ubfx	w11, w11, #27, #4
	add	w10, w10, w11
	sbfx	w10, w10, #4, #12
LBB0_3:
	sxtw	x21, w9
	sxtw	x22, w10
	ldr	x9, [x20, #24]
Lloh6:
	adrp	x10, l_.str.4@PAGE
Lloh7:
	add	x10, x10, l_.str.4@PAGEOFF
Lloh8:
	adrp	x11, l_.str.5@PAGE
Lloh9:
	add	x11, x11, l_.str.5@PAGEOFF
	cmp	x9, #0
	csel	x9, x11, x10, eq
	stp	x8, x9, [sp]
Lloh10:
	adrp	x0, l_.str.3@PAGE
Lloh11:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_info
	stp	x21, x22, [sp]
Lloh12:
	adrp	x0, l_.str.6@PAGE
Lloh13:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_pr_info
	ldr	x8, [x20, #16]
	str	x8, [sp]
Lloh14:
	adrp	x0, l_.str.7@PAGE
Lloh15:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_pr_info
	ldr	w8, [x20]
	cmp	w8, #128
	b.ne	LBB0_12
; %bb.4:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_9
; %bb.5:
	add	x0, x20, #12
	add	x1, sp, #28
	blr	x8
	ldr	w8, [sp, #28]
Lloh16:
	adrp	x9, _TUNER_STATUS_LOCKED@GOTPAGE
Lloh17:
	ldr	x9, [x9, _TUNER_STATUS_LOCKED@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
Lloh19:
	adrp	x0, l_.str.8@PAGE
Lloh20:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_pr_info
	ldr	w8, [sp, #28]
LBB0_7:
Lloh21:
	adrp	x9, _TUNER_STATUS_STEREO@GOTPAGE
Lloh22:
	ldr	x9, [x9, _TUNER_STATUS_STEREO@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
Lloh24:
	adrp	x0, l_.str.9@PAGE
Lloh25:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_pr_info
LBB0_9:
	ldr	x8, [x19]
	cbz	x8, LBB0_12
; %bb.10:
	add	x1, sp, #16
	mov	x0, x19
	blr	x8
	cbnz	w0, LBB0_12
; %bb.11:
	ldr	x8, [sp, #16]
	str	x8, [sp]
Lloh26:
	adrp	x0, l_.str.10@PAGE
Lloh27:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_pr_info
LBB0_12:
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"radio"

l_.str.1:                               ; @.str.1
	.asciz	"digital TV"

l_.str.2:                               ; @.str.2
	.asciz	"analog TV"

l_.str.3:                               ; @.str.3
	.asciz	"Tuner mode:      %s%s\n"

l_.str.4:                               ; @.str.4
	.asciz	" on standby mode"

l_.str.5:                               ; @.str.5
	.space	1

l_.str.6:                               ; @.str.6
	.asciz	"Frequency:       %lu.%02lu MHz\n"

l_.str.7:                               ; @.str.7
	.asciz	"Standard:        0x%08lx\n"

	.comm	_TUNER_STATUS_LOCKED,4,2        ; @TUNER_STATUS_LOCKED
l_.str.8:                               ; @.str.8
	.asciz	"Tuner is locked.\n"

	.comm	_TUNER_STATUS_STEREO,4,2        ; @TUNER_STATUS_STEREO
l_.str.9:                               ; @.str.9
	.asciz	"Stereo:          yes\n"

l_.str.10:                              ; @.str.10
	.asciz	"Signal strength: %hu\n"

	.no_dead_strip	_tuner_status
.subsections_via_symbols
