	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function csiphy_set_power
_csiphy_set_power:                      ## @csiphy_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	callq	_v4l2_get_subdevdata
	movq	%rax, %r15
	movq	24(%rax), %rax
	movq	(%rax), %r14
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.1:
	movq	%r14, %rdi
	callq	_pm_runtime_get_sync
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	movq	%r15, %rdi
	callq	_csiphy_set_clock_rates
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movl	(%r15), %esi
	movl	4(%r15), %edi
	movq	%r14, %rdx
	callq	_camss_enable_clocks
	testl	%eax, %eax
	js	LBB0_4
## %bb.6:
	movl	8(%r15), %edi
	callq	_enable_irq
	movq	16(%r15), %rax
	movq	%r15, %rdi
	callq	*8(%rax)
	movq	16(%r15), %rax
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	*(%rax)
	jmp	LBB0_8
LBB0_7:
	movl	8(%r15), %edi
	callq	_disable_irq
	movl	(%r15), %esi
	movl	4(%r15), %edi
	callq	_camss_disable_clocks
	movq	%r14, %rdi
	callq	_pm_runtime_put_sync
LBB0_8:
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_2:
	movl	%eax, %ebx
	jmp	LBB0_9
LBB0_4:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_pm_runtime_put_sync
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_csiphy_set_power
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function csiphy_set_power
_csiphy_set_power:                      ; @csiphy_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	x21, x1
	bl	_v4l2_get_subdevdata
	mov	x20, x0
	ldr	x8, [x0, #24]
	ldr	x19, [x8]
	cbz	w21, LBB0_5
; %bb.1:
	mov	x0, x19
	bl	_pm_runtime_get_sync
	tbnz	w0, #31, LBB0_6
; %bb.2:
	mov	x0, x20
	bl	_csiphy_set_clock_rates
	tbnz	w0, #31, LBB0_7
; %bb.3:
	ldp	w1, w0, [x20]
	mov	x2, x19
	bl	_camss_enable_clocks
	tbnz	w0, #31, LBB0_7
; %bb.4:
	ldr	w0, [x20, #8]
	bl	_enable_irq
	ldr	x8, [x20, #16]
	ldr	x8, [x8, #8]
	mov	x0, x20
	blr	x8
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	mov	x0, x20
	mov	x1, x19
	blr	x8
	mov	w21, #0
	b	LBB0_9
LBB0_5:
	ldr	w0, [x20, #8]
	bl	_disable_irq
	ldp	w1, w0, [x20]
	bl	_camss_disable_clocks
	b	LBB0_8
LBB0_6:
	mov	x21, x0
	b	LBB0_9
LBB0_7:
	mov	x21, x0
LBB0_8:
	mov	x0, x19
	bl	_pm_runtime_put_sync
LBB0_9:
	mov	x0, x21
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_csiphy_set_power
.subsections_via_symbols
