	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function state_eval_usbstream_run
_state_eval_usbstream_run:              ## @state_eval_usbstream_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_12
## %bb.1:
	movq	8(%rbx), %rax
	movq	_PVR2_PATHWAY_ANALOG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.2:
	cmpl	$0, 16(%rbx)
	je	LBB0_11
## %bb.3:
	xorl	%eax, %eax
	cmpq	$0, 32(%rbx)
	setne	%al
	testl	%eax, %eax
	jne	LBB0_8
	jmp	LBB0_11
LBB0_12:
	xorl	%r14d, %r14d
	cmpq	$0, 56(%rbx)
	je	LBB0_26
## %bb.13:
	cmpq	$0, 48(%rbx)
	jne	LBB0_26
## %bb.14:
	cmpq	$0, 40(%rbx)
	je	LBB0_26
## %bb.15:
	movq	8(%rbx), %rax
	movq	_PVR2_PATHWAY_ANALOG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_18
## %bb.16:
	cmpl	$0, 16(%rbx)
	je	LBB0_26
## %bb.17:
	cmpq	$0, 32(%rbx)
	jne	LBB0_24
	jmp	LBB0_26
LBB0_4:
	movq	_PVR2_PATHWAY_DIGITAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.5:
	movq	24(%rbx), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_8
## %bb.6:
	movl	16(%rbx), %eax
	testl	%eax, %eax
	je	LBB0_11
LBB0_8:
	cmpq	$0, 56(%rbx)
	je	LBB0_11
## %bb.9:
	cmpq	$0, 48(%rbx)
	je	LBB0_10
LBB0_11:
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_pvr2_hdw_cmd_usbstream
LBB0_25:
	movl	%r15d, (%rbx)
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	callq	_trace_stbit
	movl	$1, %r14d
LBB0_26:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	xorl	%r14d, %r14d
	cmpq	$0, 40(%rbx)
	jne	LBB0_26
	jmp	LBB0_11
LBB0_18:
	movq	_PVR2_PATHWAY_DIGITAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_24
## %bb.19:
	movq	24(%rbx), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_24
## %bb.20:
	cmpl	$0, 16(%rbx)
	je	LBB0_26
## %bb.21:
	cmpq	$0, 32(%rbx)
	jne	LBB0_26
## %bb.22:
	movq	(%rax), %rax
	movq	_PVR2_DIGITAL_SCHEME_ONAIR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_24
## %bb.23:
	cmpl	$0, 20(%rbx)
	je	LBB0_26
LBB0_24:
	movl	$1, %r15d
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_pvr2_hdw_cmd_usbstream
	testq	%rax, %rax
	jns	LBB0_25
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.comm	_PVR2_PATHWAY_ANALOG,8,3        ## @PVR2_PATHWAY_ANALOG
	.comm	_PVR2_PATHWAY_DIGITAL,8,3       ## @PVR2_PATHWAY_DIGITAL
	.comm	_PVR2_DIGITAL_SCHEME_ONAIR,8,3  ## @PVR2_DIGITAL_SCHEME_ONAIR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"state_usbstream_run"

	.no_dead_strip	_state_eval_usbstream_run
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function state_eval_usbstream_run
_state_eval_usbstream_run:              ; @state_eval_usbstream_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_4
; %bb.1:
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _PVR2_PATHWAY_ANALOG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PVR2_PATHWAY_ANALOG@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.2:
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_15
; %bb.3:
	ldr	x8, [x19, #32]
	cmp	x8, #0
	cset	w8, ne
	cbnz	w8, LBB0_13
	b	LBB0_15
LBB0_4:
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_18
; %bb.5:
	ldr	x8, [x19, #48]
	cbnz	x8, LBB0_18
; %bb.6:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_18
; %bb.7:
	ldr	x8, [x19, #8]
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_20
; %bb.8:
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_18
; %bb.9:
	ldr	x8, [x19, #32]
	cbnz	x8, LBB0_26
	b	LBB0_18
LBB0_10:
Lloh6:
	adrp	x9, _PVR2_PATHWAY_DIGITAL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PVR2_PATHWAY_DIGITAL@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.11:
	ldr	x8, [x19, #24]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_13
; %bb.12:
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_15
LBB0_13:
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_15
; %bb.14:
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_17
LBB0_15:
	mov	x0, x19
	mov	w1, #0
	bl	_pvr2_hdw_cmd_usbstream
	mov	w20, #0
LBB0_16:
	str	w20, [x19]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_trace_stbit
	mov	w0, #1
	b	LBB0_19
LBB0_17:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_15
LBB0_18:
	mov	w0, #0
LBB0_19:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_20:
Lloh11:
	adrp	x9, _PVR2_PATHWAY_DIGITAL@GOTPAGE
Lloh12:
	ldr	x9, [x9, _PVR2_PATHWAY_DIGITAL@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_26
; %bb.21:
	ldr	x8, [x19, #24]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_26
; %bb.22:
	ldr	w9, [x19, #16]
	cbz	w9, LBB0_18
; %bb.23:
	ldr	x9, [x19, #32]
	cbnz	x9, LBB0_18
; %bb.24:
	ldr	x8, [x8]
Lloh14:
	adrp	x9, _PVR2_DIGITAL_SCHEME_ONAIR@GOTPAGE
Lloh15:
	ldr	x9, [x9, _PVR2_DIGITAL_SCHEME_ONAIR@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_26
; %bb.25:
	ldr	w8, [x19, #20]
	cbz	w8, LBB0_18
LBB0_26:
	mov	w20, #1
	mov	x0, x19
	mov	w1, #1
	bl	_pvr2_hdw_cmd_usbstream
	tbz	x0, #63, LBB0_16
	b	LBB0_18
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_PVR2_PATHWAY_ANALOG,8,3        ; @PVR2_PATHWAY_ANALOG
	.comm	_PVR2_PATHWAY_DIGITAL,8,3       ; @PVR2_PATHWAY_DIGITAL
	.comm	_PVR2_DIGITAL_SCHEME_ONAIR,8,3  ; @PVR2_DIGITAL_SCHEME_ONAIR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"state_usbstream_run"

	.no_dead_strip	_state_eval_usbstream_run
.subsections_via_symbols
