	.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, %r12
	movq	%rdi, %r13
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.1:
	movq	%rsi, %rbx
	leaq	-64(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$10, %edx
	callq	_strtol
	leaq	-1(%rax), %rcx
	cmpq	$65534, %rcx                    ## imm = 0xFFFE
	ja	LBB0_3
## %bb.2:
	movq	-64(%rbp), %rcx
	cmpb	$0, (%rcx)
	je	LBB0_12
LBB0_3:
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_getservbyname
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	(%rax), %r15
	testq	%r12, %r12
	jne	LBB0_7
	jmp	LBB0_13
LBB0_5:
	xorl	%r15d, %r15d
LBB0_6:
	testq	%r12, %r12
	je	LBB0_13
LBB0_7:
	movq	_AI_PASSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_13
## %bb.8:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_htonl
	movl	%eax, %r14d
	testq	%r13, %r13
	je	LBB0_11
## %bb.9:
	leaq	-48(%rbp), %rsi
	movq	%r13, %rdi
	callq	_inet_aton
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movl	-48(%rbp), %r14d
LBB0_11:
	movq	%r15, %rdi
	movl	%r14d, %esi
	movq	%r12, %rdx
	callq	_malloc_ai
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_18
	jmp	LBB0_20
LBB0_12:
	movq	%rax, %rdi
	callq	_htons
	movq	%rax, %r15
	testq	%r12, %r12
	jne	LBB0_7
LBB0_13:
	testq	%r13, %r13
	je	LBB0_16
## %bb.14:
	leaq	-48(%rbp), %rsi
	movq	%r13, %rdi
	callq	_inet_aton
	testq	%rax, %rax
	je	LBB0_21
## %bb.15:
	movl	-48(%rbp), %esi
	movq	%r15, %rdi
	jmp	LBB0_17
LBB0_16:
	movl	$2130706433, %edi               ## imm = 0x7F000001
	callq	_htonl
	movq	%r15, %rdi
	movl	%eax, %esi
LBB0_17:
	movq	%r12, %rdx
	callq	_malloc_ai
	movq	%rax, (%r14)
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jne	LBB0_20
LBB0_18:
	movq	_EAI_MEMORY@GOTPCREL(%rip), %rax
LBB0_19:
	movl	(%rax), %ebx
LBB0_20:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	testq	%r12, %r12
	je	LBB0_24
## %bb.22:
	movq	_AI_NUMERICHOST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_24
## %bb.23:
	movq	_EAI_NONAME@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_24:
	movq	%r13, %rdi
	callq	_gethostbyname
	testq	%rax, %rax
	je	LBB0_32
## %bb.25:
	movq	%rax, %rdx
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_32
## %bb.26:
	cmpq	$0, (%rax)
	je	LBB0_32
## %bb.27:
	movq	(%rdx), %rax
	cmpq	$0, (%rax)
	je	LBB0_32
## %bb.28:
	movq	$0, (%r14)
	movq	(%rdx), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_33
## %bb.29:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	$8, %r14d
	xorl	%r13d, %r13d
LBB0_30:                                ## =>This Inner Loop Header: Depth=1
	movq	%rdx, %rbx
	movl	(%rcx), %esi
	movq	%r15, %rdi
	movq	%r12, %rdx
	callq	_malloc_ai
	testq	%rax, %rax
	je	LBB0_34
## %bb.31:                              ##   in Loop: Header=BB0_30 Depth=1
	leaq	8(%r13), %rcx
	testq	%r13, %r13
	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, %r13
	testq	%rcx, %rcx
	jne	LBB0_30
	jmp	LBB0_20
LBB0_32:
	movq	_EAI_NODATA@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_33:
	xorl	%ebx, %ebx
	jmp	LBB0_20
LBB0_34:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.35:
	callq	_freeaddrinfo
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.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	x1, LBB0_6
; %bb.1:
	mov	x1, sp
	mov	x0, x21
	mov	w2, #10
	bl	_strtol
	sub	x8, x0, #1
	mov	w9, #65534
	cmp	x8, x9
	b.hi	LBB0_3
; %bb.2:
	ldr	x8, [sp]
	ldrb	w8, [x8]
	cbz	w8, LBB0_12
LBB0_3:
	mov	x0, x21
	mov	x1, #0
	bl	_getservbyname
	cbz	x0, LBB0_5
; %bb.4:
	ldr	x21, [x0]
	cbnz	x20, LBB0_7
	b	LBB0_13
LBB0_5:
	mov	x21, #0
LBB0_6:
	cbz	x20, LBB0_13
LBB0_7:
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _AI_PASSIVE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AI_PASSIVE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.8:
	mov	w0, #0
	bl	_htonl
	mov	x23, x0
	cbz	x22, LBB0_11
; %bb.9:
	add	x1, sp, #8
	mov	x0, x22
	bl	_inet_aton
	cbz	x0, LBB0_11
; %bb.10:
	ldr	w23, [sp, #8]
LBB0_11:
	mov	x0, x21
	mov	x1, x23
	b	LBB0_18
LBB0_12:
	bl	_htons
	mov	x21, x0
	cbnz	x20, LBB0_7
LBB0_13:
	cbz	x22, LBB0_16
; %bb.14:
	add	x1, sp, #8
	mov	x0, x22
	bl	_inet_aton
	cbz	x0, LBB0_20
; %bb.15:
	ldr	w1, [sp, #8]
	b	LBB0_17
LBB0_16:
	mov	w0, #1
	movk	w0, #32512, lsl #16
	bl	_htonl
	mov	x1, x0
LBB0_17:
	mov	x0, x21
LBB0_18:
	mov	x2, x20
	bl	_malloc_ai
	str	x0, [x19]
Lloh3:
	adrp	x8, _EAI_MEMORY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EAI_MEMORY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w0, w8, wzr, eq
LBB0_19:
	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_20:
	cbz	x20, LBB0_23
; %bb.21:
	ldr	w8, [x20]
Lloh6:
	adrp	x9, _AI_NUMERICHOST@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AI_NUMERICHOST@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_23
; %bb.22:
Lloh9:
	adrp	x8, _EAI_NONAME@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EAI_NONAME@GOTPAGEOFF]
	b	LBB0_32
LBB0_23:
	mov	x0, x22
	bl	_gethostbyname
	cbz	x0, LBB0_31
; %bb.24:
	mov	x22, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_31
; %bb.25:
	ldr	x8, [x8]
	cbz	x8, LBB0_31
; %bb.26:
	ldr	x8, [x22]
	ldr	x8, [x8]
	cbz	x8, LBB0_31
; %bb.27:
	str	xzr, [x19]
	ldr	x8, [x22]
	ldr	x9, [x8]
	cbz	x9, LBB0_33
; %bb.28:
	mov	x24, #0
	mov	w23, #8
LBB0_29:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x9]
	mov	x0, x21
	mov	x2, x20
	bl	_malloc_ai
	cbz	x0, LBB0_34
; %bb.30:                               ;   in Loop: Header=BB0_29 Depth=1
	mov	x8, x0
	mov	w0, #0
	add	x9, x24, #8
	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_29
	b	LBB0_19
LBB0_31:
Lloh11:
	adrp	x8, _EAI_NODATA@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EAI_NODATA@GOTPAGEOFF]
LBB0_32:
	ldr	w0, [x8]
	b	LBB0_19
LBB0_33:
	mov	w0, #0
	b	LBB0_19
LBB0_34:
	ldr	x0, [x19]
	cbz	x0, LBB0_36
; %bb.35:
	bl	_freeaddrinfo
LBB0_36:
Lloh13:
	adrp	x8, _EAI_MEMORY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EAI_MEMORY@GOTPAGEOFF]
	b	LBB0_32
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.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
