	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mrb_basicsocket_recvfrom
_mrb_basicsocket_recvfrom:              ## @mrb_basicsocket_recvfrom
	.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
	movl	%esi, %r15d
	movq	%rdi, %r14
	movl	$0, -48(%rbp)
	leaq	L_.str(%rip), %rsi
	leaq	-52(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	callq	_mrb_get_args
	movl	-52(%rbp), %esi
	movq	%r14, %rdi
	callq	_mrb_str_buf_new
	movl	%eax, %ebx
	movl	$4, -44(%rbp)
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_mrb_str_buf_new
	movl	%eax, %r12d
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_socket_fd
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	%ebx, -64(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_RSTRING_PTR
	movq	%rax, %r13
	movl	-52(%rbp), %ebx
	movl	-48(%rbp), %r15d
	movl	%r12d, -60(%rbp)                ## 4-byte Spill
	movl	%r12d, %edi
	callq	_RSTRING_PTR
	leaq	-44(%rbp), %r9
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	movq	%r13, %rsi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	movq	%rax, %r8
	callq	_recvfrom
	movl	%eax, %r12d
	cmpl	$-1, %eax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_mrb_sys_fail
LBB0_2:
	movq	%r14, %rdi
	movl	-64(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %esi
	movl	%r12d, %edx
	callq	_mrb_str_resize
	movl	-44(%rbp), %edx
	movq	%r14, %rdi
	movl	-60(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %esi
	callq	_mrb_str_resize
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_mrb_ary_new_capa
	movl	%eax, %ebx
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%r15d, %edx
	callq	_mrb_ary_push
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%r12d, %edx
	callq	_mrb_ary_push
	movl	%ebx, %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	"i|i"

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

	.no_dead_strip	_mrb_basicsocket_recvfrom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mrb_basicsocket_recvfrom
_mrb_basicsocket_recvfrom:              ; @mrb_basicsocket_recvfrom
	.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	x22, x1
	mov	x19, x0
	str	wzr, [sp, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	add	x3, sp, #8
	bl	_mrb_get_args
	ldr	w1, [sp, #12]
	mov	x0, x19
	bl	_mrb_str_buf_new
	mov	x20, x0
	mov	w8, #4
	str	w8, [sp, #4]
	mov	x0, x19
	mov	w1, #4
	bl	_mrb_str_buf_new
	mov	x21, x0
	mov	x0, x19
	mov	x1, x22
	bl	_socket_fd
	mov	x22, x0
	mov	x0, x20
	bl	_RSTRING_PTR
	mov	x23, x0
	ldp	w25, w24, [sp, #8]
	mov	x0, x21
	bl	_RSTRING_PTR
	mov	x4, x0
	add	x5, sp, #4
	mov	x0, x22
	mov	x1, x23
	mov	x2, x24
	mov	x3, x25
	bl	_recvfrom
	mov	x22, x0
	cmn	w0, #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:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_mrb_str_resize
	ldr	w2, [sp, #4]
	mov	x0, x19
	mov	x1, x21
	bl	_mrb_str_resize
	mov	x0, x19
	mov	w1, #2
	bl	_mrb_ary_new_capa
	mov	x22, x0
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	bl	_mrb_ary_push
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	bl	_mrb_ary_push
	mov	x0, x22
	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	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"i|i"

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

	.no_dead_strip	_mrb_basicsocket_recvfrom
.subsections_via_symbols
