	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snmp_discover_engine           ## -- Begin function snmp_discover_engine
	.p2align	4, 0x90
_snmp_discover_engine:                  ## @snmp_discover_engine
	.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	%rdi, -104(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_SNMP_ADM_STR32_SIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	_snmp_client@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	_SNMP_V3@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	_snmp_client@GOTPCREL(%rip), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_seterr
LBB0_2:
	movq	40(%r13), %rsi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_strlcpy
	movl	48(%r13), %r15d
	movl	52(%r13), %r14d
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r13)
	movq	$0, 24(%r13)
	movq	_SNMP_AUTH_NOAUTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r13)
	movq	_SNMP_PRIV_NOPRIV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%r13)
	movq	40(%r13), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	_SNMP_PDU_GET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-152(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_snmp_pdu_create
	leaq	-96(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_snmp_dialog
	movl	$-1, %ebx
	cmpl	$-1, %eax
	je	LBB0_20
## %bb.3:
	movq	-96(%rbp), %rax
	cmpq	-152(%rbp), %rax
	jne	LBB0_4
## %bb.5:
	movq	-88(%rbp), %rdx
	movq	_SNMP_ERR_NOERROR@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_6
## %bb.7:
	movslq	%r15d, %r15
	movq	-64(%rbp), %rdx
	movq	%rdx, 24(%r13)
	movl	-52(%rbp), %eax
	movl	%eax, 36(%r13)
	movl	32(%r13), %edi
	movl	-56(%rbp), %esi
	callq	_memcpy
	movq	40(%r13), %rdi
	movq	%r12, %rsi
	movl	$8, %edx
	callq	_strlcpy
	movl	%r15d, 48(%r13)
	movl	%r14d, 52(%r13)
	movq	_SNMP_AUTH_NOAUTH@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	jne	LBB0_8
LBB0_19:
	xorl	%ebx, %ebx
	jmp	LBB0_20
LBB0_8:
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_20
## %bb.9:
	leaq	40(%r13), %r14
	movq	%r14, %rdi
	callq	_snmp_passwd_to_keys
	movq	_SNMP_CODE_OK@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_20
## %bb.10:
	movl	32(%r13), %esi
	movq	24(%r13), %rdx
	movq	%r14, %rdi
	callq	_snmp_get_local_keys
	cmpq	(%r15), %rax
	jne	LBB0_20
## %bb.11:
	movq	-80(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	%rax, 8(%r13)
LBB0_13:
	movq	-72(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	%rax, 16(%r13)
	jmp	LBB0_19
LBB0_15:
	leaq	-152(%rbp), %r14
	movq	%r14, %rdi
	callq	_snmp_pdu_free
	movq	_SNMP_PDU_GET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_snmp_pdu_create
	xorps	%xmm0, %xmm0
	movups	%xmm0, -136(%rbp)
	leaq	-96(%rbp), %rsi
	movq	%r14, %rdi
	callq	_snmp_dialog
	cmpl	$-1, %eax
	je	LBB0_20
## %bb.16:
	movq	-96(%rbp), %rax
	cmpq	-152(%rbp), %rax
	jne	LBB0_4
## %bb.17:
	movq	-88(%rbp), %rdx
	movq	_SNMP_ERR_NOERROR@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_6
## %bb.18:
	movups	-80(%rbp), %xmm0
	movups	%xmm0, 8(%r13)
	leaq	-152(%rbp), %rdi
	callq	_snmp_pdu_free
	leaq	-96(%rbp), %rdi
	callq	_snmp_pdu_free
	jmp	LBB0_19
LBB0_4:
	movq	_snmp_client@GOTPCREL(%rip), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_seterr
	jmp	LBB0_20
LBB0_6:
	movq	_snmp_client@GOTPCREL(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_seterr
LBB0_20:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_22
## %bb.21:
	movl	%ebx, %eax
	leaq	-40(%rbp), %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	_SNMP_ADM_STR32_SIZ,4,2         ## @SNMP_ADM_STR32_SIZ
	.comm	_snmp_client,56,3               ## @snmp_client
	.comm	_SNMP_V3,8,3                    ## @SNMP_V3
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wrong version"

	.comm	_SNMP_AUTH_NOAUTH,8,3           ## @SNMP_AUTH_NOAUTH
	.comm	_SNMP_PRIV_NOPRIV,4,2           ## @SNMP_PRIV_NOPRIV
	.comm	_SNMP_PDU_GET,4,2               ## @SNMP_PDU_GET
	.comm	_SNMP_ERR_NOERROR,8,3           ## @SNMP_ERR_NOERROR
L_.str.1:                               ## @.str.1
	.asciz	"Error %d in responce"

	.comm	_SNMP_CODE_OK,8,3               ## @SNMP_CODE_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snmp_discover_engine           ; -- Begin function snmp_discover_engine
	.p2align	2
_snmp_discover_engine:                  ; @snmp_discover_engine
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #128
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _SNMP_ADM_STR32_SIZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SNMP_ADM_STR32_SIZ@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	mov	x9, x21
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x21, #15
	and	x9, x9, #0x1fffffff0
	sub	x20, x8, x9
	mov	sp, x20
Lloh8:
	adrp	x22, _snmp_client@GOTPAGE
Lloh9:
	ldr	x22, [x22, _snmp_client@GOTPAGEOFF]
	ldr	x8, [x22]
Lloh10:
	adrp	x9, _SNMP_V3@GOTPAGE
Lloh11:
	ldr	x9, [x9, _SNMP_V3@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
Lloh13:
	adrp	x0, _snmp_client@GOTPAGE
Lloh14:
	ldr	x0, [x0, _snmp_client@GOTPAGEOFF]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	bl	_seterr
LBB0_2:
	ldr	x1, [x22, #40]
	mov	x0, x20
	mov	x2, x21
	bl	_strlcpy
	ldr	d0, [x22, #48]
	stur	q0, [x29, #-176]                ; 16-byte Folded Spill
	stp	xzr, xzr, [x22, #16]
	str	xzr, [x22, #8]
Lloh17:
	adrp	x24, _SNMP_AUTH_NOAUTH@GOTPAGE
Lloh18:
	ldr	x24, [x24, _SNMP_AUTH_NOAUTH@GOTPAGEOFF]
	ldr	x8, [x24]
Lloh19:
	adrp	x9, _SNMP_PRIV_NOPRIV@GOTPAGE
Lloh20:
	ldr	x9, [x9, _SNMP_PRIV_NOPRIV@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	stp	w8, w9, [x22, #48]
	ldr	x0, [x22, #40]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
Lloh22:
	adrp	x23, _SNMP_PDU_GET@GOTPAGE
Lloh23:
	ldr	x23, [x23, _SNMP_PDU_GET@GOTPAGEOFF]
	ldr	w1, [x23]
	sub	x0, x29, #104
	bl	_snmp_pdu_create
	sub	x0, x29, #104
	sub	x1, x29, #152
	bl	_snmp_dialog
	cmn	w0, #1
	b.eq	LBB0_21
; %bb.3:
	ldur	x8, [x29, #-152]
	ldur	x9, [x29, #-104]
	cmp	x8, x9
	b.ne	LBB0_18
; %bb.4:
	ldur	x8, [x29, #-144]
Lloh24:
	adrp	x21, _SNMP_ERR_NOERROR@GOTPAGE
Lloh25:
	ldr	x21, [x21, _SNMP_ERR_NOERROR@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_19
; %bb.5:
	ldur	x2, [x29, #-120]
	str	x2, [x22, #24]
	ldp	w1, w8, [x29, #-112]
	str	w8, [x22, #36]
	ldr	w0, [x22, #32]
	bl	_memcpy
	ldr	x0, [x22, #40]
	mov	x1, x20
	mov	w2, #8
	bl	_strlcpy
	ldur	q0, [x29, #-176]                ; 16-byte Folded Reload
	str	d0, [x22, #48]
	fmov	w8, s0
	ldr	x9, [x24]
	cmp	x9, w8, sxtw
	b.ne	LBB0_7
LBB0_6:
	mov	w0, #0
	b	LBB0_21
LBB0_7:
	cbz	x19, LBB0_20
; %bb.8:
	add	x20, x22, #40
	mov	x0, x20
	mov	x1, x19
	bl	_snmp_passwd_to_keys
Lloh26:
	adrp	x19, _SNMP_CODE_OK@GOTPAGE
Lloh27:
	ldr	x19, [x19, _SNMP_CODE_OK@GOTPAGEOFF]
	ldr	x8, [x19]
	cmp	x0, x8
	b.ne	LBB0_20
; %bb.9:
	ldr	w1, [x22, #32]
	ldr	x2, [x22, #24]
	mov	x0, x20
	bl	_snmp_get_local_keys
	ldr	x8, [x19]
	cmp	x0, x8
	b.ne	LBB0_20
; %bb.10:
	ldur	x8, [x29, #-136]
	cbz	x8, LBB0_12
; %bb.11:
	str	x8, [x22, #8]
LBB0_12:
	ldur	x8, [x29, #-128]
	cbz	x8, LBB0_14
; %bb.13:
	mov	w0, #0
	str	x8, [x22, #16]
	b	LBB0_21
LBB0_14:
	sub	x0, x29, #104
	bl	_snmp_pdu_free
	ldr	w1, [x23]
	sub	x0, x29, #104
	bl	_snmp_pdu_create
	stp	xzr, xzr, [x29, #-88]
	sub	x0, x29, #104
	sub	x1, x29, #152
	bl	_snmp_dialog
	cmn	w0, #1
	b.eq	LBB0_21
; %bb.15:
	ldur	x8, [x29, #-152]
	ldur	x9, [x29, #-104]
	cmp	x8, x9
	b.ne	LBB0_18
; %bb.16:
	ldur	x8, [x29, #-144]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_19
; %bb.17:
	ldur	q0, [x29, #-136]
	stur	q0, [x22, #8]
	sub	x0, x29, #104
	bl	_snmp_pdu_free
	sub	x0, x29, #152
	bl	_snmp_pdu_free
	b	LBB0_6
LBB0_18:
Lloh28:
	adrp	x0, _snmp_client@GOTPAGE
Lloh29:
	ldr	x0, [x0, _snmp_client@GOTPAGEOFF]
Lloh30:
	adrp	x1, l_.str@PAGE
Lloh31:
	add	x1, x1, l_.str@PAGEOFF
	bl	_seterr
	b	LBB0_20
LBB0_19:
	str	x8, [sp, #-16]!
Lloh32:
	adrp	x0, _snmp_client@GOTPAGE
Lloh33:
	ldr	x0, [x0, _snmp_client@GOTPAGEOFF]
Lloh34:
	adrp	x1, l_.str.1@PAGE
Lloh35:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_seterr
	add	sp, sp, #16
LBB0_20:
	mov	w0, #-1
LBB0_21:
	ldur	x8, [x29, #-56]
Lloh36:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh37:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.22:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_23:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_SNMP_ADM_STR32_SIZ,4,2         ; @SNMP_ADM_STR32_SIZ
	.comm	_snmp_client,56,3               ; @snmp_client
	.comm	_SNMP_V3,8,3                    ; @SNMP_V3
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wrong version"

	.comm	_SNMP_AUTH_NOAUTH,8,3           ; @SNMP_AUTH_NOAUTH
	.comm	_SNMP_PRIV_NOPRIV,4,2           ; @SNMP_PRIV_NOPRIV
	.comm	_SNMP_PDU_GET,4,2               ; @SNMP_PDU_GET
	.comm	_SNMP_ERR_NOERROR,8,3           ; @SNMP_ERR_NOERROR
l_.str.1:                               ; @.str.1
	.asciz	"Error %d in responce"

	.comm	_SNMP_CODE_OK,8,3               ; @SNMP_CODE_OK
.subsections_via_symbols
