	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getnameinfo                    ## -- Begin function getnameinfo
	.p2align	4, 0x90
_getnameinfo:                           ## @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
	movq	%r9, %r12
	movq	%r8, %rbx
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %rdi
	movq	_AF_UNSPEC@GOTPCREL(%rip), %rax
	movq	_AF_INET@GOTPCREL(%rip), %rdx
	cmpq	(%rax), %rdi
	je	LBB0_3
## %bb.1:
	cmpq	(%rdx), %rdi
	je	LBB0_3
## %bb.2:
	movq	_EAI_FAMILY@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_3:
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.4:
	shrq	$32, %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_ntohs
	leaq	L_.str(%rip), %rdx
	leaq	-64(%rbp), %rdi
	movl	$16, %esi
	movl	%eax, %ecx
	callq	_snprintf
	movq	%rbx, %rdi
	leaq	-64(%rbp), %rsi
	movq	%r12, %rdx
	callq	_strlcpy
	movq	_AF_INET@GOTPCREL(%rip), %rdx
	cmpq	%r12, %rax
	jae	LBB0_13
LBB0_5:
	testq	%r15, %r15
	je	LBB0_6
## %bb.7:
	movl	16(%rbp), %eax
	movq	_NI_NUMERICHOST@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.8:
	movl	(%r13), %edi
	callq	_inet_ntoa
	movq	%r15, %rdi
	movq	%rax, %rsi
	jmp	LBB0_12
LBB0_6:
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_9:
	movq	(%rdx), %rdx
	movq	%r13, %rdi
	movl	$4, %esi
	callq	_gethostbyaddr
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	(%rax), %rsi
	movq	%r15, %rdi
LBB0_12:
	movq	%r14, %rdx
	callq	_strlcpy
	movq	%rax, %rcx
	xorl	%eax, %eax
	cmpq	%r14, %rcx
	jb	LBB0_15
LBB0_13:
	movq	_EAI_MEMORY@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %eax
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_17
## %bb.16:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_EAI_NODATA@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_UNSPEC,8,3                  ## @AF_UNSPEC
	.comm	_AF_INET,8,3                    ## @AF_INET
	.comm	_EAI_FAMILY,4,2                 ## @EAI_FAMILY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d"

	.comm	_EAI_MEMORY,4,2                 ## @EAI_MEMORY
	.comm	_NI_NUMERICHOST,4,2             ## @NI_NUMERICHOST
	.comm	_EAI_NODATA,4,2                 ## @EAI_NODATA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getnameinfo                    ; -- Begin function getnameinfo
	.p2align	2
_getnameinfo:                           ; @getnameinfo
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _AF_UNSPEC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AF_UNSPEC@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x25, _AF_INET@GOTPAGE
Lloh7:
	ldr	x25, [x25, _AF_INET@GOTPAGEOFF]
	ldr	x10, [x25]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_6
; %bb.1:
	mov	x22, x6
	mov	x24, x4
	mov	x19, x3
	mov	x20, x2
	mov	x21, x0
	cbz	x4, LBB0_3
; %bb.2:
	mov	x23, x5
	lsr	x0, x8, #32
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_ntohs
	mov	x3, x0
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #8
	mov	w1, #16
	bl	_snprintf
	add	x1, sp, #8
	mov	x0, x24
	mov	x2, x23
	bl	_strlcpy
	cmp	x0, x23
	b.hs	LBB0_7
LBB0_3:
	cbz	x20, LBB0_8
; %bb.4:
Lloh10:
	adrp	x8, _NI_NUMERICHOST@GOTPAGE
Lloh11:
	ldr	x8, [x8, _NI_NUMERICHOST@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_9
; %bb.5:
	ldr	w0, [x21]
	bl	_inet_ntoa
	mov	x1, x0
	b	LBB0_11
LBB0_6:
Lloh13:
	adrp	x8, _EAI_FAMILY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EAI_FAMILY@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	b	LBB0_12
LBB0_7:
Lloh16:
	adrp	x8, _EAI_MEMORY@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EAI_MEMORY@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	b	LBB0_12
LBB0_8:
	mov	w0, #0
	b	LBB0_12
LBB0_9:
	ldr	x2, [x25]
	mov	x0, x21
	mov	w1, #4
	bl	_gethostbyaddr
	cbz	x0, LBB0_14
; %bb.10:
	ldr	x1, [x0]
LBB0_11:
	mov	x0, x20
	mov	x2, x19
	bl	_strlcpy
Lloh19:
	adrp	x8, _EAI_MEMORY@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EAI_MEMORY@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	cmp	x0, x19
	csel	w0, wzr, w8, lo
LBB0_12:
	ldr	x8, [sp, #24]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.13:
	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
	add	sp, sp, #112
	ret
LBB0_14:
Lloh25:
	adrp	x8, _EAI_NODATA@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EAI_NODATA@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	b	LBB0_12
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_UNSPEC,8,3                  ; @AF_UNSPEC
	.comm	_AF_INET,8,3                    ; @AF_INET
	.comm	_EAI_FAMILY,4,2                 ; @EAI_FAMILY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d"

	.comm	_EAI_MEMORY,4,2                 ; @EAI_MEMORY
	.comm	_NI_NUMERICHOST,4,2             ; @NI_NUMERICHOST
	.comm	_EAI_NODATA,4,2                 ; @EAI_NODATA
.subsections_via_symbols
