	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dib0700_streaming_ctrl         ## -- Begin function dib0700_streaming_ctrl
	.p2align	4, 0x90
_dib0700_streaming_ctrl:                ## @dib0700_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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	8(%rdi), %rdi
	movq	(%rdi), %r12
	testl	%esi, %esi
	je	LBB0_4
## %bb.1:
	cmpl	$66049, (%r12)                  ## imm = 0x10201
	jl	LBB0_4
## %bb.2:
	movl	12(%r12), %esi
	callq	_dib0700_set_usb_xfer_len
	testl	%eax, %eax
	js	LBB0_3
LBB0_4:
	movq	_REQUEST_ENABLE_VIDEO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movl	%ebx, %r15d
	shll	$4, %r15d
	movl	%r15d, -60(%rbp)
	xorl	%eax, %eax
	cmpl	$1, 4(%r12)
	setne	%al
	shll	$4, %eax
	movl	%eax, -56(%rbp)
	movl	$0, -52(%rbp)
	movl	(%r14), %edx
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_deb_info
	movb	(%r14), %cl
	movl	$1, %edx
	shll	%cl, %edx
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.5:
	orl	8(%r12), %edx
	jmp	LBB0_7
LBB0_6:
	notl	%edx
	andl	8(%r12), %edx
LBB0_7:
	movl	%edx, 8(%r12)
	orl	-56(%rbp), %edx
	movl	%edx, -56(%rbp)
	leaq	L_.str.2(%rip), %rdi
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_deb_info
	movq	8(%r14), %rdi
	leaq	-64(%rbp), %rsi
	movl	$4, %edx
	callq	_dib0700_ctrl_wr
	movl	%eax, %r15d
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	movl	%r15d, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_deb_info
	jmp	LBB0_8
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can not set the USB xfer len\n"

	.comm	_REQUEST_ENABLE_VIDEO,4,2       ## @REQUEST_ENABLE_VIDEO
L_.str.1:                               ## @.str.1
	.asciz	"modifying (%d) streaming state for %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"data for streaming: %x %x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dib0700_streaming_ctrl         ; -- Begin function dib0700_streaming_ctrl
	.p2align	2
_dib0700_streaming_ctrl:                ; @dib0700_streaming_ctrl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	ldr	x0, [x0, #8]
	ldr	x22, [x0]
	cbz	w1, LBB0_3
; %bb.1:
	ldr	w8, [x22]
	mov	w9, #513
	movk	w9, #1, lsl #16
	cmp	w8, w9
	b.lt	LBB0_3
; %bb.2:
	ldr	w1, [x22, #12]
	bl	_dib0700_set_usb_xfer_len
	tbnz	w0, #31, LBB0_9
LBB0_3:
Lloh3:
	adrp	x8, _REQUEST_ENABLE_VIDEO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REQUEST_ENABLE_VIDEO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	w21, w20, #4
	stp	w8, w21, [sp, #24]
	ldr	w8, [x22, #4]
	cmp	w8, #1
	cset	w8, ne
	lsl	w8, w8, #4
	stp	w8, wzr, [sp, #32]
	ldr	w8, [x19]
	stp	x20, x8, [sp]
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_deb_info
	ldr	w8, [x19]
	mov	w9, #1
	lsl	w8, w9, w8
	cbz	w20, LBB0_5
; %bb.4:
	ldr	w9, [x22, #8]
	orr	w8, w9, w8
	b	LBB0_6
LBB0_5:
	ldr	w9, [x22, #8]
	bic	w8, w9, w8
LBB0_6:
	str	w8, [x22, #8]
	ldr	w9, [sp, #32]
	orr	w8, w9, w8
	str	w8, [sp, #32]
	stp	x21, x8, [sp]
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_deb_info
	ldr	x0, [x19, #8]
	add	x1, sp, #24
	mov	w2, #4
	bl	_dib0700_ctrl_wr
	mov	x21, x0
LBB0_7:
	ldr	x8, [sp, #40]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.8:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_9:
	mov	x21, x0
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	bl	_deb_info
	b	LBB0_7
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can not set the USB xfer len\n"

	.comm	_REQUEST_ENABLE_VIDEO,4,2       ; @REQUEST_ENABLE_VIDEO
l_.str.1:                               ; @.str.1
	.asciz	"modifying (%d) streaming state for %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"data for streaming: %x %x\n"

.subsections_via_symbols
