	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mccic_shutdown                 ## -- Begin function mccic_shutdown
	.p2align	4, 0x90
_mccic_shutdown:                        ## @mccic_shutdown
	.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, %rbx
	addq	$20, %rdi
	callq	_list_empty
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_cam_warn
	movq	_core@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_s_power@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_sensor_call
LBB0_2:
	movq	(%rbx), %rax
	movq	_B_vmalloc@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_mcam_free_dma_bufs
LBB0_4:
	leaq	16(%rbx), %rdi
	callq	_v4l2_ctrl_handler_free
	leaq	12(%rbx), %rdi
	callq	_v4l2_async_notifier_unregister
	addq	$8, %rbx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_v4l2_device_unregister         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Removing a device with users!\n"

	.comm	_core,4,2                       ## @core
	.comm	_s_power,4,2                    ## @s_power
	.comm	_B_vmalloc,8,3                  ## @B_vmalloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mccic_shutdown                 ; -- Begin function mccic_shutdown
	.p2align	2
_mccic_shutdown:                        ; @mccic_shutdown
	.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	x19, x0
	add	x0, x0, #20
	bl	_list_empty
	cbnz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_cam_warn
Lloh2:
	adrp	x8, _core@GOTPAGE
Lloh3:
	ldr	x8, [x8, _core@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _s_power@GOTPAGE
Lloh6:
	ldr	x8, [x8, _s_power@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #0
	bl	_sensor_call
LBB0_2:
	ldr	x8, [x19]
Lloh8:
	adrp	x9, _B_vmalloc@GOTPAGE
Lloh9:
	ldr	x9, [x9, _B_vmalloc@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_mcam_free_dma_bufs
LBB0_4:
	add	x0, x19, #16
	bl	_v4l2_ctrl_handler_free
	add	x0, x19, #12
	bl	_v4l2_async_notifier_unregister
	add	x0, x19, #8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_v4l2_device_unregister
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Removing a device with users!\n"

	.comm	_core,4,2                       ; @core
	.comm	_s_power,4,2                    ; @s_power
	.comm	_B_vmalloc,8,3                  ; @B_vmalloc
.subsections_via_symbols
