	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_co_create                      ## -- Begin function co_create
	.p2align	4, 0x90
_co_create:                             ## @co_create
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %r15d
	movq	_co_running@GOTPCREL(%rip), %r12
	cmpq	$0, (%r12)
	jne	LBB0_2
## %bb.1:
	movq	_co_primary@GOTPCREL(%rip), %rax
	movq	%rax, (%r12)
LBB0_2:
	movl	$24, %edi
	callq	_malloc
	xorl	%r13d, %r13d
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_getcontext
	testl	%eax, %eax
	je	LBB0_4
LBB0_6:
	movl	%ebx, %edi
	callq	_co_delete
LBB0_7:
	movl	%r13d, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	$0, 8(%rbx)
	movl	%r15d, %edi
	callq	_malloc
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	(%r12), %rax
	movq	%rax, 16(%rbx)
	movl	%r15d, (%rbx)
	xorl	%edx, %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_makecontext
	movl	%ebx, %eax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_co_running,8,3                 ## @co_running
	.comm	_co_primary,4,2                 ## @co_primary
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_co_create                      ; -- Begin function co_create
	.p2align	2
_co_create:                             ; @co_create
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _co_running@GOTPAGE
Lloh1:
	ldr	x22, [x22, _co_running@GOTPAGEOFF]
	ldr	x8, [x22]
	cbnz	x8, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _co_primary@GOTPAGE
Lloh3:
	ldr	x8, [x8, _co_primary@GOTPAGEOFF]
	str	x8, [x22]
LBB0_2:
	mov	w0, #24
	bl	_malloc
	cbz	x0, LBB0_7
; %bb.3:
	mov	x21, x0
	bl	_getcontext
	cbz	w0, LBB0_5
LBB0_4:
	mov	x0, x21
	bl	_co_delete
	mov	w0, #0
	b	LBB0_7
LBB0_5:
	str	xzr, [x21, #8]
	mov	x0, x20
	bl	_malloc
	str	x0, [x21, #8]
	cbz	x0, LBB0_4
; %bb.6:
	ldr	x8, [x22]
	str	x8, [x21, #16]
	str	w20, [x21]
	mov	w2, #0
	mov	x0, x21
	mov	x1, x19
	bl	_makecontext
	mov	x0, x21
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_co_running,8,3                 ; @co_running
	.comm	_co_primary,4,2                 ; @co_primary
.subsections_via_symbols
