	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mrb_struct_init_copy
_mrb_struct_init_copy:                  ## @mrb_struct_init_copy
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	leaq	-28(%rbp), %rdx
	callq	_mrb_get_args
	movl	-28(%rbp), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_mrb_obj_equal
	testq	%rax, %rax
	jne	LBB0_6
## %bb.1:
	movl	-28(%rbp), %r15d
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_mrb_obj_class
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_mrb_obj_is_instance_of
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	_E_TYPE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	callq	_mrb_raise
LBB0_3:
	movl	-28(%rbp), %edi
	callq	_mrb_array_p
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	_E_TYPE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%rbx, %rdi
	callq	_mrb_raise
LBB0_5:
	movl	-28(%rbp), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_mrb_ary_replace
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"o"

	.comm	_E_TYPE_ERROR,4,2               ## @E_TYPE_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"wrong argument class"

L_.str.2:                               ## @.str.2
	.asciz	"corrupted struct"

	.no_dead_strip	_mrb_struct_init_copy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mrb_struct_init_copy
_mrb_struct_init_copy:                  ; @mrb_struct_init_copy
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	bl	_mrb_get_args
	ldr	w2, [sp, #12]
	mov	x0, x20
	mov	x1, x19
	bl	_mrb_obj_equal
	cbnz	x0, LBB0_6
; %bb.1:
	ldr	w21, [sp, #12]
	mov	x0, x20
	mov	x1, x19
	bl	_mrb_obj_class
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_mrb_obj_is_instance_of
	cbnz	w0, LBB0_3
; %bb.2:
Lloh2:
	adrp	x8, _E_TYPE_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _E_TYPE_ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_mrb_raise
LBB0_3:
	ldr	w0, [sp, #12]
	bl	_mrb_array_p
	cbnz	w0, LBB0_5
; %bb.4:
Lloh7:
	adrp	x8, _E_TYPE_ERROR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _E_TYPE_ERROR@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x2, l_.str.2@PAGE
Lloh11:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_mrb_raise
LBB0_5:
	ldr	w2, [sp, #12]
	mov	x0, x20
	mov	x1, x19
	bl	_mrb_ary_replace
LBB0_6:
	mov	x0, x19
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"o"

	.comm	_E_TYPE_ERROR,4,2               ; @E_TYPE_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"wrong argument class"

l_.str.2:                               ; @.str.2
	.asciz	"corrupted struct"

	.no_dead_strip	_mrb_struct_init_copy
.subsections_via_symbols
