	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx25821_video_unregister       ## -- Begin function cx25821_video_unregister
	.p2align	4, 0x90
_cx25821_video_unregister:              ## @cx25821_video_unregister
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_PCI_INT_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_cx_clear
	movq	(%r14), %rax
	movslq	%ebx, %rbx
	leaq	(%rax,%rbx,8), %rdi
	addq	$4, %rdi
	callq	_video_is_registered
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	(%r14), %rax
	leaq	(%rax,%rbx,8), %rdi
	addq	$4, %rdi
	shlq	$3, %rbx
	callq	_video_unregister_device
	addq	(%r14), %rbx
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_v4l2_ctrl_handler_free         ## TAILCALL
LBB0_1:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_INT_MSK,4,2                ## @PCI_INT_MSK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx25821_video_unregister       ; -- Begin function cx25821_video_unregister
	.p2align	2
_cx25821_video_unregister:              ; @cx25821_video_unregister
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _PCI_INT_MSK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_INT_MSK@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	w1, #1
	bl	_cx_clear
	ldr	x8, [x19]
	add	x8, x8, w20, sxtw #3
	add	x0, x8, #4
	bl	_video_is_registered
	cbz	x0, LBB0_2
; %bb.1:
	sxtw	x8, w20
	ldr	x9, [x19]
	lsl	x20, x8, #3
	add	x8, x9, x20
	add	x0, x8, #4
	bl	_video_unregister_device
	ldr	x8, [x19]
	add	x0, x8, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_v4l2_ctrl_handler_free
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_INT_MSK,4,2                ; @PCI_INT_MSK
.subsections_via_symbols
