	.file	"extr_pe_init.c_PE_update_panicheader_nestedpanic.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	PE_update_panicheader_nestedpanic
	.type	PE_update_panicheader_nestedpanic, @function
PE_update_panicheader_nestedpanic:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR panic_info[rip]
	test	rax, rax
	je	.L10
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	cmp	QWORD PTR [rax], 0
	je	.L14
	mov	edx, DWORD PTR EMBEDDED_PANIC_HEADER_FLAG_NESTED_PANIC[rip]
	or	DWORD PTR 48[rax], edx
	cmp	QWORD PTR 8[rax], 0
	je	.L15
	cmp	QWORD PTR 32[rax], 0
	mov	rdx, QWORD PTR 40[rax]
	jne	.L6
.L17:
	xor	edi, edi
	test	rdx, rdx
	sete	dil
.L7:
	call	assert@PLT
	mov	rax, QWORD PTR panic_info[rip]
	cmp	QWORD PTR 16[rax], 0
	je	.L16
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	xor	edi, edi
	test	rdx, rdx
	setne	dil
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L15:
	mov	edi, DWORD PTR debug_buf_ptr[rip]
	call	PE_get_offset_into_panic_region@PLT
	xor	edi, edi
	mov	r8, rax
	mov	rax, QWORD PTR panic_info[rip]
	mov	QWORD PTR 8[rax], r8
	mov	rcx, QWORD PTR 24[rax]
	cmp	QWORD PTR 16[rax], rcx
	setne	dil
	call	assert@PLT
	mov	rax, QWORD PTR panic_info[rip]
	cmp	QWORD PTR 32[rax], 0
	mov	rdx, QWORD PTR 40[rax]
	jne	.L6
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L16:
	mov	edi, DWORD PTR debug_buf_ptr[rip]
	call	PE_get_offset_into_panic_region@PLT
	xor	edi, edi
	mov	r8, rax
	mov	rax, QWORD PTR panic_info[rip]
	mov	QWORD PTR 16[rax], r8
	cmp	QWORD PTR 24[rax], 0
	sete	dil
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	assert@PLT
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	xor	eax, eax
	call	PE_init_panicheader@PLT
	mov	rax, QWORD PTR panic_info[rip]
	mov	edx, DWORD PTR EMBEDDED_PANIC_HEADER_FLAG_NESTED_PANIC[rip]
	or	DWORD PTR 48[rax], edx
	add	rsp, 8
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	ret
	.cfi_endproc
.LFE0:
	.size	PE_update_panicheader_nestedpanic, .-PE_update_panicheader_nestedpanic
	.comm	panic_info,8,8
	.comm	debug_buf_ptr,4,4
	.comm	EMBEDDED_PANIC_HEADER_FLAG_NESTED_PANIC,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_pe_init.c_PE_update_panicheader_nestedpanic.c"
	.text
	.align	2
	.global	PE_update_panicheader_nestedpanic
	.syntax unified
	.arm
	.fpu softvfp
	.type	PE_update_panicheader_nestedpanic, %function
PE_update_panicheader_nestedpanic:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	ldr	r4, .L13
	ldr	r3, [r4]
	cmp	r3, #0
	popeq	{r4, pc}
	ldr	r2, [r3]
	cmp	r2, #0
	beq	.L11
	ldr	r1, .L13+4
	ldr	r2, [r3, #24]
	ldr	r0, [r1]
	ldr	r1, [r3, #4]
	orr	r2, r2, r0
	cmp	r1, #0
	str	r2, [r3, #24]
	beq	.L12
.L5:
	ldr	r2, [r3, #16]
	ldr	r0, [r3, #20]
	cmp	r2, #0
	clzeq	r0, r0
	lsreq	r0, r0, #5
	beq	.L7
	subs	r0, r0, #0
	movne	r0, #1
.L7:
	bl	assert
	ldr	r3, [r4]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	popne	{r4, pc}
	ldr	r3, .L13+8
	ldr	r0, [r3]
	bl	PE_get_offset_into_panic_region
	ldr	r3, [r4]
	pop	{r4, lr}
	ldr	r2, [r3, #12]
	str	r0, [r3, #8]
	clz	r0, r2
	lsr	r0, r0, #5
	b	assert
.L12:
	ldr	r3, .L13+8
	ldr	r0, [r3]
	bl	PE_get_offset_into_panic_region
	ldr	r3, [r4]
	ldr	r1, [r3, #8]
	ldr	r2, [r3, #12]
	str	r0, [r3, #4]
	subs	r0, r1, r2
	movne	r0, #1
	bl	assert
	ldr	r3, [r4]
	b	.L5
.L11:
	bl	PE_init_panicheader
	ldr	r2, [r4]
	ldr	r1, .L13+4
	ldr	r3, [r2, #24]
	ldr	r1, [r1]
	orr	r3, r3, r1
	str	r3, [r2, #24]
	pop	{r4, pc}
.L14:
	.align	2
.L13:
	.word	panic_info
	.word	EMBEDDED_PANIC_HEADER_FLAG_NESTED_PANIC
	.word	debug_buf_ptr
	.size	PE_update_panicheader_nestedpanic, .-PE_update_panicheader_nestedpanic
	.comm	panic_info,4,4
	.comm	debug_buf_ptr,4,4
	.comm	EMBEDDED_PANIC_HEADER_FLAG_NESTED_PANIC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
