	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	32(%rdi), %rbx
	leaq	24(%rdi), %r14
	movq	_debug@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	L_.str(%rip), %rcx
	movl	$1, %edi
	movq	%r14, %rdx
	callq	_v4l2_dbg
	xorl	%eax, %eax
	callq	_set_freezable
	leaq	8(%r15), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_1
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	movq	_V4L2_TUNER_SUB_LANG1@GOTPCREL(%rip), %rcx
	testl	%r13d, (%rcx)
	setne	%al
	leal	(%rax,%rax,2), %esi
	addl	$129, %esi
LBB0_16:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	callq	*8(%rbx)
	movq	%rbx, %r13
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	$2000, %edi                     ## imm = 0x7D0
	callq	_msecs_to_jiffies
	addq	%rax, %rbx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	%r13, %rbx
	callq	_mod_timer
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	_TASK_INTERRUPTIBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %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
	movq	_TASK_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_set_current_state
	xorl	%eax, %eax
	callq	_try_to_freeze
	xorl	%eax, %eax
	callq	_kthread_should_stop
	movl	(%r12), %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(%r15)
	jne	LBB0_1
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	callq	*(%rbx)
	cmpl	(%r15), %eax
	je	LBB0_1
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, %r13d
	movl	(%r12), %esi
	movl	$1, %edi
	movq	%r14, %rdx
	leaq	L_.str.2(%rip), %rcx
	callq	_v4l2_dbg
	movl	%r13d, (%r15)
	movl	4(%r15), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	$132, %esi
	movq	_V4L2_TUNER_SUB_LANG1@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	jne	LBB0_16
	jmp	LBB0_15
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	$129, %esi
	jmp	LBB0_16
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	$130, %esi
	jmp	LBB0_13
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	$131, %esi
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_V4L2_TUNER_SUB_LANG2@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	jne	LBB0_16
LBB0_15:                                ##   in Loop: Header=BB0_1 Depth=1
	xorl	%esi, %esi
	movq	_V4L2_TUNER_SUB_STEREO@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	sete	%sil
	orl	$128, %esi
	jmp	LBB0_16
LBB0_17:
	leaq	L_.str.3(%rip), %rcx
	movl	$1, %edi
	movq	%r14, %rdx
	callq	_v4l2_dbg
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_9
	.long	L0_0_set_11
	.long	L0_0_set_12
	.long	L0_0_set_10
	.end_data_region
                                        ## -- 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_SUB_LANG1,4,2       ## @V4L2_TUNER_SUB_LANG1
	.comm	_V4L2_TUNER_SUB_STEREO,4,2      ## @V4L2_TUNER_SUB_STEREO
	.comm	_V4L2_TUNER_SUB_LANG2,4,2       ## @V4L2_TUNER_SUB_LANG2
	.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
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	x21, l_.str.1@PAGE
Lloh9:
	add	x21, x21, l_.str.1@PAGEOFF
Lloh10:
	adrp	x22, l_.str.2@PAGE
Lloh11:
	add	x22, x22, l_.str.2@PAGEOFF
	add	x23, x20, #8
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
Lloh12:
	adrp	x8, _V4L2_TUNER_SUB_STEREO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _V4L2_TUNER_SUB_STEREO@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w24
	mov	w8, #128
	cinc	w1, w8, eq
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x25, #8]
	mov	x0, x20
	blr	x8
Lloh15:
	adrp	x8, _jiffies@GOTPAGE
Lloh16:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh17:
	ldr	x24, [x8]
	mov	w0, #2000
	bl	_msecs_to_jiffies
	add	x1, x0, x24
	mov	x0, x23
	bl	_mod_timer
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x27]
	bl	_set_current_state
	bl	_kthread_should_stop
	cbnz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_schedule
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x28]
	bl	_set_current_state
	bl	_try_to_freeze
	bl	_kthread_should_stop
	ldr	w1, [x26]
	cbnz	x0, LBB0_18
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #1
	mov	x2, x19
	mov	x3, x21
	bl	_v4l2_dbg
	ldr	x8, [x20, #16]
	cbnz	x8, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x25]
	mov	x0, x20
	blr	x8
	ldr	w8, [x20]
	cmp	w0, w8
	b.eq	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x24, x0
	ldr	w1, [x26]
	mov	w0, #1
	mov	x2, x19
	mov	x3, x22
	bl	_v4l2_dbg
	str	w24, [x20]
	ldr	w8, [x20, #4]
	sub	w8, w8, #128
	cmp	w8, #4
	b.hi	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh18:
	adrp	x11, lJTI0_0@PAGE
Lloh19:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x9, LBB0_10
	ldrb	w10, [x11, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh20:
	adrp	x8, _V4L2_TUNER_SUB_LANG1@GOTPAGE
Lloh21:
	ldr	x8, [x8, _V4L2_TUNER_SUB_LANG1@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	tst	w8, w24
	b.eq	LBB0_1
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	w1, #132
	b	LBB0_2
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w1, #129
	b	LBB0_2
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh23:
	adrp	x8, _V4L2_TUNER_SUB_LANG1@GOTPAGE
Lloh24:
	ldr	x8, [x8, _V4L2_TUNER_SUB_LANG1@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	tst	w8, w24
	mov	w8, #132
	mov	w9, #129
	csel	w1, w9, w8, eq
	b	LBB0_2
LBB0_14:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh26:
	adrp	x8, _V4L2_TUNER_SUB_LANG2@GOTPAGE
Lloh27:
	ldr	x8, [x8, _V4L2_TUNER_SUB_LANG2@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	tst	w8, w24
	b.eq	LBB0_1
; %bb.15:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	w1, #130
	b	LBB0_2
LBB0_16:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh29:
	adrp	x8, _V4L2_TUNER_SUB_LANG2@GOTPAGE
Lloh30:
	ldr	x8, [x8, _V4L2_TUNER_SUB_LANG2@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	tst	w8, w24
	b.eq	LBB0_1
; %bb.17:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	w1, #131
	b	LBB0_2
LBB0_18:
Lloh32:
	adrp	x3, l_.str.3@PAGE
Lloh33:
	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 AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_10-LBB0_10)>>2
	.byte	(LBB0_13-LBB0_10)>>2
	.byte	(LBB0_14-LBB0_10)>>2
	.byte	(LBB0_16-LBB0_10)>>2
	.byte	(LBB0_10-LBB0_10)>>2
                                        ; -- 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_SUB_LANG1,4,2       ; @V4L2_TUNER_SUB_LANG1
	.comm	_V4L2_TUNER_SUB_STEREO,4,2      ; @V4L2_TUNER_SUB_STEREO
	.comm	_V4L2_TUNER_SUB_LANG2,4,2       ; @V4L2_TUNER_SUB_LANG2
	.comm	_jiffies,8,3                    ; @jiffies
l_.str.3:                               ; @.str.3
	.asciz	"thread exiting\n"

	.no_dead_strip	_chip_thread
.subsections_via_symbols
