	.file	"extr_socket.c_mrb_addrinfo_getnameinfo.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"|i"
.LC1:
	.string	"@sockaddr"
.LC2:
	.string	"invalid sockaddr"
.LC3:
	.string	"getnameinfo: %s"
	.text
	.p2align 4
	.type	mrb_addrinfo_getnameinfo, @function
mrb_addrinfo_getnameinfo:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, esi
	lea	rsi, .LC0[rip]
	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, 56
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	lea	rdx, 32[rsp]
	mov	QWORD PTR 32[rsp], 0
	call	mrb_get_args@PLT
	mov	esi, DWORD PTR NI_MAXHOST[rip]
	mov	rdi, rbp
	call	mrb_str_buf_new@PLT
	mov	esi, DWORD PTR NI_MAXSERV[rip]
	mov	rdi, rbp
	mov	r13d, eax
	call	mrb_str_buf_new@PLT
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	mov	r12d, eax
	call	mrb_intern_lit@PLT
	mov	esi, r14d
	mov	rdi, rbp
	mov	edx, eax
	call	mrb_iv_get@PLT
	mov	edi, eax
	mov	r14d, eax
	call	mrb_string_p@PLT
	test	eax, eax
	je	.L10
.L2:
	mov	r9d, DWORD PTR NI_MAXSERV[rip]
	mov	edi, r12d
	mov	rbx, QWORD PTR 32[rsp]
	mov	DWORD PTR 28[rsp], r9d
	call	RSTRING_PTR@PLT
	mov	ecx, DWORD PTR NI_MAXHOST[rip]
	mov	edi, r13d
	mov	QWORD PTR 16[rsp], rax
	mov	DWORD PTR 24[rsp], ecx
	call	RSTRING_PTR@PLT
	mov	edi, r14d
	mov	r15, rax
	call	RSTRING_LEN@PLT
	mov	edi, r14d
	mov	QWORD PTR 8[rsp], rax
	call	RSTRING_PTR@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 120
	mov	rdx, r15
	push	rbx
	.cfi_def_cfa_offset 128
	mov	r9d, DWORD PTR 44[rsp]
	mov	rdi, rax
	mov	r8, QWORD PTR 32[rsp]
	mov	ecx, DWORD PTR 40[rsp]
	mov	rsi, QWORD PTR 24[rsp]
	call	getnameinfo@PLT
	pop	rdx
	.cfi_def_cfa_offset 120
	pop	rcx
	.cfi_def_cfa_offset 112
	test	eax, eax
	jne	.L11
.L3:
	mov	esi, 2
	mov	rdi, rbp
	call	mrb_ary_new_capa@PLT
	mov	edi, r13d
	mov	r14d, eax
	call	RSTRING_PTR@PLT
	mov	rdi, rax
	call	strlen@PLT
	mov	esi, r13d
	mov	rdi, rbp
	mov	edx, eax
	call	mrb_str_resize@PLT
	mov	edx, r13d
	mov	esi, r14d
	mov	rdi, rbp
	call	mrb_ary_push@PLT
	mov	edi, r12d
	call	RSTRING_PTR@PLT
	mov	rdi, rax
	call	strlen@PLT
	mov	esi, r12d
	mov	rdi, rbp
	mov	edx, eax
	call	mrb_str_resize@PLT
	mov	edx, r12d
	mov	esi, r14d
	mov	rdi, rbp
	call	mrb_ary_push@PLT
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L12
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r14d
	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
.L10:
	.cfi_restore_state
	mov	esi, DWORD PTR E_SOCKET_ERROR[rip]
	lea	rdx, .LC2[rip]
	mov	rdi, rbp
	call	mrb_raise@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L11:
	mov	edi, eax
	call	gai_strerror@PLT
	mov	esi, DWORD PTR E_SOCKET_ERROR[rip]
	lea	rdx, .LC3[rip]
	mov	rdi, rbp
	mov	ecx, eax
	call	mrb_raisef@PLT
	jmp	.L3
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mrb_addrinfo_getnameinfo, .-mrb_addrinfo_getnameinfo
	.comm	NI_MAXSERV,4,4
	.comm	NI_MAXHOST,4,4
	.comm	E_SOCKET_ERROR,4,4
	.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_addrinfo_getnameinfo.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"|i\000"
	.align	2
.LC1:
	.ascii	"@sockaddr\000"
	.align	2
.LC2:
	.ascii	"invalid sockaddr\000"
	.align	2
.LC3:
	.ascii	"getnameinfo: %s\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mrb_addrinfo_getnameinfo, %function
mrb_addrinfo_getnameinfo:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r3, #0
	mov	r4, r0
	sub	sp, sp, #28
	ldr	ip, .L13
	ldr	r10, .L13+4
	add	r2, sp, #16
	mov	r7, r1
	ldr	r1, .L13+8
	ldr	ip, [ip]
	str	ip, [sp, #20]
	mov	ip,#0
	str	r3, [sp, #16]
	bl	mrb_get_args
	ldr	r1, [r10]
	mov	r0, r4
	bl	mrb_str_buf_new
	ldr	r9, .L13+12
	mov	r6, r0
	ldr	r1, [r9]
	mov	r0, r4
	bl	mrb_str_buf_new
	ldr	r1, .L13+16
	mov	r5, r0
	mov	r0, r4
	bl	mrb_intern_lit
	mov	r1, r7
	mov	r2, r0
	mov	r0, r4
	bl	mrb_iv_get
	mov	r7, r0
	bl	mrb_string_p
	cmp	r0, #0
	beq	.L10
.L2:
	mov	r0, r7
	bl	RSTRING_PTR
	mov	r3, r0
	mov	r0, r7
	mov	r7, r3
	bl	RSTRING_LEN
	mov	r8, r0
	mov	r0, r6
	bl	RSTRING_PTR
	mov	fp, r0
	mov	r0, r5
	ldr	r10, [r10]
	bl	RSTRING_PTR
	mov	lr, r0
	ldr	r9, [r9]
	ldr	ip, [sp, #16]
	mov	r2, fp
	mov	r1, r8
	mov	r3, r10
	mov	r0, r7
	stmib	sp, {r9, ip}
	str	lr, [sp]
	bl	getnameinfo
	cmp	r0, #0
	bne	.L11
.L3:
	mov	r1, #2
	mov	r0, r4
	bl	mrb_ary_new_capa
	mov	r7, r0
	mov	r0, r6
	bl	RSTRING_PTR
	bl	strlen
	mov	r1, r6
	mov	r2, r0
	mov	r0, r4
	bl	mrb_str_resize
	mov	r2, r6
	mov	r1, r7
	mov	r0, r4
	bl	mrb_ary_push
	mov	r0, r5
	bl	RSTRING_PTR
	bl	strlen
	mov	r1, r5
	mov	r2, r0
	mov	r0, r4
	bl	mrb_str_resize
	mov	r2, r5
	mov	r1, r7
	mov	r0, r4
	bl	mrb_ary_push
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	mov	r0, r7
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L10:
	ldr	r3, .L13+20
	mov	r0, r4
	ldr	r2, .L13+24
	ldr	r1, [r3]
	bl	mrb_raise
	b	.L2
.L11:
	ldr	r3, .L13+20
	ldr	r7, [r3]
	bl	gai_strerror
	mov	r1, r7
	mov	r3, r0
	ldr	r2, .L13+28
	mov	r0, r4
	bl	mrb_raisef
	b	.L3
.L12:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	.LC4
	.word	NI_MAXHOST
	.word	.LC0
	.word	NI_MAXSERV
	.word	.LC1
	.word	E_SOCKET_ERROR
	.word	.LC2
	.word	.LC3
	.size	mrb_addrinfo_getnameinfo, .-mrb_addrinfo_getnameinfo
	.comm	NI_MAXSERV,4,4
	.comm	NI_MAXHOST,4,4
	.comm	E_SOCKET_ERROR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
