	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function venus_power_on
_venus_power_on:                        ## @venus_power_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	xorl	%ebx, %ebx
	cmpl	$0, (%rdi)
	jne	LBB0_8
## %bb.1:
	movq	%rdi, %r14
	movl	4(%rdi), %edi
	callq	_venus_set_hw_state_resume
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %ebx
	jmp	LBB0_6
LBB0_3:
	movq	%r14, %rdi
	callq	_venus_run
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	%eax, %ebx
	movl	4(%r14), %edi
	callq	_venus_set_hw_state_suspend
LBB0_6:
	xorl	%eax, %eax
LBB0_7:
	movl	%eax, (%r14)
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	xorl	%ebx, %ebx
	movl	$1, %eax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_venus_power_on
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function venus_power_on
_venus_power_on:                        ; @venus_power_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
	ldr	w8, [x0]
	cbz	w8, LBB0_2
; %bb.1:
	mov	w20, #0
	b	LBB0_8
LBB0_2:
	mov	x19, x0
	ldr	w0, [x0, #4]
	bl	_venus_set_hw_state_resume
	cbz	w0, LBB0_4
; %bb.3:
	mov	x20, x0
	b	LBB0_6
LBB0_4:
	mov	x0, x19
	bl	_venus_run
	mov	x20, x0
	cbz	w0, LBB0_9
; %bb.5:
	ldr	w0, [x19, #4]
	bl	_venus_set_hw_state_suspend
LBB0_6:
	mov	w8, #0
LBB0_7:
	str	w8, [x19]
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
	mov	w8, #1
	b	LBB0_7
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_venus_power_on
.subsections_via_symbols
