	.file	"extr_smu.c_smu_restart.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	smu_restart
	.type	smu_restart, @function
smu_restart:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	sub	rsp, 16
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	cmp	QWORD PTR smu[rip], 0
	je	.L1
	lea	rbp, 4[rsp]
	sub	rsp, 8
	.cfi_def_cfa_offset 40
	xor	r8d, r8d
	xor	ecx, ecx
	push	0
	.cfi_def_cfa_offset 48
	mov	esi, DWORD PTR SMU_CMD_POWER_COMMAND[rip]
	mov	edx, 8
	mov	rdi, rbp
	push	84
	.cfi_def_cfa_offset 56
	mov	r9d, 82
	push	82
	.cfi_def_cfa_offset 64
	push	65
	.cfi_def_cfa_offset 72
	push	84
	.cfi_def_cfa_offset 80
	push	83
	.cfi_def_cfa_offset 88
	push	69
	.cfi_def_cfa_offset 96
	call	smu_queue_simple@PLT
	add	rsp, 64
	.cfi_def_cfa_offset 32
	test	rax, rax
	je	.L7
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L8
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
.L7:
	.cfi_restore_state
	mov	rdi, rbp
	call	smu_spinwait_simple@PLT
.L3:
	jmp	.L3
.L8:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	smu_restart, .-smu_restart
	.comm	smu,8,8
	.comm	SMU_CMD_POWER_COMMAND,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_smu.c_smu_restart.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	smu_restart
	.syntax unified
	.arm
	.fpu softvfp
	.type	smu_restart, %function
smu_restart:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	str	lr, [sp, #-4]!
	ldr	r3, .L12
	ldr	r2, .L12+4
	ldr	r3, [r3]
	sub	sp, sp, #52
	cmp	r3, #0
	ldr	r2, [r2]
	str	r2, [sp, #44]
	mov	r2,#0
	beq	.L1
	mov	r1, #84
	mov	r3, #0
	mov	r2, #82
	mov	lr, #65
	mov	ip, #83
	mov	r0, #69
	str	r1, [sp, #28]
	str	r1, [sp, #16]
	ldr	r1, .L12+8
	str	r2, [sp, #24]
	str	r2, [sp, #4]
	str	r0, [sp, #8]
	str	r3, [sp, #32]
	str	r3, [sp]
	str	lr, [sp, #20]
	str	ip, [sp, #12]
	mov	r2, #8
	ldr	r1, [r1]
	add	r0, sp, #40
	bl	smu_queue_simple
	cmp	r0, #0
	beq	.L10
.L1:
	ldr	r3, .L12+4
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	add	sp, sp, #52
	@ sp needed
	ldr	pc, [sp], #4
.L10:
	add	r0, sp, #40
	bl	smu_spinwait_simple
.L3:
	b	.L3
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	smu
	.word	.LC0
	.word	SMU_CMD_POWER_COMMAND
	.size	smu_restart, .-smu_restart
	.comm	smu,4,4
	.comm	SMU_CMD_POWER_COMMAND,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
