	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function chip_thread
_chip_thread:                           ## @chip_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	32(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	24(%rdi), %r14
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	movl	$1, %edi
	movq	%r14, %rdx
	callq	_v4l2_dbg
	xorl	%eax, %eax
	callq	_set_freezable
	leaq	12(%rbx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_TASK_INTERRUPTIBLE@GOTPCREL(%rip), %r12
	movq	_TASK_RUNNING@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	callq	_set_current_state
	xorl	%eax, %eax
	callq	_kthread_should_stop
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_schedule
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r15), %edi
	callq	_set_current_state
	xorl	%eax, %eax
	callq	_try_to_freeze
	xorl	%eax, %eax
	callq	_kthread_should_stop
	movq	_debug@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	testq	%rax, %rax
	jne	LBB0_17
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, %edi
	movq	%r14, %rdx
	leaq	L_.str.1(%rip), %rcx
	callq	_v4l2_dbg
	cmpq	$0, 16(%rbx)
	jne	LBB0_1
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpq	$0, (%rbx)
	jne	LBB0_1
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	callq	*(%rax)
	cmpl	8(%rbx), %eax
	je	LBB0_1
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, %r13d
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edi
	movq	%r14, %rdx
	leaq	L_.str.2(%rip), %rcx
	callq	_v4l2_dbg
	movl	%r13d, 8(%rbx)
	movq	_V4L2_TUNER_MODE_STEREO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%r13d, %esi
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	callq	*8(%rax)
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_V4L2_TUNER_MODE_LANG1_LANG2@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_V4L2_TUNER_MODE_STEREO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	jmp	LBB0_12
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_V4L2_TUNER_MODE_LANG1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%r13d, %esi
	je	LBB0_13
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	callq	*8(%rax)
LBB0_16:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movl	$2000, %edi                     ## imm = 0x7D0
	callq	_msecs_to_jiffies
	addq	%rax, %r13
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_mod_timer
	jmp	LBB0_1
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_V4L2_TUNER_MODE_LANG2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	testl	%r13d, %esi
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_V4L2_TUNER_MODE_MONO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
LBB0_15:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	*%rax
	jmp	LBB0_16
LBB0_17:
	leaq	L_.str.3(%rip), %rcx
	movl	$1, %edi
	movq	%r14, %rdx
	callq	_v4l2_dbg
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_debug,4,2                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"thread started\n"

	.comm	_TASK_INTERRUPTIBLE,4,2         ## @TASK_INTERRUPTIBLE
	.comm	_TASK_RUNNING,4,2               ## @TASK_RUNNING
L_.str.1:                               ## @.str.1
	.asciz	"thread wakeup\n"

L_.str.2:                               ## @.str.2
	.asciz	"thread checkmode\n"

	.comm	_V4L2_TUNER_MODE_STEREO,4,2     ## @V4L2_TUNER_MODE_STEREO
	.comm	_V4L2_TUNER_MODE_LANG1_LANG2,4,2 ## @V4L2_TUNER_MODE_LANG1_LANG2
	.comm	_V4L2_TUNER_MODE_LANG1,4,2      ## @V4L2_TUNER_MODE_LANG1
	.comm	_V4L2_TUNER_MODE_LANG2,4,2      ## @V4L2_TUNER_MODE_LANG2
	.comm	_V4L2_TUNER_MODE_MONO,4,2       ## @V4L2_TUNER_MODE_MONO
	.comm	_jiffies,8,3                    ## @jiffies
L_.str.3:                               ## @.str.3
	.asciz	"thread exiting\n"

	.no_dead_strip	_chip_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function chip_thread
_chip_thread:                           ; @chip_thread
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x0
	ldr	x25, [x0, #32]
	add	x19, x0, #24
Lloh0:
	adrp	x26, _debug@GOTPAGE
Lloh1:
	ldr	x26, [x26, _debug@GOTPAGEOFF]
	ldr	w1, [x26]
Lloh2:
	adrp	x3, l_.str@PAGE
Lloh3:
	add	x3, x3, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_v4l2_dbg
	bl	_set_freezable
	add	x21, x20, #12
Lloh4:
	adrp	x27, _TASK_INTERRUPTIBLE@GOTPAGE
Lloh5:
	ldr	x27, [x27, _TASK_INTERRUPTIBLE@GOTPAGEOFF]
Lloh6:
	adrp	x28, _TASK_RUNNING@GOTPAGE
Lloh7:
	ldr	x28, [x28, _TASK_RUNNING@GOTPAGEOFF]
Lloh8:
	adrp	x22, l_.str.1@PAGE
Lloh9:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh10:
	adrp	x23, _V4L2_TUNER_MODE_STEREO@GOTPAGE
Lloh11:
	ldr	x23, [x23, _V4L2_TUNER_MODE_STEREO@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x27]
	bl	_set_current_state
	bl	_kthread_should_stop
	cbnz	x0, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	bl	_schedule
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x28]
	bl	_set_current_state
	bl	_try_to_freeze
	bl	_kthread_should_stop
	ldr	w1, [x26]
	cbnz	x0, LBB0_16
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #1
	mov	x2, x19
	mov	x3, x22
	bl	_v4l2_dbg
	ldr	x8, [x20, #16]
	cbnz	x8, LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x20]
	cbnz	x8, LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x25]
	mov	x0, x20
	blr	x8
	ldr	w8, [x20, #8]
	cmp	w0, w8
	b.eq	LBB0_1
; %bb.7:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x24, x0
	ldr	w1, [x26]
	mov	w0, #1
	mov	x2, x19
Lloh12:
	adrp	x3, l_.str.2@PAGE
Lloh13:
	add	x3, x3, l_.str.2@PAGEOFF
	bl	_v4l2_dbg
	str	w24, [x20, #8]
	ldr	w1, [x23]
	tst	w1, w24
	b.eq	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x25, #8]
	mov	x0, x20
	blr	x8
LBB0_9:                                 ;   in Loop: Header=BB0_1 Depth=1
Lloh14:
	adrp	x8, _V4L2_TUNER_MODE_LANG1_LANG2@GOTPAGE
Lloh15:
	ldr	x8, [x8, _V4L2_TUNER_MODE_LANG1_LANG2@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w24
	b.eq	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x25, #8]
	ldr	w1, [x23]
	b	LBB0_15
LBB0_11:                                ;   in Loop: Header=BB0_1 Depth=1
Lloh17:
	adrp	x8, _V4L2_TUNER_MODE_LANG1@GOTPAGE
Lloh18:
	ldr	x8, [x8, _V4L2_TUNER_MODE_LANG1@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	tst	w1, w24
	b.eq	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x25, #8]
	b	LBB0_15
LBB0_13:                                ;   in Loop: Header=BB0_1 Depth=1
Lloh20:
	adrp	x8, _V4L2_TUNER_MODE_LANG2@GOTPAGE
Lloh21:
	ldr	x8, [x8, _V4L2_TUNER_MODE_LANG2@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	ldr	x8, [x25, #8]
	tst	w1, w24
	b.ne	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_1 Depth=1
Lloh23:
	adrp	x9, _V4L2_TUNER_MODE_MONO@GOTPAGE
Lloh24:
	ldr	x9, [x9, _V4L2_TUNER_MODE_MONO@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x9]
LBB0_15:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x20
	blr	x8
Lloh26:
	adrp	x8, _jiffies@GOTPAGE
Lloh27:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh28:
	ldr	x24, [x8]
	mov	w0, #2000
	bl	_msecs_to_jiffies
	add	x1, x0, x24
	mov	x0, x21
	bl	_mod_timer
	b	LBB0_1
LBB0_16:
Lloh29:
	adrp	x3, l_.str.3@PAGE
Lloh30:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_v4l2_dbg
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_debug,4,2                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"thread started\n"

	.comm	_TASK_INTERRUPTIBLE,4,2         ; @TASK_INTERRUPTIBLE
	.comm	_TASK_RUNNING,4,2               ; @TASK_RUNNING
l_.str.1:                               ; @.str.1
	.asciz	"thread wakeup\n"

l_.str.2:                               ; @.str.2
	.asciz	"thread checkmode\n"

	.comm	_V4L2_TUNER_MODE_STEREO,4,2     ; @V4L2_TUNER_MODE_STEREO
	.comm	_V4L2_TUNER_MODE_LANG1_LANG2,4,2 ; @V4L2_TUNER_MODE_LANG1_LANG2
	.comm	_V4L2_TUNER_MODE_LANG1,4,2      ; @V4L2_TUNER_MODE_LANG1
	.comm	_V4L2_TUNER_MODE_LANG2,4,2      ; @V4L2_TUNER_MODE_LANG2
	.comm	_V4L2_TUNER_MODE_MONO,4,2       ; @V4L2_TUNER_MODE_MONO
	.comm	_jiffies,8,3                    ; @jiffies
l_.str.3:                               ; @.str.3
	.asciz	"thread exiting\n"

	.no_dead_strip	_chip_thread
.subsections_via_symbols
