	.file	"extr_thread-stack.c_thread_stack__push_cp.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	thread_stack__push_cp, @function
thread_stack__push_cp:
.LFB0:
	.cfi_startproc
	endbr64
	test	r8, r8
	je	.L9
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdx
	sub	rsp, 48
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR [rdi]
	cmp	rax, QWORD PTR 8[rdi]
	je	.L10
.L4:
	lea	rdx, 1[rax]
	lea	rax, [rax+rax*8]
	mov	QWORD PTR [rdi], rdx
	mov	rdx, QWORD PTR 32[rdi]
	lea	rax, [rdx+rax*8]
	mov	edx, DWORD PTR 24[rdi]
	mov	QWORD PTR 64[rax], rsi
	mov	DWORD PTR 40[rax], edx
	mov	edx, DWORD PTR 20[rdi]
	mov	QWORD PTR 56[rax], r13
	mov	DWORD PTR 36[rax], edx
	mov	edx, DWORD PTR 16[rdi]
	mov	QWORD PTR 48[rax], rcx
	mov	DWORD PTR 32[rax], edx
	mov	edx, DWORD PTR 64[rsp]
	mov	QWORD PTR 24[rax], r8
	mov	DWORD PTR [rax], r9d
	mov	DWORD PTR 4[rax], edx
	mov	DWORD PTR 8[rax], 0
	mov	QWORD PTR 16[rax], 0
	xor	eax, eax
.L1:
	add	rsp, 48
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore 13
	mov	eax, DWORD PTR ENOMEM[rip]
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_def_cfa_offset 64
	.cfi_offset 13, -16
	mov	DWORD PTR 44[rsp], r9d
	mov	QWORD PTR 32[rsp], r8
	mov	QWORD PTR 24[rsp], rcx
	mov	QWORD PTR 16[rsp], rsi
	mov	QWORD PTR 8[rsp], rdi
	call	thread_stack__grow@PLT
	test	eax, eax
	jne	.L1
	mov	rdi, QWORD PTR 8[rsp]
	mov	r9d, DWORD PTR 44[rsp]
	mov	r8, QWORD PTR 32[rsp]
	mov	rcx, QWORD PTR 24[rsp]
	mov	rax, QWORD PTR [rdi]
	mov	rsi, QWORD PTR 16[rsp]
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	thread_stack__push_cp, .-thread_stack__push_cp
	.comm	ENOMEM,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_thread-stack.c_thread_stack__push_cp.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	thread_stack__push_cp, %function
thread_stack__push_cp:
	@ args = 12, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r8, [sp, #24]
	cmp	r8, #0
	beq	.L7
	mov	r5, r3
	ldr	ip, [r0]
	ldr	r3, [r0, #4]
	mov	r7, r1
	cmp	ip, r3
	mov	r6, r2
	mov	r4, r0
	beq	.L8
.L4:
	mov	r3, #0
	ldr	r2, [r4, #20]
	add	lr, ip, ip, lsl #2
	ldr	r1, [r4, #8]
	add	lr, ip, lr, lsl #1
	add	ip, ip, #1
	str	ip, [r4]
	add	ip, r2, lr, lsl #2
	str	r6, [ip, #36]
	ldr	r6, [r4, #16]
	str	r5, [ip, #32]
	ldr	r5, [r4, #12]
	str	r1, [ip, #20]
	ldr	r1, [sp, #28]
	str	r7, [ip, #40]
	str	r6, [ip, #28]
	str	r5, [ip, #24]
	str	r8, [ip, #16]
	str	r1, [r2, lr, lsl #2]
	ldr	r2, [sp, #32]
	mov	r0, r3
	stmib	ip, {r2, r3}
	str	r3, [ip, #12]
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	ldr	r3, .L9
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	bl	thread_stack__grow
	cmp	r0, #0
	popne	{r4, r5, r6, r7, r8, pc}
	ldr	ip, [r4]
	b	.L4
.L10:
	.align	2
.L9:
	.word	ENOMEM
	.size	thread_stack__push_cp, .-thread_stack__push_cp
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
