	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_locate
_add_locate:                            ## @add_locate
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_NI_MAXHOST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	_NI_MAXSERV@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r15, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	%r12, %rdi
	callq	_socket_sockaddr_size
	movq	_NI_NUMERICHOST@GOTPCREL(%rip), %rcx
	movq	_NI_NUMERICSERV@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	orl	(%rcx), %ebx
	subq	$8, %rsp
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movl	%eax, %esi
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdx
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	movq	%r13, %r12
	movq	%r13, %r8
	movl	%r15d, %r9d
	pushq	%rbx
	callq	_getnameinfo
	addq	$16, %rsp
	xorl	%r13d, %r13d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_krbhst_get_default_proto
	leaq	-96(%rbp), %rbx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_make_hints
	leaq	-88(%rbp), %rcx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_getaddrinfo
	testl	%eax, %eax
	jne	LBB0_5
## %bb.2:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_strlen
	movq	%rax, %r14
	leal	32(%rax), %esi
	movl	$1, %edi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_krbhst_get_default_proto
	movl	%eax, 24(%rbx)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_socket_get_port
	movl	%eax, 16(%rbx)
	movl	%eax, 20(%rbx)
	movq	-88(%rbp), %rax
	movq	%rax, 8(%rbx)
	movq	(%rbx), %r12
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	_memmove
	movb	$0, (%r12,%r14)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_append_host_hostinfo
	jmp	LBB0_5
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	movl	%r13d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_NI_MAXHOST,4,2                 ## @NI_MAXHOST
	.comm	_NI_MAXSERV,4,2                 ## @NI_MAXSERV
	.comm	_NI_NUMERICHOST,4,2             ## @NI_NUMERICHOST
	.comm	_NI_NUMERICSERV,4,2             ## @NI_NUMERICSERV
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_add_locate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_locate
_add_locate:                            ; @add_locate
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #32
	mov	x20, x2
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _NI_MAXHOST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NI_MAXHOST@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	mov	x9, x23
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x23, #15
	and	x9, x9, #0x1fffffff0
	sub	x21, x8, x9
	mov	sp, x21
Lloh8:
	adrp	x8, _NI_MAXSERV@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NI_MAXSERV@GOTPAGEOFF]
Lloh10:
	ldr	w24, [x8]
	mov	x9, x24
Lloh11:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh12:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x24, #15
	and	x9, x9, #0x1fffffff0
	sub	x22, x8, x9
	mov	sp, x22
	mov	x0, x2
	bl	_socket_sockaddr_size
	mov	x1, x0
Lloh13:
	adrp	x8, _NI_NUMERICHOST@GOTPAGE
Lloh14:
	ldr	x8, [x8, _NI_NUMERICHOST@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _NI_NUMERICSERV@GOTPAGE
Lloh17:
	ldr	x9, [x9, _NI_NUMERICSERV@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w6, w9, w8
	mov	x0, x20
	mov	x2, x21
	mov	x3, x23
	mov	x4, x22
	mov	x5, x24
	bl	_getnameinfo
	cbnz	w0, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_krbhst_get_default_proto
	mov	x1, x0
	sub	x0, x29, #64
	bl	_make_hints
	sub	x2, x29, #64
	sub	x3, x29, #72
	mov	x0, x21
	mov	x1, x22
	bl	_getaddrinfo
	cbnz	w0, LBB0_4
; %bb.2:
	mov	x0, x21
	bl	_strlen
	mov	x22, x0
	add	w1, w22, #32
	mov	w0, #1
	bl	_calloc
	cbz	x0, LBB0_7
; %bb.3:
	mov	x23, x0
	mov	x0, x19
	bl	_krbhst_get_default_proto
	str	w0, [x23, #24]
	mov	x0, x20
	bl	_socket_get_port
	stp	w0, w0, [x23, #16]
	ldur	x8, [x29, #-72]
	str	x8, [x23, #8]
	ldr	x20, [x23]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_memmove
	strb	wzr, [x20, x22]
	mov	x0, x19
	mov	x1, x23
	bl	_append_host_hostinfo
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldur	x8, [x29, #-56]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.6:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	b	LBB0_5
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_NI_MAXHOST,4,2                 ; @NI_MAXHOST
	.comm	_NI_MAXSERV,4,2                 ; @NI_MAXSERV
	.comm	_NI_NUMERICHOST,4,2             ; @NI_NUMERICHOST
	.comm	_NI_NUMERICSERV,4,2             ; @NI_NUMERICSERV
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_add_locate
.subsections_via_symbols
