	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function getnetnum
_getnetnum:                             ## @getnetnum
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	_AF_UNSPEC@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%rsi, %rdi
	callq	_AF
	movl	$1, %r15d
	cmpq	%rax, %rbx
	je	LBB0_3
## %bb.1:
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%r12, %rdi
	callq	_AF
	cmpq	%rax, %rbx
	je	LBB0_3
## %bb.2:
	movq	_AF_INET6@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%r12, %rdi
	callq	_AF
	xorl	%r15d, %r15d
	cmpq	%rax, %rbx
	sete	%r15b
LBB0_3:
	movl	%r15d, %edi
	callq	_REQUIRE
	movq	%r12, %rdi
	callq	_AF
	movq	%r14, %rdi
	movq	%rax, %rsi
	movq	%r12, %rdx
	callq	_is_ip_address
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movq	%r12, %rdi
	callq	_IS_IPV6
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_ipv6_works@GOTPCREL(%rip), %rcx
	movl	$-1, %eax
	cmpl	$0, (%rcx)
	je	LBB0_8
LBB0_7:
	movq	_NTP_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_SET_PORT
	movq	%r12, %rdi
	callq	_stoa
	movslq	%eax, %rsi
	movl	$2, %edi
	callq	_DPRINTF
	movl	$1, %eax
	jmp	LBB0_8
LBB0_4:
	xorl	%eax, %eax
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_UNSPEC,8,3                  ## @AF_UNSPEC
	.comm	_AF_INET,8,3                    ## @AF_INET
	.comm	_AF_INET6,8,3                   ## @AF_INET6
	.comm	_ipv6_works,4,2                 ## @ipv6_works
	.comm	_NTP_PORT,4,2                   ## @NTP_PORT
	.no_dead_strip	_getnetnum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function getnetnum
_getnetnum:                             ; @getnetnum
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _AF_UNSPEC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AF_UNSPEC@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
	mov	x0, x1
	bl	_AF
	cmp	x21, x0
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _AF_INET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh5:
	ldr	x21, [x8]
	mov	x0, x19
	bl	_AF
	cmp	x21, x0
	b.ne	LBB0_3
LBB0_2:
	mov	w0, #1
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x8, _AF_INET6@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AF_INET6@GOTPAGEOFF]
Lloh8:
	ldr	x21, [x8]
	mov	x0, x19
	bl	_AF
	cmp	x21, x0
	cset	w0, eq
LBB0_4:
	bl	_REQUIRE
	mov	x0, x19
	bl	_AF
	mov	x1, x0
	mov	x0, x20
	mov	x2, x19
	bl	_is_ip_address
	cbz	w0, LBB0_9
; %bb.5:
	mov	x0, x19
	bl	_IS_IPV6
	cbz	x0, LBB0_8
; %bb.6:
Lloh9:
	adrp	x8, _ipv6_works@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ipv6_works@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cbnz	w8, LBB0_8
; %bb.7:
	mov	w0, #-1
	b	LBB0_9
LBB0_8:
Lloh12:
	adrp	x8, _NTP_PORT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _NTP_PORT@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_SET_PORT
	mov	x0, x19
	bl	_stoa
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x1, w0
	mov	w0, #2
	bl	_DPRINTF
	mov	w0, #1
LBB0_9:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_UNSPEC,8,3                  ; @AF_UNSPEC
	.comm	_AF_INET,8,3                    ; @AF_INET
	.comm	_AF_INET6,8,3                   ; @AF_INET6
	.comm	_ipv6_works,4,2                 ; @ipv6_works
	.comm	_NTP_PORT,4,2                   ; @NTP_PORT
	.no_dead_strip	_getnetnum
.subsections_via_symbols
