	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function v4l2_device_release
_v4l2_device_release:                   ## @v4l2_device_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	callq	_to_video_device
	movq	%rax, %rbx
	movq	_videodev_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	_video_device@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rbx), %rcx
	cmpq	%rbx, (%rax,%rcx,8)
	je	LBB0_2
## %bb.1:
	movq	_videodev_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movl	$1, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_WARN_ON                        ## TAILCALL
LBB0_2:
	movq	%rbx, %rdx
	movq	$0, (%rax,%rcx,8)
	movq	16(%rdx), %rdi
	callq	_cdev_del
	movq	%rbx, %rdi
	movq	$0, 16(%rbx)
	callq	_devnode_clear
	movq	_videodev_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmpq	*8(%rdi)                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_videodev_lock,4,2              ## @videodev_lock
	.comm	_video_device,8,3               ## @video_device
	.no_dead_strip	_v4l2_device_release
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function v4l2_device_release
_v4l2_device_release:                   ; @v4l2_device_release
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_to_video_device
	mov	x19, x0
Lloh0:
	adrp	x0, _videodev_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _videodev_lock@GOTPAGEOFF]
	bl	_mutex_lock
Lloh2:
	adrp	x8, _video_device@GOTPAGE
Lloh3:
	ldr	x8, [x8, _video_device@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	x9, [x19]
	ldr	x10, [x8, x9, lsl #3]
	cmp	x10, x19
	b.eq	LBB0_2
; %bb.1:
Lloh5:
	adrp	x0, _videodev_lock@GOTPAGE
Lloh6:
	ldr	x0, [x0, _videodev_lock@GOTPAGEOFF]
	bl	_mutex_unlock
	mov	w0, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_WARN_ON
LBB0_2:
	str	xzr, [x8, x9, lsl #3]
	ldr	x0, [x19, #16]
	bl	_cdev_del
	str	xzr, [x19, #16]
	mov	x0, x19
	bl	_devnode_clear
Lloh7:
	adrp	x0, _videodev_lock@GOTPAGE
Lloh8:
	ldr	x0, [x0, _videodev_lock@GOTPAGEOFF]
	bl	_mutex_unlock
	ldr	x1, [x19, #8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	br	x1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_videodev_lock,4,2              ; @videodev_lock
	.comm	_video_device,8,3               ; @video_device
	.no_dead_strip	_v4l2_device_release
.subsections_via_symbols
