	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_as_lookup                      ## -- Begin function as_lookup
	.p2align	4, 0x90
_as_lookup:                             ## @as_lookup
	.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	$1048, %rsp                     ## imm = 0x418
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rax
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -48(%rbp)
	movl	$0, -1080(%rbp)
	movl	$0, -1076(%rbp)
	movq	_AF_INET6@GOTPCREL(%rip), %rcx
	cmpq	%rdx, (%rcx)
	movl	$128, %edx
	movl	$32, %ecx
	cmovel	%edx, %ecx
	movq	8(%rdi), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	movq	8(%r12), %rdi
	callq	_fflush
	movq	8(%r12), %rdx
	leaq	-1072(%rbp), %rdi
	movl	$1024, %esi                     ## imm = 0x400
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	movb	$1, %dl
	leaq	-1072(%rbp), %rbx
	leaq	-1076(%rbp), %r13
	leaq	L_.str.2(%rip), %r14
	xorl	%ecx, %ecx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdx
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_sscanf
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r12), %rdx
	movq	%rbx, %rdi
	movl	$1024, %esi                     ## imm = 0x400
	callq	_fgets
	movl	$65, %ecx
	xorl	%edx, %edx
	testq	%rax, %rax
	je	LBB0_11
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movb	$0, -49(%rbp)
	movsbl	-1072(%rbp), %eax
	testb	$1, %dl
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %ecx
	cmpb	$65, %al
	je	LBB0_4
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	-1076(%rbp), %r15d
	testl	%r15d, %r15d
	cmovel	%eax, %ecx
	cmpl	$65, %ecx
	jne	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_strlen
	subl	%eax, %r15d
	movl	%r15d, -1076(%rbp)
	cmpl	$0, -1080(%rbp)
	jne	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$7, %edx
	callq	_strncasecmp
	testq	%rax, %rax
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	-1065(%rbp), %rdi
	leaq	L_.str.3(%rip), %rsi
	leaq	-1080(%rbp), %rdx
	jmp	LBB0_9
LBB0_11:
	movl	-1080(%rbp), %ebx
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	movl	%ebx, %eax
	addq	$1048, %rsp                     ## imm = 0x418
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_INET6,8,3                   ## @AF_INET6
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"!r%s/%d,l\n"

L_.str.1:                               ## @.str.1
	.asciz	"A%d\n"

L_.str.2:                               ## @.str.2
	.asciz	"origin:"

L_.str.3:                               ## @.str.3
	.asciz	" AS%u"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_as_lookup                      ; -- Begin function as_lookup
	.p2align	2
_as_lookup:                             ; @as_lookup
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #1056
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	str	xzr, [sp, #16]
Lloh3:
	adrp	x8, _AF_INET6@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AF_INET6@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x0, [x0, #8]
	mov	w9, #32
	mov	w10, #128
	cmp	x8, x2
	csel	x8, x10, x9, eq
	stp	x1, x8, [sp]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	ldr	x0, [x19, #8]
	bl	_fflush
	ldr	x2, [x19, #8]
	add	x20, sp, #24
	add	x0, sp, #24
	mov	w1, #1024
	bl	_fgets
	cbz	x0, LBB0_12
; %bb.1:
	mov	w8, #0
	add	x20, x20, #7
	mov	w9, #1
Lloh8:
	adrp	x21, l_.str.1@PAGE
Lloh9:
	add	x21, x21, l_.str.1@PAGEOFF
	add	x24, sp, #16
Lloh10:
	adrp	x22, l_.str.2@PAGE
Lloh11:
	add	x22, x22, l_.str.2@PAGEOFF
	add	x25, sp, #20
Lloh12:
	adrp	x23, l_.str.3@PAGE
Lloh13:
	add	x23, x23, l_.str.3@PAGEOFF
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	x24, [sp]
	add	x0, sp, #24
	mov	x1, x21
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	bl	_sscanf
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x2, [x19, #8]
	add	x0, sp, #24
	mov	w1, #1024
	bl	_fgets
	mov	w9, #0
	mov	w8, #65
	cbz	x0, LBB0_11
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	strb	wzr, [sp, #1047]
	ldrsb	w10, [sp, #24]
	tbz	w9, #0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x8, x10
	cmp	w10, #65
	b.eq	LBB0_2
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w26, [sp, #16]
	cmp	w26, #0
	csel	w8, w10, w8, eq
	cmp	w8, #65
	b.ne	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #24
	bl	_strlen
	sub	w8, w26, w0
	str	w8, [sp, #16]
	ldr	w8, [sp, #20]
	cbnz	w8, LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #24
	mov	x1, x22
	mov	w2, #7
	bl	_strncasecmp
	cbnz	x0, LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	str	x25, [sp]
	mov	x0, x20
	mov	x1, x23
	b	LBB0_3
LBB0_11:
	ldr	w0, [sp, #20]
LBB0_12:
	ldur	x8, [x29, #-88]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	add	sp, sp, #1056
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_INET6,8,3                   ; @AF_INET6
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"!r%s/%d,l\n"

l_.str.1:                               ; @.str.1
	.asciz	"A%d\n"

l_.str.2:                               ; @.str.2
	.asciz	"origin:"

l_.str.3:                               ; @.str.3
	.asciz	" AS%u"

.subsections_via_symbols
