	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function state_eval_encoder_config
_state_eval_encoder_config:             ## @state_eval_encoder_config
	.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_6
## %bb.1:
	cmpq	$0, 16(%rbx)
	je	LBB0_4
## %bb.2:
	cmpq	$0, 40(%rbx)
	je	LBB0_4
## %bb.3:
	cmpq	$0, 48(%rbx)
	je	LBB0_18
LBB0_4:
	movq	$0, (%rbx)
	leaq	L_.str(%rip), %rdi
	xorl	%esi, %esi
	callq	_trace_stbit
	leaq	24(%rbx), %rdi
	callq	_del_timer_sync
LBB0_5:
	movl	(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_15
LBB0_6:
	cmpl	$0, 60(%rbx)
	je	LBB0_11
## %bb.7:
	movq	8(%rbx), %rax
	movq	_PVR2_PATHWAY_ANALOG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.8:
	cmpq	$0, 16(%rbx)
	je	LBB0_11
## %bb.9:
	cmpl	$0, 56(%rbx)
	je	LBB0_11
## %bb.10:
	cmpq	$0, 48(%rbx)
	je	LBB0_19
LBB0_11:
	leaq	24(%rbx), %r14
	movq	%r14, %rdi
	callq	_timer_pending
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	%r14, %rdi
	callq	_del_timer_sync
LBB0_13:
	cmpl	$0, 4(%rbx)
	je	LBB0_18
## %bb.14:
	movl	$0, 4(%rbx)
	leaq	L_.str(%rip), %rdi
	xorl	%esi, %esi
LBB0_15:
	callq	_trace_stbit
	movl	$1, %r14d
	jmp	LBB0_16
LBB0_18:
	xorl	%r14d, %r14d
LBB0_16:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	cmpq	$0, 40(%rbx)
	je	LBB0_11
## %bb.20:
	cmpl	$0, 32(%rbx)
	je	LBB0_11
## %bb.21:
	cmpl	$0, 4(%rbx)
	je	LBB0_24
## %bb.22:
	movq	%rbx, %rdi
	callq	_pvr2_encoder_configure
	cmpq	$0, 16(%rbx)
	je	LBB0_5
## %bb.23:
	movl	$1, (%rbx)
	jmp	LBB0_5
LBB0_24:
	leaq	24(%rbx), %r15
	movq	%r15, %rdi
	callq	_timer_pending
	xorl	%r14d, %r14d
	testq	%rax, %rax
	jne	LBB0_16
## %bb.25:
	cmpl	$0, 4(%rbx)
	jne	LBB0_16
## %bb.26:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_TIME_MSEC_ENCODER_WAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	addq	%rbx, %rax
	movq	%rax, (%r15)
	movq	%r15, %rdi
	callq	_add_timer
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"state_encoder_waitok"

	.comm	_PVR2_PATHWAY_ANALOG,8,3        ## @PVR2_PATHWAY_ANALOG
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_TIME_MSEC_ENCODER_WAIT,4,2     ## @TIME_MSEC_ENCODER_WAIT
L_.str.1:                               ## @.str.1
	.asciz	"state_encoder_config"

	.no_dead_strip	_state_eval_encoder_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function state_eval_encoder_config
_state_eval_encoder_config:             ; @state_eval_encoder_config
	.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_6
; %bb.1:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_23
LBB0_4:
	str	xzr, [x19]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	w1, #0
	bl	_trace_stbit
	add	x0, x19, #24
	bl	_del_timer_sync
LBB0_5:
	ldr	w1, [x19]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_15
LBB0_6:
	ldr	w8, [x19, #60]
	cbz	w8, LBB0_11
; %bb.7:
	ldr	x8, [x19, #8]
Lloh4:
	adrp	x9, _PVR2_PATHWAY_ANALOG@GOTPAGE
Lloh5:
	ldr	x9, [x9, _PVR2_PATHWAY_ANALOG@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.8:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_11
; %bb.9:
	ldr	w8, [x19, #56]
	cbz	w8, LBB0_11
; %bb.10:
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_16
LBB0_11:
	add	x20, x19, #24
	mov	x0, x20
	bl	_timer_pending
	cbz	x0, LBB0_13
; %bb.12:
	mov	x0, x20
	bl	_del_timer_sync
LBB0_13:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_23
; %bb.14:
	str	wzr, [x19, #4]
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	mov	w1, #0
LBB0_15:
	bl	_trace_stbit
	mov	w0, #1
	b	LBB0_24
LBB0_16:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_11
; %bb.17:
	ldr	w8, [x19, #32]
	cbz	w8, LBB0_11
; %bb.18:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_21
; %bb.19:
	mov	x0, x19
	bl	_pvr2_encoder_configure
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_5
; %bb.20:
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_5
LBB0_21:
	add	x20, x19, #24
	mov	x0, x20
	bl	_timer_pending
	cbnz	x0, LBB0_23
; %bb.22:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_25
LBB0_23:
	mov	w0, #0
LBB0_24:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_25:
Lloh9:
	adrp	x8, _jiffies@GOTPAGE
Lloh10:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh11:
	ldr	x19, [x8]
Lloh12:
	adrp	x8, _TIME_MSEC_ENCODER_WAIT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TIME_MSEC_ENCODER_WAIT@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	add	x8, x0, x19
	str	x8, [x20]
	mov	x0, x20
	bl	_add_timer
	mov	w0, #0
	b	LBB0_24
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"state_encoder_waitok"

	.comm	_PVR2_PATHWAY_ANALOG,8,3        ; @PVR2_PATHWAY_ANALOG
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_TIME_MSEC_ENCODER_WAIT,4,2     ; @TIME_MSEC_ENCODER_WAIT
l_.str.1:                               ; @.str.1
	.asciz	"state_encoder_config"

	.no_dead_strip	_state_eval_encoder_config
.subsections_via_symbols
