	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function camerarx_phy_disable
_camerarx_phy_disable:                  ## @camerarx_phy_disable
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	(%rax), %rdi
	cmpl	$0, (%rdi)
	je	LBB0_7
## %bb.1:
	movq	_CM_CTRL_CORE_CAMERRX_CONTROL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_reg_read
	movl	%eax, -20(%rbp)
	movl	(%rbx), %eax
	cmpl	$1, %eax
	je	LBB0_2
## %bb.3:
	cmpl	$2, %eax
	jne	LBB0_6
## %bb.4:
	movq	_CM_CAMERRX_CTRL_CSI1_CTRLCLKEN_MASK@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_7:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ctx_err                        ## TAILCALL
LBB0_2:
	movq	_CM_CAMERRX_CTRL_CSI0_CTRLCLKEN_MASK@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %edx
	leaq	-20(%rbp), %rdi
	xorl	%esi, %esi
	callq	_set_field
LBB0_6:
	movq	8(%rbx), %rax
	movq	(%rax), %rdi
	movl	(%r14), %esi
	movl	-20(%rbp), %edx
	callq	_reg_write
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cm not mapped\n"

	.comm	_CM_CTRL_CORE_CAMERRX_CONTROL,4,2 ## @CM_CTRL_CORE_CAMERRX_CONTROL
	.comm	_CM_CAMERRX_CTRL_CSI0_CTRLCLKEN_MASK,4,2 ## @CM_CAMERRX_CTRL_CSI0_CTRLCLKEN_MASK
	.comm	_CM_CAMERRX_CTRL_CSI1_CTRLCLKEN_MASK,4,2 ## @CM_CAMERRX_CTRL_CSI1_CTRLCLKEN_MASK
	.no_dead_strip	_camerarx_phy_disable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function camerarx_phy_disable
_camerarx_phy_disable:                  ; @camerarx_phy_disable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x0, [x8]
	ldr	w8, [x0]
	cbz	w8, LBB0_4
; %bb.1:
Lloh0:
	adrp	x20, _CM_CTRL_CORE_CAMERRX_CONTROL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _CM_CTRL_CORE_CAMERRX_CONTROL@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_reg_read
	str	w0, [sp, #12]
	ldr	w8, [x19]
	cmp	w8, #1
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #2
	b.ne	LBB0_7
; %bb.3:
Lloh2:
	adrp	x8, _CM_CAMERRX_CTRL_CSI1_CTRLCLKEN_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CM_CAMERRX_CTRL_CSI1_CTRLCLKEN_MASK@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_ctx_err
LBB0_5:
Lloh6:
	adrp	x8, _CM_CAMERRX_CTRL_CSI0_CTRLCLKEN_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CM_CAMERRX_CTRL_CSI0_CTRLCLKEN_MASK@GOTPAGEOFF]
LBB0_6:
	ldr	w2, [x8]
	add	x0, sp, #12
	mov	w1, #0
	bl	_set_field
LBB0_7:
	ldr	x8, [x19, #8]
	ldr	x0, [x8]
	ldr	w1, [x20]
	ldr	w2, [sp, #12]
	bl	_reg_write
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cm not mapped\n"

	.comm	_CM_CTRL_CORE_CAMERRX_CONTROL,4,2 ; @CM_CTRL_CORE_CAMERRX_CONTROL
	.comm	_CM_CAMERRX_CTRL_CSI0_CTRLCLKEN_MASK,4,2 ; @CM_CAMERRX_CTRL_CSI0_CTRLCLKEN_MASK
	.comm	_CM_CAMERRX_CTRL_CSI1_CTRLCLKEN_MASK,4,2 ; @CM_CAMERRX_CTRL_CSI1_CTRLCLKEN_MASK
	.no_dead_strip	_camerarx_phy_disable
.subsections_via_symbols
