	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function networks
_networks:                              ## @networks
	.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	%rsi, %r12
	movl	%edi, %r15d
	xorl	%edi, %edi
	cmpl	$2, %r15d
	setge	%dil
	callq	_assert
	xorl	%edi, %edi
	testq	%r12, %r12
	setne	%dil
	callq	_assert
	movl	$1, %edi
	callq	_setnetent
	movq	_RV_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	cmpl	$2, %r15d
	jne	LBB0_1
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_getnetent
	testq	%rax, %rax
	je	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %rdi
	callq	_networksprint
	jmp	LBB0_5
LBB0_1:
	jle	LBB0_11
## %bb.2:
	movl	%r15d, %r15d
	movl	$2, %ebx
	movq	_INADDR_NONE@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12,%rbx,8), %rdi
	callq	_inet_network
	cmpq	(%r13), %rax
	jne	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r12,%rbx,8), %rdi
	callq	_getnetbyname
	testq	%rax, %rax
	jne	LBB0_9
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_AF_INET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_getnetbyaddr
	testq	%rax, %rax
	je	LBB0_10
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %rdi
	callq	_networksprint
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_3
	jmp	LBB0_11
LBB0_10:
	movq	_RV_NOTFOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_11:
	xorl	%eax, %eax
	callq	_endnetent
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RV_OK,4,2                      ## @RV_OK
	.comm	_INADDR_NONE,8,3                ## @INADDR_NONE
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_RV_NOTFOUND,4,2                ## @RV_NOTFOUND
	.no_dead_strip	_networks
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function networks
_networks:                              ; @networks
	.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	x20, x1
	mov	x21, x0
	cmp	w0, #1
	cset	w0, gt
	bl	_assert
	cmp	x20, #0
	cset	w0, ne
	bl	_assert
	mov	w0, #1
	bl	_setnetent
Lloh0:
	adrp	x8, _RV_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RV_OK@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	cmp	w21, #2
	b.ne	LBB0_3
; %bb.1:
	bl	_getnetent
	cbz	x0, LBB0_10
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	bl	_networksprint
	bl	_getnetent
	cbnz	x0, LBB0_2
	b	LBB0_10
LBB0_3:
	cmp	w21, #3
	b.lt	LBB0_10
; %bb.4:
	mov	w8, w21
	add	x20, x20, #16
	sub	x21, x8, #2
Lloh3:
	adrp	x22, _INADDR_NONE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _INADDR_NONE@GOTPAGEOFF]
Lloh5:
	adrp	x23, _AF_INET@GOTPAGE
Lloh6:
	ldr	x23, [x23, _AF_INET@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20]
	bl	_inet_network
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x20]
	bl	_getnetbyname
	cbnz	x0, LBB0_8
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x23]
	bl	_getnetbyaddr
	cbz	x0, LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	bl	_networksprint
	add	x20, x20, #8
	subs	x21, x21, #1
	b.ne	LBB0_5
	b	LBB0_10
LBB0_9:
Lloh7:
	adrp	x8, _RV_NOTFOUND@GOTPAGE
Lloh8:
	ldr	x8, [x8, _RV_NOTFOUND@GOTPAGEOFF]
Lloh9:
	ldr	w19, [x8]
LBB0_10:
	bl	_endnetent
	mov	x0, x19
	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	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_RV_OK,4,2                      ; @RV_OK
	.comm	_INADDR_NONE,8,3                ; @INADDR_NONE
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_RV_NOTFOUND,4,2                ; @RV_NOTFOUND
	.no_dead_strip	_networks
.subsections_via_symbols
