	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_netof                          ## -- Begin function netof
	.p2align	4, 0x90
_netof:                                 ## @netof
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movslq	_netof.next_netofbuf(%rip), %rax
	leaq	_netof.netofbuf(%rip), %rdi
	leaq	(%rdi,%rax,4), %r14
	leal	1(%rax), %ebx
	callq	_COUNTOF
	movl	%eax, %ecx
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	movl	%edx, _netof.next_netofbuf(%rip)
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	%r14, %rdi
	callq	_IS_IPV4
	movq	%r14, %rdi
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	callq	_SRCADR
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_IN_CLASSC
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_IN_CLASSC_NET@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_7:
	callq	_IS_IPV6
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	callq	_NSRCADR6
	leaq	32(%rax), %rdi
	movl	$8, %esi
	callq	_zero_mem
	jmp	LBB0_9
LBB0_3:
	movl	%ebx, %edi
	callq	_IN_CLASSB
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	_IN_CLASSB_NET@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	andl	%eax, %ebx
LBB0_6:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_SET_ADDR4
LBB0_9:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_netof.netofbuf,32,4 ## @netof.netofbuf
.zerofill __DATA,__bss,_netof.next_netofbuf,4,2 ## @netof.next_netofbuf
	.comm	_IN_CLASSC_NET,4,2              ## @IN_CLASSC_NET
	.comm	_IN_CLASSB_NET,4,2              ## @IN_CLASSB_NET
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_netof                          ; -- Begin function netof
	.p2align	2
_netof:                                 ; @netof
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x0
	adrp	x21, _netof.next_netofbuf@PAGE
	ldrsw	x8, [x21, _netof.next_netofbuf@PAGEOFF]
Lloh0:
	adrp	x0, _netof.netofbuf@PAGE
Lloh1:
	add	x0, x0, _netof.netofbuf@PAGEOFF
	add	x19, x0, x8, lsl #2
	add	w22, w8, #1
	bl	_COUNTOF
	sdiv	w8, w22, w0
	msub	w8, w8, w0, w22
	str	w8, [x21, _netof.next_netofbuf@PAGEOFF]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #4
	bl	_memcpy
	mov	x0, x19
	bl	_IS_IPV4
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_SRCADR
	mov	x20, x0
	bl	_IN_CLASSC
	cbz	x0, LBB0_5
; %bb.2:
Lloh2:
	adrp	x8, _IN_CLASSC_NET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IN_CLASSC_NET@GOTPAGEOFF]
	b	LBB0_7
LBB0_3:
	mov	x0, x19
	bl	_IS_IPV6
	cbz	x0, LBB0_9
; %bb.4:
	mov	x0, x19
	bl	_NSRCADR6
	add	x0, x0, #32
	mov	w1, #8
	bl	_zero_mem
	b	LBB0_9
LBB0_5:
	mov	x0, x20
	bl	_IN_CLASSB
	cbz	x0, LBB0_8
; %bb.6:
Lloh4:
	adrp	x8, _IN_CLASSB_NET@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IN_CLASSB_NET@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	and	w20, w8, w20
LBB0_8:
	mov	x0, x19
	mov	x1, x20
	bl	_SET_ADDR4
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_netof.netofbuf,32,2 ; @netof.netofbuf
.zerofill __DATA,__bss,_netof.next_netofbuf,4,2 ; @netof.next_netofbuf
	.comm	_IN_CLASSC_NET,4,2              ; @IN_CLASSC_NET
	.comm	_IN_CLASSB_NET,4,2              ; @IN_CLASSB_NET
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
.subsections_via_symbols
