	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rax
	orq	%rsi, %rax
	jne	LBB0_2
## %bb.1:
	movq	_EAI_NONAME@GOTPCREL(%rip), %rax
	jmp	LBB0_44
LBB0_2:
	movq	%rcx, %rbx
	movq	%rdx, %r13
	movq	%rsi, %r12
	movq	%rdi, %r14
	movl	$24, %edi
	movl	$1, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:
	movq	%rax, %r15
	testq	%r13, %r13
	je	LBB0_11
## %bb.4:
	movl	4(%r13), %eax
	movups	(%r13), %xmm0
	movups	%xmm0, (%r15)
	leal	-133(%rax), %ecx
	cmpl	$2, %ecx
	jb	LBB0_19
## %bb.5:
	cmpl	$132, %eax
	je	LBB0_23
## %bb.6:
	cmpl	$131, %eax
	jne	LBB0_26
## %bb.7:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	extractps	$2, %xmm0, %eax
	cmpl	$130, %eax
	je	LBB0_29
## %bb.8:
	cmpl	$128, %eax
	je	LBB0_22
## %bb.9:
	xorl	%ecx, %ecx
	jmp	LBB0_12
LBB0_10:
	movq	_EAI_MEMORY@GOTPCREL(%rip), %rax
LBB0_44:
	movl	(%rax), %ebx
LBB0_45:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	xorl	%ecx, %ecx
	xorl	%eax, %eax
LBB0_12:
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_do_nodename
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_freeaddrinfo
	jmp	LBB0_45
LBB0_14:
	testq	%r12, %r12
	je	LBB0_30
## %bb.15:
	leaq	-72(%rbp), %rsi
	movq	%r12, %rdi
	movl	$10, %edx
	callq	_strtol
	movq	-72(%rbp), %rcx
	cmpb	$0, (%rcx)
	je	LBB0_37
## %bb.16:
	movq	%r12, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_getservbyname
	testq	%rax, %rax
	je	LBB0_40
## %bb.17:
	movq	%rax, %rbx
	movl	(%rax), %r12d
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_31
## %bb.41:
	movl	4(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_32
## %bb.42:
	movl	4(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	jmp	LBB0_32
LBB0_19:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	extractps	$2, %xmm0, %eax
	xorl	%ecx, %ecx
	cmpl	$128, %eax
	jg	LBB0_27
## %bb.20:
	testl	%eax, %eax
	je	LBB0_12
## %bb.21:
	cmpl	$128, %eax
	jne	LBB0_43
LBB0_22:
	leaq	L_.str(%rip), %rcx
	jmp	LBB0_12
LBB0_23:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	extractps	$2, %xmm0, %eax
	xorl	%ecx, %ecx
	testl	%eax, %eax
	je	LBB0_12
## %bb.24:
	cmpl	$128, %eax
	je	LBB0_12
## %bb.25:
	cmpl	$130, %eax
	je	LBB0_12
	jmp	LBB0_43
LBB0_26:
	movq	_EAI_FAMILY@GOTPCREL(%rip), %rax
	jmp	LBB0_44
LBB0_27:
	cmpl	$129, %eax
	je	LBB0_12
## %bb.28:
	cmpl	$130, %eax
	jne	LBB0_43
LBB0_29:
	leaq	L_.str.1(%rip), %rcx
	jmp	LBB0_12
LBB0_30:
	xorl	%r12d, %r12d
LBB0_31:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_32:
	movl	4(%r15), %eax
	cmpl	$133, %eax
	je	LBB0_34
## %bb.33:
	cmpl	$134, %eax
	jne	LBB0_35
LBB0_34:
	movq	16(%r15), %rax
	movw	%r12w, (%rax)
LBB0_35:
	movq	%r15, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_45
LBB0_37:
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_43
## %bb.38:
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	jbe	LBB0_46
LBB0_40:
	movq	_EAI_SERVICE@GOTPCREL(%rip), %rax
	jmp	LBB0_44
LBB0_43:
	movq	_EAI_SOCKTYPE@GOTPCREL(%rip), %rax
	jmp	LBB0_44
LBB0_46:
	movzwl	%ax, %edi
	callq	_htons
	movl	%eax, %r12d
	jmp	LBB0_31
	.cfi_endproc
                                        ## -- End function
	.comm	_EAI_NONAME,4,2                 ## @EAI_NONAME
	.comm	_EAI_MEMORY,4,2                 ## @EAI_MEMORY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tcp"

L_.str.1:                               ## @.str.1
	.asciz	"udp"

	.comm	_EAI_SOCKTYPE,4,2               ## @EAI_SOCKTYPE
	.comm	_EAI_FAMILY,4,2                 ## @EAI_FAMILY
	.comm	_EAI_SERVICE,4,2                ## @EAI_SERVICE
.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, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	orr	x8, x0, x1
	cbnz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EAI_NONAME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EAI_NONAME@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	b	LBB0_38
LBB0_2:
	mov	x19, x3
	mov	x22, x2
	mov	x21, x1
	mov	x23, x0
	mov	w0, #24
	mov	w1, #1
	bl	_calloc
	cbz	x0, LBB0_8
; %bb.3:
	mov	x20, x0
	cbz	x22, LBB0_9
; %bb.4:
	ldp	w9, w8, [x22]
	stp	w9, w8, [x20]
	ldr	d0, [x22, #8]
	str	d0, [x20, #8]
	sub	w9, w8, #133
	cmp	w9, #2
	b.lo	LBB0_18
; %bb.5:
	cmp	w8, #132
	b.eq	LBB0_22
; %bb.6:
	cmp	w8, #131
	b.ne	LBB0_25
; %bb.7:
	fmov	w25, s0
Lloh3:
	adrp	x8, l_.str.1@PAGE
Lloh4:
	add	x8, x8, l_.str.1@PAGEOFF
	cmp	w25, #128
Lloh5:
	adrp	x9, l_.str@PAGE
Lloh6:
	add	x9, x9, l_.str@PAGEOFF
	csel	x9, xzr, x9, ne
	cmp	w25, #130
	csel	x24, x8, x9, eq
	b	LBB0_10
LBB0_8:
Lloh7:
	adrp	x8, _EAI_MEMORY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EAI_MEMORY@GOTPAGEOFF]
Lloh9:
	ldr	w22, [x8]
	b	LBB0_38
LBB0_9:
	mov	x24, #0
	mov	w25, #0
LBB0_10:
	mov	x0, x23
	mov	x1, x20
	mov	x2, x22
	bl	_do_nodename
	cbz	w0, LBB0_12
; %bb.11:
	mov	x22, x0
	mov	x0, x20
	bl	_freeaddrinfo
	b	LBB0_38
LBB0_12:
	cbz	x21, LBB0_34
; %bb.13:
	add	x1, sp, #8
	mov	x0, x21
	mov	w2, #10
	bl	_strtol
	ldr	x8, [sp, #8]
	ldrb	w8, [x8]
	cbz	w8, LBB0_29
; %bb.14:
	mov	x0, x21
	mov	x1, x24
	bl	_getservbyname
	cbz	x0, LBB0_31
; %bb.15:
	mov	x22, x0
	ldr	w21, [x0]
	cbnz	w25, LBB0_34
; %bb.16:
	ldr	w0, [x22, #4]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_34
; %bb.17:
	ldr	w0, [x22, #4]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	b	LBB0_34
LBB0_18:
	mov	x24, #0
	fmov	w25, s0
	cmp	w25, #128
	b.gt	LBB0_26
; %bb.19:
	cbz	w25, LBB0_10
; %bb.20:
	cmp	w25, #128
	b.ne	LBB0_32
; %bb.21:
Lloh14:
	adrp	x24, l_.str@PAGE
Lloh15:
	add	x24, x24, l_.str@PAGEOFF
	b	LBB0_10
LBB0_22:
	mov	x24, #0
	fmov	w25, s0
	cbz	w25, LBB0_10
; %bb.23:
	cmp	w25, #128
	b.eq	LBB0_10
; %bb.24:
	cmp	w25, #130
	b.eq	LBB0_10
	b	LBB0_32
LBB0_25:
Lloh16:
	adrp	x8, _EAI_FAMILY@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EAI_FAMILY@GOTPAGEOFF]
Lloh18:
	ldr	w22, [x8]
	b	LBB0_38
LBB0_26:
	cmp	w25, #129
	b.eq	LBB0_10
; %bb.27:
	cmp	w25, #130
	b.ne	LBB0_32
; %bb.28:
Lloh19:
	adrp	x24, l_.str.1@PAGE
Lloh20:
	add	x24, x24, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_29:
	cbz	w25, LBB0_32
; %bb.30:
	lsr	w8, w0, #16
	cbz	w8, LBB0_33
LBB0_31:
Lloh21:
	adrp	x8, _EAI_SERVICE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EAI_SERVICE@GOTPAGEOFF]
Lloh23:
	ldr	w22, [x8]
	b	LBB0_38
LBB0_32:
Lloh24:
	adrp	x8, _EAI_SOCKTYPE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EAI_SOCKTYPE@GOTPAGEOFF]
Lloh26:
	ldr	w22, [x8]
	b	LBB0_38
LBB0_33:
	and	w0, w0, #0xffff
	bl	_htons
	mov	x21, x0
LBB0_34:
	ldr	w8, [x20, #4]
	cmp	w8, #133
	b.eq	LBB0_36
; %bb.35:
	cmp	w8, #134
	b.ne	LBB0_37
LBB0_36:
	ldr	x8, [x20, #16]
	strh	w21, [x8]
LBB0_37:
	mov	w22, #0
	str	x20, [x19]
LBB0_38:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_EAI_NONAME,4,2                 ; @EAI_NONAME
	.comm	_EAI_MEMORY,4,2                 ; @EAI_MEMORY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tcp"

l_.str.1:                               ; @.str.1
	.asciz	"udp"

	.comm	_EAI_SOCKTYPE,4,2               ; @EAI_SOCKTYPE
	.comm	_EAI_FAMILY,4,2                 ; @EAI_FAMILY
	.comm	_EAI_SERVICE,4,2                ; @EAI_SERVICE
.subsections_via_symbols
