	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mrb_socket_accept2
_mrb_socket_accept2:                    ## @mrb_socket_accept2
	.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, %r12
	leaq	L_.str(%rip), %rsi
	leaq	-40(%rbp), %rdx
	callq	_mrb_get_args
	movl	$4, -36(%rbp)
	movq	%r12, %rdi
	movl	$4, %esi
	callq	_mrb_str_buf_new
	movl	%eax, %r14d
	movl	-40(%rbp), %r15d
	movl	%eax, %edi
	callq	_RSTRING_PTR
	leaq	-36(%rbp), %rdx
	movl	%r15d, %edi
	movq	%rax, %rsi
	callq	_accept
	movq	%rax, %r15
	cmpl	$-1, %r15d
	jne	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_mrb_sys_fail
LBB0_2:
	movl	-36(%rbp), %edx
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_mrb_str_resize
	movq	%r12, %rdi
	movl	$2, %esi
	callq	_mrb_ary_new_capa
	movl	%eax, %ebx
	movl	%r15d, %edi
	callq	_mrb_fixnum_value
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_mrb_ary_push
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%r14d, %edx
	callq	_mrb_ary_push
	movl	%ebx, %eax
	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	"i"

L_.str.1:                               ## @.str.1
	.asciz	"accept"

	.no_dead_strip	_mrb_socket_accept2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mrb_socket_accept2
_mrb_socket_accept2:                    ; @mrb_socket_accept2
	.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, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	bl	_mrb_get_args
	mov	w8, #4
	str	w8, [sp, #8]
	mov	x0, x19
	mov	w1, #4
	bl	_mrb_str_buf_new
	mov	x20, x0
	ldr	w21, [sp, #12]
	bl	_RSTRING_PTR
	mov	x1, x0
	add	x2, sp, #8
	mov	x0, x21
	bl	_accept
	mov	x21, x0
	cmn	w21, #1
	b.ne	LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_mrb_sys_fail
LBB0_2:
	ldr	w2, [sp, #8]
	mov	x0, x19
	mov	x1, x20
	bl	_mrb_str_resize
	mov	x0, x19
	mov	w1, #2
	bl	_mrb_ary_new_capa
	mov	x22, x0
	mov	x0, x21
	bl	_mrb_fixnum_value
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	bl	_mrb_ary_push
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	bl	_mrb_ary_push
	mov	x0, x22
	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	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"i"

l_.str.1:                               ; @.str.1
	.asciz	"accept"

	.no_dead_strip	_mrb_socket_accept2
.subsections_via_symbols
