	.file	"extr_bsnmptc.c_parse_bport_id.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Bad bridge port priority value %d"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"Bad port number - %d"
.LC2:
	.string	"malloc failed: %s"
	.text
	.p2align 4
	.type	parse_bport_id, @function
parse_bport_id:
.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
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rbx, rdi
	mov	rdi, rsi
	sub	rsp, 24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR SNMP_BPORT_OCTETS[rip]
	mov	rcx, rsp
	lea	rax, 15[0+rax*4]
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L16:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L16
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L17
.L4:
	lea	r12, 3[rsp]
	lea	r15, -64[rbp]
	mov	edx, 10
	mov	r14d, DWORD PTR errno[rip]
	mov	DWORD PTR errno[rip], 0
	mov	r13, r12
	mov	rsi, r15
	and	r12, -4
	call	strtoul@PLT
	shr	r13, 2
	cmp	DWORD PTR SNMP_MAX_BPORT_PRIORITY[rip], eax
	mov	esi, eax
	jl	.L5
	mov	eax, DWORD PTR errno[rip]
	test	eax, eax
	jne	.L5
	mov	rdi, QWORD PTR -64[rbp]
	cmp	BYTE PTR [rdi], 46
	je	.L6
.L5:
	lea	rdi, .LC0[rip]
	mov	DWORD PTR errno[rip], r14d
	call	warnx@PLT
	mov	eax, -1
.L1:
	mov	rbx, QWORD PTR -56[rbp]
	xor	rbx, QWORD PTR fs:40
	jne	.L18
	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
.L17:
	.cfi_restore_state
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L6:
	mov	DWORD PTR 0[0+r13*4], esi
	add	rdi, 1
	mov	edx, 16
	mov	rsi, r15
	call	strtoul@PLT
	cmp	eax, 255
	jg	.L19
	mov	DWORD PTR 4[0+r13*4], eax
	mov	edi, DWORD PTR SNMP_BPORT_OCTETS[rip]
	call	malloc@PLT
	mov	QWORD PTR 16[rbx], rax
	mov	rdi, rax
	test	rax, rax
	je	.L20
	mov	edx, DWORD PTR SNMP_BPORT_OCTETS[rip]
	mov	rsi, r12
	mov	DWORD PTR 8[rbx], edx
	call	memcpy@PLT
	mov	eax, DWORD PTR SNMP_SYNTAX_OCTETSTRING[rip]
	mov	DWORD PTR [rbx], eax
	mov	eax, 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L19:
	mov	esi, eax
	lea	rdi, .LC1[rip]
	call	warnx@PLT
	mov	eax, -1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L20:
	mov	edi, DWORD PTR errno[rip]
	call	strerror@PLT
	mov	edi, DWORD PTR LOG_ERR[rip]
	lea	rsi, .LC2[rip]
	mov	edx, eax
	call	syslog@PLT
	mov	eax, -1
	jmp	.L1
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	parse_bport_id, .-parse_bport_id
	.comm	errno,4,4
	.comm	SNMP_SYNTAX_OCTETSTRING,4,4
	.comm	SNMP_MAX_BPORT_PRIORITY,4,4
	.comm	SNMP_BPORT_OCTETS,4,4
	.comm	LOG_ERR,4,4
	.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_bsnmptc.c_parse_bport_id.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Bad bridge port priority value %d\000"
	.align	2
.LC1:
	.ascii	"Bad port number - %d\000"
	.align	2
.LC2:
	.ascii	"malloc failed: %s\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_bport_id, %function
parse_bport_id:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, fp, lr}
	add	fp, sp, #24
	sub	sp, sp, #12
	mov	ip, #0
	ldr	r6, .L13
	ldr	r4, .L13+4
	ldr	r3, [r6]
	mov	r2, #10
	lsl	r3, r3, #2
	add	r3, r3, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	ldr	r3, .L13+8
	mov	r5, r0
	mov	r0, r1
	sub	r1, fp, #36
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	ldr	r7, [r4]
	str	ip, [r4]
	bl	strtoul
	ldr	r2, .L13+12
	mov	r3, r0
	ldr	r2, [r2]
	cmp	r2, r0
	blt	.L2
	ldr	r2, [r4]
	cmp	r2, #0
	bne	.L2
	ldr	r0, [fp, #-36]
	ldrb	r2, [r0]	@ zero_extendqisi2
	cmp	r2, #46
	beq	.L3
.L2:
	mov	r1, r3
	ldr	r0, .L13+16
	str	r7, [r4]
	bl	warnx
	mvn	r0, #0
.L1:
	ldr	r3, .L13+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	sub	sp, fp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, fp, pc}
.L3:
	mov	r8, sp
	mov	r2, #16
	sub	r1, fp, #36
	add	r0, r0, #1
	str	r3, [r8]
	bl	strtoul
	cmp	r0, #255
	bgt	.L11
	ldr	r6, [r6]
	str	r0, [r8, #4]
	mov	r0, r6
	bl	malloc
	cmp	r0, #0
	str	r0, [r5, #8]
	beq	.L12
	mov	r2, r6
	mov	r1, r8
	str	r6, [r5, #4]
	bl	memcpy
	ldr	r3, .L13+20
	mov	r0, #1
	ldr	r3, [r3]
	str	r3, [r5]
	b	.L1
.L11:
	mov	r1, r0
	ldr	r0, .L13+24
	bl	warnx
	mvn	r0, #0
	b	.L1
.L10:
	bl	__stack_chk_fail
.L12:
	ldr	r3, .L13+28
	ldr	r0, [r4]
	ldr	r4, [r3]
	bl	strerror
	ldr	r1, .L13+32
	mov	r2, r0
	mov	r0, r4
	bl	syslog
	mvn	r0, #0
	b	.L1
.L14:
	.align	2
.L13:
	.word	SNMP_BPORT_OCTETS
	.word	errno
	.word	.LC3
	.word	SNMP_MAX_BPORT_PRIORITY
	.word	.LC0
	.word	SNMP_SYNTAX_OCTETSTRING
	.word	.LC1
	.word	LOG_ERR
	.word	.LC2
	.size	parse_bport_id, .-parse_bport_id
	.comm	errno,4,4
	.comm	SNMP_SYNTAX_OCTETSTRING,4,4
	.comm	SNMP_MAX_BPORT_PRIORITY,4,4
	.comm	SNMP_BPORT_OCTETS,4,4
	.comm	LOG_ERR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
