	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxusb_streaming_ctrl
_cxusb_streaming_ctrl:                  ## @cxusb_streaming_ctrl
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r13d
	movq	(%rdi), %r14
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	(%rax), %r12
	movq	_cxusb_table@GOTPCREL(%rip), %rax
	movq	_MEDION_MD95700@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	shlq	$2, %rbx
	addq	(%rax), %rbx
	movq	$3, -48(%rbp)
	testl	%esi, %esi
	je	LBB0_3
## %bb.1:
	cmpq	%rbx, %r12
	jne	LBB0_3
## %bb.2:
	movq	_CXUSB_OPEN_DIGITAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_cxusb_medion_get
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_7
LBB0_3:
	testl	%r13d, %r13d
	je	LBB0_5
## %bb.4:
	movq	_CMD_STREAMING_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r15d, %r15d
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movl	$2, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_cxusb_ctrl_msg
	jmp	LBB0_7
LBB0_5:
	movq	_CMD_STREAMING_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_cxusb_ctrl_msg
	cmpq	%rbx, %r12
	jne	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	callq	_cxusb_medion_put
LBB0_7:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cxusb_table,8,3                ## @cxusb_table
	.comm	_MEDION_MD95700,8,3             ## @MEDION_MD95700
	.comm	_CXUSB_OPEN_DIGITAL,4,2         ## @CXUSB_OPEN_DIGITAL
	.comm	_CMD_STREAMING_ON,4,2           ## @CMD_STREAMING_ON
	.comm	_CMD_STREAMING_OFF,4,2          ## @CMD_STREAMING_OFF
	.no_dead_strip	_cxusb_streaming_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cxusb_streaming_ctrl
_cxusb_streaming_ctrl:                  ; @cxusb_streaming_ctrl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	ldr	x19, [x0]
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x21, [x8]
Lloh0:
	adrp	x8, _cxusb_table@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cxusb_table@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _MEDION_MD95700@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MEDION_MD95700@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x22, x8, x9, lsl #2
	mov	w8, #3
	str	x8, [sp, #8]
	cbz	w1, LBB0_3
; %bb.1:
	cmp	x21, x22
	b.ne	LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _CXUSB_OPEN_DIGITAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CXUSB_OPEN_DIGITAL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_cxusb_medion_get
	cbnz	w0, LBB0_7
LBB0_3:
	cbz	w20, LBB0_6
; %bb.4:
Lloh9:
	adrp	x8, _CMD_STREAMING_ON@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CMD_STREAMING_ON@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	mov	w3, #2
	mov	x4, #0
	mov	w5, #0
	bl	_cxusb_ctrl_msg
LBB0_5:
	mov	w0, #0
	b	LBB0_7
LBB0_6:
Lloh12:
	adrp	x8, _CMD_STREAMING_OFF@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CMD_STREAMING_OFF@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	mov	w3, #0
	mov	x4, #0
	mov	w5, #0
	bl	_cxusb_ctrl_msg
	mov	w0, #0
	cmp	x21, x22
	b.eq	LBB0_8
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_8:
	mov	x0, x19
	bl	_cxusb_medion_put
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_cxusb_table,8,3                ; @cxusb_table
	.comm	_MEDION_MD95700,8,3             ; @MEDION_MD95700
	.comm	_CXUSB_OPEN_DIGITAL,4,2         ; @CXUSB_OPEN_DIGITAL
	.comm	_CMD_STREAMING_ON,4,2           ; @CMD_STREAMING_ON
	.comm	_CMD_STREAMING_OFF,4,2          ; @CMD_STREAMING_OFF
	.no_dead_strip	_cxusb_streaming_ctrl
.subsections_via_symbols
