	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mrb_addrinfo_getnameinfo
_mrb_addrinfo_getnameinfo:              ## @mrb_addrinfo_getnameinfo
	.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, %r12d
	movq	%rdi, %r13
	movq	$0, -56(%rbp)
	leaq	L_.str(%rip), %rsi
	leaq	-56(%rbp), %rdx
	callq	_mrb_get_args
	movq	_NI_MAXHOST@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r13, %rdi
	callq	_mrb_str_buf_new
	movl	%eax, %r14d
	movq	_NI_MAXSERV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_mrb_str_buf_new
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_mrb_intern_lit
	movq	%r13, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_mrb_iv_get
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_mrb_string_p
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_E_SOCKET_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r13, %rdi
	callq	_mrb_raise
LBB0_2:
	movl	%ebx, %edi
	callq	_RSTRING_PTR
	movq	%rax, %r12
	movl	%ebx, %edi
	callq	_RSTRING_LEN
	movq	%rax, %rbx
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	movl	%r14d, %edi
	callq	_RSTRING_PTR
	movq	%rax, %r14
	movl	(%r15), %r15d
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_RSTRING_PTR
	movq	_NI_MAXSERV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movl	-56(%rbp), %ecx
	movl	%ecx, (%rsp)
	movq	%r12, %rdi
	movl	%ebx, %esi
	movq	%r14, %rdx
	movl	%r15d, %ecx
	movq	%rax, %r8
	callq	_getnameinfo
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	_E_SOCKET_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movl	%eax, %edi
	callq	_gai_strerror
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_mrb_str_new_cstr
	leaq	L_.str.3(%rip), %rdx
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%eax, %ecx
	callq	_mrb_raisef
LBB0_4:
	movq	%r13, %rdi
	movl	$2, %esi
	callq	_mrb_ary_new_capa
	movl	%eax, %r12d
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	callq	_RSTRING_PTR
	movq	%rax, %rdi
	callq	_strlen
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_mrb_str_resize
	movq	%r13, %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	callq	_mrb_ary_push
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	callq	_RSTRING_PTR
	movq	%rax, %rdi
	callq	_strlen
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_mrb_str_resize
	movq	%r13, %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	callq	_mrb_ary_push
	movl	%r12d, %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"

	.comm	_NI_MAXHOST,4,2                 ## @NI_MAXHOST
	.comm	_NI_MAXSERV,4,2                 ## @NI_MAXSERV
L_.str.1:                               ## @.str.1
	.asciz	"@sockaddr"

	.comm	_E_SOCKET_ERROR,4,2             ## @E_SOCKET_ERROR
L_.str.2:                               ## @.str.2
	.asciz	"invalid sockaddr"

L_.str.3:                               ## @.str.3
	.asciz	"getnameinfo: %S"

	.no_dead_strip	_mrb_addrinfo_getnameinfo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mrb_addrinfo_getnameinfo
_mrb_addrinfo_getnameinfo:              ; @mrb_addrinfo_getnameinfo
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x1
	mov	x19, x0
	str	xzr, [sp, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #8
	bl	_mrb_get_args
Lloh2:
	adrp	x25, _NI_MAXHOST@GOTPAGE
Lloh3:
	ldr	x25, [x25, _NI_MAXHOST@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x19
	bl	_mrb_str_buf_new
	mov	x21, x0
Lloh4:
	adrp	x26, _NI_MAXSERV@GOTPAGE
Lloh5:
	ldr	x26, [x26, _NI_MAXSERV@GOTPAGEOFF]
	ldr	w1, [x26]
	mov	x0, x19
	bl	_mrb_str_buf_new
	mov	x20, x0
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_mrb_intern_lit
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	bl	_mrb_iv_get
	mov	x22, x0
	bl	_mrb_string_p
Lloh8:
	adrp	x27, _E_SOCKET_ERROR@GOTPAGE
Lloh9:
	ldr	x27, [x27, _E_SOCKET_ERROR@GOTPAGEOFF]
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w1, [x27]
Lloh10:
	adrp	x2, l_.str.2@PAGE
Lloh11:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_mrb_raise
LBB0_2:
	mov	x0, x22
	bl	_RSTRING_PTR
	mov	x23, x0
	mov	x0, x22
	bl	_RSTRING_LEN
	mov	x22, x0
	mov	x0, x21
	bl	_RSTRING_PTR
	mov	x24, x0
	ldr	w25, [x25]
	mov	x0, x20
	bl	_RSTRING_PTR
	mov	x4, x0
	ldr	w5, [x26]
	ldr	w6, [sp, #8]
	mov	x0, x23
	mov	x1, x22
	mov	x2, x24
	mov	x3, x25
	bl	_getnameinfo
	cbz	w0, LBB0_4
; %bb.3:
	ldr	w22, [x27]
	bl	_gai_strerror
	mov	x1, x0
	mov	x0, x19
	bl	_mrb_str_new_cstr
	mov	x3, x0
Lloh12:
	adrp	x2, l_.str.3@PAGE
Lloh13:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x1, x22
	bl	_mrb_raisef
LBB0_4:
	mov	x0, x19
	mov	w1, #2
	bl	_mrb_ary_new_capa
	mov	x22, x0
	mov	x0, x21
	bl	_RSTRING_PTR
	bl	_strlen
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_mrb_str_resize
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	bl	_mrb_ary_push
	mov	x0, x20
	bl	_RSTRING_PTR
	bl	_strlen
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_mrb_str_resize
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	bl	_mrb_ary_push
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"|i"

	.comm	_NI_MAXHOST,4,2                 ; @NI_MAXHOST
	.comm	_NI_MAXSERV,4,2                 ; @NI_MAXSERV
l_.str.1:                               ; @.str.1
	.asciz	"@sockaddr"

	.comm	_E_SOCKET_ERROR,4,2             ; @E_SOCKET_ERROR
l_.str.2:                               ; @.str.2
	.asciz	"invalid sockaddr"

l_.str.3:                               ; @.str.3
	.asciz	"getnameinfo: %S"

	.no_dead_strip	_mrb_addrinfo_getnameinfo
.subsections_via_symbols
