	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_venus_set_hw_state             ## -- Begin function venus_set_hw_state
	.p2align	4, 0x90
_venus_set_hw_state:                    ## @venus_set_hw_state
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpq	$0, 8(%rdi)
	je	LBB0_1
## %bb.5:
	movl	%esi, %edi
	xorl	%esi, %esi
	popq	%rbp
	jmp	_qcom_scm_set_remote_state      ## TAILCALL
LBB0_1:
	testl	%esi, %esi
	je	LBB0_3
## %bb.2:
	callq	_venus_reset_cpu
	jmp	LBB0_4
LBB0_3:
	movq	_WRAPPER_A9SS_SW_RESET@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rdi), %rsi
	movl	$1, %edi
	callq	_writel
LBB0_4:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WRAPPER_A9SS_SW_RESET,8,3      ## @WRAPPER_A9SS_SW_RESET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_venus_set_hw_state             ; -- Begin function venus_set_hw_state
	.p2align	2
_venus_set_hw_state:                    ; @venus_set_hw_state
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x1
	mov	w1, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_qcom_scm_set_remote_state
LBB0_2:
	cbz	w1, LBB0_4
; %bb.3:
	bl	_venus_reset_cpu
	b	LBB0_5
LBB0_4:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _WRAPPER_A9SS_SW_RESET@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WRAPPER_A9SS_SW_RESET@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #1
	bl	_writel
LBB0_5:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_WRAPPER_A9SS_SW_RESET,8,3      ; @WRAPPER_A9SS_SW_RESET
.subsections_via_symbols
