	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getaddrinfo                    ## -- Begin function getaddrinfo
	.p2align	4, 0x90
_getaddrinfo:                           ## @getaddrinfo
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r12
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.1:
	movq	(%r13), %rax
	movq	_AF_UNSPEC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.2:
	movq	_AF_INET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	movq	_EAI_FAMILY@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_4:
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.5:
	leaq	-64(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$10, %edx
	callq	_strtol
	leaq	-1(%rax), %rcx
	cmpq	$65534, %rcx                    ## imm = 0xFFFE
	ja	LBB0_7
## %bb.6:
	movq	-64(%rbp), %rcx
	cmpb	$0, (%rcx)
	je	LBB0_16
LBB0_7:
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_getservbyname
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	(%rax), %r15
	testq	%r13, %r13
	jne	LBB0_11
	jmp	LBB0_17
LBB0_9:
	xorl	%r15d, %r15d
LBB0_10:
	testq	%r13, %r13
	je	LBB0_17
LBB0_11:
	movq	_AI_PASSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r13)
	je	LBB0_17
## %bb.12:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_htonl
	movl	%eax, %r14d
	testq	%r12, %r12
	je	LBB0_15
## %bb.13:
	leaq	-48(%rbp), %rsi
	movq	%r12, %rdi
	callq	_inet_aton
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movl	-48(%rbp), %r14d
LBB0_15:
	movq	%r15, %rdi
	movl	%r14d, %esi
	movq	%r13, %rdx
	callq	_malloc_ai
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_22
	jmp	LBB0_24
LBB0_16:
	movq	%rax, %rdi
	callq	_htons
	movq	%rax, %r15
	testq	%r13, %r13
	jne	LBB0_11
LBB0_17:
	testq	%r12, %r12
	je	LBB0_20
## %bb.18:
	leaq	-48(%rbp), %rsi
	movq	%r12, %rdi
	callq	_inet_aton
	testq	%rax, %rax
	je	LBB0_25
## %bb.19:
	movl	-48(%rbp), %esi
	movq	%r15, %rdi
	jmp	LBB0_21
LBB0_20:
	movl	$2130706433, %edi               ## imm = 0x7F000001
	callq	_htonl
	movq	%r15, %rdi
	movl	%eax, %esi
LBB0_21:
	movq	%r13, %rdx
	callq	_malloc_ai
	movq	%rax, (%r14)
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jne	LBB0_24
LBB0_22:
	movq	_EAI_MEMORY@GOTPCREL(%rip), %rax
LBB0_23:
	movl	(%rax), %ebx
LBB0_24:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	testq	%r13, %r13
	je	LBB0_28
## %bb.26:
	movq	_AI_NUMERICHOST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r13)
	je	LBB0_28
## %bb.27:
	movq	_EAI_NONAME@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_28:
	movq	%r12, %rdi
	callq	_gethostbyname
	testq	%rax, %rax
	je	LBB0_36
## %bb.29:
	movq	%rax, %rdx
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_36
## %bb.30:
	cmpq	$0, (%rax)
	je	LBB0_36
## %bb.31:
	movq	(%rdx), %rax
	cmpq	$0, (%rax)
	je	LBB0_36
## %bb.32:
	movq	$0, (%r14)
	movq	(%rdx), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_37
## %bb.33:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	$8, %r14d
	xorl	%r12d, %r12d
LBB0_34:                                ## =>This Inner Loop Header: Depth=1
	movq	%rdx, %rbx
	movl	(%rcx), %esi
	movq	%r15, %rdi
	movq	%r13, %rdx
	callq	_malloc_ai
	testq	%rax, %rax
	je	LBB0_38
## %bb.35:                              ##   in Loop: Header=BB0_34 Depth=1
	leaq	16(%r12), %rcx
	testq	%r12, %r12
	cmoveq	-56(%rbp), %rcx                 ## 8-byte Folded Reload
	movq	%rax, (%rcx)
	movq	%rbx, %rdx
	movq	(%rbx), %rcx
	movq	(%rcx,%r14), %rcx
	addq	$8, %r14
	xorl	%ebx, %ebx
	movq	%rax, %r12
	testq	%rcx, %rcx
	jne	LBB0_34
	jmp	LBB0_24
LBB0_36:
	movq	_EAI_NODATA@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_37:
	xorl	%ebx, %ebx
	jmp	LBB0_24
LBB0_38:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_22
## %bb.39:
	callq	_freeaddrinfo
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_UNSPEC,8,3                  ## @AF_UNSPEC
	.comm	_AF_INET,8,3                    ## @AF_INET
	.comm	_EAI_FAMILY,4,2                 ## @EAI_FAMILY
	.comm	_AI_PASSIVE,4,2                 ## @AI_PASSIVE
	.comm	_EAI_MEMORY,4,2                 ## @EAI_MEMORY
	.comm	_AI_NUMERICHOST,4,2             ## @AI_NUMERICHOST
	.comm	_EAI_NONAME,4,2                 ## @EAI_NONAME
	.comm	_EAI_NODATA,4,2                 ## @EAI_NODATA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getaddrinfo                    ; -- Begin function getaddrinfo
	.p2align	2
_getaddrinfo:                           ; @getaddrinfo
	.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	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	cbz	x2, LBB0_2
; %bb.1:
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _AF_UNSPEC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AF_UNSPEC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _AF_INET@GOTPAGE
Lloh4:
	ldr	x10, [x10, _AF_INET@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_7
LBB0_2:
	cbz	x21, LBB0_10
; %bb.3:
	mov	x1, sp
	mov	x0, x21
	mov	w2, #10
	bl	_strtol
	sub	x8, x0, #1
	mov	w9, #65534
	cmp	x8, x9
	b.hi	LBB0_5
; %bb.4:
	ldr	x8, [sp]
	ldrb	w8, [x8]
	cbz	w8, LBB0_16
LBB0_5:
	mov	x0, x21
	mov	x1, #0
	bl	_getservbyname
	cbz	x0, LBB0_9
; %bb.6:
	ldr	x21, [x0]
	cbnz	x20, LBB0_11
	b	LBB0_17
LBB0_7:
Lloh6:
	adrp	x8, _EAI_FAMILY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EAI_FAMILY@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
	b	LBB0_23
LBB0_9:
	mov	x21, #0
LBB0_10:
	cbz	x20, LBB0_17
LBB0_11:
	ldr	w8, [x20, #8]
Lloh8:
	adrp	x9, _AI_PASSIVE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _AI_PASSIVE@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_17
; %bb.12:
	mov	w0, #0
	bl	_htonl
	mov	x23, x0
	cbz	x22, LBB0_15
; %bb.13:
	add	x1, sp, #8
	mov	x0, x22
	bl	_inet_aton
	cbz	x0, LBB0_15
; %bb.14:
	ldr	w23, [sp, #8]
LBB0_15:
	mov	x0, x21
	mov	x1, x23
	b	LBB0_22
LBB0_16:
	bl	_htons
	mov	x21, x0
	cbnz	x20, LBB0_11
LBB0_17:
	cbz	x22, LBB0_20
; %bb.18:
	add	x1, sp, #8
	mov	x0, x22
	bl	_inet_aton
	cbz	x0, LBB0_24
; %bb.19:
	ldr	w1, [sp, #8]
	b	LBB0_21
LBB0_20:
	mov	w0, #1
	movk	w0, #32512, lsl #16
	bl	_htonl
	mov	x1, x0
LBB0_21:
	mov	x0, x21
LBB0_22:
	mov	x2, x20
	bl	_malloc_ai
	str	x0, [x19]
Lloh11:
	adrp	x8, _EAI_MEMORY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EAI_MEMORY@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w0, w8, wzr, eq
LBB0_23:
	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
LBB0_24:
	cbz	x20, LBB0_27
; %bb.25:
	ldr	w8, [x20, #8]
Lloh14:
	adrp	x9, _AI_NUMERICHOST@GOTPAGE
Lloh15:
	ldr	x9, [x9, _AI_NUMERICHOST@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_27
; %bb.26:
Lloh17:
	adrp	x8, _EAI_NONAME@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EAI_NONAME@GOTPAGEOFF]
	b	LBB0_8
LBB0_27:
	mov	x0, x22
	bl	_gethostbyname
	cbz	x0, LBB0_35
; %bb.28:
	mov	x22, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_35
; %bb.29:
	ldr	x8, [x8]
	cbz	x8, LBB0_35
; %bb.30:
	ldr	x8, [x22]
	ldr	x8, [x8]
	cbz	x8, LBB0_35
; %bb.31:
	str	xzr, [x19]
	ldr	x8, [x22]
	ldr	x9, [x8]
	cbz	x9, LBB0_36
; %bb.32:
	mov	x24, #0
	mov	w23, #8
LBB0_33:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x9]
	mov	x0, x21
	mov	x2, x20
	bl	_malloc_ai
	cbz	x0, LBB0_37
; %bb.34:                               ;   in Loop: Header=BB0_33 Depth=1
	mov	x8, x0
	mov	w0, #0
	add	x9, x24, #16
	cmp	x24, #0
	csel	x9, x19, x9, eq
	str	x8, [x9]
	ldr	x9, [x22]
	ldr	x9, [x9, x23]
	add	x23, x23, #8
	mov	x24, x8
	cbnz	x9, LBB0_33
	b	LBB0_23
LBB0_35:
Lloh19:
	adrp	x8, _EAI_NODATA@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EAI_NODATA@GOTPAGEOFF]
	b	LBB0_8
LBB0_36:
	mov	w0, #0
	b	LBB0_23
LBB0_37:
	ldr	x0, [x19]
	cbz	x0, LBB0_39
; %bb.38:
	bl	_freeaddrinfo
LBB0_39:
Lloh21:
	adrp	x8, _EAI_MEMORY@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EAI_MEMORY@GOTPAGEOFF]
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_UNSPEC,8,3                  ; @AF_UNSPEC
	.comm	_AF_INET,8,3                    ; @AF_INET
	.comm	_EAI_FAMILY,4,2                 ; @EAI_FAMILY
	.comm	_AI_PASSIVE,4,2                 ; @AI_PASSIVE
	.comm	_EAI_MEMORY,4,2                 ; @EAI_MEMORY
	.comm	_AI_NUMERICHOST,4,2             ; @AI_NUMERICHOST
	.comm	_EAI_NONAME,4,2                 ; @EAI_NONAME
	.comm	_EAI_NODATA,4,2                 ; @EAI_NODATA
.subsections_via_symbols
