	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dibusb2_0_streaming_ctrl       ## -- Begin function dibusb2_0_streaming_ctrl
	.p2align	4, 0x90
_dibusb2_0_streaming_ctrl:              ## @dibusb2_0_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	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movl	$0, -32(%rbp)
	movq	$0, -40(%rbp)
	callq	_dibusb_streaming_ctrl
	testl	%eax, %eax
	js	LBB0_7
## %bb.1:
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.2:
	movq	_DIBUSB_REQ_SET_STREAMING_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movl	$0, -36(%rbp)
	movl	(%r14), %edi
	leaq	-40(%rbp), %rsi
	movl	$2, %edx
	callq	_dvb_usb_generic_write
	testl	%eax, %eax
	js	LBB0_7
LBB0_3:
	movq	_DIBUSB_REQ_SET_IOCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	testl	%ebx, %ebx
	jne	LBB0_4
## %bb.5:
	movq	_DIBUSB_IOCTL_CMD_DISABLE_STREAM@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_DIBUSB_IOCTL_CMD_ENABLE_STREAM@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movl	(%r14), %edi
	leaq	-40(%rbp), %rsi
	movl	$3, %edx
	callq	_dvb_usb_generic_write
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-24(%rbp), %rcx
	jne	LBB0_9
## %bb.8:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_DIBUSB_REQ_SET_STREAMING_MODE,4,2 ## @DIBUSB_REQ_SET_STREAMING_MODE
	.comm	_DIBUSB_REQ_SET_IOCTL,4,2       ## @DIBUSB_REQ_SET_IOCTL
	.comm	_DIBUSB_IOCTL_CMD_ENABLE_STREAM,4,2 ## @DIBUSB_IOCTL_CMD_ENABLE_STREAM
	.comm	_DIBUSB_IOCTL_CMD_DISABLE_STREAM,4,2 ## @DIBUSB_IOCTL_CMD_DISABLE_STREAM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dibusb2_0_streaming_ctrl       ; -- Begin function dibusb2_0_streaming_ctrl
	.p2align	2
_dibusb2_0_streaming_ctrl:              ; @dibusb2_0_streaming_ctrl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	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, #24]
	str	wzr, [sp, #16]
	str	xzr, [sp, #8]
	bl	_dibusb_streaming_ctrl
	tbnz	w0, #31, LBB0_4
; %bb.1:
	cbz	w20, LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _DIBUSB_REQ_SET_STREAMING_MODE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DIBUSB_REQ_SET_STREAMING_MODE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	stp	w8, wzr, [sp, #8]
	ldr	w0, [x19]
	add	x1, sp, #8
	mov	w2, #2
	bl	_dvb_usb_generic_write
	tbnz	w0, #31, LBB0_4
LBB0_3:
Lloh6:
	adrp	x8, _DIBUSB_REQ_SET_IOCTL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DIBUSB_REQ_SET_IOCTL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _DIBUSB_IOCTL_CMD_ENABLE_STREAM@GOTPAGE
Lloh10:
	ldr	x9, [x9, _DIBUSB_IOCTL_CMD_ENABLE_STREAM@GOTPAGEOFF]
Lloh11:
	adrp	x10, _DIBUSB_IOCTL_CMD_DISABLE_STREAM@GOTPAGE
Lloh12:
	ldr	x10, [x10, _DIBUSB_IOCTL_CMD_DISABLE_STREAM@GOTPAGEOFF]
	str	w8, [sp, #8]
	cmp	w20, #0
	csel	x8, x10, x9, eq
	ldr	w8, [x8]
	str	w8, [sp, #12]
	ldr	w0, [x19]
	add	x1, sp, #8
	mov	w2, #3
	bl	_dvb_usb_generic_write
LBB0_4:
	ldr	x8, [sp, #24]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_DIBUSB_REQ_SET_STREAMING_MODE,4,2 ; @DIBUSB_REQ_SET_STREAMING_MODE
	.comm	_DIBUSB_REQ_SET_IOCTL,4,2       ; @DIBUSB_REQ_SET_IOCTL
	.comm	_DIBUSB_IOCTL_CMD_ENABLE_STREAM,4,2 ; @DIBUSB_IOCTL_CMD_ENABLE_STREAM
	.comm	_DIBUSB_IOCTL_CMD_DISABLE_STREAM,4,2 ; @DIBUSB_IOCTL_CMD_DISABLE_STREAM
.subsections_via_symbols
