	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snmptool_init                  ## -- Begin function snmptool_init
	.p2align	4, 0x90
_snmptool_init:                         ## @snmptool_init
	.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	%rdi, %r15
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%r15)
	movq	_SNMP_PDU_GET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
	leaq	8(%r15), %rdi
	callq	_SLIST_INIT
	movq	_snmp_client@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_snmp_client_init
	movq	_SNMP_MAX_REPETITIONS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_SET_MAXREP
	movq	_bsnmpd_defs@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	movq	_IsoOrgDod_OID@GOTPCREL(%rip), %rdx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_add_filename
	testq	%rax, %rax
	jns	LBB0_2
## %bb.1:
	movq	(%rbx), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_warnx
LBB0_2:
	movq	_mibII_defs@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	movq	_IsoOrgDod_OID@GOTPCREL(%rip), %rdx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_add_filename
	testq	%rax, %rax
	jns	LBB0_4
## %bb.3:
	movq	(%rbx), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_warnx
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_13
## %bb.5:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_strlen
	testq	%rax, %rax
	je	LBB0_13
## %bb.6:
	cmpq	$3, %rax
	jne	LBB0_9
## %bb.7:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcasecmp
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcasecmp
	testq	%rax, %rax
	je	LBB0_11
LBB0_9:
	leaq	L_.str.4(%rip), %rdi
	movq	%rbx, %rsi
	callq	_warnx
	jmp	LBB0_13
LBB0_10:
	movq	_SNMP_AUTH_HMAC_MD5@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_11:
	movq	_SNMP_AUTH_HMAC_SHA@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %eax
	movl	%eax, 20(%r14)
LBB0_13:
	leaq	L_.str.5(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_22
## %bb.14:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_strlen
	testq	%rax, %rax
	je	LBB0_22
## %bb.15:
	cmpq	$3, %rax
	jne	LBB0_18
## %bb.16:
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcasecmp
	testq	%rax, %rax
	je	LBB0_19
## %bb.17:
	leaq	L_.str.7(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcasecmp
	testq	%rax, %rax
	je	LBB0_20
LBB0_18:
	leaq	L_.str.8(%rip), %rdi
	movq	%rbx, %rsi
	callq	_warnx
	jmp	LBB0_22
LBB0_19:
	movq	_SNMP_PRIV_DES@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_20:
	movq	_SNMP_PRIV_AES@GOTPCREL(%rip), %rax
LBB0_21:
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
LBB0_22:
	leaq	L_.str.9(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_27
## %bb.23:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_strlen
	cmpq	$9, %rax
	jb	LBB0_25
## %bb.24:
	leaq	L_.str.10(%rip), %rdi
	movq	%rbx, %rsi
	callq	_warnx
	jmp	LBB0_32
LBB0_25:
	testq	%rax, %rax
	je	LBB0_27
## %bb.26:
	movq	8(%r14), %rdi
	movl	$8, %edx
	movq	%rbx, %rsi
	callq	_strlcpy
	movq	_SNMP_V3@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
LBB0_27:
	leaq	L_.str.11(%rip), %rdi
	callq	_getenv
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_33
## %bb.28:
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_strlen
	movq	_MAXSTR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	leaq	-1(%rcx), %rbx
	cmpq	%rcx, %rax
	cmovbeq	%rax, %rbx
	leaq	1(%rbx), %r12
	movq	%r12, %rdi
	callq	_malloc
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_31
## %bb.29:
	testq	%rbx, %rbx
	je	LBB0_33
## %bb.30:
	movq	%rax, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_strlcpy
	jmp	LBB0_33
LBB0_31:
	leaq	L_.str.12(%rip), %rdi
	callq	_warn
LBB0_32:
	movl	$-1, %r14d
LBB0_33:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SNMP_PDU_GET,4,2               ## @SNMP_PDU_GET
	.comm	_snmp_client,24,3               ## @snmp_client
	.comm	_SNMP_MAX_REPETITIONS,4,2       ## @SNMP_MAX_REPETITIONS
	.comm	_bsnmpd_defs,8,3                ## @bsnmpd_defs
	.comm	_IsoOrgDod_OID,4,2              ## @IsoOrgDod_OID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error adding file %s to list"

	.comm	_mibII_defs,8,3                 ## @mibII_defs
L_.str.1:                               ## @.str.1
	.asciz	"SNMPAUTH"

L_.str.2:                               ## @.str.2
	.asciz	"md5"

	.comm	_SNMP_AUTH_HMAC_MD5,4,2         ## @SNMP_AUTH_HMAC_MD5
L_.str.3:                               ## @.str.3
	.asciz	"sha"

	.comm	_SNMP_AUTH_HMAC_SHA,4,2         ## @SNMP_AUTH_HMAC_SHA
L_.str.4:                               ## @.str.4
	.asciz	"Bad authentication type - %s in SNMPAUTH"

L_.str.5:                               ## @.str.5
	.asciz	"SNMPPRIV"

L_.str.6:                               ## @.str.6
	.asciz	"des"

	.comm	_SNMP_PRIV_DES,4,2              ## @SNMP_PRIV_DES
L_.str.7:                               ## @.str.7
	.asciz	"aes"

	.comm	_SNMP_PRIV_AES,4,2              ## @SNMP_PRIV_AES
L_.str.8:                               ## @.str.8
	.asciz	"Bad privacy type - %s in SNMPPRIV"

L_.str.9:                               ## @.str.9
	.asciz	"SNMPUSER"

L_.str.10:                              ## @.str.10
	.asciz	"Username too long - %s in SNMPUSER"

	.comm	_SNMP_V3,4,2                    ## @SNMP_V3
L_.str.11:                              ## @.str.11
	.asciz	"SNMPPASSWD"

	.comm	_MAXSTR,8,3                     ## @MAXSTR
L_.str.12:                              ## @.str.12
	.asciz	"malloc() failed"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snmptool_init                  ; -- Begin function snmptool_init
	.p2align	2
_snmptool_init:                         ; @snmptool_init
	.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, x0
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	stp	xzr, xzr, [x19, #16]
Lloh0:
	adrp	x8, _SNMP_PDU_GET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SNMP_PDU_GET@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #12]
	add	x0, x19, #8
	bl	_SLIST_INIT
Lloh3:
	adrp	x20, _snmp_client@GOTPAGE
Lloh4:
	ldr	x20, [x20, _snmp_client@GOTPAGEOFF]
	mov	x0, x20
	bl	_snmp_client_init
Lloh5:
	adrp	x8, _SNMP_MAX_REPETITIONS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SNMP_MAX_REPETITIONS@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_SET_MAXREP
Lloh8:
	adrp	x21, _bsnmpd_defs@GOTPAGE
Lloh9:
	ldr	x21, [x21, _bsnmpd_defs@GOTPAGEOFF]
	ldr	x1, [x21]
Lloh10:
	adrp	x2, _IsoOrgDod_OID@GOTPAGE
Lloh11:
	ldr	x2, [x2, _IsoOrgDod_OID@GOTPAGEOFF]
	mov	x0, x19
	mov	w3, #0
	bl	_add_filename
	tbz	x0, #63, LBB0_2
; %bb.1:
	ldr	x1, [x21]
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warnx
LBB0_2:
Lloh14:
	adrp	x21, _mibII_defs@GOTPAGE
Lloh15:
	ldr	x21, [x21, _mibII_defs@GOTPAGEOFF]
	ldr	x1, [x21]
Lloh16:
	adrp	x2, _IsoOrgDod_OID@GOTPAGE
Lloh17:
	ldr	x2, [x2, _IsoOrgDod_OID@GOTPAGEOFF]
	mov	x0, x19
	mov	w3, #0
	bl	_add_filename
	tbz	x0, #63, LBB0_4
; %bb.3:
	ldr	x1, [x21]
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warnx
LBB0_4:
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_getenv
	cbz	x0, LBB0_13
; %bb.5:
	mov	x21, x0
	bl	_strlen
	cbz	x0, LBB0_13
; %bb.6:
	cmp	x0, #3
	b.ne	LBB0_9
; %bb.7:
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_strcasecmp
	cbz	x0, LBB0_10
; %bb.8:
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_strcasecmp
	cbz	x0, LBB0_11
LBB0_9:
Lloh26:
	adrp	x0, l_.str.4@PAGE
Lloh27:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x21
	bl	_warnx
	b	LBB0_13
LBB0_10:
Lloh28:
	adrp	x8, _SNMP_AUTH_HMAC_MD5@GOTPAGE
Lloh29:
	ldr	x8, [x8, _SNMP_AUTH_HMAC_MD5@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh30:
	adrp	x8, _SNMP_AUTH_HMAC_SHA@GOTPAGE
Lloh31:
	ldr	x8, [x8, _SNMP_AUTH_HMAC_SHA@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	str	w8, [x20, #20]
LBB0_13:
Lloh32:
	adrp	x0, l_.str.5@PAGE
Lloh33:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_getenv
	cbz	x0, LBB0_22
; %bb.14:
	mov	x21, x0
	bl	_strlen
	cbz	x0, LBB0_22
; %bb.15:
	cmp	x0, #3
	b.ne	LBB0_18
; %bb.16:
Lloh34:
	adrp	x1, l_.str.6@PAGE
Lloh35:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x21
	bl	_strcasecmp
	cbz	x0, LBB0_19
; %bb.17:
Lloh36:
	adrp	x1, l_.str.7@PAGE
Lloh37:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x21
	bl	_strcasecmp
	cbz	x0, LBB0_20
LBB0_18:
Lloh38:
	adrp	x0, l_.str.8@PAGE
Lloh39:
	add	x0, x0, l_.str.8@PAGEOFF
	mov	x1, x21
	bl	_warnx
	b	LBB0_22
LBB0_19:
Lloh40:
	adrp	x8, _SNMP_PRIV_DES@GOTPAGE
Lloh41:
	ldr	x8, [x8, _SNMP_PRIV_DES@GOTPAGEOFF]
	b	LBB0_21
LBB0_20:
Lloh42:
	adrp	x8, _SNMP_PRIV_AES@GOTPAGE
Lloh43:
	ldr	x8, [x8, _SNMP_PRIV_AES@GOTPAGEOFF]
LBB0_21:
	ldr	w8, [x8]
	str	w8, [x20, #16]
LBB0_22:
Lloh44:
	adrp	x0, l_.str.9@PAGE
Lloh45:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_getenv
	cbz	x0, LBB0_27
; %bb.23:
	mov	x21, x0
	bl	_strlen
	cmp	x0, #9
	b.lo	LBB0_25
; %bb.24:
Lloh46:
	adrp	x0, l_.str.10@PAGE
Lloh47:
	add	x0, x0, l_.str.10@PAGEOFF
	mov	x1, x21
	bl	_warnx
	b	LBB0_33
LBB0_25:
	cbz	x0, LBB0_27
; %bb.26:
	ldr	x0, [x20, #8]
	mov	x1, x21
	mov	w2, #8
	bl	_strlcpy
Lloh48:
	adrp	x8, _SNMP_V3@GOTPAGE
Lloh49:
	ldr	x8, [x8, _SNMP_V3@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
	str	w8, [x20]
LBB0_27:
Lloh51:
	adrp	x0, l_.str.11@PAGE
Lloh52:
	add	x0, x0, l_.str.11@PAGEOFF
	bl	_getenv
	cbz	x0, LBB0_34
; %bb.28:
	mov	x20, x0
	bl	_strlen
Lloh53:
	adrp	x8, _MAXSTR@GOTPAGE
Lloh54:
	ldr	x8, [x8, _MAXSTR@GOTPAGEOFF]
Lloh55:
	ldr	x8, [x8]
	sub	x9, x8, #1
	cmp	x0, x8
	csel	x22, x9, x0, hi
	add	x21, x22, #1
	mov	x0, x21
	bl	_malloc
	str	x0, [x19]
	cbz	x0, LBB0_32
; %bb.29:
	cbz	x22, LBB0_31
; %bb.30:
	mov	x1, x20
	mov	x2, x21
	bl	_strlcpy
LBB0_31:
	mov	w0, #0
	b	LBB0_34
LBB0_32:
Lloh56:
	adrp	x0, l_.str.12@PAGE
Lloh57:
	add	x0, x0, l_.str.12@PAGEOFF
	bl	_warn
LBB0_33:
	mov	w0, #-1
LBB0_34:
	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 AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpAdd	Lloh56, Lloh57
	.cfi_endproc
                                        ; -- End function
	.comm	_SNMP_PDU_GET,4,2               ; @SNMP_PDU_GET
	.comm	_snmp_client,24,3               ; @snmp_client
	.comm	_SNMP_MAX_REPETITIONS,4,2       ; @SNMP_MAX_REPETITIONS
	.comm	_bsnmpd_defs,8,3                ; @bsnmpd_defs
	.comm	_IsoOrgDod_OID,4,2              ; @IsoOrgDod_OID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error adding file %s to list"

	.comm	_mibII_defs,8,3                 ; @mibII_defs
l_.str.1:                               ; @.str.1
	.asciz	"SNMPAUTH"

l_.str.2:                               ; @.str.2
	.asciz	"md5"

	.comm	_SNMP_AUTH_HMAC_MD5,4,2         ; @SNMP_AUTH_HMAC_MD5
l_.str.3:                               ; @.str.3
	.asciz	"sha"

	.comm	_SNMP_AUTH_HMAC_SHA,4,2         ; @SNMP_AUTH_HMAC_SHA
l_.str.4:                               ; @.str.4
	.asciz	"Bad authentication type - %s in SNMPAUTH"

l_.str.5:                               ; @.str.5
	.asciz	"SNMPPRIV"

l_.str.6:                               ; @.str.6
	.asciz	"des"

	.comm	_SNMP_PRIV_DES,4,2              ; @SNMP_PRIV_DES
l_.str.7:                               ; @.str.7
	.asciz	"aes"

	.comm	_SNMP_PRIV_AES,4,2              ; @SNMP_PRIV_AES
l_.str.8:                               ; @.str.8
	.asciz	"Bad privacy type - %s in SNMPPRIV"

l_.str.9:                               ; @.str.9
	.asciz	"SNMPUSER"

l_.str.10:                              ; @.str.10
	.asciz	"Username too long - %s in SNMPUSER"

	.comm	_SNMP_V3,4,2                    ; @SNMP_V3
l_.str.11:                              ; @.str.11
	.asciz	"SNMPPASSWD"

	.comm	_MAXSTR,8,3                     ; @MAXSTR
l_.str.12:                              ; @.str.12
	.asciz	"malloc() failed"

.subsections_via_symbols
