	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx88_audio_thread              ## -- Begin function cx88_audio_thread
	.p2align	4, 0x90
_cx88_audio_thread:                     ## @cx88_audio_thread
	.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
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_dprintk
	xorl	%eax, %eax
	callq	_set_freezable
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_msleep_interruptible
	xorl	%eax, %eax
	callq	_kthread_should_stop
	testq	%rax, %rax
	je	LBB0_1
LBB0_11:
	leaq	L_.str.1(%rip), %rdi
	callq	_dprintk
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	$-129, %r15d
	movl	$659, %r12d                     ## imm = 0x293
	leaq	-48(%rbp), %r14
	movq	_UNSET@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_msleep_interruptible
	xorl	%eax, %eax
	callq	_kthread_should_stop
	testq	%rax, %rax
	jne	LBB0_11
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_try_to_freeze
	movl	(%rbx), %eax
	addl	%r15d, %eax
	cmpl	$9, %eax
	ja	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	btl	%eax, %r12d
	jae	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, 12(%rbx)
	jne	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_cx88_get_stereo
	movl	8(%rbx), %eax
	cmpl	(%r13), %eax
	jne	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_V4L2_TUNER_SUB_STEREO@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_V4L2_TUNER_MODE_STEREO@GOTPCREL(%rip), %rax
	testl	%ecx, -48(%rbp)
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_V4L2_TUNER_MODE_MONO@GOTPCREL(%rip), %rax
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rax), %esi
	cmpl	4(%rbx), %esi
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_cx88_set_stereo
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cx88: tvaudio thread started\n"

	.comm	_UNSET,4,2                      ## @UNSET
	.comm	_V4L2_TUNER_SUB_STEREO,4,2      ## @V4L2_TUNER_SUB_STEREO
	.comm	_V4L2_TUNER_MODE_STEREO,4,2     ## @V4L2_TUNER_MODE_STEREO
	.comm	_V4L2_TUNER_MODE_MONO,4,2       ## @V4L2_TUNER_MODE_MONO
L_.str.1:                               ## @.str.1
	.asciz	"cx88: tvaudio thread exiting\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx88_audio_thread              ; -- Begin function cx88_audio_thread
	.p2align	2
_cx88_audio_thread:                     ; @cx88_audio_thread
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
	bl	_set_freezable
	mov	w0, #1000
	bl	_msleep_interruptible
	bl	_kthread_should_stop
	cbz	x0, LBB0_2
LBB0_1:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_dprintk
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_2:
	mov	w20, #1
	mov	w21, #659
Lloh4:
	adrp	x22, _UNSET@GOTPAGE
Lloh5:
	ldr	x22, [x22, _UNSET@GOTPAGEOFF]
Lloh6:
	adrp	x23, _V4L2_TUNER_SUB_STEREO@GOTPAGE
Lloh7:
	ldr	x23, [x23, _V4L2_TUNER_SUB_STEREO@GOTPAGEOFF]
Lloh8:
	adrp	x24, _V4L2_TUNER_MODE_MONO@GOTPAGE
Lloh9:
	ldr	x24, [x24, _V4L2_TUNER_MODE_MONO@GOTPAGEOFF]
Lloh10:
	adrp	x25, _V4L2_TUNER_MODE_STEREO@GOTPAGE
Lloh11:
	ldr	x25, [x25, _V4L2_TUNER_MODE_STEREO@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #1000
	bl	_msleep_interruptible
	bl	_kthread_should_stop
	cbnz	x0, LBB0_1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	bl	_try_to_freeze
	ldr	w8, [x19]
	sub	w8, w8, #129
	cmp	w8, #9
	lsl	w8, w20, w8
	and	w8, w8, w21
	ccmp	w8, #0, #4, ls
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #12]
	cbnz	w8, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	add	x1, sp, #8
	mov	x0, x19
	bl	_cx88_get_stereo
	ldr	w8, [x19, #8]
	ldr	w9, [x22]
	cmp	w8, w9
	b.ne	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #8]
	ldr	w9, [x23]
	tst	w9, w8
	csel	x8, x24, x25, eq
	ldr	w1, [x8]
	ldr	w8, [x19, #4]
	cmp	w1, w8
	b.eq	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	w2, #0
	bl	_cx88_set_stereo
	b	LBB0_3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cx88: tvaudio thread started\n"

	.comm	_UNSET,4,2                      ; @UNSET
	.comm	_V4L2_TUNER_SUB_STEREO,4,2      ; @V4L2_TUNER_SUB_STEREO
	.comm	_V4L2_TUNER_MODE_STEREO,4,2     ; @V4L2_TUNER_MODE_STEREO
	.comm	_V4L2_TUNER_MODE_MONO,4,2       ; @V4L2_TUNER_MODE_MONO
l_.str.1:                               ; @.str.1
	.asciz	"cx88: tvaudio thread exiting\n"

.subsections_via_symbols
