	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function state_eval_encoder_ok
_state_eval_encoder_ok:                 ## @state_eval_encoder_ok
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	xorl	%r14d, %r14d
	cmpl	$0, (%rdi)
	jne	LBB0_13
## %bb.1:
	movq	%rdi, %rbx
	cmpl	$0, 4(%rdi)
	jne	LBB0_13
## %bb.2:
	cmpq	$0, 48(%rbx)
	jne	LBB0_13
## %bb.3:
	cmpq	$0, 40(%rbx)
	jne	LBB0_13
## %bb.4:
	cmpq	$0, 32(%rbx)
	jne	LBB0_13
## %bb.5:
	cmpq	$0, 24(%rbx)
	jne	LBB0_13
## %bb.6:
	movq	8(%rbx), %rax
	movq	_PVR2_PATHWAY_DIGITAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	movq	16(%rbx), %rax
	cmpl	$0, (%rax)
	jne	LBB0_9
	jmp	LBB0_13
LBB0_8:
	movq	_PVR2_PATHWAY_ANALOG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
LBB0_9:
	movq	%rbx, %rdi
	callq	_pvr2_upload_firmware2
	testq	%rax, %rax
	js	LBB0_10
## %bb.11:
	movl	$1, (%rbx)
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_12
LBB0_10:
	movl	$1, 4(%rbx)
	leaq	L_.str(%rip), %rdi
LBB0_12:
	movl	$1, %r14d
	movl	$1, %esi
	callq	_trace_stbit
LBB0_13:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PVR2_PATHWAY_DIGITAL,8,3       ## @PVR2_PATHWAY_DIGITAL
	.comm	_PVR2_PATHWAY_ANALOG,8,3        ## @PVR2_PATHWAY_ANALOG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"flag_tripped"

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

	.no_dead_strip	_state_eval_encoder_ok
.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_ok
_state_eval_encoder_ok:                 ; @state_eval_encoder_ok
	.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
	ldr	w8, [x0]
	cbnz	w8, LBB0_6
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0, #4]
	cbnz	w8, LBB0_6
; %bb.2:
	ldr	x8, [x19, #48]
	cbnz	x8, LBB0_6
; %bb.3:
	ldr	x8, [x19, #40]
	cbnz	x8, LBB0_6
; %bb.4:
	ldr	x8, [x19, #32]
	cbnz	x8, LBB0_6
; %bb.5:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_8
LBB0_6:
	mov	w19, #0
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _PVR2_PATHWAY_DIGITAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PVR2_PATHWAY_DIGITAL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.9:
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
	cbnz	w8, LBB0_11
	b	LBB0_6
LBB0_10:
Lloh3:
	adrp	x9, _PVR2_PATHWAY_ANALOG@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PVR2_PATHWAY_ANALOG@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
LBB0_11:
	mov	x0, x19
	bl	_pvr2_upload_firmware2
	mov	w8, #1
	tbnz	x0, #63, LBB0_13
; %bb.12:
	str	w8, [x19]
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_14
LBB0_13:
	str	w8, [x19, #4]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
LBB0_14:
	mov	w19, #1
	mov	w1, #1
	bl	_trace_stbit
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_PVR2_PATHWAY_DIGITAL,8,3       ; @PVR2_PATHWAY_DIGITAL
	.comm	_PVR2_PATHWAY_ANALOG,8,3        ; @PVR2_PATHWAY_ANALOG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"flag_tripped"

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

	.no_dead_strip	_state_eval_encoder_ok
.subsections_via_symbols
