	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx231xx_power_suspend          ## -- Begin function cx231xx_power_suspend
	.p2align	4, 0x90
_cx231xx_power_suspend:                 ## @cx231xx_power_suspend
	.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	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	movaps	%xmm0, -64(%rbp)
	movq	_VRT_GET_REGISTER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PWR_CTL_EN@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	leaq	-64(%rbp), %rcx
	movl	$4, %r8d
	callq	_cx231xx_read_ctrl_reg
	testl	%eax, %eax
	jg	LBB0_2
## %bb.1:
	movl	-64(%rbp), %edi
	callq	_le32_to_cpu
	movq	_PWR_MODE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movslq	%ecx, %rax
	movq	%rax, -64(%rbp)
	movl	%eax, %ecx
	sarl	$8, %ecx
	movslq	%ecx, %rcx
	movq	%rcx, -56(%rbp)
	movl	%eax, %ecx
	sarl	$16, %ecx
	movslq	%ecx, %rcx
	movq	%rcx, -48(%rbp)
	sarl	$24, %eax
	cltq
	movq	%rax, -40(%rbp)
	movq	_VRT_SET_REGISTER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	leaq	-64(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$4, %r8d
	callq	_cx231xx_write_ctrl_reg
LBB0_2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-24(%rbp), %rcx
	jne	LBB0_4
## %bb.3:
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_VRT_GET_REGISTER,4,2           ## @VRT_GET_REGISTER
	.comm	_PWR_CTL_EN,4,2                 ## @PWR_CTL_EN
	.comm	_PWR_MODE_MASK,4,2              ## @PWR_MODE_MASK
	.comm	_VRT_SET_REGISTER,4,2           ## @VRT_SET_REGISTER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function cx231xx_power_suspend
lCPI0_0:
	.long	4294967288                      ; 0xfffffff8
	.long	4294967280                      ; 0xfffffff0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_cx231xx_power_suspend
	.p2align	2
_cx231xx_power_suspend:                 ; @cx231xx_power_suspend
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp]
Lloh3:
	adrp	x8, _VRT_GET_REGISTER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VRT_GET_REGISTER@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x20, _PWR_CTL_EN@GOTPAGE
Lloh7:
	ldr	x20, [x20, _PWR_CTL_EN@GOTPAGEOFF]
	ldr	w2, [x20]
	mov	x3, sp
	mov	w4, #4
	bl	_cx231xx_read_ctrl_reg
	cmp	w0, #0
	b.gt	LBB0_2
; %bb.1:
	ldr	w0, [sp]
	bl	_le32_to_cpu
Lloh8:
	adrp	x8, _PWR_MODE_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PWR_MODE_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	bic	w8, w0, w8
	sxtw	x9, w8
	dup.2s	v0, w8
	str	x9, [sp]
Lloh11:
	adrp	x9, lCPI0_0@PAGE
Lloh12:
	ldr	d1, [x9, lCPI0_0@PAGEOFF]
	sshl.2s	v0, v0, v1
	sshll.2d	v0, v0, #0
	stur	q0, [sp, #8]
	sbfx	x8, x8, #24, #8
	str	x8, [sp, #24]
Lloh13:
	adrp	x8, _VRT_SET_REGISTER@GOTPAGE
Lloh14:
	ldr	x8, [x8, _VRT_SET_REGISTER@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	x3, sp
	mov	x0, x19
	mov	w4, #4
	bl	_cx231xx_write_ctrl_reg
LBB0_2:
	ldur	x8, [x29, #-24]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdr	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_VRT_GET_REGISTER,4,2           ; @VRT_GET_REGISTER
	.comm	_PWR_CTL_EN,4,2                 ; @PWR_CTL_EN
	.comm	_PWR_MODE_MASK,4,2              ; @PWR_MODE_MASK
	.comm	_VRT_SET_REGISTER,4,2           ; @VRT_SET_REGISTER
.subsections_via_symbols
