	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_decodenetnum                   ## -- Begin function decodenetnum
	.p2align	4, 0x90
_decodenetnum:                          ## @decodenetnum
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	$0, -144(%rbp)
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	callq	_REQUIRE
	movq	%rbx, %rdi
	callq	_strlen
	xorl	%r15d, %r15d
	cmpl	$79, %eax
	ja	LBB0_20
## %bb.1:
	cmpb	$91, (%rbx)
	jne	LBB0_6
## %bb.2:
	leaq	-128(%rbp), %rcx
	addq	$3, %rbx
	movq	%rbx, %rax
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	-2(%rax), %edx
	testb	%dl, %dl
	je	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpb	$93, %dl
	je	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movb	%dl, (%rcx)
	incq	%rcx
	incq	%rax
	jmp	LBB0_3
LBB0_6:
	movq	%rbx, %rdi
	movl	$58, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	incq	%rax
	movq	%rax, %rdi
	movl	$58, %esi
	callq	_strchr
	testq	%rax, %rax
	jne	LBB0_7
## %bb.9:
	leaq	-128(%rbp), %r13
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	$80, %edx
	callq	_strlcpy
	movq	%r13, %rdi
	movl	$58, %esi
	callq	_strchr
	movq	%rax, %r12
	movb	$0, (%rax)
	incq	%r12
	movq	-160(%rbp), %rdi
	movl	-152(%rbp), %esi
	movq	%r13, %rbx
	jmp	LBB0_14
LBB0_10:
	leaq	-128(%rbp), %rbx
	movb	$0, (%rcx)
	cmpb	$93, %dl
	jne	LBB0_7
## %bb.11:
	cmpb	$58, -1(%rax)
	jne	LBB0_7
## %bb.12:
	xorl	%r12d, %r12d
	cmpb	$0, (%rax)
	cmovneq	%rax, %r12
	jmp	LBB0_13
LBB0_7:
	xorl	%r12d, %r12d
LBB0_13:
                                        ## implicit-def: $esi
                                        ## implicit-def: $rdi
LBB0_14:
	callq	_ZERO
	movq	_Z_AI_NUMERICHOST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -152(%rbp)
	leaq	L_.str(%rip), %rsi
	leaq	-160(%rbp), %rdx
	leaq	-144(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_getaddrinfo
	testl	%eax, %eax
	jne	LBB0_20
## %bb.15:
	movq	-144(%rbp), %rax
	xorl	%edi, %edi
	cmpl	$13, (%rax)
	setb	%dil
	callq	_INSIST
	movq	(%r14), %rdi
	movl	8(%r14), %esi
	callq	_ZERO
	movq	-144(%rbp), %rax
	movl	(%rax), %edx
	movl	4(%rax), %esi
	movq	%r14, %rdi
	callq	_memcpy
	movq	-144(%rbp), %rdi
	callq	_freeaddrinfo
	testq	%r12, %r12
	je	LBB0_18
## %bb.16:
	leaq	L_.str.1(%rip), %rsi
	leaq	-132(%rbp), %rdx
	movq	%r12, %rdi
	callq	_sscanf
	cmpl	$1, %eax
	jne	LBB0_18
## %bb.17:
	movl	-132(%rbp), %esi
	jmp	LBB0_19
LBB0_18:
	movq	_NTP_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%esi, -132(%rbp)
LBB0_19:
	movq	%r14, %rdi
	callq	_SET_PORT
	movl	$1, %r15d
LBB0_20:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_22
## %bb.21:
	movl	%r15d, %eax
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_Z_AI_NUMERICHOST,4,2           ## @Z_AI_NUMERICHOST
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ntp"

L_.str.1:                               ## @.str.1
	.asciz	"%hu"

	.comm	_NTP_PORT,4,2                   ## @NTP_PORT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_decodenetnum                   ; -- Begin function decodenetnum
	.p2align	2
_decodenetnum:                          ; @decodenetnum
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	str	xzr, [sp, #16]
	cmp	x0, #0
	cset	w0, ne
	bl	_REQUIRE
	mov	x0, x20
	bl	_strlen
	cmp	w0, #79
	b.hi	LBB0_14
; %bb.1:
	ldrb	w8, [x20]
	cmp	w8, #91
	b.ne	LBB0_8
; %bb.2:
	add	x9, sp, #40
	add	x8, x20, #3
	ldurb	w10, [x8, #-2]
	cbz	w10, LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w10, #93
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	strb	w10, [x9], #1
	add	x8, x8, #1
	ldurb	w10, [x8, #-2]
	cbnz	w10, LBB0_3
LBB0_5:
	strb	wzr, [x9]
	cmp	w10, #93
	b.ne	LBB0_11
; %bb.6:
	ldurb	w9, [x8, #-1]
	cmp	w9, #58
	b.ne	LBB0_11
; %bb.7:
	mov	x1, #0
	add	x20, sp, #40
	ldrb	w9, [x8]
	cmp	w9, #0
	csel	x21, xzr, x8, eq
	b	LBB0_12
LBB0_8:
	mov	x0, x20
	mov	w1, #58
	bl	_strchr
	cbz	x0, LBB0_10
; %bb.9:
	add	x0, x0, #1
	mov	w1, #58
	bl	_strchr
	cbz	x0, LBB0_22
LBB0_10:
	mov	x1, #0
	mov	x21, #0
	b	LBB0_12
LBB0_11:
	mov	x1, #0
	mov	x21, #0
	add	x20, sp, #40
LBB0_12:
                                        ; implicit-def: $x0
LBB0_13:
	bl	_ZERO
Lloh3:
	adrp	x8, _Z_AI_NUMERICHOST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _Z_AI_NUMERICHOST@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #32]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #24
	add	x3, sp, #16
	mov	x0, x20
	bl	_getaddrinfo
	cbz	w0, LBB0_17
LBB0_14:
	mov	w0, #0
LBB0_15:
	ldur	x8, [x29, #-40]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.16:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_17:
	ldr	x8, [sp, #16]
	ldr	w8, [x8]
	cmp	w8, #13
	cset	w0, lo
	bl	_INSIST
	ldr	x0, [x19]
	ldr	w1, [x19, #8]
	bl	_ZERO
	ldr	x8, [sp, #16]
	ldp	w2, w1, [x8]
	mov	x0, x19
	bl	_memcpy
	ldr	x0, [sp, #16]
	bl	_freeaddrinfo
	cbz	x21, LBB0_20
; %bb.18:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #12
	mov	x0, x21
	bl	_sscanf
	cmp	w0, #1
	b.ne	LBB0_20
; %bb.19:
	ldr	w1, [sp, #12]
	b	LBB0_21
LBB0_20:
Lloh13:
	adrp	x8, _NTP_PORT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _NTP_PORT@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	str	w1, [sp, #12]
LBB0_21:
	mov	x0, x19
	bl	_SET_PORT
	mov	w0, #1
	b	LBB0_15
LBB0_22:
	add	x0, sp, #40
	mov	x1, x20
	mov	w2, #80
	bl	_strlcpy
	add	x0, sp, #40
	mov	w1, #58
	bl	_strchr
	mov	x21, x0
	strb	wzr, [x21], #1
	ldr	x0, [sp, #24]
	ldr	w1, [sp, #32]
	add	x20, sp, #40
	b	LBB0_13
LBB0_23:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_Z_AI_NUMERICHOST,4,2           ; @Z_AI_NUMERICHOST
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ntp"

l_.str.1:                               ; @.str.1
	.asciz	"%hu"

	.comm	_NTP_PORT,4,2                   ; @NTP_PORT
.subsections_via_symbols
