	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_nodename
_do_nodename:                           ## @do_nodename
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	$0, -48(%rbp)
	movl	$4, %edi
	movl	$1, %esi
	callq	_calloc
	movq	%rax, 24(%r12)
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	testq	%r15, %r15
	je	LBB0_9
## %bb.2:
	movq	%r15, %rdi
	movl	$58, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	_AF_INET6@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	movq	24(%r12), %rdx
	addq	$4, %rdx
	movq	%r15, %rsi
	callq	_inet_pton
	cmpl	$1, %eax
	jne	LBB0_6
## %bb.4:
	movq	(%rbx), %rax
	movq	24(%r12), %rcx
	movw	%ax, (%rcx)
	jmp	LBB0_8
LBB0_5:
	movq	_EAI_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_16
LBB0_6:
	movq	_AF_INET@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	movq	24(%r12), %rdx
	addq	$4, %rdx
	movq	%r15, %rsi
	callq	_inet_pton
	cmpl	$1, %eax
	jne	LBB0_11
LBB0_7:
	movq	(%r13), %rax
	movq	24(%r12), %rcx
	movq	%rax, (%rcx)
	movq	(%r13), %rax
LBB0_8:
	movq	%rax, (%r12)
	movl	$8, 8(%r12)
	jmp	LBB0_15
LBB0_9:
	movq	%rax, %rbx
	movq	(%r12), %rax
	movq	_AF_INET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	$8, 8(%r12)
	je	LBB0_14
## %bb.10:
	movw	%ax, (%rbx)
	jmp	LBB0_15
LBB0_11:
	testq	%r14, %r14
	je	LBB0_17
## %bb.12:
	movq	_AI_NUMERICHOST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 12(%r14)
	je	LBB0_17
## %bb.13:
	movq	_EAI_NONAME@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_16
LBB0_14:
	movq	_INADDR_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htonl
	movl	%eax, 4(%rbx)
LBB0_15:
	xorl	%ebx, %ebx
LBB0_16:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	(%r13), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	callq	_DNSlookup_name
	movq	-48(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_21
## %bb.18:
	movq	(%rsi), %rcx
	movq	%rcx, (%r12)
	movl	$8, 8(%r12)
	movq	24(%r12), %rdi
	addq	$4, %rdi
	movl	12(%rsi), %edx
	movl	16(%rsi), %esi
	callq	_memcpy
	xorl	%ebx, %ebx
	movq	-48(%rbp), %rax
	movq	(%rax), %rcx
	movq	24(%r12), %rdx
	movq	%rcx, 8(%rdx)
	testq	%r14, %r14
	je	LBB0_16
## %bb.19:
	movq	_AI_CANONNAME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 12(%r14)
	je	LBB0_16
## %bb.20:
	movl	8(%rax), %edi
	callq	_estrdup
	movl	%eax, 16(%r12)
	jmp	LBB0_16
LBB0_21:
	movq	_TRY_AGAIN@GOTPCREL(%rip), %rdx
	movq	_EAI_AGAIN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	cmpl	(%rdx), %eax
	je	LBB0_16
## %bb.22:
	cmpl	%ebx, %eax
	je	LBB0_16
## %bb.23:
	movq	_EAI_NONAME@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_25
## %bb.24:
	movq	(%r13), %rdi
	movl	%eax, %ebx
	movq	24(%r12), %rdx
	addq	$4, %rdx
	movq	%r15, %rsi
	callq	_inet_pton
	cmpl	$1, %eax
	je	LBB0_7
	jmp	LBB0_16
LBB0_25:
	movl	%eax, %ebx
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_EAI_MEMORY,4,2                 ## @EAI_MEMORY
	.comm	_AF_INET,8,3                    ## @AF_INET
	.comm	_INADDR_ANY,4,2                 ## @INADDR_ANY
	.comm	_AF_INET6,8,3                   ## @AF_INET6
	.comm	_AI_NUMERICHOST,4,2             ## @AI_NUMERICHOST
	.comm	_EAI_NONAME,4,2                 ## @EAI_NONAME
	.comm	_TRY_AGAIN,4,2                  ## @TRY_AGAIN
	.comm	_EAI_AGAIN,4,2                  ## @EAI_AGAIN
	.comm	_AI_CANONNAME,4,2               ## @AI_CANONNAME
	.no_dead_strip	_do_nodename
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_nodename
_do_nodename:                           ; @do_nodename
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	str	xzr, [sp, #8]
	mov	w0, #4
	mov	w1, #1
	bl	_calloc
	str	x0, [x19, #24]
	cbz	x0, LBB0_5
; %bb.1:
	cbz	x21, LBB0_9
; %bb.2:
	mov	x0, x21
	mov	w1, #58
	bl	_strchr
	cbz	x0, LBB0_6
; %bb.3:
Lloh0:
	adrp	x22, _AF_INET6@GOTPAGE
Lloh1:
	ldr	x22, [x22, _AF_INET6@GOTPAGEOFF]
	ldr	x0, [x22]
	ldr	x8, [x19, #24]
	add	x2, x8, #4
	mov	x1, x21
	bl	_inet_pton
	cmp	w0, #1
	b.ne	LBB0_6
; %bb.4:
	mov	w0, #0
	ldr	x8, [x22]
	ldr	x9, [x19, #24]
	strh	w8, [x9]
	b	LBB0_8
LBB0_5:
Lloh2:
	adrp	x8, _EAI_MEMORY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EAI_MEMORY@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	b	LBB0_24
LBB0_6:
Lloh5:
	adrp	x23, _AF_INET@GOTPAGE
Lloh6:
	ldr	x23, [x23, _AF_INET@GOTPAGEOFF]
	ldr	x0, [x23]
	ldr	x8, [x19, #24]
	add	x2, x8, #4
	mov	x1, x21
	bl	_inet_pton
	cmp	w0, #1
	b.ne	LBB0_11
LBB0_7:
	mov	w0, #0
	ldr	x8, [x23]
	ldr	x9, [x19, #24]
	str	x8, [x9]
	ldr	x8, [x23]
LBB0_8:
	str	x8, [x19]
	mov	w8, #8
	str	w8, [x19, #8]
	b	LBB0_24
LBB0_9:
	mov	x22, x0
	ldr	x8, [x19]
Lloh7:
	adrp	x9, _AF_INET@GOTPAGE
Lloh8:
	ldr	x9, [x9, _AF_INET@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	mov	w10, #8
	str	w10, [x19, #8]
	cmp	x8, x9
	b.eq	LBB0_14
; %bb.10:
	mov	w0, #0
	strh	w8, [x22]
	b	LBB0_24
LBB0_11:
	cbz	x20, LBB0_15
; %bb.12:
	ldr	w8, [x20, #12]
Lloh10:
	adrp	x9, _AI_NUMERICHOST@GOTPAGE
Lloh11:
	ldr	x9, [x9, _AI_NUMERICHOST@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.13:
Lloh13:
	adrp	x8, _EAI_NONAME@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EAI_NONAME@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	b	LBB0_24
LBB0_14:
Lloh16:
	adrp	x8, _INADDR_ANY@GOTPAGE
Lloh17:
	ldr	x8, [x8, _INADDR_ANY@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_htonl
	mov	x8, x0
	mov	w0, #0
	str	w8, [x22, #4]
	b	LBB0_24
LBB0_15:
	ldr	x1, [x23]
	add	x2, sp, #8
	mov	x0, x21
	bl	_DNSlookup_name
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_19
; %bb.16:
	ldr	x9, [x8]
	str	x9, [x19]
	mov	w9, #8
	str	w9, [x19, #8]
	ldr	x9, [x19, #24]
	add	x0, x9, #4
	ldp	w2, w1, [x8, #12]
	bl	_memcpy
	ldr	x8, [sp, #8]
	ldr	x9, [x8]
	ldr	x10, [x19, #24]
	str	x9, [x10, #8]
	cbz	x20, LBB0_22
; %bb.17:
	ldr	w9, [x20, #12]
Lloh19:
	adrp	x10, _AI_CANONNAME@GOTPAGE
Lloh20:
	ldr	x10, [x10, _AI_CANONNAME@GOTPAGEOFF]
Lloh21:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_22
; %bb.18:
	ldr	w0, [x8, #8]
	bl	_estrdup
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19, #16]
	b	LBB0_24
LBB0_19:
	mov	x22, x0
Lloh22:
	adrp	x8, _TRY_AGAIN@GOTPAGE
Lloh23:
	ldr	x8, [x8, _TRY_AGAIN@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _EAI_AGAIN@GOTPAGE
Lloh26:
	ldr	x9, [x9, _EAI_AGAIN@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x9]
	cmp	w22, w8
	ccmp	w22, w0, #4, ne
	b.eq	LBB0_24
; %bb.20:
Lloh28:
	adrp	x8, _EAI_NONAME@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EAI_NONAME@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	cmp	w22, w8
	b.ne	LBB0_23
; %bb.21:
	ldr	x0, [x23]
	ldr	x8, [x19, #24]
	add	x2, x8, #4
	mov	x1, x21
	bl	_inet_pton
	mov	x8, x0
	mov	x0, x22
	cmp	w8, #1
	b.eq	LBB0_7
	b	LBB0_24
LBB0_22:
	mov	w0, #0
	b	LBB0_24
LBB0_23:
	mov	x0, x22
LBB0_24:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	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	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_EAI_MEMORY,4,2                 ; @EAI_MEMORY
	.comm	_AF_INET,8,3                    ; @AF_INET
	.comm	_INADDR_ANY,4,2                 ; @INADDR_ANY
	.comm	_AF_INET6,8,3                   ; @AF_INET6
	.comm	_AI_NUMERICHOST,4,2             ; @AI_NUMERICHOST
	.comm	_EAI_NONAME,4,2                 ; @EAI_NONAME
	.comm	_TRY_AGAIN,4,2                  ; @TRY_AGAIN
	.comm	_EAI_AGAIN,4,2                  ; @EAI_AGAIN
	.comm	_AI_CANONNAME,4,2               ; @AI_CANONNAME
	.no_dead_strip	_do_nodename
.subsections_via_symbols
