	.file	"extr_socket.c_mrb_basicsocket_recv.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"i|i"
.LC1:
	.string	"recv"
	.text
	.p2align 4
	.type	mrb_basicsocket_recv, @function
mrb_basicsocket_recv:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, esi
	lea	rsi, .LC0[rip]
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	lea	rcx, 16[rsp]
	lea	rdx, 8[rsp]
	mov	QWORD PTR 16[rsp], 0
	call	mrb_get_args@PLT
	mov	rsi, QWORD PTR 8[rsp]
	mov	rdi, rbp
	call	mrb_str_buf_new@PLT
	mov	rbx, QWORD PTR 8[rsp]
	mov	r14, QWORD PTR 16[rsp]
	mov	edi, eax
	mov	r12d, eax
	call	RSTRING_PTR@PLT
	mov	esi, r15d
	mov	rdi, rbp
	mov	r13d, eax
	call	socket_fd@PLT
	mov	edx, ebx
	mov	ecx, r14d
	mov	esi, r13d
	mov	edi, eax
	call	recv@PLT
	mov	ebx, eax
	cmp	eax, -1
	je	.L6
.L2:
	movsx	rdx, ebx
	mov	esi, r12d
	mov	rdi, rbp
	call	mrb_str_resize@PLT
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L7
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	call	mrb_sys_fail@PLT
	jmp	.L2
.L7:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mrb_basicsocket_recv, .-mrb_basicsocket_recv
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_socket.c_mrb_basicsocket_recv.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"i|i\000"
	.align	2
.LC1:
	.ascii	"recv\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mrb_basicsocket_recv, %function
mrb_basicsocket_recv:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	ip, #0
	mov	r4, r0
	sub	sp, sp, #16
	ldr	lr, .L8
	add	r3, sp, #8
	add	r2, sp, #4
	mov	r5, r1
	ldr	r1, .L8+4
	ldr	lr, [lr]
	str	lr, [sp, #12]
	mov	lr,#0
	str	ip, [sp, #8]
	bl	mrb_get_args
	ldr	r1, [sp, #4]
	mov	r0, r4
	bl	mrb_str_buf_new
	mov	r1, r5
	mov	r5, r0
	mov	r0, r4
	bl	socket_fd
	mov	r6, r0
	mov	r0, r5
	bl	RSTRING_PTR
	ldr	r3, [sp, #8]
	mov	r1, r0
	ldr	r2, [sp, #4]
	mov	r0, r6
	bl	recv
	cmn	r0, #1
	mov	r6, r0
	beq	.L6
.L2:
	mov	r2, r6
	mov	r0, r4
	mov	r1, r5
	bl	mrb_str_resize
	ldr	r3, .L8
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L7
	mov	r0, r5
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, pc}
.L6:
	mov	r0, r4
	ldr	r1, .L8+8
	bl	mrb_sys_fail
	b	.L2
.L7:
	bl	__stack_chk_fail
.L9:
	.align	2
.L8:
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.size	mrb_basicsocket_recv, .-mrb_basicsocket_recv
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
