	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mrb_ary_plus
_mrb_ary_plus:                          ## @mrb_ary_plus
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	%esi, %edi
	callq	_mrb_ary_ptr
	movq	%rax, %r15
	leaq	L_.str(%rip), %rsi
	leaq	-48(%rbp), %rdx
	leaq	-40(%rbp), %rcx
	movq	%r14, %rdi
	callq	_mrb_get_args
	movq	_ARY_MAX_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	subq	-40(%rbp), %rbx
	movq	%r15, %rdi
	callq	_ARY_LEN
	cmpq	%rax, %rbx
	jge	LBB0_2
## %bb.1:
	movq	_E_ARGUMENT_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	callq	_mrb_raise
LBB0_2:
	movq	%r15, %rdi
	callq	_ARY_LEN
	movq	%rax, %rbx
	movq	-40(%rbp), %rsi
	addq	%rax, %rsi
	movq	%r14, %rdi
	callq	_ary_new_capa
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_ARY_PTR
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_ARY_PTR
	movq	%r12, %rdi
	movq	%rax, %rsi
	movq	%rbx, %rdx
	callq	_array_copy
	movq	%r14, %rdi
	callq	_ARY_PTR
	leaq	(%rax,%rbx), %rdi
	movq	-48(%rbp), %rsi
	movq	-40(%rbp), %rdx
	callq	_array_copy
	addq	-40(%rbp), %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_ARY_SET_LEN
	movq	%r14, %rdi
	callq	_mrb_obj_value
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"a"

	.comm	_ARY_MAX_SIZE,8,3               ## @ARY_MAX_SIZE
	.comm	_E_ARGUMENT_ERROR,4,2           ## @E_ARGUMENT_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"array size too big"

	.no_dead_strip	_mrb_ary_plus
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mrb_ary_plus
_mrb_ary_plus:                          ; @mrb_ary_plus
	.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	x20, x0
	mov	x0, x1
	bl	_mrb_ary_ptr
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #8
	mov	x3, sp
	mov	x0, x20
	bl	_mrb_get_args
Lloh2:
	adrp	x8, _ARY_MAX_SIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ARY_MAX_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	x9, [sp]
	sub	x21, x8, x9
	mov	x0, x19
	bl	_ARY_LEN
	cmp	x21, x0
	b.ge	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _E_ARGUMENT_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _E_ARGUMENT_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_mrb_raise
LBB0_2:
	mov	x0, x19
	bl	_ARY_LEN
	mov	x21, x0
	ldr	x8, [sp]
	add	x1, x8, x0
	mov	x0, x20
	bl	_ary_new_capa
	mov	x20, x0
	bl	_ARY_PTR
	mov	x22, x0
	mov	x0, x19
	bl	_ARY_PTR
	mov	x1, x0
	mov	x0, x22
	mov	x2, x21
	bl	_array_copy
	mov	x0, x20
	bl	_ARY_PTR
	add	x0, x0, x21
	ldp	x2, x1, [sp]
	bl	_array_copy
	ldr	x8, [sp]
	add	x1, x8, x21
	mov	x0, x20
	bl	_ARY_SET_LEN
	mov	x0, x20
	bl	_mrb_obj_value
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"a"

	.comm	_ARY_MAX_SIZE,8,3               ; @ARY_MAX_SIZE
	.comm	_E_ARGUMENT_ERROR,4,2           ; @E_ARGUMENT_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"array size too big"

	.no_dead_strip	_mrb_ary_plus
.subsections_via_symbols
