	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_servarray
_init_servarray:                        ## @init_servarray
	.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	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%eax, %eax
	callq	_getservent
	testq	%rax, %rax
	je	LBB0_13
## %bb.1:
	movq	%rax, %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%r12d, (%r14)
	movq	%r13, %rdi
	callq	_newhnamemem
	movq	%rax, 8(%r14)
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_getservent
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_13
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movl	12(%r15), %edi
	callq	_ntohs
	movl	%eax, %r12d
	movq	_HASHNAMESIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rbx
	movl	8(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	movq	_tporttable@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	movq	_uporttable@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	jne	LBB0_12
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	decq	%rbx
	movslq	%r12d, %rax
	andq	%rbx, %rax
	movq	(%rcx), %rcx
	leaq	(%rax,%rax,2), %rax
	leaq	(%rcx,%rax,8), %r14
	cmpq	$0, 16(%rcx,%rax,8)
	je	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%r14), %r14
	cmpq	$0, 16(%r14)
	jne	LBB0_5
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 8(%r13)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	-59(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$11, %esi
	leaq	L_.str.2(%rip), %rdx
	movl	%r12d, %ecx
	callq	_snprintf
	movq	%rbx, %rdi
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r15), %rdi
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	callq	_strdup
	movq	%rax, 16(%r14)
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	*(%r13)
	jmp	LBB0_11
LBB0_13:
	xorl	%eax, %eax
	callq	_endservent
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_HASHNAMESIZE,4,2               ## @HASHNAMESIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tcp"

	.comm	_tporttable,8,3                 ## @tporttable
L_.str.1:                               ## @.str.1
	.asciz	"udp"

	.comm	_uporttable,8,3                 ## @uporttable
L_.str.2:                               ## @.str.2
	.asciz	"%d"

L_.str.3:                               ## @.str.3
	.asciz	"init_servarray: strdup"

	.no_dead_strip	_init_servarray
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_servarray
_init_servarray:                        ; @init_servarray
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	bl	_getservent
	cbz	x0, LBB0_15
; %bb.1:
	mov	x25, x0
Lloh3:
	adrp	x26, _HASHNAMESIZE@GOTPAGE
Lloh4:
	ldr	x26, [x26, _HASHNAMESIZE@GOTPAGEOFF]
Lloh5:
	adrp	x20, l_.str@PAGE
Lloh6:
	add	x20, x20, l_.str@PAGEOFF
Lloh7:
	adrp	x27, _tporttable@GOTPAGE
Lloh8:
	ldr	x27, [x27, _tporttable@GOTPAGEOFF]
	mov	w28, #24
Lloh9:
	adrp	x22, l_.str.2@PAGE
Lloh10:
	add	x22, x22, l_.str.2@PAGEOFF
Lloh11:
	adrp	x23, l_.str.1@PAGE
Lloh12:
	add	x23, x23, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	w24, [x21]
	mov	x0, x19
	bl	_newhnamemem
	str	x0, [x21, #8]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_getservent
	mov	x25, x0
	cbz	x0, LBB0_15
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	ldr	w0, [x25, #12]
	bl	_ntohs
	mov	x24, x0
	ldr	w21, [x26]
	ldr	w0, [x25, #8]
	mov	x1, x20
	bl	_strcmp
	cbz	x0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x25, #8]
	mov	x1, x23
	bl	_strcmp
	cbnz	x0, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh13:
	adrp	x8, _uporttable@GOTPAGE
Lloh14:
	ldr	x8, [x8, _uporttable@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x8, x27
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	w9, w21, #1
	and	w9, w9, w24
	ldr	x8, [x8]
	smaddl	x21, w9, w28, x8
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_10
LBB0_9:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x21, [x21, #8]
	ldr	x8, [x21, #16]
	cbnz	x8, LBB0_9
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #13
	mov	w1, #11
	mov	x2, x22
	mov	x3, x24
	bl	_snprintf
	add	x0, sp, #13
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x25]
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_strdup
	str	x0, [x21, #16]
	cbnz	x0, LBB0_2
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19]
	mov	x0, x19
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	blr	x8
	b	LBB0_2
LBB0_15:
	bl	_endservent
	ldr	x8, [sp, #24]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.16:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_HASHNAMESIZE,4,2               ; @HASHNAMESIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tcp"

	.comm	_tporttable,8,3                 ; @tporttable
l_.str.1:                               ; @.str.1
	.asciz	"udp"

	.comm	_uporttable,8,3                 ; @uporttable
l_.str.2:                               ; @.str.2
	.asciz	"%d"

l_.str.3:                               ; @.str.3
	.asciz	"init_servarray: strdup"

	.no_dead_strip	_init_servarray
.subsections_via_symbols
