	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_addr
_get_addr:                              ## @get_addr
	.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	%rsi, %r14
	leaq	-24(%rbp), %rcx
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_getaddrinfo
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_gai_strerror
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rsi
	callq	_printf
	jmp	LBB0_6
LBB0_2:
	movq	-24(%rbp), %rax
	movq	(%rax), %rcx
	movq	_PF_INET@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_4
## %bb.3:
	movq	_PF_INET6@GOTPCREL(%rip), %rdx
	movl	$-1, %ebx
	cmpq	(%rdx), %rcx
	jne	LBB0_5
LBB0_4:
	movl	8(%rax), %esi
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_memcpy
	xorl	%ebx, %ebx
LBB0_5:
	movq	-24(%rbp), %rdi
	callq	_freeaddrinfo
LBB0_6:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"getaddrinfo failed (%s) - invalid hostname or IP address\n"

	.comm	_PF_INET,8,3                    ## @PF_INET
	.comm	_PF_INET6,8,3                   ## @PF_INET6
	.no_dead_strip	_get_addr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_addr
_get_addr:                              ; @get_addr
	.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	x20, x1
	add	x3, sp, #8
	mov	x1, #0
	mov	x2, #0
	bl	_getaddrinfo
	cbz	w0, LBB0_2
; %bb.1:
	mov	x19, x0
	bl	_gai_strerror
	mov	x1, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	b	LBB0_6
LBB0_2:
	ldr	x8, [sp, #8]
	ldr	x9, [x8]
Lloh2:
	adrp	x10, _PF_INET@GOTPAGE
Lloh3:
	ldr	x10, [x10, _PF_INET@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
Lloh5:
	adrp	x11, _PF_INET6@GOTPAGE
Lloh6:
	ldr	x11, [x11, _PF_INET6@GOTPAGEOFF]
Lloh7:
	ldr	x11, [x11]
	cmp	x9, x10
	ccmp	x9, x11, #4, ne
	b.ne	LBB0_4
; %bb.3:
	ldr	w1, [x8, #8]
	mov	x0, x20
	mov	w2, #4
	bl	_memcpy
	mov	w19, #0
	b	LBB0_5
LBB0_4:
	mov	w19, #-1
LBB0_5:
	ldr	x0, [sp, #8]
	bl	_freeaddrinfo
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"getaddrinfo failed (%s) - invalid hostname or IP address\n"

	.comm	_PF_INET,8,3                    ; @PF_INET
	.comm	_PF_INET6,8,3                   ; @PF_INET6
	.no_dead_strip	_get_addr
.subsections_via_symbols
