	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vivid_fop_release
_vivid_fop_release:                     ## @vivid_fop_release
	.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
	movq	%rdi, %r14
	callq	_video_drvdata
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_video_devdata
	movq	%rax, %r15
	leaq	40(%rbx), %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	_no_error_inj@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_1
LBB0_5:
	movq	%r12, %rdi
	callq	_mutex_unlock
	movq	(%r14), %rax
	cmpq	32(%rbx), %rax
	je	LBB0_6
## %bb.7:
	cmpq	16(%rbx), %rax
	je	LBB0_8
LBB0_9:
	cmpq	(%rbx), %rax
	je	LBB0_10
LBB0_11:
	cmpq	$0, (%r15)
	je	LBB0_13
LBB0_12:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vb2_fop_release                ## TAILCALL
LBB0_1:
	movq	%r14, %rdi
	callq	_v4l2_fh_is_singular_file
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%r15, %rdi
	callq	_video_is_registered
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	callq	_vivid_is_last_user
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	72(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_v4l2_info
	movq	_V4L2_FL_REGISTERED@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leaq	68(%rbx), %rsi
	callq	_set_bit
	movl	(%r13), %edi
	leaq	64(%rbx), %rsi
	callq	_set_bit
	movl	(%r13), %edi
	leaq	60(%rbx), %rsi
	callq	_set_bit
	movl	(%r13), %edi
	leaq	56(%rbx), %rsi
	callq	_set_bit
	movl	(%r13), %edi
	leaq	52(%rbx), %rsi
	callq	_set_bit
	movl	(%r13), %edi
	leaq	48(%rbx), %rsi
	callq	_set_bit
	movl	(%r13), %edi
	leaq	44(%rbx), %rsi
	callq	_set_bit
	jmp	LBB0_5
LBB0_6:
	movq	$0, 32(%rbx)
	cmpq	16(%rbx), %rax
	jne	LBB0_9
LBB0_8:
	movq	%rbx, %rcx
	addq	$16, %rcx
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rcx)
	cmpq	(%rbx), %rax
	jne	LBB0_11
LBB0_10:
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rbx)
	cmpq	$0, (%r15)
	jne	LBB0_12
LBB0_13:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_v4l2_fh_release                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_no_error_inj,4,2               ## @no_error_inj
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reconnect\n"

	.comm	_V4L2_FL_REGISTERED,4,2         ## @V4L2_FL_REGISTERED
	.no_dead_strip	_vivid_fop_release
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vivid_fop_release
_vivid_fop_release:                     ; @vivid_fop_release
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	bl	_video_drvdata
	mov	x20, x0
	mov	x0, x19
	bl	_video_devdata
	mov	x21, x0
	add	x22, x20, #40
	mov	x0, x22
	bl	_mutex_lock
Lloh0:
	adrp	x8, _no_error_inj@GOTPAGE
Lloh1:
	ldr	x8, [x8, _no_error_inj@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_8
LBB0_1:
	mov	x0, x22
	bl	_mutex_unlock
	ldr	x8, [x19]
	ldr	x9, [x20, #32]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	str	xzr, [x20, #32]
LBB0_3:
	mov	x9, x20
	ldr	x10, [x9, #16]!
	cmp	x8, x10
	b.ne	LBB0_5
; %bb.4:
	stp	xzr, xzr, [x9]
LBB0_5:
	ldr	x9, [x20]
	cmp	x8, x9
	b.eq	LBB0_12
; %bb.6:
	ldr	x8, [x21]
	cbz	x8, LBB0_13
LBB0_7:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_vb2_fop_release
LBB0_8:
	mov	x0, x19
	bl	_v4l2_fh_is_singular_file
	cbz	x0, LBB0_1
; %bb.9:
	mov	x0, x21
	bl	_video_is_registered
	cbnz	w0, LBB0_1
; %bb.10:
	mov	x0, x20
	bl	_vivid_is_last_user
	cbz	x0, LBB0_1
; %bb.11:
	add	x0, x20, #72
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_v4l2_info
Lloh5:
	adrp	x23, _V4L2_FL_REGISTERED@GOTPAGE
Lloh6:
	ldr	x23, [x23, _V4L2_FL_REGISTERED@GOTPAGEOFF]
	ldr	w0, [x23]
	add	x1, x20, #68
	bl	_set_bit
	ldr	w0, [x23]
	add	x1, x20, #64
	bl	_set_bit
	ldr	w0, [x23]
	add	x1, x20, #60
	bl	_set_bit
	ldr	w0, [x23]
	add	x1, x20, #56
	bl	_set_bit
	ldr	w0, [x23]
	add	x1, x20, #52
	bl	_set_bit
	ldr	w0, [x23]
	add	x1, x20, #48
	bl	_set_bit
	ldr	w0, [x23]
	add	x1, x20, #44
	bl	_set_bit
	b	LBB0_1
LBB0_12:
	stp	xzr, xzr, [x20]
	ldr	x8, [x21]
	cbnz	x8, LBB0_7
LBB0_13:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_v4l2_fh_release
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_no_error_inj,4,2               ; @no_error_inj
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reconnect\n"

	.comm	_V4L2_FL_REGISTERED,4,2         ; @V4L2_FL_REGISTERED
	.no_dead_strip	_vivid_fop_release
.subsections_via_symbols
