	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zc0301_stream_interrupt
_zc0301_stream_interrupt:               ## @zc0301_stream_interrupt
	.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
	movq	%rdi, %rbx
	movq	_STREAM_INTERRUPT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rdi)
	movl	24(%rdi), %edi
	movq	_STREAM_OFF@GOTPCREL(%rip), %r14
	movl	$1, %esi
	cmpq	(%r14), %rax
	je	LBB0_2
## %bb.1:
	movq	_DEV_DISCONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%esi, %esi
	testl	%eax, 8(%rbx)
	setne	%sil
LBB0_2:
	movq	_ZC0301_URB_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_wait_event_timeout
	movl	8(%rbx), %ecx
	movq	_DEV_DISCONNECTED@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_4
## %bb.3:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_4:
	movq	(%rbx), %rdx
	xorl	%eax, %eax
	cmpq	(%r14), %rdx
	je	LBB0_7
## %bb.5:
	movq	_DEV_MISCONFIGURED@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 8(%rbx)
	movq	16(%rbx), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_DBG
	movq	_EIO@GOTPCREL(%rip), %rcx
LBB0_6:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STREAM_INTERRUPT,8,3           ## @STREAM_INTERRUPT
	.comm	_STREAM_OFF,8,3                 ## @STREAM_OFF
	.comm	_DEV_DISCONNECTED,4,2           ## @DEV_DISCONNECTED
	.comm	_ZC0301_URB_TIMEOUT,4,2         ## @ZC0301_URB_TIMEOUT
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_DEV_MISCONFIGURED,4,2          ## @DEV_MISCONFIGURED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"URB timeout reached. The camera is misconfigured. To use it, close and open /dev/video%d again."

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_zc0301_stream_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zc0301_stream_interrupt
_zc0301_stream_interrupt:               ; @zc0301_stream_interrupt
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x0
Lloh0:
	adrp	x8, _STREAM_INTERRUPT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STREAM_INTERRUPT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [x0]
	ldr	w0, [x0, #24]
Lloh3:
	adrp	x20, _STREAM_OFF@GOTPAGE
Lloh4:
	ldr	x20, [x20, _STREAM_OFF@GOTPAGEOFF]
	ldr	x9, [x20]
Lloh5:
	adrp	x21, _DEV_DISCONNECTED@GOTPAGE
Lloh6:
	ldr	x21, [x21, _DEV_DISCONNECTED@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	w1, #1
	b	LBB0_3
LBB0_2:
	ldr	w8, [x19, #8]
	ldr	w9, [x21]
	tst	w9, w8
	cset	w1, ne
LBB0_3:
Lloh7:
	adrp	x8, _ZC0301_URB_TIMEOUT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ZC0301_URB_TIMEOUT@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	bl	_wait_event_timeout
	ldr	w8, [x19, #8]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
Lloh10:
	adrp	x8, _ENODEV@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
	ldr	x9, [x19]
	ldr	x10, [x20]
	cmp	x9, x10
	b.ne	LBB0_7
; %bb.6:
	mov	w0, #0
	b	LBB0_9
LBB0_7:
Lloh12:
	adrp	x9, _DEV_MISCONFIGURED@GOTPAGE
Lloh13:
	ldr	x9, [x9, _DEV_MISCONFIGURED@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19, #8]
	ldr	x8, [x19, #16]
	ldr	w2, [x8]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_DBG
Lloh17:
	adrp	x8, _EIO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_STREAM_INTERRUPT,8,3           ; @STREAM_INTERRUPT
	.comm	_STREAM_OFF,8,3                 ; @STREAM_OFF
	.comm	_DEV_DISCONNECTED,4,2           ; @DEV_DISCONNECTED
	.comm	_ZC0301_URB_TIMEOUT,4,2         ; @ZC0301_URB_TIMEOUT
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_DEV_MISCONFIGURED,4,2          ; @DEV_MISCONFIGURED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"URB timeout reached. The camera is misconfigured. To use it, close and open /dev/video%d again."

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_zc0301_stream_interrupt
.subsections_via_symbols
