	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %r14
	callq	_gethostbyname
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %rbx
	movq	(%rax), %rax
	cmpq	(%r12), %rax
	jne	LBB0_11
## %bb.2:
	movq	_AF_INET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.3:
	movl	$48, %edi
	callq	_malloc
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_11
## %bb.4:
	movl	40(%r12), %ecx
	movl	%ecx, 40(%rax)
	movq	(%r12), %rcx
	movq	%rcx, (%rax)
	movl	36(%r12), %ecx
	movl	%ecx, 36(%rax)
	movl	32(%r12), %ecx
	movl	%ecx, 32(%rax)
	movq	$0, 24(%rax)
	movl	$24, %edi
	callq	_malloc
	movq	(%r15), %rcx
	movq	%rax, 16(%rcx)
	movq	(%r15), %rdi
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:
	movl	$24, 8(%rdi)
	movq	16(%rdi), %r13
	movq	(%r12), %rax
	movq	%rax, (%r13)
	movl	$24, 8(%r13)
	leaq	16(%r13), %rdi
	movl	8(%rbx), %esi
	movl	$4, %edx
	callq	_memcpy
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_getservbyname
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	movl	(%rax), %eax
	movl	%eax, 12(%r13)
	jmp	LBB0_13
LBB0_7:
	movq	_h_errno@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_9:
	movq	(%r15), %rdi
LBB0_10:
	callq	_freeaddrinfo
LBB0_11:
	movq	_HOST_NOT_FOUND@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_h_errno,4,2                    ## @h_errno
	.comm	_HOST_NOT_FOUND,4,2             ## @HOST_NOT_FOUND
	.comm	_AF_INET,8,3                    ## @AF_INET
.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:
	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
	mov	x19, x3
	mov	x21, x2
	mov	x20, x1
	bl	_gethostbyname
	cbz	x0, LBB0_7
; %bb.1:
	mov	x22, x0
	ldr	x8, [x0]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.2:
Lloh0:
	adrp	x9, _AF_INET@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AF_INET@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.3:
	mov	w0, #48
	bl	_malloc
	str	x0, [x19]
	cbz	x0, LBB0_10
; %bb.4:
	ldr	w8, [x21, #40]
	str	w8, [x0, #40]
	ldr	x8, [x21]
	str	x8, [x0]
	ldr	d0, [x21, #32]
	str	d0, [x0, #32]
	str	xzr, [x0, #24]
	mov	w24, #24
	mov	w0, #24
	bl	_malloc
	mov	x8, x0
	ldr	x9, [x19]
	str	x0, [x9, #16]
	ldr	x0, [x19]
	cbz	x8, LBB0_9
; %bb.5:
	str	w24, [x0, #8]
	ldr	x23, [x0, #16]
	ldr	x8, [x21]
	str	x8, [x23]
	str	w24, [x23, #8]
	add	x0, x23, #16
	ldr	w1, [x22, #8]
	mov	w2, #4
	bl	_memcpy
	mov	x0, x20
	mov	x1, #0
	bl	_getservbyname
	cbz	x0, LBB0_8
; %bb.6:
	mov	x8, x0
	mov	w0, #0
	ldr	w8, [x8]
	str	w8, [x23, #12]
	b	LBB0_12
LBB0_7:
Lloh3:
	adrp	x8, _h_errno@GOTPAGE
Lloh4:
	ldr	x8, [x8, _h_errno@GOTPAGEOFF]
	b	LBB0_11
LBB0_8:
	ldr	x0, [x19]
LBB0_9:
	bl	_freeaddrinfo
LBB0_10:
Lloh5:
	adrp	x8, _HOST_NOT_FOUND@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HOST_NOT_FOUND@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
LBB0_12:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_h_errno,4,2                    ; @h_errno
	.comm	_HOST_NOT_FOUND,4,2             ; @HOST_NOT_FOUND
	.comm	_AF_INET,8,3                    ; @AF_INET
.subsections_via_symbols
