	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	%r8, %r15
	movl	%ecx, %r8d
	movq	%rdx, %rcx
	movq	%rdx, %rax
	orq	%r15, %rax
	jne	LBB0_3
LBB0_2:
	movq	_EAI_FAIL@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_3:
	movl	16(%rbp), %eax
	movq	_NI_NAMEREQD@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_5
## %bb.4:
	movq	_EAI_AGAIN@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_5:
	movl	%r9d, %r14d
	movq	%rdi, %rbx
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.6:
	movq	(%rbx), %rdi
	movq	_AF_INET@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_13
## %bb.7:
	leaq	4(%rbx), %rsi
	movl	$32, %edx
	callq	_pg_inet_net_ntop
	testq	%rax, %rax
	je	LBB0_13
LBB0_8:
	testq	%r15, %r15
	je	LBB0_12
## %bb.9:
	movq	(%rbx), %rdi
	movq	_AF_INET@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_13
## %bb.10:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_pg_ntoh16
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%eax, %ecx
	callq	_snprintf
	movl	%eax, %ecx
	movq	_EAI_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%ecx, %ecx
	js	LBB0_15
## %bb.11:
	cmpl	%r14d, %ecx
	jge	LBB0_15
LBB0_12:
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_13:
	movq	_EAI_MEMORY@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %eax
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EAI_FAIL,4,2                   ## @EAI_FAIL
	.comm	_NI_NAMEREQD,4,2                ## @NI_NAMEREQD
	.comm	_EAI_AGAIN,4,2                  ## @EAI_AGAIN
	.comm	_AF_INET,8,3                    ## @AF_INET
	.comm	_EAI_MEMORY,4,2                 ## @EAI_MEMORY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d"

	.comm	_AF_INET6,8,3                   ## @AF_INET6
	.comm	_EAI_FAMILY,4,2                 ## @EAI_FAMILY
.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:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x4
	mov	x4, x3
	mov	x3, x2
	orr	x8, x2, x20
	cbnz	x8, LBB0_3
LBB0_2:
Lloh0:
	adrp	x8, _EAI_FAIL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EAI_FAIL@GOTPAGEOFF]
	b	LBB0_14
LBB0_3:
Lloh2:
	adrp	x8, _NI_NAMEREQD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NI_NAMEREQD@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w6
	b.eq	LBB0_5
; %bb.4:
Lloh5:
	adrp	x8, _EAI_AGAIN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EAI_AGAIN@GOTPAGEOFF]
	b	LBB0_14
LBB0_5:
	mov	x19, x5
	mov	x21, x0
	cbz	x3, LBB0_8
; %bb.6:
	ldr	x0, [x21]
Lloh7:
	adrp	x8, _AF_INET@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_13
; %bb.7:
	add	x1, x21, #4
	mov	w2, #32
	bl	_pg_inet_net_ntop
	cbz	x0, LBB0_13
LBB0_8:
	cbz	x20, LBB0_12
; %bb.9:
	ldr	x0, [x21]
Lloh10:
	adrp	x8, _AF_INET@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_13
; %bb.10:
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_pg_ntoh16
	mov	x3, x0
Lloh13:
	adrp	x2, l_.str@PAGE
Lloh14:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	bl	_snprintf
	mov	x8, x0
Lloh15:
	adrp	x9, _EAI_MEMORY@GOTPAGE
Lloh16:
	ldr	x9, [x9, _EAI_MEMORY@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x9]
	tbnz	w8, #31, LBB0_15
; %bb.11:
	cmp	w8, w19
	b.ge	LBB0_15
LBB0_12:
	mov	w0, #0
	b	LBB0_15
LBB0_13:
Lloh18:
	adrp	x8, _EAI_MEMORY@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EAI_MEMORY@GOTPAGEOFF]
LBB0_14:
	ldr	w0, [x8]
LBB0_15:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_EAI_FAIL,4,2                   ; @EAI_FAIL
	.comm	_NI_NAMEREQD,4,2                ; @NI_NAMEREQD
	.comm	_EAI_AGAIN,4,2                  ; @EAI_AGAIN
	.comm	_AF_INET,8,3                    ; @AF_INET
	.comm	_EAI_MEMORY,4,2                 ; @EAI_MEMORY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d"

	.comm	_AF_INET6,8,3                   ; @AF_INET6
	.comm	_EAI_FAMILY,4,2                 ; @EAI_FAMILY
.subsections_via_symbols
