	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function state_eval_decoder_run
_state_eval_decoder_run:                ## @state_eval_decoder_run
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	cmpl	$0, (%rdi)
	je	LBB0_8
## %bb.1:
	cmpq	$0, 56(%rbx)
	je	LBB0_5
## %bb.2:
	cmpq	$0, 80(%rbx)
	je	LBB0_5
## %bb.3:
	cmpq	$0, 72(%rbx)
	je	LBB0_4
LBB0_5:
	cmpq	$0, 40(%rbx)
	jne	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_pvr2_decoder_enable
LBB0_7:
	movq	$0, (%rbx)
	leaq	48(%rbx), %rdi
	callq	_del_timer_sync
	leaq	32(%rbx), %rdi
	callq	_del_timer_sync
	movl	$0, 8(%rbx)
LBB0_24:
	movl	4(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	callq	_trace_stbit
	movl	(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_trace_stbit
	movl	8(%rbx), %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_trace_stbit
	movl	$1, %r14d
LBB0_25:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	cmpl	$0, 4(%rbx)
	je	LBB0_9
## %bb.12:
	xorl	%r14d, %r14d
	cmpq	$0, 88(%rbx)
	je	LBB0_25
## %bb.13:
	movq	16(%rbx), %rax
	movq	_PVR2_PATHWAY_ANALOG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_25
## %bb.14:
	cmpq	$0, 80(%rbx)
	je	LBB0_25
## %bb.15:
	cmpq	$0, 72(%rbx)
	jne	LBB0_25
## %bb.16:
	cmpl	$0, 68(%rbx)
	je	LBB0_25
## %bb.17:
	cmpl	$0, 64(%rbx)
	je	LBB0_25
## %bb.18:
	cmpq	$0, 56(%rbx)
	je	LBB0_25
## %bb.19:
	leaq	48(%rbx), %rdi
	callq	_del_timer_sync
	cmpq	$0, 40(%rbx)
	jne	LBB0_25
## %bb.20:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_pvr2_decoder_enable
	testq	%rax, %rax
	js	LBB0_25
## %bb.21:
	movl	$0, 8(%rbx)
	movq	$1, (%rbx)
	movq	24(%rbx), %rax
	movq	_PVR2_CLIENT_ID_SAA7115@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_23
## %bb.22:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	_HZ@GOTPCREL(%rip), %rcx
	movq	_TIME_MSEC_DECODER_STABILIZATION_WAIT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	imull	(%rcx), %edx
	movslq	%edx, %rcx
	imulq	$274877907, %rcx, %rcx          ## imm = 0x10624DD3
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$38, %rcx
	addl	%edx, %ecx
	movslq	%ecx, %rcx
	addq	(%rax), %rcx
	leaq	32(%rbx), %rdi
	movq	%rcx, 32(%rbx)
	callq	_add_timer
	jmp	LBB0_24
LBB0_9:
	leaq	48(%rbx), %r15
	movq	%r15, %rdi
	callq	_timer_pending
	xorl	%r14d, %r14d
	testl	%eax, %eax
	jne	LBB0_25
## %bb.10:
	cmpl	$0, 4(%rbx)
	jne	LBB0_25
## %bb.11:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	_HZ@GOTPCREL(%rip), %rcx
	movq	_TIME_MSEC_DECODER_WAIT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	imull	(%rcx), %edx
	movslq	%edx, %rcx
	imulq	$274877907, %rcx, %rcx          ## imm = 0x10624DD3
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$38, %rcx
	addl	%edx, %ecx
	movslq	%ecx, %rcx
	addq	(%rax), %rcx
	movq	%rcx, (%r15)
	movq	%r15, %rdi
	callq	_add_timer
	jmp	LBB0_25
LBB0_4:
	xorl	%r14d, %r14d
	cmpq	$0, 88(%rbx)
	jne	LBB0_25
	jmp	LBB0_5
LBB0_23:
	movl	$1, 8(%rbx)
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,4,2                         ## @HZ
	.comm	_TIME_MSEC_DECODER_WAIT,4,2     ## @TIME_MSEC_DECODER_WAIT
	.comm	_PVR2_PATHWAY_ANALOG,8,3        ## @PVR2_PATHWAY_ANALOG
	.comm	_PVR2_CLIENT_ID_SAA7115,8,3     ## @PVR2_CLIENT_ID_SAA7115
	.comm	_TIME_MSEC_DECODER_STABILIZATION_WAIT,4,2 ## @TIME_MSEC_DECODER_STABILIZATION_WAIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"state_decoder_quiescent"

L_.str.1:                               ## @.str.1
	.asciz	"state_decoder_run"

L_.str.2:                               ## @.str.2
	.asciz	"state_decoder_ready"

	.no_dead_strip	_state_eval_decoder_run
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function state_eval_decoder_run
lCPI0_0:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_state_eval_decoder_run:                ; @state_eval_decoder_run
	.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, x0
	ldr	w8, [x0]
	cbz	w8, LBB0_8
; %bb.1:
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	x8, [x19, #80]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	x8, [x19, #72]
	cbz	x8, LBB0_23
LBB0_4:
	ldr	x8, [x19, #40]
	cbnz	x8, LBB0_6
; %bb.5:
	mov	x0, x19
	mov	w1, #0
	bl	_pvr2_decoder_enable
LBB0_6:
	str	xzr, [x19]
	add	x0, x19, #48
	bl	_del_timer_sync
	add	x0, x19, #32
	bl	_del_timer_sync
	str	wzr, [x19, #8]
LBB0_7:
	ldr	w1, [x19, #4]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_trace_stbit
	ldr	w1, [x19]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_trace_stbit
	ldr	w1, [x19, #8]
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_trace_stbit
	mov	w0, #1
	b	LBB0_25
LBB0_8:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_20
; %bb.9:
	ldr	x8, [x19, #88]
	cbz	x8, LBB0_24
; %bb.10:
	ldr	x8, [x19, #16]
Lloh6:
	adrp	x9, _PVR2_PATHWAY_ANALOG@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PVR2_PATHWAY_ANALOG@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_24
; %bb.11:
	ldr	x8, [x19, #80]
	cbz	x8, LBB0_24
; %bb.12:
	ldr	x8, [x19, #72]
	cbnz	x8, LBB0_24
; %bb.13:
	ldr	w8, [x19, #68]
	cbz	w8, LBB0_24
; %bb.14:
	ldr	w8, [x19, #64]
	cbz	w8, LBB0_24
; %bb.15:
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_24
; %bb.16:
	add	x0, x19, #48
	bl	_del_timer_sync
	ldr	x8, [x19, #40]
	cbnz	x8, LBB0_24
; %bb.17:
	mov	x0, x19
	mov	w1, #1
	bl	_pvr2_decoder_enable
	tbnz	x0, #63, LBB0_24
; %bb.18:
	str	wzr, [x19, #8]
Lloh9:
	adrp	x8, lCPI0_0@PAGE
Lloh10:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x19]
	ldr	x8, [x19, #24]
Lloh11:
	adrp	x9, _PVR2_CLIENT_ID_SAA7115@GOTPAGE
Lloh12:
	ldr	x9, [x9, _PVR2_CLIENT_ID_SAA7115@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_26
; %bb.19:
Lloh14:
	adrp	x8, _jiffies@GOTPAGE
Lloh15:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
Lloh17:
	adrp	x9, _HZ@GOTPAGE
Lloh18:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh19:
	adrp	x10, _TIME_MSEC_DECODER_STABILIZATION_WAIT@GOTPAGE
Lloh20:
	ldr	x10, [x10, _TIME_MSEC_DECODER_STABILIZATION_WAIT@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
Lloh22:
	ldr	w10, [x10]
	mul	w9, w10, w9
	mov	w10, #19923
	movk	w10, #4194, lsl #16
	smull	x9, w9, w10
	lsr	x10, x9, #32
	lsr	x9, x9, #63
	add	w9, w9, w10, asr #6
	add	x8, x8, w9, sxtw
	mov	x0, x19
	str	x8, [x0, #32]!
	bl	_add_timer
	b	LBB0_7
LBB0_20:
	add	x20, x19, #48
	mov	x0, x20
	bl	_timer_pending
	cbnz	w0, LBB0_24
; %bb.21:
	ldr	w8, [x19, #4]
	cbnz	w8, LBB0_24
; %bb.22:
Lloh23:
	adrp	x8, _jiffies@GOTPAGE
Lloh24:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
Lloh26:
	adrp	x9, _HZ@GOTPAGE
Lloh27:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
Lloh29:
	adrp	x10, _TIME_MSEC_DECODER_WAIT@GOTPAGE
Lloh30:
	ldr	x10, [x10, _TIME_MSEC_DECODER_WAIT@GOTPAGEOFF]
Lloh31:
	ldr	w10, [x10]
	mul	w9, w10, w9
	mov	w10, #19923
	movk	w10, #4194, lsl #16
	smull	x9, w9, w10
	lsr	x10, x9, #63
	asr	x9, x9, #38
	add	w9, w9, w10
	add	x8, x8, w9, sxtw
	str	x8, [x20]
	mov	x0, x20
	bl	_add_timer
	mov	w0, #0
	b	LBB0_25
LBB0_23:
	ldr	x8, [x19, #88]
	cbz	x8, LBB0_4
LBB0_24:
	mov	w0, #0
LBB0_25:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_26:
	mov	w8, #1
	str	w8, [x19, #8]
	b	LBB0_7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdr	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh21
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.comm	_TIME_MSEC_DECODER_WAIT,4,2     ; @TIME_MSEC_DECODER_WAIT
	.comm	_PVR2_PATHWAY_ANALOG,8,3        ; @PVR2_PATHWAY_ANALOG
	.comm	_PVR2_CLIENT_ID_SAA7115,8,3     ; @PVR2_CLIENT_ID_SAA7115
	.comm	_TIME_MSEC_DECODER_STABILIZATION_WAIT,4,2 ; @TIME_MSEC_DECODER_STABILIZATION_WAIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"state_decoder_quiescent"

l_.str.1:                               ; @.str.1
	.asciz	"state_decoder_run"

l_.str.2:                               ; @.str.2
	.asciz	"state_decoder_ready"

	.no_dead_strip	_state_eval_decoder_run
.subsections_via_symbols
