	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pvr2_hdw_cmd_usbstream
_pvr2_hdw_cmd_usbstream:                ## @pvr2_hdw_cmd_usbstream
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_PVR2_PATHWAY_ANALOG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.1:
	testl	%r14d, %r14d
	jne	LBB0_2
## %bb.3:
	movq	_FX2CMD_STREAMING_OFF@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_5:
	movq	_PVR2_PATHWAY_DIGITAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.6:
	movq	8(%rbx), %rax
	movl	(%rax), %eax
	cmpl	$128, %eax
	je	LBB0_11
## %bb.7:
	cmpl	$129, %eax
	jne	LBB0_16
## %bb.8:
	testl	%r14d, %r14d
	jne	LBB0_9
## %bb.10:
	movq	_FX2CMD_HCW_DTV_STREAMING_OFF@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_16:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_17:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movq	_FX2CMD_STREAMING_ON@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_pvr2_issue_simple_cmd          ## TAILCALL
LBB0_11:
	testl	%r14d, %r14d
	jne	LBB0_12
## %bb.13:
	movq	_FX2CMD_STREAMING_OFF@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_9:
	movq	_FX2CMD_HCW_DTV_STREAMING_ON@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_12:
	movq	_FX2CMD_STREAMING_ON@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_pvr2_issue_simple_cmd
	testl	%eax, %eax
	jne	LBB0_17
## %bb.15:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_pvr2_hdw_cmd_onair_digital_path_ctrl ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PVR2_PATHWAY_ANALOG,8,3        ## @PVR2_PATHWAY_ANALOG
	.comm	_FX2CMD_STREAMING_ON,4,2        ## @FX2CMD_STREAMING_ON
	.comm	_FX2CMD_STREAMING_OFF,4,2       ## @FX2CMD_STREAMING_OFF
	.comm	_PVR2_PATHWAY_DIGITAL,8,3       ## @PVR2_PATHWAY_DIGITAL
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_FX2CMD_HCW_DTV_STREAMING_ON,4,2 ## @FX2CMD_HCW_DTV_STREAMING_ON
	.comm	_FX2CMD_HCW_DTV_STREAMING_OFF,4,2 ## @FX2CMD_HCW_DTV_STREAMING_OFF
	.no_dead_strip	_pvr2_hdw_cmd_usbstream
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pvr2_hdw_cmd_usbstream
_pvr2_hdw_cmd_usbstream:                ; @pvr2_hdw_cmd_usbstream
	.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	x20, x1
	mov	x19, x0
	ldr	x8, [x0]
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_3
; %bb.1:
Lloh3:
	adrp	x8, _FX2CMD_STREAMING_ON@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FX2CMD_STREAMING_ON@GOTPAGEOFF]
Lloh5:
	adrp	x9, _FX2CMD_STREAMING_OFF@GOTPAGE
Lloh6:
	ldr	x9, [x9, _FX2CMD_STREAMING_OFF@GOTPAGEOFF]
LBB0_2:
	cmp	w20, #0
	csel	x8, x9, x8, eq
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_pvr2_issue_simple_cmd
LBB0_3:
Lloh7:
	adrp	x9, _PVR2_PATHWAY_DIGITAL@GOTPAGE
Lloh8:
	ldr	x9, [x9, _PVR2_PATHWAY_DIGITAL@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.4:
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	cmp	w8, #128
	b.eq	LBB0_9
; %bb.5:
	cmp	w8, #129
	b.ne	LBB0_7
; %bb.6:
Lloh10:
	adrp	x8, _FX2CMD_HCW_DTV_STREAMING_ON@GOTPAGE
Lloh11:
	ldr	x8, [x8, _FX2CMD_HCW_DTV_STREAMING_ON@GOTPAGEOFF]
Lloh12:
	adrp	x9, _FX2CMD_HCW_DTV_STREAMING_OFF@GOTPAGE
Lloh13:
	ldr	x9, [x9, _FX2CMD_HCW_DTV_STREAMING_OFF@GOTPAGEOFF]
	b	LBB0_2
LBB0_7:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
Lloh17:
	adrp	x8, _FX2CMD_STREAMING_ON@GOTPAGE
Lloh18:
	ldr	x8, [x8, _FX2CMD_STREAMING_ON@GOTPAGEOFF]
Lloh19:
	adrp	x9, _FX2CMD_STREAMING_OFF@GOTPAGE
Lloh20:
	ldr	x9, [x9, _FX2CMD_STREAMING_OFF@GOTPAGEOFF]
	cmp	w20, #0
	csel	x8, x9, x8, eq
	ldr	w1, [x8]
	mov	x0, x19
	bl	_pvr2_issue_simple_cmd
	cbnz	w0, LBB0_8
; %bb.10:
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_pvr2_hdw_cmd_onair_digital_path_ctrl
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_PVR2_PATHWAY_ANALOG,8,3        ; @PVR2_PATHWAY_ANALOG
	.comm	_FX2CMD_STREAMING_ON,4,2        ; @FX2CMD_STREAMING_ON
	.comm	_FX2CMD_STREAMING_OFF,4,2       ; @FX2CMD_STREAMING_OFF
	.comm	_PVR2_PATHWAY_DIGITAL,8,3       ; @PVR2_PATHWAY_DIGITAL
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_FX2CMD_HCW_DTV_STREAMING_ON,4,2 ; @FX2CMD_HCW_DTV_STREAMING_ON
	.comm	_FX2CMD_HCW_DTV_STREAMING_OFF,4,2 ; @FX2CMD_HCW_DTV_STREAMING_OFF
	.no_dead_strip	_pvr2_hdw_cmd_usbstream
.subsections_via_symbols
