	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_protos
_init_protos:                           ## @init_protos
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%edi, %ebx
	testl	%edi, %edi
	jg	LBB0_4
## %bb.1:
	movl	$-1, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_getprotoent
	incl	%ebx
	testq	%rax, %rax
	jne	LBB0_2
## %bb.3:
	xorl	%eax, %eax
	callq	_endprotoent
LBB0_4:
	leal	(,%rbx,4), %edi
	callq	_malloc
	movq	_protos@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_6:
	movq	_numprotos@GOTPCREL(%rip), %rax
	movl	%ebx, (%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_protos,8,3                     ## @protos
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"malloc"

	.comm	_numprotos,4,2                  ## @numprotos
	.no_dead_strip	_init_protos
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_protos
_init_protos:                           ; @init_protos
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	cmp	w0, #0
	b.gt	LBB0_4
; %bb.1:
	mov	w19, #-1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	bl	_getprotoent
	add	w19, w19, #1
	cbnz	x0, LBB0_2
; %bb.3:
	bl	_endprotoent
LBB0_4:
	lsl	w0, w19, #2
	bl	_malloc
Lloh0:
	adrp	x8, _protos@GOTPAGE
Lloh1:
	ldr	x8, [x8, _protos@GOTPAGEOFF]
Lloh2:
	str	x0, [x8]
	cbnz	x0, LBB0_6
; %bb.5:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_6:
Lloh5:
	adrp	x8, _numprotos@GOTPAGE
Lloh6:
	ldr	x8, [x8, _numprotos@GOTPAGEOFF]
Lloh7:
	str	w19, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_protos,8,3                     ; @protos
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"malloc"

	.comm	_numprotos,4,2                  ; @numprotos
	.no_dead_strip	_init_protos
.subsections_via_symbols
