	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap24xxcam_device_unregister
_omap24xxcam_device_unregister:         ## @omap24xxcam_device_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_omap24xxcam_sensor_exit
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	cmpl	$-1, (%rdi)
	je	LBB0_2
## %bb.3:
	callq	_video_unregister_device
	jmp	LBB0_4
LBB0_2:
	callq	_video_device_release
LBB0_4:
	movq	$0, 16(%rbx)
LBB0_5:
	movl	8(%rbx), %edi
	movq	_dev_attr_streaming@GOTPCREL(%rip), %rsi
	callq	_device_remove_file
	movq	$0, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dev_attr_streaming,4,2         ## @dev_attr_streaming
	.no_dead_strip	_omap24xxcam_device_unregister
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function omap24xxcam_device_unregister
_omap24xxcam_device_unregister:         ; @omap24xxcam_device_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
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x19, [x8]
	mov	x0, x19
	bl	_omap24xxcam_sensor_exit
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_5
; %bb.1:
	ldr	w8, [x0]
	cmn	w8, #1
	b.eq	LBB0_3
; %bb.2:
	bl	_video_unregister_device
	b	LBB0_4
LBB0_3:
	bl	_video_device_release
LBB0_4:
	str	xzr, [x19, #16]
LBB0_5:
	ldr	w0, [x19, #8]
Lloh0:
	adrp	x1, _dev_attr_streaming@GOTPAGE
Lloh1:
	ldr	x1, [x1, _dev_attr_streaming@GOTPAGEOFF]
	bl	_device_remove_file
	str	xzr, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_dev_attr_streaming,4,2         ; @dev_attr_streaming
	.no_dead_strip	_omap24xxcam_device_unregister
.subsections_via_symbols
