	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getname                        ## -- Begin function getname
	.p2align	4, 0x90
_getname:                               ## @getname
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	leaq	-20(%rbp), %rdi
	movl	$4, %edx
	callq	_memcpy
	movq	_hnametable@GOTPCREL(%rip), %rdx
	movslq	-20(%rbp), %rax
	movq	_HASHNAMESIZE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	decq	%rcx
	andq	%rax, %rcx
	leaq	(%rcx,%rcx,2), %rcx
	shlq	$3, %rcx
	addq	(%rdx), %rcx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %rbx
	movq	16(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	%eax, (%rbx)
	jne	LBB0_1
## %bb.3:
	addq	$8, %rbx
	jmp	LBB0_14
LBB0_4:
	movl	%eax, (%rbx)
	movq	%r14, %rdi
	callq	_newhnamemem
	movq	%rax, 16(%rbx)
	cmpl	$0, 16(%r14)
	jne	LBB0_12
## %bb.5:
	movq	_f_netmask@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-20(%rbp), %eax
	movq	_f_localnet@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_12
## %bb.6:
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-20(%rbp), %rdi
	movl	$4, %esi
	callq	_gethostbyaddr
	testq	%rax, %rax
	je	LBB0_12
## %bb.7:
	movl	(%rax), %edi
	callq	_strdup
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	*(%r14)
LBB0_9:
	addq	$8, %rbx
	cmpq	$0, 8(%r14)
	je	LBB0_14
## %bb.10:
	movq	(%rbx), %rdi
	movl	$46, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_14
## %bb.11:
	movb	$0, (%rax)
	jmp	LBB0_14
LBB0_12:
	movl	-20(%rbp), %edi
	callq	_intoa
	movl	%eax, %edi
	callq	_strdup
	movq	%rax, 8(%rbx)
	addq	$8, %rbx
	testq	%rax, %rax
	jne	LBB0_14
## %bb.13:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	*(%r14)
LBB0_14:
	movq	(%rbx), %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hnametable,8,3                 ## @hnametable
	.comm	_HASHNAMESIZE,4,2               ## @HASHNAMESIZE
	.comm	_f_netmask,4,2                  ## @f_netmask
	.comm	_f_localnet,4,2                 ## @f_localnet
	.comm	_AF_INET,4,2                    ## @AF_INET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"getname: strdup(hp->h_name)"

L_.str.1:                               ## @.str.1
	.asciz	"getname: strdup(intoa(addr))"

	.comm	_capdns,8,3                     ## @capdns
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getname                        ; -- Begin function getname
	.p2align	2
_getname:                               ; @getname
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	add	x0, sp, #12
	mov	w2, #4
	bl	_memcpy
Lloh0:
	adrp	x8, _hnametable@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hnametable@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x8]
Lloh3:
	adrp	x10, _HASHNAMESIZE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _HASHNAMESIZE@GOTPAGEOFF]
	ldr	w8, [sp, #12]
Lloh5:
	ldr	w10, [x10]
	sub	w10, w10, #1
	and	w10, w10, w8
	mov	w11, #24
	smaddl	x9, w10, w11, x9
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x20, x9
	ldr	x9, [x9, #16]
	cbz	x9, LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w10, [x20]
	cmp	w10, w8
	b.ne	LBB0_1
; %bb.3:
	add	x20, x20, #8
	b	LBB0_14
LBB0_4:
	str	w8, [x20]
	mov	x0, x19
	bl	_newhnamemem
	str	x0, [x20, #16]
	ldr	w8, [x19, #16]
	cbnz	w8, LBB0_12
; %bb.5:
	ldr	w8, [sp, #12]
Lloh6:
	adrp	x9, _f_netmask@GOTPAGE
Lloh7:
	ldr	x9, [x9, _f_netmask@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh9:
	adrp	x9, _f_localnet@GOTPAGE
Lloh10:
	ldr	x9, [x9, _f_localnet@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_12
; %bb.6:
Lloh12:
	adrp	x8, _AF_INET@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	add	x0, sp, #12
	mov	w1, #4
	bl	_gethostbyaddr
	cbz	x0, LBB0_12
; %bb.7:
	ldr	w0, [x0]
	bl	_strdup
	str	x0, [x20, #8]!
	cbnz	x0, LBB0_9
; %bb.8:
	ldr	x8, [x19]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	blr	x8
LBB0_9:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_14
; %bb.10:
	ldr	x0, [x20]
	mov	w1, #46
	bl	_strchr
	cbz	x0, LBB0_14
; %bb.11:
	strb	wzr, [x0]
	b	LBB0_14
LBB0_12:
	ldr	w0, [sp, #12]
	bl	_intoa
	bl	_strdup
	str	x0, [x20, #8]!
	cbnz	x0, LBB0_14
; %bb.13:
	ldr	x8, [x19]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	blr	x8
LBB0_14:
	ldr	x0, [x20]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_hnametable,8,3                 ; @hnametable
	.comm	_HASHNAMESIZE,4,2               ; @HASHNAMESIZE
	.comm	_f_netmask,4,2                  ; @f_netmask
	.comm	_f_localnet,4,2                 ; @f_localnet
	.comm	_AF_INET,4,2                    ; @AF_INET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"getname: strdup(hp->h_name)"

l_.str.1:                               ; @.str.1
	.asciz	"getname: strdup(intoa(addr))"

	.comm	_capdns,8,3                     ; @capdns
.subsections_via_symbols
