	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_camss_pm_domain_on             ## -- Begin function camss_pm_domain_on
	.p2align	4, 0x90
_camss_pm_domain_on:                    ## @camss_pm_domain_on
	.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
	movq	(%rdi), %rax
	movq	_CAMSS_8x96@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movq	%rdi, %rbx
	movl	24(%rdi), %edi
	movq	16(%rbx), %rax
	movslq	%esi, %r15
	movq	_DL_FLAG_STATELESS@GOTPCREL(%rip), %rcx
	movq	_DL_FLAG_PM_RUNTIME@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movl	(%rax,%r15,4), %esi
	movq	_DL_FLAG_RPM_ACTIVE@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	callq	_device_link_add
	movq	8(%rbx), %rcx
	movl	%eax, (%rcx,%r15,4)
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_3:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CAMSS_8x96,8,3                 ## @CAMSS_8x96
	.comm	_DL_FLAG_STATELESS,4,2          ## @DL_FLAG_STATELESS
	.comm	_DL_FLAG_PM_RUNTIME,4,2         ## @DL_FLAG_PM_RUNTIME
	.comm	_DL_FLAG_RPM_ACTIVE,4,2         ## @DL_FLAG_RPM_ACTIVE
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_camss_pm_domain_on             ; -- Begin function camss_pm_domain_on
	.p2align	2
_camss_pm_domain_on:                    ; @camss_pm_domain_on
	.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
                                        ; kill: def $w1 killed $w1 def $x1
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _CAMSS_8x96@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CAMSS_8x96@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #16]
	sbfiz	x20, x1, #2, #32
	ldr	w1, [x8, x20]
	ldr	w0, [x0, #24]
Lloh3:
	adrp	x8, _DL_FLAG_STATELESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DL_FLAG_STATELESS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _DL_FLAG_PM_RUNTIME@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DL_FLAG_PM_RUNTIME@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _DL_FLAG_RPM_ACTIVE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _DL_FLAG_RPM_ACTIVE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w2, w8, w9
	bl	_device_link_add
	ldr	x8, [x19, #8]
	str	w0, [x8, x20]
	cbz	w0, LBB0_3
LBB0_2:
	mov	w0, #0
	b	LBB0_4
LBB0_3:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_CAMSS_8x96,8,3                 ; @CAMSS_8x96
	.comm	_DL_FLAG_STATELESS,4,2          ; @DL_FLAG_STATELESS
	.comm	_DL_FLAG_PM_RUNTIME,4,2         ; @DL_FLAG_PM_RUNTIME
	.comm	_DL_FLAG_RPM_ACTIVE,4,2         ; @DL_FLAG_RPM_ACTIVE
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
