	.file	"extr_classq_sfb.c_sfb_alloc.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s: SFB unable to allocate\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"%s: SFB unable to allocate bins\n"
	.align 8
.LC2:
	.string	"%s: SFB unable to allocate flow control lists\n"
	.align 8
.LC3:
	.string	"%s: SFB qid=%d, ECN not available; ignoring SFBF_ECN flag!\n"
	.text
	.p2align 4
	.globl	sfb_alloc
	.type	sfb_alloc, @function
sfb_alloc:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rcx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	test	rdi, rdi
	setne	al
	xor	edi, edi
	test	rdx, rdx
	setg	dil
	and	edi, eax
	call	VERIFY@PLT
	mov	edi, DWORD PTR sfb_zone[rip]
	call	zalloc@PLT
	mov	r15, rax
	test	rax, rax
	je	.L16
	mov	esi, DWORD PTR sfb_size[rip]
	mov	rdi, rax
	call	bzero@PLT
	mov	edi, DWORD PTR sfb_bins_zone[rip]
	call	zalloc@PLT
	mov	QWORD PTR 40[r15], rax
	mov	rdi, rax
	test	rax, rax
	je	.L17
	mov	esi, DWORD PTR sfb_bins_size[rip]
	call	bzero@PLT
	mov	edi, DWORD PTR sfb_fcl_zone[rip]
	call	zalloc@PLT
	mov	QWORD PTR 32[r15], rax
	mov	rdi, rax
	test	rax, rax
	je	.L18
	mov	esi, DWORD PTR sfb_fcl_size[rip]
	call	bzero@PLT
	mov	eax, DWORD PTR SFB_BINS[rip]
	test	eax, eax
	jle	.L6
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L7:
	mov	esi, ebx
	mov	rdi, r15
	add	ebx, 1
	call	SFB_FC_LIST@PLT
	mov	rdi, rax
	call	STAILQ_INIT@PLT
	cmp	DWORD PTR SFB_BINS[rip], ebx
	jg	.L7
.L6:
	mov	eax, DWORD PTR SFBF_ECN[rip]
	and	ebp, DWORD PTR SFBF_USERFLAGS[rip]
	mov	QWORD PTR 24[r15], r12
	mov	QWORD PTR 16[r15], r13
	mov	QWORD PTR 8[r15], r14
	mov	DWORD PTR [r15], ebp
	test	ebp, eax
	jne	.L19
.L8:
	mov	esi, DWORD PTR CLASSQ_EV_INIT[rip]
	mov	rdi, r15
	call	sfb_resetq@PLT
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r15
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	not	eax
	mov	rdi, r12
	and	ebp, eax
	mov	DWORD PTR [r15], ebp
	call	if_name@PLT
	mov	edi, DWORD PTR LOG_ERR[rip]
	mov	rcx, r14
	lea	rsi, .LC3[rip]
	mov	edx, eax
	xor	eax, eax
	call	log@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rdi, r12
	call	if_name@PLT
	mov	edi, DWORD PTR LOG_ERR[rip]
	lea	rsi, .LC0[rip]
	mov	edx, eax
	xor	eax, eax
	call	log@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rdi, r12
	call	if_name@PLT
	lea	rsi, .LC1[rip]
	mov	edx, eax
.L14:
	mov	edi, DWORD PTR LOG_ERR[rip]
	xor	eax, eax
	call	log@PLT
	mov	rdi, r15
	xor	r15d, r15d
	call	sfb_destroy@PLT
	jmp	.L1
.L18:
	mov	rdi, r12
	call	if_name@PLT
	lea	rsi, .LC2[rip]
	mov	edx, eax
	jmp	.L14
	.cfi_endproc
.LFE0:
	.size	sfb_alloc, .-sfb_alloc
	.comm	sfb_zone,4,4
	.comm	sfb_size,4,4
	.comm	sfb_fcl_zone,4,4
	.comm	sfb_fcl_size,4,4
	.comm	sfb_bins_zone,4,4
	.comm	sfb_bins_size,4,4
	.comm	SFB_BINS,4,4
	.comm	SFBF_USERFLAGS,8,8
	.comm	SFBF_ECN,4,4
	.comm	LOG_ERR,4,4
	.comm	CLASSQ_EV_INIT,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_classq_sfb.c_sfb_alloc.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s: SFB unable to allocate\012\000"
	.align	2
.LC1:
	.ascii	"%s: SFB unable to allocate bins\012\000"
	.align	2
.LC2:
	.ascii	"%s: SFB unable to allocate flow control lists\012\000"
	.align	2
.LC3:
	.ascii	"%s: SFB qid=%d, ECN not available; ignoring SFBF_EC"
	.ascii	"N flag!\012\000"
	.text
	.align	2
	.global	sfb_alloc
	.syntax unified
	.arm
	.fpu softvfp
	.type	sfb_alloc, %function
sfb_alloc:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r7, r0
	cmp	r2, #0
	movle	r0, #0
	movgt	r0, #1
	cmp	r7, #0
	moveq	r0, #0
	mov	r9, r1
	mov	r10, r3
	mov	r8, r2
	bl	VERIFY
	ldr	r3, .L19
	ldr	r0, [r3]
	bl	zalloc
	subs	r5, r0, #0
	beq	.L15
	ldr	r3, .L19+4
	ldr	r1, [r3]
	bl	bzero
	ldr	r3, .L19+8
	ldr	r0, [r3]
	bl	zalloc
	cmp	r0, #0
	mov	r4, r0
	str	r0, [r5, #20]
	beq	.L16
	ldr	r3, .L19+12
	ldr	r1, [r3]
	bl	bzero
	ldr	r3, .L19+16
	ldr	r0, [r3]
	bl	zalloc
	cmp	r0, #0
	mov	r4, r0
	str	r0, [r5, #16]
	beq	.L17
	ldr	r3, .L19+20
	ldr	r6, .L19+24
	ldr	r1, [r3]
	bl	bzero
	ldr	r3, [r6]
	cmp	r3, #0
	ble	.L6
	mov	r4, #0
.L7:
	mov	r1, r4
	mov	r0, r5
	bl	SFB_FC_LIST
	bl	STAILQ_INIT
	ldr	ip, [r6]
	add	r4, r4, #1
	cmp	ip, r4
	bgt	.L7
.L6:
	ldr	r3, .L19+28
	ldr	r2, .L19+32
	ldr	r3, [r3]
	ldr	r2, [r2]
	and	r3, r3, r10
	tst	r3, r2
	stm	r5, {r3, r9}
	str	r7, [r5, #12]
	str	r8, [r5, #8]
	bne	.L18
.L8:
	ldr	r3, .L19+36
	mov	r0, r5
	ldr	r1, [r3]
	bl	sfb_resetq
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L18:
	bic	r3, r3, r2
	ldr	r2, .L19+40
	str	r3, [r5]
	mov	r0, r7
	ldr	r4, [r2]
	bl	if_name
	ldr	r3, [r5, #4]
	mov	r2, r0
	ldr	r1, .L19+44
	mov	r0, r4
	bl	log
	b	.L8
.L15:
	ldr	r3, .L19+40
	mov	r0, r7
	ldr	r4, [r3]
	bl	if_name
	ldr	r1, .L19+48
	mov	r2, r0
	mov	r0, r4
	bl	log
	b	.L1
.L16:
	ldr	r3, .L19+40
	mov	r0, r7
	ldr	r6, [r3]
	bl	if_name
	ldr	r1, .L19+52
	mov	r2, r0
	mov	r0, r6
	bl	log
	mov	r0, r5
	bl	sfb_destroy
	mov	r5, r4
	b	.L1
.L17:
	ldr	r3, .L19+40
	mov	r0, r7
	ldr	r6, [r3]
	bl	if_name
	ldr	r1, .L19+56
	mov	r2, r0
	mov	r0, r6
	bl	log
	mov	r0, r5
	bl	sfb_destroy
	mov	r5, r4
	b	.L1
.L20:
	.align	2
.L19:
	.word	sfb_zone
	.word	sfb_size
	.word	sfb_bins_zone
	.word	sfb_bins_size
	.word	sfb_fcl_zone
	.word	sfb_fcl_size
	.word	SFB_BINS
	.word	SFBF_USERFLAGS
	.word	SFBF_ECN
	.word	CLASSQ_EV_INIT
	.word	LOG_ERR
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	sfb_alloc, .-sfb_alloc
	.comm	sfb_zone,4,4
	.comm	sfb_size,4,4
	.comm	sfb_fcl_zone,4,4
	.comm	sfb_fcl_size,4,4
	.comm	sfb_bins_zone,4,4
	.comm	sfb_bins_size,4,4
	.comm	SFB_BINS,4,4
	.comm	SFBF_USERFLAGS,4,4
	.comm	SFBF_ECN,4,4
	.comm	LOG_ERR,4,4
	.comm	CLASSQ_EV_INIT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
