	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function csid_set_power
_csid_set_power:                        ## @csid_set_power
	.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
	movl	%esi, %ebx
	callq	_v4l2_get_subdevdata
	movq	%rax, %r12
	movq	24(%rax), %rax
	movq	(%rax), %r14
	testl	%ebx, %ebx
	je	LBB0_12
## %bb.1:
	movq	%r14, %rdi
	callq	_pm_runtime_get_sync
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	movl	(%r12), %edi
	callq	_regulator_enable
	testl	%eax, %eax
	js	LBB0_4
## %bb.6:
	movq	%r12, %rdi
	callq	_csid_set_clock_rates
	testl	%eax, %eax
	js	LBB0_7
## %bb.9:
	movl	4(%r12), %esi
	movl	8(%r12), %edi
	movq	%r14, %rdx
	callq	_camss_enable_clocks
	testl	%eax, %eax
	js	LBB0_7
## %bb.10:
	movl	12(%r12), %edi
	callq	_enable_irq
	movq	%r12, %rdi
	callq	_csid_reset
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_11
## %bb.13:
	movq	_CAMSS_CSID_HW_VERSION@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	16(%r12), %rdi
	callq	_readl_relaxed
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_dbg
	jmp	LBB0_14
LBB0_12:
	movl	12(%r12), %edi
	callq	_disable_irq
	movl	4(%r12), %esi
	movl	8(%r12), %edi
	callq	_camss_disable_clocks
	movl	(%r12), %edi
	callq	_regulator_disable
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_pm_runtime_put_sync
	movl	%ebx, %eax
	jmp	LBB0_15
LBB0_2:
	movl	%eax, %r15d
	jmp	LBB0_14
LBB0_7:
	movl	%eax, %r15d
	jmp	LBB0_8
LBB0_4:
	movl	%eax, %r15d
	jmp	LBB0_5
LBB0_11:
	movl	12(%r12), %edi
	callq	_disable_irq
	movl	4(%r12), %esi
	movl	8(%r12), %edi
	callq	_camss_disable_clocks
LBB0_8:
	movl	(%r12), %edi
	callq	_regulator_disable
LBB0_5:
	movq	%r14, %rdi
	callq	_pm_runtime_put_sync
LBB0_14:
	movl	%r15d, %eax
LBB0_15:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CAMSS_CSID_HW_VERSION,8,3      ## @CAMSS_CSID_HW_VERSION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CSID HW Version = 0x%08x\n"

	.no_dead_strip	_csid_set_power
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function csid_set_power
_csid_set_power:                        ; @csid_set_power
	.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, x1
	bl	_v4l2_get_subdevdata
	mov	x21, x0
	ldr	x8, [x0, #24]
	ldr	x19, [x8]
	cbz	w20, LBB0_7
; %bb.1:
	mov	x0, x19
	bl	_pm_runtime_get_sync
	tbnz	w0, #31, LBB0_9
; %bb.2:
	ldr	w0, [x21]
	bl	_regulator_enable
	tbnz	w0, #31, LBB0_8
; %bb.3:
	mov	x0, x21
	bl	_csid_set_clock_rates
	tbnz	w0, #31, LBB0_10
; %bb.4:
	ldp	w1, w0, [x21, #4]
	mov	x2, x19
	bl	_camss_enable_clocks
	tbnz	w0, #31, LBB0_10
; %bb.5:
	ldr	w0, [x21, #12]
	bl	_enable_irq
	mov	x0, x21
	bl	_csid_reset
	mov	x20, x0
	tbnz	w0, #31, LBB0_11
; %bb.6:
	ldr	x8, [x21, #16]
Lloh0:
	adrp	x9, _CAMSS_CSID_HW_VERSION@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CAMSS_CSID_HW_VERSION@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl_relaxed
	mov	x2, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	b	LBB0_14
LBB0_7:
	ldr	w0, [x21, #12]
	bl	_disable_irq
	ldp	w1, w0, [x21, #4]
	bl	_camss_disable_clocks
	ldr	w0, [x21]
	bl	_regulator_disable
LBB0_8:
	mov	x20, x0
	b	LBB0_13
LBB0_9:
	mov	x20, x0
	b	LBB0_14
LBB0_10:
	mov	x20, x0
	b	LBB0_12
LBB0_11:
	ldr	w0, [x21, #12]
	bl	_disable_irq
	ldp	w1, w0, [x21, #4]
	bl	_camss_disable_clocks
LBB0_12:
	ldr	w0, [x21]
	bl	_regulator_disable
LBB0_13:
	mov	x0, x19
	bl	_pm_runtime_put_sync
LBB0_14:
	mov	x0, x20
	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	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CAMSS_CSID_HW_VERSION,8,3      ; @CAMSS_CSID_HW_VERSION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CSID HW Version = 0x%08x\n"

	.no_dead_strip	_csid_set_power
.subsections_via_symbols
