	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_omap3isp_csiphy_release        ## -- Begin function omap3isp_csiphy_release
	.p2align	4, 0x90
_omap3isp_csiphy_release:               ## @omap3isp_csiphy_release
	.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
	callq	_mutex_lock
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	callq	_to_isp_pipeline
	movl	(%rax), %edi
	callq	_v4l2_subdev_to_bus_cfg
	movl	(%rax), %ecx
	movl	4(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_csiphy_routing_cfg
	movq	24(%rbx), %rax
	movq	(%rax), %rax
	movq	_ISP_REVISION_15_0@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_csiphy_power_autoswitch_enable
	movq	_ISPCSI2_PHY_CFG_PWR_CMD_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_csiphy_set_power
LBB0_3:
	movl	16(%rbx), %edi
	callq	_regulator_disable
	movq	$0, 8(%rbx)
LBB0_4:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ISP_REVISION_15_0,8,3          ## @ISP_REVISION_15_0
	.comm	_ISPCSI2_PHY_CFG_PWR_CMD_OFF,4,2 ## @ISPCSI2_PHY_CFG_PWR_CMD_OFF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_omap3isp_csiphy_release        ; -- Begin function omap3isp_csiphy_release
	.p2align	2
_omap3isp_csiphy_release:               ; @omap3isp_csiphy_release
	.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
	bl	_mutex_lock
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_4
; %bb.1:
	bl	_to_isp_pipeline
	ldr	w0, [x0]
	bl	_v4l2_subdev_to_bus_cfg
	ldp	w3, w1, [x0]
	mov	x0, x19
	mov	w2, #0
	bl	_csiphy_routing_cfg
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _ISP_REVISION_15_0@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ISP_REVISION_15_0@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x19
	mov	w1, #0
	bl	_csiphy_power_autoswitch_enable
Lloh3:
	adrp	x8, _ISPCSI2_PHY_CFG_PWR_CMD_OFF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ISPCSI2_PHY_CFG_PWR_CMD_OFF@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_csiphy_set_power
LBB0_3:
	ldr	w0, [x19, #16]
	bl	_regulator_disable
	str	xzr, [x19, #8]
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mutex_unlock
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ISP_REVISION_15_0,8,3          ; @ISP_REVISION_15_0
	.comm	_ISPCSI2_PHY_CFG_PWR_CMD_OFF,4,2 ; @ISPCSI2_PHY_CFG_PWR_CMD_OFF
.subsections_via_symbols
