	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fiber_init
_fiber_init:                            ## @fiber_init
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movl	%esi, %edi
	callq	_fiber_ptr
	movq	%rax, %r14
	leaq	L_.str(%rip), %rsi
	leaq	-44(%rbp), %rdx
	movq	%r12, %rdi
	callq	_mrb_get_args
	cmpq	$0, (%r14)
	je	LBB0_2
## %bb.1:
	movq	_E_RUNTIME_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r12, %rdi
	callq	_mrb_raise
LBB0_2:
	movl	-44(%rbp), %edi
	callq	_mrb_nil_p
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_E_ARGUMENT_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r12, %rdi
	callq	_mrb_raise
LBB0_4:
	movl	-44(%rbp), %edi
	callq	_mrb_proc_ptr
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_MRB_PROC_CFUNC_P
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_E_FIBER_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	%r12, %rdi
	callq	_mrb_raise
LBB0_6:
	movl	$72, %esi
	movq	%r12, %rdi
	callq	_mrb_malloc
	movq	%rax, %rbx
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax)
	movups	%xmm0, 16(%rax)
	movups	%xmm0, 32(%rax)
	movups	%xmm0, 48(%rax)
	movq	$0, 64(%rax)
	movq	%rax, (%r14)
	movq	_FIBER_STACK_INIT_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r13), %rcx
	movq	(%rcx), %r15
	xorl	%ecx, %ecx
	cmpq	%rax, %r15
	cmovbeq	%rcx, %r15
	addq	%rax, %r15
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	leaq	(,%r15,4), %r14
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_mrb_malloc
	movq	%rax, 48(%rbx)
	leaq	(%rax,%r15,4), %rcx
	movq	%rcx, 56(%rbx)
	movq	%rax, 24(%rbx)
	movq	%rax, %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_memset
	movq	(%r12), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	movq	24(%rbx), %rcx
	movl	%eax, (%rcx)
	movq	_FIBER_CI_INIT_SIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r12, %rdi
	movl	$32, %edx
	callq	_mrb_calloc
	movq	%rax, %r14
	movq	%rax, 32(%rbx)
	movslq	(%r15), %rax
	shlq	$5, %rax
	addq	%r14, %rax
	movq	%rax, 40(%rbx)
	movq	%r14, 16(%rbx)
	movq	24(%rbx), %rax
	movq	%rax, 24(%r14)
	movq	%r13, %rdi
	callq	_MRB_PROC_TARGET_CLASS
	movl	%eax, 16(%r14)
	movq	%r13, 8(%r14)
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edi
	callq	_mrb_obj_ptr
	movq	%r12, %rdi
	movq	%rax, %rsi
	movq	%r13, %rdx
	callq	_mrb_field_write_barrier
	movq	(%r13), %rax
	movl	8(%rax), %eax
	movl	%eax, (%r14)
	movups	16(%r14), %xmm0
	movups	%xmm0, 48(%r14)
	movups	(%r14), %xmm0
	movups	%xmm0, 32(%r14)
	addq	$32, 16(%rbx)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%rbx)
	movq	_MRB_FIBER_CREATED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"&"

	.comm	_E_RUNTIME_ERROR,4,2            ## @E_RUNTIME_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"cannot initialize twice"

	.comm	_E_ARGUMENT_ERROR,4,2           ## @E_ARGUMENT_ERROR
L_.str.2:                               ## @.str.2
	.asciz	"tried to create Fiber object without a block"

	.comm	_E_FIBER_ERROR,4,2              ## @E_FIBER_ERROR
L_.str.3:                               ## @.str.3
	.asciz	"tried to create Fiber from C defined method"

	.comm	_FIBER_STACK_INIT_SIZE,8,3      ## @FIBER_STACK_INIT_SIZE
	.comm	_FIBER_CI_INIT_SIZE,4,2         ## @FIBER_CI_INIT_SIZE
	.comm	_MRB_FIBER_CREATED,4,2          ## @MRB_FIBER_CREATED
	.no_dead_strip	_fiber_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fiber_init
_fiber_init:                            ; @fiber_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x21, x0
	mov	x0, x1
	bl	_fiber_ptr
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	mov	x0, x21
	bl	_mrb_get_args
	ldr	x8, [x20]
	cbz	x8, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _E_RUNTIME_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _E_RUNTIME_ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_mrb_raise
LBB0_2:
	ldr	w0, [sp, #12]
	bl	_mrb_nil_p
	cbz	x0, LBB0_4
; %bb.3:
Lloh7:
	adrp	x8, _E_ARGUMENT_ERROR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _E_ARGUMENT_ERROR@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x2, l_.str.2@PAGE
Lloh11:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_mrb_raise
LBB0_4:
	ldr	w0, [sp, #12]
	bl	_mrb_proc_ptr
	mov	x22, x0
	bl	_MRB_PROC_CFUNC_P
	cbz	x0, LBB0_6
; %bb.5:
Lloh12:
	adrp	x8, _E_FIBER_ERROR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _E_FIBER_ERROR@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x2, l_.str.3@PAGE
Lloh16:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_mrb_raise
LBB0_6:
	mov	x0, x21
	mov	w1, #72
	bl	_mrb_malloc
	mov	x23, x0
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x0]
	stp	q0, q0, [x0, #32]
	str	xzr, [x0, #64]
	str	x0, [x20]
Lloh17:
	adrp	x8, _FIBER_STACK_INIT_SIZE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _FIBER_STACK_INIT_SIZE@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	ldr	x9, [x22]
	ldr	x9, [x9]
	cmp	x9, x8
	csel	x9, x9, xzr, hi
	add	x8, x9, x8
	lsl	x24, x8, #2
	mov	x0, x21
	mov	x1, x24
	bl	_mrb_malloc
	add	x8, x0, x24
	stp	x0, x8, [x23, #48]
	str	x0, [x23, #24]
	mov	w1, #0
	mov	x2, x24
	bl	_memset
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldr	w8, [x8]
	ldr	x9, [x23, #24]
	str	w8, [x9]
Lloh20:
	adrp	x25, _FIBER_CI_INIT_SIZE@GOTPAGE
Lloh21:
	ldr	x25, [x25, _FIBER_CI_INIT_SIZE@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x21
	mov	w2, #32
	bl	_mrb_calloc
	mov	x24, x0
	ldrsw	x8, [x25]
	add	x8, x0, x8, lsl #5
	stp	x0, x8, [x23, #32]
	str	x0, [x23, #16]
	ldr	x8, [x23, #24]
	str	x8, [x0, #24]
	mov	x0, x22
	bl	_MRB_PROC_TARGET_CLASS
	str	w0, [x24, #16]
	str	x22, [x24, #8]
	mov	x0, x19
	bl	_mrb_obj_ptr
	mov	x1, x0
	mov	x0, x21
	mov	x2, x22
	bl	_mrb_field_write_barrier
	ldr	x8, [x22]
	ldr	w8, [x8, #8]
	str	w8, [x24]
	ldp	q1, q0, [x24]
	stp	q1, q0, [x24, #32]
	ldr	x8, [x23, #16]
	add	x8, x8, #32
	stp	x20, x8, [x23, #8]
Lloh22:
	adrp	x8, _MRB_FIBER_CREATED@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MRB_FIBER_CREATED@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	str	w8, [x23]
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"&"

	.comm	_E_RUNTIME_ERROR,4,2            ; @E_RUNTIME_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"cannot initialize twice"

	.comm	_E_ARGUMENT_ERROR,4,2           ; @E_ARGUMENT_ERROR
l_.str.2:                               ; @.str.2
	.asciz	"tried to create Fiber object without a block"

	.comm	_E_FIBER_ERROR,4,2              ; @E_FIBER_ERROR
l_.str.3:                               ; @.str.3
	.asciz	"tried to create Fiber from C defined method"

	.comm	_FIBER_STACK_INIT_SIZE,8,3      ; @FIBER_STACK_INIT_SIZE
	.comm	_FIBER_CI_INIT_SIZE,4,2         ; @FIBER_CI_INIT_SIZE
	.comm	_MRB_FIBER_CREATED,4,2          ; @MRB_FIBER_CREATED
	.no_dead_strip	_fiber_init
.subsections_via_symbols
