	.file	"extr_action.c_set_snmpd_engine.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%.2x"
.LC1:
	.string	"r+"
.LC2:
	.string	"%u"
.LC3:
	.string	"w+"
.LC4:
	.string	"%s%u\n"
	.text
	.p2align 4
	.globl	set_snmpd_engine
	.type	set_snmpd_engine, @function
set_snmpd_engine:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 40
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR SNMP_ENGINE_ID_SIZ[rip]
	mov	rbx, rsp
	lea	r13d, 2[rax+rax]
	movsx	rax, r13d
	add	rax, 15
	mov	rcx, rax
	mov	rdx, rax
	and	rcx, -4096
	and	rdx, -16
	sub	rbx, rcx
	mov	rcx, rbx
	cmp	rsp, rcx
	je	.L3
.L32:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rcx
	jne	.L32
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L33
.L4:
	mov	rdx, rax
	mov	rcx, rsp
	and	rax, -4096
	mov	QWORD PTR -80[rbp], rsp
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L6
.L34:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L34
.L6:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L35
.L7:
	mov	r8, QWORD PTR engine_file[rip]
	mov	QWORD PTR -72[rbp], rsp
	cmp	BYTE PTR [r8], 0
	je	.L17
	cmp	QWORD PTR snmpd_engine[rip], 0
	mov	r15, rsp
	je	.L10
	xor	r14d, r14d
	lea	r12, snmpd_engine[rip]
	lea	rbx, .LC0[rip]
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rax, QWORD PTR snmpd_engine[rip+8]
	mov	rdi, r15
	mov	rsi, rbx
	mov	edx, DWORD PTR [rax+r14*4]
	add	r14, 1
	call	sprintf@PLT
	cdqe
	add	r15, rax
	cmp	QWORD PTR [r12], r14
	ja	.L11
	mov	r8, QWORD PTR engine_file[rip]
.L10:
	mov	eax, 10
	lea	rsi, .LC1[rip]
	mov	rdi, r8
	mov	WORD PTR [r15], ax
	call	fopen@PLT
	mov	r12, rax
	test	rax, rax
	je	.L12
	mov	rdi, QWORD PTR -80[rbp]
	lea	esi, -1[r13]
	mov	rdx, rax
	call	fgets@PLT
	test	rax, rax
	je	.L15
	lea	rdx, snmpd_engine[rip+16]
	lea	rsi, .LC2[rip]
	mov	rdi, r12
	call	fscanf@PLT
	test	rax, rax
	jle	.L15
	mov	rdi, r12
	call	fclose@PLT
	mov	rsi, QWORD PTR -80[rbp]
	mov	rdi, QWORD PTR -72[rbp]
	call	strcmp@PLT
	test	rax, rax
	je	.L16
	mov	DWORD PTR snmpd_engine[rip+16], 1
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rdi, QWORD PTR engine_file[rip]
	lea	rsi, .LC3[rip]
	call	fopen@PLT
	mov	r12, rax
	test	rax, rax
	je	.L17
	mov	ecx, DWORD PTR snmpd_engine[rip+16]
	mov	rdx, QWORD PTR -72[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	fprintf@PLT
	mov	rdi, r12
	call	fclose@PLT
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR -56[rbp]
	xor	rcx, QWORD PTR fs:40
	jne	.L36
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L33:
	.cfi_restore_state
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rax, QWORD PTR ENOENT[rip]
	cmp	QWORD PTR errno[rip], rax
	je	.L14
.L17:
	mov	eax, -1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rdi, r12
	call	fclose@PLT
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L16:
	add	DWORD PTR snmpd_engine[rip+16], 1
	jmp	.L14
.L35:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L7
.L36:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	set_snmpd_engine, .-set_snmpd_engine
	.comm	snmpd_engine,24,16
	.comm	errno,8,8
	.comm	engine_file,8,8
	.comm	SNMP_ENGINE_ID_SIZ,4,4
	.comm	ENOENT,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_action.c_set_snmpd_engine.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%.2x\000"
	.align	2
.LC1:
	.ascii	"r+\000"
	.align	2
.LC2:
	.ascii	"%u\000"
	.align	2
.LC3:
	.ascii	"w+\000"
	.align	2
.LC4:
	.ascii	"%s%u\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	set_snmpd_engine
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_snmpd_engine, %function
set_snmpd_engine:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #20
	ldr	r3, .L21
	ldr	r8, .L21+4
	ldr	r7, [r3]
	ldr	r0, [r8]
	add	r7, r7, #1
	lsl	r3, r7, #1
	str	r3, [fp, #-48]
	add	r3, r3, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	ldrb	r2, [r0]	@ zero_extendqisi2
	mov	r10, sp
	sub	sp, sp, r3
	ldr	r3, .L21+8
	cmp	r2, #0
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	beq	.L11
	ldr	r6, .L21+12
	mov	r9, sp
	ldr	r3, [r6]
	mov	r5, sp
	cmp	r3, #0
	beq	.L4
	mov	r4, #0
	ldr	r7, .L21+16
.L5:
	ldr	r3, [r6, #4]
	mov	r0, r5
	ldr	r2, [r3, r4, lsl #2]
	mov	r1, r7
	bl	sprintf
	ldr	r3, [r6]
	add	r4, r4, #1
	cmp	r3, r4
	add	r5, r5, r0
	bhi	.L5
	ldr	r0, [r8]
.L4:
	mov	r2, #10
	mov	r3, #0
	ldr	r1, .L21+20
	strb	r2, [r5]
	strb	r3, [r5, #1]
	bl	fopen
	subs	r4, r0, #0
	beq	.L6
	ldr	r3, [fp, #-48]
	mov	r2, r4
	mov	r0, r10
	sub	r1, r3, #1
	bl	fgets
	cmp	r0, #0
	beq	.L9
	mov	r0, r4
	ldr	r2, .L21+24
	ldr	r1, .L21+28
	bl	fscanf
	cmp	r0, #0
	ble	.L9
	mov	r0, r4
	bl	fclose
	mov	r1, r10
	mov	r0, r9
	bl	strcmp
	cmp	r0, #0
	movne	r3, #1
	ldreq	r3, [r6, #8]
	addeq	r3, r3, #1
	str	r3, [r6, #8]
.L8:
	ldr	r0, [r8]
	ldr	r1, .L21+32
	bl	fopen
	subs	r4, r0, #0
	beq	.L11
	mov	r2, r9
	ldr	r3, [r6, #8]
	ldr	r1, .L21+36
	bl	fprintf
	mov	r0, r4
	bl	fclose
	mov	r0, #0
.L1:
	ldr	r3, .L21+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L20
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L9:
	mov	r0, r4
	bl	fclose
	b	.L8
.L6:
	ldr	r2, .L21+40
	ldr	r3, .L21+44
	ldr	r2, [r2]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L8
.L11:
	mvn	r0, #0
	b	.L1
.L20:
	bl	__stack_chk_fail
.L22:
	.align	2
.L21:
	.word	SNMP_ENGINE_ID_SIZ
	.word	engine_file
	.word	.LC5
	.word	snmpd_engine
	.word	.LC0
	.word	.LC1
	.word	snmpd_engine+8
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	errno
	.word	ENOENT
	.size	set_snmpd_engine, .-set_snmpd_engine
	.comm	snmpd_engine,12,4
	.comm	errno,4,4
	.comm	engine_file,4,4
	.comm	SNMP_ENGINE_ID_SIZ,4,4
	.comm	ENOENT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
