	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v4l2_device_unregister_subdev  ## -- Begin function v4l2_device_unregister_subdev
	.p2align	4, 0x90
_v4l2_device_unregister_subdev:         ## @v4l2_device_unregister_subdev
	.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
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.1:
	movq	%rdi, %r14
	movq	16(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.2:
	addq	$8, %rbx
	movq	%rbx, %rdi
	callq	_spin_lock
	leaq	32(%r14), %rdi
	callq	_list_del
	movq	%rbx, %rdi
	callq	_spin_unlock
	movq	24(%r14), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	*%rax
LBB0_5:
	movq	$0, 16(%r14)
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_video_unregister_device        ## TAILCALL
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_v4l2_subdev_release            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v4l2_device_unregister_subdev  ; -- Begin function v4l2_device_unregister_subdev
	.p2align	2
_v4l2_device_unregister_subdev:         ; @v4l2_device_unregister_subdev
	.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
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_7
; %bb.2:
	add	x20, x8, #8
	mov	x0, x20
	bl	_spin_lock
	add	x0, x19, #32
	bl	_list_del
	mov	x0, x20
	bl	_spin_unlock
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x0, x19
	blr	x8
LBB0_5:
	str	xzr, [x19, #16]
	ldr	x0, [x19]
	cbz	x0, LBB0_8
; %bb.6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_video_unregister_device
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_v4l2_subdev_release
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
