	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tvaudio_s_tuner
_tvaudio_s_tuner:                       ## @tvaudio_s_tuner
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	callq	_to_state
	movq	24(%rax), %rcx
	movq	(%rcx), %rcx
	xorl	%ebx, %ebx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.1:
	cmpq	$0, 16(%rax)
	jne	LBB0_7
## %bb.2:
	movl	(%r14), %esi
	leal	-128(%rsi), %edx
	cmpl	$5, %edx
	jae	LBB0_3
## %bb.4:
	movl	%esi, 8(%rax)
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_wake_up_process
	jmp	LBB0_7
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_6:
	movq	%rax, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	*%rcx
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_tvaudio_s_tuner
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tvaudio_s_tuner
_tvaudio_s_tuner:                       ; @tvaudio_s_tuner
	.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, x1
	bl	_to_state
	ldr	x8, [x0, #24]
	ldr	x9, [x8]
	cbz	x9, LBB0_2
; %bb.1:
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_4
LBB0_2:
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	w1, [x19]
	sub	w8, w1, #128
	cmp	w8, #5
	b.hs	LBB0_7
; %bb.5:
	str	w1, [x0, #8]
	ldr	x8, [x0]
	cbz	x8, LBB0_8
; %bb.6:
	mov	x0, x8
	bl	_wake_up_process
	b	LBB0_2
LBB0_7:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_8:
	blr	x9
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_tvaudio_s_tuner
.subsections_via_symbols
