	.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
	movq	%rdx, %r15
	movq	(%rdi), %rdx
	movq	_AF_INET@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_5
## %bb.1:
	movq	%rcx, %r14
	movl	$4, %esi
	callq	_gethostbyaddr
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	xorl	%ebx, %ebx
	testq	%r15, %r15
	je	LBB0_7
## %bb.3:
	testq	%r14, %r14
	je	LBB0_7
## %bb.4:
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_strlcpy
	jmp	LBB0_7
LBB0_5:
	movq	_EAI_FAMILY@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_h_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_TRY_AGAIN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.9:
	movq	_EAI_AGAIN@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_10:
	movq	_EAI_FAIL@GOTPCREL(%rip), %rax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_INET,8,3                    ## @AF_INET
	.comm	_EAI_FAMILY,4,2                 ## @EAI_FAMILY
	.comm	_h_errno,8,3                    ## @h_errno
	.comm	_TRY_AGAIN,8,3                  ## @TRY_AGAIN
	.comm	_EAI_AGAIN,4,2                  ## @EAI_AGAIN
	.comm	_EAI_FAIL,4,2                   ## @EAI_FAIL
.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	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x2
	ldr	x2, [x0]
Lloh0:
	adrp	x8, _AF_INET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x2, x8
	b.ne	LBB0_5
; %bb.1:
	mov	x19, x3
	mov	w1, #4
	bl	_gethostbyaddr
	cbz	x0, LBB0_8
; %bb.2:
	mov	x8, x0
	mov	w0, #0
	cbz	x20, LBB0_7
; %bb.3:
	cbz	x19, LBB0_7
; %bb.4:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x19
	bl	_strlcpy
	mov	w0, #0
	b	LBB0_7
LBB0_5:
Lloh3:
	adrp	x8, _EAI_FAMILY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EAI_FAMILY@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh5:
	adrp	x8, _h_errno@GOTPAGE
Lloh6:
	ldr	x8, [x8, _h_errno@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _TRY_AGAIN@GOTPAGE
Lloh9:
	ldr	x9, [x9, _TRY_AGAIN@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.9:
Lloh11:
	adrp	x8, _EAI_AGAIN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EAI_AGAIN@GOTPAGEOFF]
	b	LBB0_6
LBB0_10:
Lloh13:
	adrp	x8, _EAI_FAIL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EAI_FAIL@GOTPAGEOFF]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_INET,8,3                    ; @AF_INET
	.comm	_EAI_FAMILY,4,2                 ; @EAI_FAMILY
	.comm	_h_errno,8,3                    ; @h_errno
	.comm	_TRY_AGAIN,8,3                  ; @TRY_AGAIN
	.comm	_EAI_AGAIN,4,2                  ; @EAI_AGAIN
	.comm	_EAI_FAIL,4,2                   ; @EAI_FAIL
.subsections_via_symbols
