	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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	%rsi, %rdx
	movl	%edi, %esi
	movq	_ntpsnmpdOptions@GOTPCREL(%rip), %rdi
	callq	_optionProcess
	movq	_NOFORK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_HAVE_OPT
	movl	%eax, %r14d
	movq	_SYSLOG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_HAVE_OPT
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_snmp_enable_calllog
	jmp	LBB0_3
LBB0_2:
	xorl	%eax, %eax
	callq	_snmp_enable_stderrlog
LBB0_3:
	movq	_NETSNMP_DS_APPLICATION_ID@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_NETSNMP_DS_AGENT_ROLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	callq	_netsnmp_ds_set_boolean
	testl	%r14d, %r14d
	jne	LBB0_5
## %bb.4:
	xorl	%esi, %esi
	testl	%ebx, %ebx
	sete	%sil
	movl	$1, %edi
	callq	_netsnmp_daemonize
	testq	%rax, %rax
	jne	LBB0_10
LBB0_5:
	movl	(%r15), %r14d
	movq	_NETSNMP_DS_AGENT_X_SOCKET@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_AGENTXSOCKET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_OPT_ARG
	movl	%r14d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_netsnmp_ds_set_string
	leaq	L_.str(%rip), %rdi
	callq	_init_agent
	leaq	L_.str.1(%rip), %rdi
	xorl	%esi, %esi
	callq	_ntpq_openhost
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	xorl	%eax, %eax
	callq	_init_ntpSnmpSubagentObject
	leaq	L_.str(%rip), %rdi
	callq	_init_snmp
	movq	_keep_running@GOTPCREL(%rip), %rbx
	movl	$1, (%rbx)
	movq	_SIGTERM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_stop_server@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_signal
	movq	_SIGINT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %esi
	callq	_signal
	movq	_LOG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_snmp_log
	cmpl	$0, (%rbx)
	je	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %edi
	callq	_agent_check_and_process
	cmpl	$0, (%rbx)
	jne	LBB0_7
LBB0_8:
	xorl	%eax, %eax
	callq	_ntpq_closehost
	leaq	L_.str(%rip), %rdi
	callq	_snmp_shutdown
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_fprintf
LBB0_10:
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_ntpsnmpdOptions,4,2            ## @ntpsnmpdOptions
	.comm	_NOFORK,4,2                     ## @NOFORK
	.comm	_SYSLOG,4,2                     ## @SYSLOG
	.comm	_NETSNMP_DS_APPLICATION_ID,4,2  ## @NETSNMP_DS_APPLICATION_ID
	.comm	_NETSNMP_DS_AGENT_ROLE,4,2      ## @NETSNMP_DS_AGENT_ROLE
	.comm	_SOCK_STARTUP,4,2               ## @SOCK_STARTUP
	.comm	_NETSNMP_DS_AGENT_X_SOCKET,4,2  ## @NETSNMP_DS_AGENT_X_SOCKET
	.comm	_AGENTXSOCKET,4,2               ## @AGENTXSOCKET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ntpsnmpd"

L_.str.1:                               ## @.str.1
	.asciz	"localhost"

	.comm	_stderr,4,2                     ## @stderr
L_.str.2:                               ## @.str.2
	.asciz	"Error: Could not connect to ntpd. Aborting.\n"

	.comm	_keep_running,4,2               ## @keep_running
	.comm	_SIGTERM,4,2                    ## @SIGTERM
	.comm	_stop_server,4,2                ## @stop_server
	.comm	_SIGINT,4,2                     ## @SIGINT
	.comm	_LOG_INFO,4,2                   ## @LOG_INFO
L_.str.3:                               ## @.str.3
	.asciz	"ntpsnmpd started.\n"

	.comm	_SOCK_CLEANUP,4,2               ## @SOCK_CLEANUP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.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	x2, x1
	mov	x1, x0
Lloh0:
	adrp	x0, _ntpsnmpdOptions@GOTPAGE
Lloh1:
	ldr	x0, [x0, _ntpsnmpdOptions@GOTPAGEOFF]
	bl	_optionProcess
Lloh2:
	adrp	x8, _NOFORK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NOFORK@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_HAVE_OPT
	mov	x19, x0
Lloh5:
	adrp	x8, _SYSLOG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SYSLOG@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_HAVE_OPT
	mov	x20, x0
	cbz	w0, LBB0_2
; %bb.1:
	bl	_snmp_enable_calllog
	b	LBB0_3
LBB0_2:
	bl	_snmp_enable_stderrlog
LBB0_3:
Lloh8:
	adrp	x21, _NETSNMP_DS_APPLICATION_ID@GOTPAGE
Lloh9:
	ldr	x21, [x21, _NETSNMP_DS_APPLICATION_ID@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh10:
	adrp	x8, _NETSNMP_DS_AGENT_ROLE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _NETSNMP_DS_AGENT_ROLE@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	w2, #1
	bl	_netsnmp_ds_set_boolean
	cbnz	w19, LBB0_5
; %bb.4:
	cmp	w20, #0
	cset	w1, eq
	mov	w0, #1
	bl	_netsnmp_daemonize
	cbnz	x0, LBB0_10
LBB0_5:
	ldr	w19, [x21]
Lloh13:
	adrp	x8, _NETSNMP_DS_AGENT_X_SOCKET@GOTPAGE
Lloh14:
	ldr	x8, [x8, _NETSNMP_DS_AGENT_X_SOCKET@GOTPAGEOFF]
Lloh15:
	ldr	w20, [x8]
Lloh16:
	adrp	x8, _AGENTXSOCKET@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AGENTXSOCKET@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_OPT_ARG
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_netsnmp_ds_set_string
Lloh19:
	adrp	x0, l_.str@PAGE
Lloh20:
	add	x0, x0, l_.str@PAGEOFF
	bl	_init_agent
Lloh21:
	adrp	x0, l_.str.1@PAGE
Lloh22:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	w1, #0
	bl	_ntpq_openhost
	cbz	x0, LBB0_9
; %bb.6:
	bl	_init_ntpSnmpSubagentObject
Lloh23:
	adrp	x0, l_.str@PAGE
Lloh24:
	add	x0, x0, l_.str@PAGEOFF
	bl	_init_snmp
Lloh25:
	adrp	x19, _keep_running@GOTPAGE
Lloh26:
	ldr	x19, [x19, _keep_running@GOTPAGEOFF]
	mov	w8, #1
	str	w8, [x19]
Lloh27:
	adrp	x8, _SIGTERM@GOTPAGE
Lloh28:
	ldr	x8, [x8, _SIGTERM@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
Lloh30:
	adrp	x20, _stop_server@GOTPAGE
Lloh31:
	ldr	x20, [x20, _stop_server@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_signal
Lloh32:
	adrp	x8, _SIGINT@GOTPAGE
Lloh33:
	ldr	x8, [x8, _SIGINT@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	ldr	w1, [x20]
	bl	_signal
Lloh35:
	adrp	x8, _LOG_INFO@GOTPAGE
Lloh36:
	ldr	x8, [x8, _LOG_INFO@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
Lloh38:
	adrp	x1, l_.str.3@PAGE
Lloh39:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_snmp_log
	ldr	w8, [x19]
	cbz	w8, LBB0_8
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #1
	bl	_agent_check_and_process
	ldr	w8, [x19]
	cbnz	w8, LBB0_7
LBB0_8:
	bl	_ntpq_closehost
Lloh40:
	adrp	x0, l_.str@PAGE
Lloh41:
	add	x0, x0, l_.str@PAGEOFF
	bl	_snmp_shutdown
	mov	w0, #0
	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
LBB0_9:
Lloh42:
	adrp	x8, _stderr@GOTPAGE
Lloh43:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh44:
	ldr	w0, [x8]
Lloh45:
	adrp	x1, l_.str.2@PAGE
Lloh46:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
LBB0_10:
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_ntpsnmpdOptions,4,2            ; @ntpsnmpdOptions
	.comm	_NOFORK,4,2                     ; @NOFORK
	.comm	_SYSLOG,4,2                     ; @SYSLOG
	.comm	_NETSNMP_DS_APPLICATION_ID,4,2  ; @NETSNMP_DS_APPLICATION_ID
	.comm	_NETSNMP_DS_AGENT_ROLE,4,2      ; @NETSNMP_DS_AGENT_ROLE
	.comm	_SOCK_STARTUP,4,2               ; @SOCK_STARTUP
	.comm	_NETSNMP_DS_AGENT_X_SOCKET,4,2  ; @NETSNMP_DS_AGENT_X_SOCKET
	.comm	_AGENTXSOCKET,4,2               ; @AGENTXSOCKET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ntpsnmpd"

l_.str.1:                               ; @.str.1
	.asciz	"localhost"

	.comm	_stderr,4,2                     ; @stderr
l_.str.2:                               ; @.str.2
	.asciz	"Error: Could not connect to ntpd. Aborting.\n"

	.comm	_keep_running,4,2               ; @keep_running
	.comm	_SIGTERM,4,2                    ; @SIGTERM
	.comm	_stop_server,4,2                ; @stop_server
	.comm	_SIGINT,4,2                     ; @SIGINT
	.comm	_LOG_INFO,4,2                   ; @LOG_INFO
l_.str.3:                               ; @.str.3
	.asciz	"ntpsnmpd started.\n"

	.comm	_SOCK_CLEANUP,4,2               ; @SOCK_CLEANUP
.subsections_via_symbols
