	.file	"extr_snmp.c_snmp_pdu_decode_header.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"cannot decode pdu header"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"outer sequence value too short"
	.align 8
.LC2:
	.string	"ignoring trailing junk in message"
	.section	.rodata.str1.1
.LC3:
	.string	"cannot decode version"
.LC4:
	.string	"unsupported SNMP version"
	.section	.rodata.str1.8
	.align 8
.LC5:
	.string	"cannot decode pdu global data header"
	.section	.rodata.str1.1
.LC6:
	.string	"cannot decode msg indetifier"
.LC7:
	.string	"cannot decode msg size"
.LC8:
	.string	"cannot decode msg flags"
.LC9:
	.string	"cannot decode community"
	.text
	.p2align 4
	.globl	snmp_pdu_decode_header
	.type	snmp_pdu_decode_header, @function
snmp_pdu_decode_header:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	sub	rsp, 32
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR 8[rdi]
	lea	r13, 16[rsp]
	mov	DWORD PTR 40[rsi], eax
	mov	rax, QWORD PTR [rdi]
	mov	QWORD PTR [rsi], rax
	mov	rsi, r13
	call	asn_get_sequence@PLT
	cmp	rax, QWORD PTR ASN_ERR_OK[rip]
	jne	.L26
	mov	rax, QWORD PTR 16[rsp]
	cmp	QWORD PTR 0[rbp], rax
	jl	.L27
	jne	.L28
.L5:
	lea	rsi, 4[rsp]
	mov	rdi, rbp
	call	asn_get_integer@PLT
	cmp	rax, QWORD PTR ASN_ERR_OK[rip]
	jne	.L29
	mov	eax, DWORD PTR 4[rsp]
	test	eax, eax
	jne	.L7
	mov	rax, QWORD PTR SNMP_V1[rip]
	mov	QWORD PTR 8[r12], rax
.L8:
	cmp	QWORD PTR SNMP_V3[rip], rax
	je	.L11
	mov	rax, QWORD PTR SNMP_COMMUNITY_MAXLEN[rip]
	mov	rsi, QWORD PTR 24[r12]
	lea	rdx, 8[rsp]
	mov	rdi, rbp
	mov	QWORD PTR 8[rsp], rax
	call	asn_get_octetstring@PLT
	cmp	rax, QWORD PTR ASN_ERR_OK[rip]
	jne	.L30
	mov	rdx, QWORD PTR 24[r12]
	mov	rax, QWORD PTR 8[rsp]
	mov	BYTE PTR [rdx+rax], 0
.L19:
	mov	eax, DWORD PTR SNMP_CODE_OK[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L28:
	lea	rdi, .LC2[rip]
	call	snmp_error@PLT
	mov	rax, QWORD PTR 16[rsp]
	mov	QWORD PTR 0[rbp], rax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L26:
	lea	rdi, .LC0[rip]
	call	snmp_error@PLT
	mov	eax, DWORD PTR SNMP_CODE_FAILED[rip]
.L1:
	mov	rcx, QWORD PTR 24[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L31
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	cmp	eax, 1
	je	.L32
	cmp	eax, 3
	jne	.L10
	mov	rax, QWORD PTR SNMP_V3[rip]
	mov	QWORD PTR 8[r12], rax
.L11:
	mov	rsi, r13
	mov	rdi, rbp
	call	asn_get_sequence@PLT
	cmp	rax, QWORD PTR ASN_ERR_OK[rip]
	je	.L13
	lea	rdi, .LC5[rip]
	call	snmp_error@PLT
	mov	eax, DWORD PTR SNMP_CODE_FAILED[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L29:
	lea	rdi, .LC3[rip]
	call	snmp_error@PLT
	mov	eax, DWORD PTR SNMP_CODE_FAILED[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L27:
	lea	rdi, .LC1[rip]
	call	snmp_error@PLT
	mov	eax, DWORD PTR SNMP_CODE_FAILED[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L30:
	lea	rdi, .LC9[rip]
	call	snmp_error@PLT
.L23:
	mov	eax, DWORD PTR SNMP_CODE_FAILED[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L32:
	mov	rax, QWORD PTR SNMP_V2c[rip]
	mov	QWORD PTR 8[r12], rax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L13:
	lea	rsi, 16[r12]
	mov	rdi, rbp
	call	asn_get_integer@PLT
	cmp	rax, QWORD PTR ASN_ERR_OK[rip]
	jne	.L33
	lea	rsi, 36[r12]
	mov	rdi, rbp
	call	asn_get_integer@PLT
	cmp	rax, QWORD PTR ASN_ERR_OK[rip]
	jne	.L24
	lea	rdx, 8[rsp]
	lea	rsi, 32[r12]
	mov	rdi, rbp
	mov	QWORD PTR 8[rsp], 1
	call	asn_get_octetstring@PLT
	cmp	rax, QWORD PTR ASN_ERR_OK[rip]
	je	.L16
	lea	rdi, .LC8[rip]
	call	snmp_error@PLT
	mov	eax, DWORD PTR SNMP_CODE_FAILED[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L33:
	lea	rdi, .LC6[rip]
	call	snmp_error@PLT
	mov	eax, DWORD PTR SNMP_CODE_FAILED[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rax, QWORD PTR SNMP_Verr[rip]
	lea	rdi, .LC4[rip]
	mov	QWORD PTR 8[r12], rax
	call	snmp_error@PLT
	mov	eax, DWORD PTR SNMP_CODE_BADENC[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L24:
	lea	rdi, .LC7[rip]
	call	snmp_error@PLT
	mov	eax, DWORD PTR SNMP_CODE_FAILED[rip]
	jmp	.L1
.L16:
	lea	rsi, 20[r12]
	mov	rdi, rbp
	call	asn_get_integer@PLT
	cmp	rax, QWORD PTR ASN_ERR_OK[rip]
	jne	.L24
	movsx	rax, DWORD PTR 20[r12]
	cmp	rax, QWORD PTR SNMP_SECMODEL_USM[rip]
	jne	.L23
	mov	rsi, r12
	mov	rdi, rbp
	call	parse_secparams@PLT
	cmp	rax, QWORD PTR ASN_ERR_OK[rip]
	je	.L19
	jmp	.L23
.L31:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	snmp_pdu_decode_header, .-snmp_pdu_decode_header
	.comm	SNMP_Verr,8,8
	.comm	SNMP_V3,8,8
	.comm	SNMP_V2c,8,8
	.comm	SNMP_V1,8,8
	.comm	SNMP_SECMODEL_USM,8,8
	.comm	SNMP_COMMUNITY_MAXLEN,8,8
	.comm	SNMP_CODE_OK,4,4
	.comm	SNMP_CODE_FAILED,4,4
	.comm	SNMP_CODE_BADENC,4,4
	.comm	ASN_ERR_OK,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_snmp.c_snmp_pdu_decode_header.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"cannot decode pdu header\000"
	.align	2
.LC1:
	.ascii	"outer sequence value too short\000"
	.align	2
.LC2:
	.ascii	"ignoring trailing junk in message\000"
	.align	2
.LC3:
	.ascii	"cannot decode version\000"
	.align	2
.LC4:
	.ascii	"unsupported SNMP version\000"
	.align	2
.LC5:
	.ascii	"cannot decode pdu global data header\000"
	.align	2
.LC6:
	.ascii	"cannot decode msg indetifier\000"
	.align	2
.LC7:
	.ascii	"cannot decode msg size\000"
	.align	2
.LC8:
	.ascii	"cannot decode msg flags\000"
	.align	2
.LC9:
	.ascii	"cannot decode community\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	snmp_pdu_decode_header
	.syntax unified
	.arm
	.fpu softvfp
	.type	snmp_pdu_decode_header, %function
snmp_pdu_decode_header:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r1
	ldr	r3, [r0]
	ldr	r2, [r0, #4]
	ldr	r1, .L34
	sub	sp, sp, #16
	ldr	r1, [r1]
	str	r1, [sp, #12]
	mov	r1,#0
	str	r3, [r5]
	str	r2, [r5, #28]
	add	r1, sp, #8
	mov	r4, r0
	bl	asn_get_sequence
	ldr	r6, .L34+4
	ldr	r3, [r6]
	cmp	r0, r3
	bne	.L26
	ldr	r2, [r4]
	ldr	r3, [sp, #8]
	cmp	r2, r3
	blt	.L27
	bne	.L28
.L5:
	mov	r1, sp
	mov	r0, r4
	bl	asn_get_integer
	ldr	r3, [r6]
	cmp	r0, r3
	bne	.L29
	ldr	r3, [sp]
	cmp	r3, #0
	bne	.L7
	ldr	r3, .L34+8
	ldr	r3, [r3]
	str	r3, [r5, #4]
.L8:
	ldr	r2, .L34+12
	ldr	r2, [r2]
	cmp	r2, r3
	beq	.L11
	ldr	r3, .L34+16
	mov	r0, r4
	ldr	r3, [r3]
	ldr	r1, [r5, #16]
	add	r2, sp, #4
	str	r3, [sp, #4]
	bl	asn_get_octetstring
	ldr	r3, [r6]
	cmp	r0, r3
	bne	.L30
	mov	r1, #0
	ldr	r2, [r5, #16]
	ldr	r3, [sp, #4]
	strb	r1, [r2, r3]
.L19:
	ldr	r3, .L34+20
	ldr	r0, [r3]
	b	.L1
.L28:
	ldr	r0, .L34+24
	bl	snmp_error
	ldr	r3, [sp, #8]
	str	r3, [r4]
	b	.L5
.L26:
	ldr	r0, .L34+28
	bl	snmp_error
	ldr	r3, .L34+32
	ldr	r0, [r3]
.L1:
	ldr	r3, .L34
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L31
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, pc}
.L7:
	cmp	r3, #1
	beq	.L32
	cmp	r3, #3
	bne	.L10
	ldr	r3, .L34+12
	ldr	r3, [r3]
	str	r3, [r5, #4]
.L11:
	mov	r0, r4
	add	r1, sp, #8
	bl	asn_get_sequence
	ldr	r3, [r6]
	cmp	r0, r3
	beq	.L13
	ldr	r0, .L34+36
	bl	snmp_error
	ldr	r3, .L34+32
	ldr	r0, [r3]
	b	.L1
.L29:
	ldr	r0, .L34+40
	bl	snmp_error
	ldr	r3, .L34+32
	ldr	r0, [r3]
	b	.L1
.L27:
	ldr	r0, .L34+44
	bl	snmp_error
	ldr	r3, .L34+32
	ldr	r0, [r3]
	b	.L1
.L30:
	ldr	r0, .L34+48
	bl	snmp_error
.L23:
	ldr	r3, .L34+32
	ldr	r0, [r3]
	b	.L1
.L32:
	ldr	r3, .L34+52
	ldr	r3, [r3]
	str	r3, [r5, #4]
	b	.L8
.L13:
	mov	r0, r4
	add	r1, r5, #8
	bl	asn_get_integer
	ldr	r3, [r6]
	cmp	r0, r3
	bne	.L33
	mov	r0, r4
	add	r1, r5, #24
	bl	asn_get_integer
	ldr	r3, [r6]
	cmp	r0, r3
	bne	.L24
	mov	r3, #1
	mov	r0, r4
	add	r2, sp, #4
	add	r1, r5, #20
	str	r3, [sp, #4]
	bl	asn_get_octetstring
	ldr	r3, [r6]
	cmp	r0, r3
	beq	.L16
	ldr	r0, .L34+56
	bl	snmp_error
	ldr	r3, .L34+32
	ldr	r0, [r3]
	b	.L1
.L33:
	ldr	r0, .L34+60
	bl	snmp_error
	ldr	r3, .L34+32
	ldr	r0, [r3]
	b	.L1
.L10:
	ldr	r3, .L34+64
	ldr	r0, .L34+68
	ldr	r3, [r3]
	str	r3, [r5, #4]
	bl	snmp_error
	ldr	r3, .L34+72
	ldr	r0, [r3]
	b	.L1
.L24:
	ldr	r0, .L34+76
	bl	snmp_error
	ldr	r3, .L34+32
	ldr	r0, [r3]
	b	.L1
.L16:
	mov	r0, r4
	add	r1, r5, #12
	bl	asn_get_integer
	ldr	r3, [r6]
	cmp	r0, r3
	bne	.L24
	ldr	r3, .L34+80
	ldr	r2, [r5, #12]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L23
	mov	r1, r5
	mov	r0, r4
	bl	parse_secparams
	ldr	r3, [r6]
	cmp	r0, r3
	beq	.L19
	b	.L23
.L31:
	bl	__stack_chk_fail
.L35:
	.align	2
.L34:
	.word	.LC10
	.word	ASN_ERR_OK
	.word	SNMP_V1
	.word	SNMP_V3
	.word	SNMP_COMMUNITY_MAXLEN
	.word	SNMP_CODE_OK
	.word	.LC2
	.word	.LC0
	.word	SNMP_CODE_FAILED
	.word	.LC5
	.word	.LC3
	.word	.LC1
	.word	.LC9
	.word	SNMP_V2c
	.word	.LC8
	.word	.LC6
	.word	SNMP_Verr
	.word	.LC4
	.word	SNMP_CODE_BADENC
	.word	.LC7
	.word	SNMP_SECMODEL_USM
	.size	snmp_pdu_decode_header, .-snmp_pdu_decode_header
	.comm	SNMP_Verr,4,4
	.comm	SNMP_V3,4,4
	.comm	SNMP_V2c,4,4
	.comm	SNMP_V1,4,4
	.comm	SNMP_SECMODEL_USM,4,4
	.comm	SNMP_COMMUNITY_MAXLEN,4,4
	.comm	SNMP_CODE_OK,4,4
	.comm	SNMP_CODE_FAILED,4,4
	.comm	SNMP_CODE_BADENC,4,4
	.comm	ASN_ERR_OK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
