	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function class_allocate
_class_allocate:                        ## @class_allocate
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	movl	%esi, %edi
	callq	_mrb_class_ptr
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_MRB_INSTANCE_TT
	movl	%eax, %ebx
	movq	(%r12), %rax
	movq	_MRB_TT_SCLASS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_E_TYPE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_mrb_raise
LBB0_2:
	testl	%ebx, %ebx
	jne	LBB0_4
## %bb.3:
	movq	_MRB_TT_OBJECT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_4:
	movq	_MRB_TT_CPTR@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	ja	LBB0_6
## %bb.5:
	movq	_E_TYPE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	movl	%r15d, %ecx
	callq	_mrb_raisef
LBB0_6:
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	%r12, %rdx
	callq	_mrb_obj_alloc
	movq	%rax, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mrb_obj_value                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MRB_TT_SCLASS,8,3              ## @MRB_TT_SCLASS
	.comm	_E_TYPE_ERROR,4,2               ## @E_TYPE_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't create instance of singleton class"

	.comm	_MRB_TT_OBJECT,4,2              ## @MRB_TT_OBJECT
	.comm	_MRB_TT_CPTR,4,2                ## @MRB_TT_CPTR
L_.str.1:                               ## @.str.1
	.asciz	"can't create instance of %S"

	.no_dead_strip	_class_allocate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function class_allocate
_class_allocate:                        ; @class_allocate
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x1
	mov	x19, x0
	mov	x0, x1
	bl	_mrb_class_ptr
	mov	x20, x0
	bl	_MRB_INSTANCE_TT
	mov	x22, x0
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _MRB_TT_SCLASS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MRB_TT_SCLASS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x23, _E_TYPE_ERROR@GOTPAGE
Lloh4:
	ldr	x23, [x23, _E_TYPE_ERROR@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	w1, [x23]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_mrb_raise
LBB0_2:
Lloh7:
	adrp	x8, _MRB_TT_OBJECT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MRB_TT_OBJECT@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w22, #0
	csel	w22, w8, w22, eq
Lloh10:
	adrp	x8, _MRB_TT_CPTR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MRB_TT_CPTR@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w22, w8
	b.hi	LBB0_4
; %bb.3:
	ldr	w1, [x23]
Lloh13:
	adrp	x2, l_.str.1@PAGE
Lloh14:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x3, x21
	bl	_mrb_raisef
LBB0_4:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	bl	_mrb_obj_alloc
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_mrb_obj_value
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MRB_TT_SCLASS,8,3              ; @MRB_TT_SCLASS
	.comm	_E_TYPE_ERROR,4,2               ; @E_TYPE_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't create instance of singleton class"

	.comm	_MRB_TT_OBJECT,4,2              ; @MRB_TT_OBJECT
	.comm	_MRB_TT_CPTR,4,2                ; @MRB_TT_CPTR
l_.str.1:                               ; @.str.1
	.asciz	"can't create instance of %S"

	.no_dead_strip	_class_allocate
.subsections_via_symbols
