	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snmp_pdu_decode_secmode        ## -- Begin function snmp_pdu_decode_secmode
	.p2align	4, 0x90
_snmp_pdu_decode_secmode:               ## @snmp_pdu_decode_secmode
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsp, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_SNMP_USM_AUTH_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	8(%rbx), %rax
	movq	_SNMP_AUTH_NOAUTH@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	je	LBB0_3
## %bb.1:
	movq	_SNMP_MSG_AUTH_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_2
LBB0_3:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_snmp_pdu_calc_digest
	movq	_SNMP_CODE_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_15
## %bb.4:
	movq	8(%rbx), %rax
	cmpq	(%r13), %rax
	je	LBB0_7
## %bb.5:
	movl	32(%rbx), %esi
	movq	%r15, %rdi
	movl	$4, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_SNMP_CODE_BADDIGEST@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_7:
	movq	16(%rbx), %rax
	movq	_SNMP_PRIV_NOPRIV@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_9
## %bb.8:
	movl	(%r14), %eax
	movl	%eax, 24(%rbx)
LBB0_14:
	movq	%rbx, %rdi
	callq	_snmp_pdu_decrypt
	movq	_SNMP_CODE_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_15
	jmp	LBB0_17
LBB0_9:
	leaq	28(%rbx), %rdx
	leaq	-56(%rbp), %rsi
	movq	%r14, %rdi
	callq	_asn_get_header
	movq	_ASN_ERR_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.10:
	movq	-56(%rbp), %rax
	movq	_ASN_TYPE_OCTETSTRING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.12:
	movq	16(%rbx), %rax
	movl	(%r14), %ecx
	cmpq	(%r15), %rax
	movl	%ecx, 24(%rbx)
	je	LBB0_14
## %bb.13:
	movq	_SNMP_MSG_PRIV_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	jne	LBB0_14
LBB0_2:
	movq	_SNMP_CODE_BADSECLEVEL@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_11:
	leaq	L_.str(%rip), %rdi
	callq	_snmp_error
LBB0_15:
	movq	_SNMP_CODE_FAILED@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %eax
LBB0_17:
	movq	%r12, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_19
## %bb.18:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SNMP_USM_AUTH_SIZE,4,2         ## @SNMP_USM_AUTH_SIZE
	.comm	_SNMP_AUTH_NOAUTH,8,3           ## @SNMP_AUTH_NOAUTH
	.comm	_SNMP_MSG_AUTH_FLAG,4,2         ## @SNMP_MSG_AUTH_FLAG
	.comm	_SNMP_CODE_BADSECLEVEL,4,2      ## @SNMP_CODE_BADSECLEVEL
	.comm	_SNMP_CODE_OK,4,2               ## @SNMP_CODE_OK
	.comm	_SNMP_CODE_FAILED,4,2           ## @SNMP_CODE_FAILED
	.comm	_SNMP_CODE_BADDIGEST,4,2        ## @SNMP_CODE_BADDIGEST
	.comm	_SNMP_PRIV_NOPRIV,8,3           ## @SNMP_PRIV_NOPRIV
	.comm	_ASN_ERR_OK,8,3                 ## @ASN_ERR_OK
	.comm	_ASN_TYPE_OCTETSTRING,8,3       ## @ASN_TYPE_OCTETSTRING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot decode encrypted pdu"

	.comm	_SNMP_MSG_PRIV_FLAG,4,2         ## @SNMP_MSG_PRIV_FLAG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snmp_pdu_decode_secmode        ; -- Begin function snmp_pdu_decode_secmode
	.p2align	2
_snmp_pdu_decode_secmode:               ; @snmp_pdu_decode_secmode
	.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, #16
	mov	x19, x1
	mov	x20, x0
	mov	x22, sp
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_USM_AUTH_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SNMP_USM_AUTH_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	ldr	x8, [x1, #8]
Lloh8:
	adrp	x24, _SNMP_AUTH_NOAUTH@GOTPAGE
Lloh9:
	ldr	x24, [x24, _SNMP_AUTH_NOAUTH@GOTPAGEOFF]
	ldr	x9, [x24]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
	ldr	w8, [x19]
Lloh10:
	adrp	x9, _SNMP_MSG_AUTH_FLAG@GOTPAGE
Lloh11:
	ldr	x9, [x9, _SNMP_MSG_AUTH_FLAG@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
LBB0_2:
	mov	x0, x19
	mov	x1, x21
	bl	_snmp_pdu_calc_digest
Lloh13:
	adrp	x23, _SNMP_CODE_OK@GOTPAGE
Lloh14:
	ldr	x23, [x23, _SNMP_CODE_OK@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w0, w8
	b.ne	LBB0_15
; %bb.3:
	ldr	x8, [x19, #8]
	ldr	x9, [x24]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.4:
	ldr	w1, [x19, #32]
	mov	x0, x21
	mov	w2, #4
	bl	_memcmp
	cbz	x0, LBB0_6
; %bb.5:
Lloh15:
	adrp	x8, _SNMP_CODE_BADDIGEST@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SNMP_CODE_BADDIGEST@GOTPAGEOFF]
	b	LBB0_16
LBB0_6:
	ldr	x8, [x19, #16]
Lloh17:
	adrp	x21, _SNMP_PRIV_NOPRIV@GOTPAGE
Lloh18:
	ldr	x21, [x21, _SNMP_PRIV_NOPRIV@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.7:
	ldr	w8, [x20]
	str	w8, [x19, #24]
LBB0_8:
	mov	x0, x19
	bl	_snmp_pdu_decrypt
	ldr	w8, [x23]
Lloh19:
	adrp	x9, _SNMP_CODE_FAILED@GOTPAGE
Lloh20:
	ldr	x9, [x9, _SNMP_CODE_FAILED@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	cmp	w0, w8
	csel	w0, w0, w9, eq
	b	LBB0_17
LBB0_9:
	add	x2, x19, #28
	sub	x1, x29, #64
	mov	x0, x20
	bl	_asn_get_header
Lloh22:
	adrp	x8, _ASN_ERR_OK@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ASN_ERR_OK@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_14
; %bb.10:
	ldur	x8, [x29, #-64]
Lloh25:
	adrp	x9, _ASN_TYPE_OCTETSTRING@GOTPAGE
Lloh26:
	ldr	x9, [x9, _ASN_TYPE_OCTETSTRING@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.11:
	ldr	x8, [x19, #16]
	ldr	x9, [x21]
	ldr	w10, [x20]
	str	w10, [x19, #24]
	cmp	x8, x9
	b.eq	LBB0_8
; %bb.12:
	ldr	w8, [x19]
Lloh28:
	adrp	x9, _SNMP_MSG_PRIV_FLAG@GOTPAGE
Lloh29:
	ldr	x9, [x9, _SNMP_MSG_PRIV_FLAG@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_8
LBB0_13:
Lloh31:
	adrp	x8, _SNMP_CODE_BADSECLEVEL@GOTPAGE
Lloh32:
	ldr	x8, [x8, _SNMP_CODE_BADSECLEVEL@GOTPAGEOFF]
	b	LBB0_16
LBB0_14:
Lloh33:
	adrp	x0, l_.str@PAGE
Lloh34:
	add	x0, x0, l_.str@PAGEOFF
	bl	_snmp_error
LBB0_15:
Lloh35:
	adrp	x8, _SNMP_CODE_FAILED@GOTPAGE
Lloh36:
	ldr	x8, [x8, _SNMP_CODE_FAILED@GOTPAGEOFF]
LBB0_16:
	ldr	w0, [x8]
LBB0_17:
	mov	sp, x22
	ldur	x8, [x29, #-56]
Lloh37:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh38:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh39:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	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_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_SNMP_USM_AUTH_SIZE,4,2         ; @SNMP_USM_AUTH_SIZE
	.comm	_SNMP_AUTH_NOAUTH,8,3           ; @SNMP_AUTH_NOAUTH
	.comm	_SNMP_MSG_AUTH_FLAG,4,2         ; @SNMP_MSG_AUTH_FLAG
	.comm	_SNMP_CODE_BADSECLEVEL,4,2      ; @SNMP_CODE_BADSECLEVEL
	.comm	_SNMP_CODE_OK,4,2               ; @SNMP_CODE_OK
	.comm	_SNMP_CODE_FAILED,4,2           ; @SNMP_CODE_FAILED
	.comm	_SNMP_CODE_BADDIGEST,4,2        ; @SNMP_CODE_BADDIGEST
	.comm	_SNMP_PRIV_NOPRIV,8,3           ; @SNMP_PRIV_NOPRIV
	.comm	_ASN_ERR_OK,8,3                 ; @ASN_ERR_OK
	.comm	_ASN_TYPE_OCTETSTRING,8,3       ; @ASN_TYPE_OCTETSTRING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot decode encrypted pdu"

	.comm	_SNMP_MSG_PRIV_FLAG,4,2         ; @SNMP_MSG_PRIV_FLAG
.subsections_via_symbols
