	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function soc_camera_close
_soc_camera_close:                      ## @soc_camera_close
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rbx
	movl	(%rbx), %edi
	callq	_to_soc_camera_host
	movq	%rax, %r15
	decl	24(%rbx)
	je	LBB0_1
## %bb.2:
	cmpq	%r14, 8(%rbx)
	je	LBB0_3
LBB0_4:
	movq	(%r15), %rax
	movl	(%rax), %edi
	callq	_module_put
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_dbg
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rbx, %rdi
	callq	_to_soc_camera_link
	movq	%rax, %r12
	movq	16(%rbx), %rdi
	callq	_pm_runtime_suspend
	movq	16(%rbx), %rdi
	callq	_pm_runtime_disable
	movq	(%r15), %rax
	movq	%rbx, %rdi
	callq	*8(%rax)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_soc_camera_power_set
	cmpq	%r14, 8(%rbx)
	jne	LBB0_4
LBB0_3:
	movq	$0, 8(%rbx)
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"camera device close\n"

	.no_dead_strip	_soc_camera_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function soc_camera_close
_soc_camera_close:                      ; @soc_camera_close
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x0
	ldr	x19, [x0]
	ldr	w0, [x19]
	bl	_to_soc_camera_host
	mov	x21, x0
	ldr	w8, [x19, #24]
	subs	w8, w8, #1
	str	w8, [x19, #24]
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_to_soc_camera_link
	mov	x22, x0
	ldr	x0, [x19, #16]
	bl	_pm_runtime_suspend
	ldr	x0, [x19, #16]
	bl	_pm_runtime_disable
	ldr	x8, [x21]
	ldr	x8, [x8, #8]
	mov	x0, x19
	blr	x8
	mov	x0, x19
	mov	x1, x22
	mov	w2, #0
	bl	_soc_camera_power_set
LBB0_2:
	ldr	x8, [x19, #8]
	cmp	x8, x20
	b.ne	LBB0_4
; %bb.3:
	str	xzr, [x19, #8]
LBB0_4:
	ldr	x8, [x21]
	ldr	w0, [x8]
	bl	_module_put
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"camera device close\n"

	.no_dead_strip	_soc_camera_close
.subsections_via_symbols
