	.file	"extr_ucontext.c_co_create.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	co_create
	.type	co_create, @function
co_create:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	sub	rsp, 32
	.cfi_def_cfa_offset 48
	cmp	QWORD PTR co_running[rip], 0
	mov	DWORD PTR 20[rsp], edi
	mov	QWORD PTR 24[rsp], rsi
	je	.L10
.L2:
	mov	edi, 24
	call	malloc@PLT
	mov	QWORD PTR 8[rsp], rax
	test	rax, rax
	je	.L7
	mov	rdi, QWORD PTR 8[rsp]
	call	getcontext@PLT
	endbr64
	test	eax, eax
	jne	.L6
	mov	rbx, QWORD PTR 8[rsp]
	mov	edi, DWORD PTR 20[rsp]
	mov	QWORD PTR 8[rbx], 0
	call	malloc@PLT
	mov	QWORD PTR 8[rbx], rax
	test	rax, rax
	jne	.L11
.L6:
	mov	edi, DWORD PTR 8[rsp]
	call	co_delete@PLT
.L7:
	xor	eax, eax
.L1:
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	lea	rax, co_primary[rip]
	mov	QWORD PTR co_running[rip], rax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rbx, QWORD PTR 8[rsp]
	mov	rax, QWORD PTR co_running[rip]
	mov	edx, DWORD PTR 20[rsp]
	mov	rsi, QWORD PTR 24[rsp]
	mov	QWORD PTR 16[rbx], rax
	mov	rdi, rbx
	mov	DWORD PTR [rbx], edx
	xor	edx, edx
	call	makecontext@PLT
	mov	eax, ebx
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	co_create, .-co_create
	.comm	co_running,8,8
	.comm	co_primary,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_ucontext.c_co_create.c"
	.text
	.align	2
	.global	co_create
	.syntax unified
	.arm
	.fpu softvfp
	.type	co_create, %function
co_create:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r3, .L10
	sub	sp, sp, #20
	ldr	r2, [r3]
	str	r0, [sp, #8]
	cmp	r2, #0
	ldreq	r2, .L10+4
	mov	r0, #12
	streq	r2, [r3]
	str	r1, [sp, #12]
	bl	malloc
	cmp	r0, #0
	str	r0, [sp]
	str	r0, [sp, #4]
	beq	.L7
	bl	getcontext
	subs	r4, r0, #0
	bne	.L6
	ldr	r5, [sp, #8]
	mov	r0, r5
	bl	malloc
	ldr	ip, [sp, #4]
	cmp	r0, #0
	str	r0, [ip, #4]
	beq	.L6
	ldr	r3, .L10
	mov	r2, r4
	ldr	r3, [r3]
	mov	r0, ip
	ldr	r1, [sp, #12]
	str	r5, [ip]
	str	r3, [ip, #8]
	bl	makecontext
	ldr	r0, [sp]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, pc}
.L6:
	ldr	r0, [sp]
	bl	co_delete
.L7:
	mov	r3, #0
	str	r3, [sp]
	ldr	r0, [sp]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, pc}
.L11:
	.align	2
.L10:
	.word	co_running
	.word	co_primary
	.size	co_create, .-co_create
	.comm	co_running,4,4
	.comm	co_primary,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
