	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %r14
	movq	8(%rdi), %rdi
	movq	8(%rdi), %rbx
	testl	%esi, %esi
	je	LBB0_4
## %bb.1:
	cmpl	$66049, (%rbx)                  ## imm = 0x10201
	jl	LBB0_4
## %bb.2:
	movl	24(%rbx), %esi
	callq	_dib0700_set_usb_xfer_len
	testl	%eax, %eax
	js	LBB0_13
## %bb.3:
	movq	8(%r14), %rdi
LBB0_4:
	callq	_mutex_lock
	movq	_REQUEST_ENABLE_VIDEO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%rbx), %rcx
	movl	%eax, (%rcx)
	movl	%r12d, %eax
	shll	$4, %eax
	movl	%eax, 4(%rcx)
	xorl	%eax, %eax
	cmpl	$1, 16(%rbx)
	setne	%al
	shll	$4, %eax
	movl	%eax, 8(%rcx)
	movl	$0, 12(%rcx)
	movl	(%r14), %edx
	leaq	L_.str.1(%rip), %rdi
	movl	%r12d, %esi
	xorl	%eax, %eax
	callq	_deb_info
	movl	20(%rbx), %edx
	andl	$-4, %edx
	movl	%edx, 20(%rbx)
	movq	16(%r14), %rax
	movl	(%rax), %esi
	leal	-2(%rsi), %eax
	cmpl	$2, %eax
	jae	LBB0_7
## %bb.5:
	testl	%r12d, %r12d
	jne	LBB0_11
## %bb.6:
	movb	$3, %al
	subb	%sil, %al
	jmp	LBB0_11
LBB0_7:
	leaq	L_.str.2(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%eax, %eax
	callq	_deb_info
	movl	(%r14), %eax
	testl	%r12d, %r12d
	jne	LBB0_10
## %bb.9:
	notb	%al
LBB0_10:
	movl	20(%rbx), %edx
LBB0_11:
	btsl	%eax, %edx
	movl	%edx, 20(%rbx)
	movq	8(%rbx), %rax
	orl	8(%rax), %edx
	movl	%edx, 8(%rax)
	movl	4(%rax), %esi
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_deb_info
	movq	8(%r14), %rdi
	movq	8(%rbx), %rsi
	movl	$4, %edx
	callq	_dib0700_ctrl_wr
	movl	%eax, %ebx
	movq	8(%r14), %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
LBB0_12:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_deb_info
	movl	%r15d, %eax
	jmp	LBB0_12
	.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	"the endpoint number (%i) is not correct, use the adapter id instead"

L_.str.3:                               ## @.str.3
	.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, #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
	mov	x19, x0
	ldr	x0, [x0, #8]
	ldr	x22, [x0, #8]
	cbz	w1, LBB0_4
; %bb.1:
	ldr	w8, [x22]
	mov	w9, #513
	movk	w9, #1, lsl #16
	cmp	w8, w9
	b.lt	LBB0_4
; %bb.2:
	ldr	w1, [x22, #24]
	bl	_dib0700_set_usb_xfer_len
	tbnz	w0, #31, LBB0_11
; %bb.3:
	ldr	x0, [x19, #8]
LBB0_4:
	bl	_mutex_lock
Lloh0:
	adrp	x8, _REQUEST_ENABLE_VIDEO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REQUEST_ENABLE_VIDEO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x9, [x22, #8]
	lsl	w10, w20, #4
	stp	w8, w10, [x9]
	ldr	w8, [x22, #16]
	cmp	w8, #1
	cset	w8, ne
	lsl	w8, w8, #4
	stp	w8, wzr, [x9, #8]
	ldr	w8, [x19]
	stp	x20, x8, [sp]
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_deb_info
	ldr	w8, [x22, #20]
	and	w8, w8, #0xfffffffc
	str	w8, [x22, #20]
	ldr	x9, [x19, #16]
	ldr	w9, [x9]
	sub	w10, w9, #2
	cmp	w10, #2
	b.hs	LBB0_6
; %bb.5:
	mov	w11, #3
	sub	w9, w11, w9
	mov	w11, #1
	lsl	w9, w11, w9
	orr	w9, w9, w8
	lsl	w10, w11, w10
	orr	w8, w10, w8
	cmp	w20, #0
	csel	w8, w9, w8, eq
	b	LBB0_9
LBB0_6:
	str	x9, [sp]
Lloh5:
	adrp	x0, l_.str.2@PAGE
Lloh6:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_deb_info
	ldr	w8, [x19]
	cbnz	w20, LBB0_8
; %bb.7:
	mvn	w8, w8
LBB0_8:
	mov	w9, #1
	lsl	w8, w9, w8
	ldr	w9, [x22, #20]
	orr	w8, w9, w8
LBB0_9:
	str	w8, [x22, #20]
	ldr	x9, [x22, #8]
	ldp	w11, w10, [x9, #4]
	orr	w8, w10, w8
	str	w8, [x9, #8]
	stp	x11, x8, [sp]
Lloh7:
	adrp	x0, l_.str.3@PAGE
Lloh8:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_deb_info
	ldr	x0, [x19, #8]
	ldr	x1, [x22, #8]
	mov	w2, #4
	bl	_dib0700_ctrl_wr
	mov	x20, x0
	ldr	x0, [x19, #8]
	bl	_mutex_unlock
	mov	x0, x20
LBB0_10:
	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_11:
	mov	x21, x0
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_deb_info
	mov	x0, x21
	b	LBB0_10
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.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	"the endpoint number (%i) is not correct, use the adapter id instead"

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

.subsections_via_symbols
