	.file	"529049.c"
	.intel_syntax noprefix
	.text
	.globl	A_SG_GTS
	.bss
	.align 4
	.type	A_SG_GTS, @object
	.size	A_SG_GTS, 4
A_SG_GTS:
	.zero	4
	.globl	EDOOFUS
	.align 4
	.type	EDOOFUS, @object
	.size	EDOOFUS, 4
EDOOFUS:
	.zero	4
	.globl	EXT_JUMBO16
	.align 4
	.type	EXT_JUMBO16, @object
	.size	EXT_JUMBO16, 4
EXT_JUMBO16:
	.zero	4
	.globl	EXT_JUMBO9
	.align 4
	.type	EXT_JUMBO9, @object
	.size	EXT_JUMBO9, 4
EXT_JUMBO9:
	.zero	4
	.globl	EXT_JUMBOP
	.align 4
	.type	EXT_JUMBOP, @object
	.size	EXT_JUMBOP, 4
EXT_JUMBOP:
	.zero	4
	.globl	EXT_PACKET
	.align 4
	.type	EXT_PACKET, @object
	.size	EXT_PACKET, 4
EXT_PACKET:
	.zero	4
	.globl	IFCAP_LRO
	.align 4
	.type	IFCAP_LRO, @object
	.size	IFCAP_LRO, 4
IFCAP_LRO:
	.zero	4
	.globl	INT_MAX
	.align 4
	.type	INT_MAX, @object
	.size	INT_MAX, 4
INT_MAX:
	.zero	4
	.globl	MCLBYTES
	.align 8
	.type	MCLBYTES, @object
	.size	MCLBYTES, 8
MCLBYTES:
	.zero	8
	.globl	MJUM16BYTES
	.align 8
	.type	MJUM16BYTES, @object
	.size	MJUM16BYTES, 8
MJUM16BYTES:
	.zero	8
	.globl	MJUM9BYTES
	.align 8
	.type	MJUM9BYTES, @object
	.size	MJUM9BYTES, 8
MJUM9BYTES:
	.zero	8
	.globl	MJUMPAGESIZE
	.align 8
	.type	MJUMPAGESIZE, @object
	.size	MJUMPAGESIZE, 8
MJUMPAGESIZE:
	.zero	8
	.globl	MTX_DEF
	.align 4
	.type	MTX_DEF, @object
	.size	MTX_DEF, 4
MTX_DEF:
	.zero	4
	.globl	M_DEVBUF
	.align 4
	.type	M_DEVBUF, @object
	.size	M_DEVBUF, 4
M_DEVBUF:
	.zero	4
	.globl	M_NOWAIT
	.align 4
	.type	M_NOWAIT, @object
	.size	M_NOWAIT, 4
M_NOWAIT:
	.zero	4
	.globl	M_WAITOK
	.align 4
	.type	M_WAITOK, @object
	.size	M_WAITOK, 4
M_WAITOK:
	.zero	4
	.globl	M_ZERO
	.align 4
	.type	M_ZERO, @object
	.size	M_ZERO, 4
M_ZERO:
	.zero	4
	.globl	RSPQ_NAME_LEN
	.align 4
	.type	RSPQ_NAME_LEN, @object
	.size	RSPQ_NAME_LEN, 4
RSPQ_NAME_LEN:
	.zero	4
	.globl	SGE_CNTXT_CTRL
	.align 4
	.type	SGE_CNTXT_CTRL, @object
	.size	SGE_CNTXT_CTRL, 4
SGE_CNTXT_CTRL:
	.zero	4
	.globl	SGE_CNTXT_ETH
	.align 4
	.type	SGE_CNTXT_ETH, @object
	.size	SGE_CNTXT_ETH, 4
SGE_CNTXT_ETH:
	.zero	4
	.globl	SGE_CNTXT_OFLD
	.align 4
	.type	SGE_CNTXT_OFLD, @object
	.size	SGE_CNTXT_OFLD, 4
SGE_CNTXT_OFLD:
	.zero	4
	.globl	SGE_RXQ_PER_SET
	.align 4
	.type	SGE_RXQ_PER_SET, @object
	.size	SGE_RXQ_PER_SET, 4
SGE_RXQ_PER_SET:
	.zero	4
	.globl	TXQ_CTRL
	.align 4
	.type	TXQ_CTRL, @object
	.size	TXQ_CTRL, 4
TXQ_CTRL:
	.zero	4
	.globl	TXQ_ETH
	.align 8
	.type	TXQ_ETH, @object
	.size	TXQ_ETH, 8
TXQ_ETH:
	.zero	8
	.globl	TXQ_OFLD
	.align 8
	.type	TXQ_OFLD, @object
	.size	TXQ_OFLD, 8
TXQ_OFLD:
	.zero	8
	.globl	TX_MAX_SEGS
	.align 8
	.type	TX_MAX_SEGS, @object
	.size	TX_MAX_SEGS, 8
TX_MAX_SEGS:
	.zero	8
	.globl	USE_GTS
	.align 4
	.type	USE_GTS, @object
	.size	USE_GTS, 4
USE_GTS:
	.zero	4
	.globl	cxgb_txq_buf_ring_size
	.align 4
	.type	cxgb_txq_buf_ring_size, @object
	.size	cxgb_txq_buf_ring_size, 4
cxgb_txq_buf_ring_size:
	.zero	4
	.globl	mp_ncpus
	.align 8
	.type	mp_ncpus, @object
	.size	mp_ncpus, 8
mp_ncpus:
	.zero	8
	.globl	restart_ctrlq
	.align 4
	.type	restart_ctrlq, @object
	.size	restart_ctrlq, 4
restart_ctrlq:
	.zero	4
	.globl	restart_offloadq
	.align 4
	.type	restart_offloadq, @object
	.size	restart_offloadq, 4
restart_offloadq:
	.zero	4
	.globl	sge_txq_reclaim_handler
	.align 4
	.type	sge_txq_reclaim_handler, @object
	.size	sge_txq_reclaim_handler, 4
sge_txq_reclaim_handler:
	.zero	4
	.globl	zone_jumbo16
	.align 4
	.type	zone_jumbo16, @object
	.size	zone_jumbo16, 4
zone_jumbo16:
	.zero	4
	.globl	zone_jumbo9
	.align 4
	.type	zone_jumbo9, @object
	.size	zone_jumbo9, 4
zone_jumbo9:
	.zero	4
	.globl	zone_jumbop
	.align 4
	.type	zone_jumbop, @object
	.size	zone_jumbop, 4
zone_jumbop:
	.zero	4
	.globl	zone_pack
	.align 4
	.type	zone_pack, @object
	.size	zone_pack, 4
zone_pack:
	.zero	4
	.section	.rodata
.LC0:
	.string	"failed to allocate mbuf ring\n"
.LC1:
	.string	"failed to allocate ifq\n"
.LC2:
	.string	"error %d from alloc ring fl0\n"
.LC3:
	.string	"error %d from alloc ring fl1\n"
	.align 8
.LC4:
	.string	"error %d from alloc ring rspq\n"
.LC5:
	.string	"t3 rspq lock %d:%d"
	.align 8
.LC6:
	.string	"error %d from alloc ring tx %i\n"
	.align 8
.LC7:
	.string	"error %d from t3_sge_init_rspcntxt\n"
	.align 8
.LC8:
	.string	"error %d from t3_sge_init_flcntxt for index i=%d\n"
	.align 8
.LC9:
	.string	"error %d from t3_sge_init_ecntxt\n"
	.text
	.globl	t3_sge_alloc_qset
	.type	t3_sge_alloc_qset, @function
t3_sge_alloc_qset:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 88
	.cfi_offset 3, -24
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	DWORD PTR -68[rbp], edx
	mov	DWORD PTR -72[rbp], ecx
	mov	QWORD PTR -80[rbp], r8
	mov	DWORD PTR -84[rbp], r9d
	mov	rax, QWORD PTR -56[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, rdx
	sal	rax, 4
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	QWORD PTR -32[rbp], rax
	mov	DWORD PTR -36[rbp], 0
	mov	edx, DWORD PTR MTX_DEF[rip]
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 128[rax]
	mov	rcx, QWORD PTR -32[rbp]
	lea	rdi, 104[rcx]
	mov	ecx, edx
	mov	edx, 0
	mov	esi, eax
	call	MTX_INIT@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR 16[rbp]
	mov	QWORD PTR 120[rax], rdx
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -56[rbp]
	mov	QWORD PTR 112[rax], rdx
	mov	rax, QWORD PTR -32[rbp]
	lea	rcx, 104[rax]
	mov	edx, DWORD PTR M_WAITOK[rip]
	mov	esi, DWORD PTR M_DEVBUF[rip]
	mov	edi, DWORD PTR cxgb_txq_buf_ring_size[rip]
	mov	rax, QWORD PTR -32[rbp]
	mov	r9, QWORD PTR 80[rax]
	mov	r8, QWORD PTR TXQ_ETH[rip]
	mov	rax, r8
	add	rax, rax
	add	rax, r8
	sal	rax, 5
	lea	rbx, [r9+rax]
	call	buf_ring_alloc@PLT
	mov	QWORD PTR 88[rbx], rax
	mov	rax, QWORD PTR 88[rbx]
	test	rax, rax
	jne	.L2
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 24[rax]
	lea	rsi, .LC0[rip]
	mov	edi, eax
	call	device_printf@PLT
	jmp	.L3
.L2:
	mov	edx, DWORD PTR M_NOWAIT[rip]
	mov	eax, DWORD PTR M_ZERO[rip]
	or	edx, eax
	mov	ecx, DWORD PTR M_DEVBUF[rip]
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, QWORD PTR 80[rax]
	mov	rsi, QWORD PTR TXQ_ETH[rip]
	mov	rax, rsi
	add	rax, rax
	add	rax, rsi
	sal	rax, 5
	lea	rbx, [rdi+rax]
	mov	esi, ecx
	mov	edi, 4
	call	malloc@PLT
	mov	QWORD PTR 80[rbx], rax
	mov	rax, QWORD PTR 80[rbx]
	test	rax, rax
	jne	.L4
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 24[rax]
	lea	rsi, .LC1[rip]
	mov	edi, eax
	call	device_printf@PLT
	jmp	.L3
.L4:
	mov	rax, QWORD PTR 16[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, QWORD PTR 80[rax]
	mov	rcx, QWORD PTR TXQ_ETH[rip]
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 5
	add	rax, rsi
	mov	rax, QWORD PTR 80[rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	ifq_init@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, QWORD PTR 80[rax]
	mov	rdx, QWORD PTR TXQ_ETH[rip]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 5
	add	rax, rcx
	add	rax, 72
	mov	esi, 1
	mov	rdi, rax
	call	callout_init@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, QWORD PTR 80[rax]
	mov	rdx, QWORD PTR TXQ_ETH[rip]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 5
	add	rax, rcx
	add	rax, 64
	mov	esi, 1
	mov	rdi, rax
	call	callout_init@PLT
	mov	rsi, QWORD PTR mp_ncpus[rip]
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, QWORD PTR 80[rax]
	mov	rdx, QWORD PTR TXQ_ETH[rip]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 5
	add	rcx, rax
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, 0
	div	rsi
	mov	rax, rdx
	mov	QWORD PTR 72[rcx], rax
	mov	rsi, QWORD PTR mp_ncpus[rip]
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, QWORD PTR 80[rax]
	mov	rdx, QWORD PTR TXQ_ETH[rip]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 5
	add	rcx, rax
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, 0
	div	rsi
	mov	rax, rdx
	mov	QWORD PTR 64[rcx], rax
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	init_qset_cntxt@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -64[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 72[rax]
	lea	r9, 40[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR 40[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 72[rax]
	lea	r8, 44[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 72[rax]
	lea	rdi, 48[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 72[rax]
	lea	rcx, 52[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 72[rax]
	lea	r11, 56[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 72[rax]
	lea	r10, 24[rax]
	mov	rax, QWORD PTR -80[rbp]
	mov	rsi, QWORD PTR 32[rax]
	mov	rax, QWORD PTR -56[rbp]
	sub	rsp, 8
	push	r9
	push	rdx
	push	r8
	push	rdi
	push	rcx
	mov	r9, r11
	mov	r8, r10
	mov	ecx, 4
	mov	edx, 4
	mov	rdi, rax
	call	alloc_ring@PLT
	add	rsp, 48
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	je	.L5
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L3
.L5:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 72[rax]
	add	rax, 64
	lea	r9, 40[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR 32[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 72[rax]
	add	rax, 64
	lea	r8, 44[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 72[rax]
	add	rax, 64
	lea	rdi, 48[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 72[rax]
	add	rax, 64
	lea	rcx, 52[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 72[rax]
	add	rax, 64
	lea	r11, 56[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 72[rax]
	add	rax, 64
	lea	r10, 24[rax]
	mov	rax, QWORD PTR -80[rbp]
	mov	rsi, QWORD PTR 24[rax]
	mov	rax, QWORD PTR -56[rbp]
	sub	rsp, 8
	push	r9
	push	rdx
	push	r8
	push	rdi
	push	rcx
	mov	r9, r11
	mov	r8, r10
	mov	ecx, 4
	mov	edx, 4
	mov	rdi, rax
	call	alloc_ring@PLT
	add	rsp, 48
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	je	.L6
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L3
.L6:
	mov	rax, QWORD PTR -32[rbp]
	lea	rcx, 56[rax]
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 60[rax]
	mov	rax, QWORD PTR -32[rbp]
	lea	r8, 64[rax]
	mov	rax, QWORD PTR -32[rbp]
	lea	rdi, 32[rax]
	mov	rax, QWORD PTR -80[rbp]
	mov	rsi, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -56[rbp]
	sub	rsp, 8
	push	0
	push	0
	push	rcx
	push	rdx
	push	0
	mov	r9, r8
	mov	r8, rdi
	mov	ecx, 0
	mov	edx, 4
	mov	rdi, rax
	call	alloc_ring@PLT
	add	rsp, 48
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	je	.L7
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L3
.L7:
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 24[rax]
	mov	edi, eax
	call	device_get_unit@PLT
	mov	edx, eax
	mov	esi, DWORD PTR RSPQ_NAME_LEN[rip]
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 48[rax]
	mov	ecx, DWORD PTR -72[rbp]
	mov	r8d, ecx
	mov	ecx, edx
	lea	rdx, .LC5[rip]
	mov	edi, eax
	call	snprintf@PLT
	mov	edx, DWORD PTR MTX_DEF[rip]
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 48[rax]
	mov	rcx, QWORD PTR -32[rbp]
	lea	rdi, 52[rcx]
	mov	ecx, edx
	mov	edx, 0
	mov	esi, eax
	call	MTX_INIT@PLT
	mov	DWORD PTR -40[rbp], 0
	jmp	.L8
.L12:
	mov	eax, DWORD PTR TXQ_CTRL[rip]
	cmp	DWORD PTR -40[rbp], eax
	jne	.L9
	mov	eax, 0
	jmp	.L10
.L9:
	mov	eax, 4
.L10:
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, QWORD PTR 80[rax]
	mov	eax, DWORD PTR -40[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 5
	add	rax, rcx
	lea	r10, 44[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	rcx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, QWORD PTR 80[rax]
	mov	eax, DWORD PTR -40[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 5
	add	rax, rsi
	lea	r9, 48[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, QWORD PTR 80[rax]
	mov	eax, DWORD PTR -40[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 5
	add	rax, rsi
	lea	r8, 52[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, QWORD PTR 80[rax]
	mov	eax, DWORD PTR -40[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 5
	add	rax, rsi
	lea	rdi, 56[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, QWORD PTR 80[rax]
	mov	eax, DWORD PTR -40[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 5
	add	rax, rsi
	lea	rbx, 60[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, QWORD PTR 80[rax]
	mov	eax, DWORD PTR -40[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 5
	add	rax, rsi
	lea	r11, 24[rax]
	mov	rax, QWORD PTR -80[rbp]
	mov	rdx, QWORD PTR 40[rax]
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rsi, QWORD PTR [rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -56[rbp]
	sub	rsp, 8
	push	r10
	push	rcx
	push	r9
	push	r8
	push	rdi
	mov	r9, rbx
	mov	r8, r11
	mov	rcx, rdx
	mov	edx, 4
	mov	rdi, rax
	call	alloc_ring@PLT
	add	rsp, 48
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	je	.L11
	mov	edx, DWORD PTR -40[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L3
.L11:
	mov	edx, DWORD PTR INT_MAX[rip]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, QWORD PTR 80[rax]
	mov	eax, DWORD PTR -40[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 5
	add	rax, rsi
	add	rax, 40
	mov	esi, edx
	mov	rdi, rax
	call	mbufq_init@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, QWORD PTR 80[rax]
	mov	eax, DWORD PTR -40[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 5
	add	rax, rcx
	mov	DWORD PTR [rax], 1
	mov	rax, QWORD PTR -80[rbp]
	mov	rdx, QWORD PTR 40[rax]
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	sal	rax, 3
	lea	rcx, [rdx+rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, QWORD PTR 80[rax]
	mov	eax, DWORD PTR -40[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 5
	lea	rdx, [rsi+rax]
	mov	rax, QWORD PTR [rcx]
	mov	QWORD PTR 16[rdx], rax
	add	DWORD PTR -40[rbp], 1
.L8:
	mov	eax, DWORD PTR -40[rbp]
	cmp	eax, DWORD PTR -84[rbp]
	jl	.L12
	mov	edx, DWORD PTR restart_ctrlq[rip]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, QWORD PTR 80[rax]
	mov	eax, DWORD PTR TXQ_CTRL[rip]
	movsx	rcx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 5
	add	rax, rsi
	lea	rdi, 36[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, rax
	mov	esi, 0
	call	TASK_INIT@PLT
	mov	edx, DWORD PTR sge_txq_reclaim_handler[rip]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, QWORD PTR 80[rax]
	mov	rcx, QWORD PTR TXQ_ETH[rip]
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 5
	add	rax, rsi
	lea	rdi, 32[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, rax
	mov	esi, 0
	call	TASK_INIT@PLT
	mov	edx, DWORD PTR sge_txq_reclaim_handler[rip]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, QWORD PTR 80[rax]
	mov	rcx, QWORD PTR TXQ_OFLD[rip]
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 5
	add	rax, rsi
	lea	rdi, 32[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, rax
	mov	esi, 0
	call	TASK_INIT@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 72[rax]
	add	rax, 64
	mov	DWORD PTR [rax], 1
	mov	rdx, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR 72[rdx]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 72[rax]
	mov	rdx, QWORD PTR -80[rbp]
	mov	rdx, QWORD PTR 32[rdx]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 72[rax]
	lea	rdx, 64[rax]
	mov	rax, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR 16[rdx], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR 8[rax], 1
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR 40[rax], 0
	mov	rax, QWORD PTR -80[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR 24[rax], rdx
	mov	rax, QWORD PTR TX_MAX_SEGS[rip]
	add	rax, 1
	mov	rdi, rax
	call	sgl_len@PLT
	add	rax, 3
	mov	rdi, rax
	call	flits_to_desc@PLT
	mov	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, QWORD PTR 80[rax]
	mov	rcx, QWORD PTR TXQ_ETH[rip]
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 5
	lea	rcx, [rsi+rax]
	mov	eax, edx
	imul	eax, DWORD PTR -68[rbp]
	mov	DWORD PTR 4[rcx], eax
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 72[rax]
	mov	rdx, QWORD PTR MCLBYTES[rip]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 72[rax]
	mov	edx, DWORD PTR zone_pack[rip]
	mov	DWORD PTR 36[rax], edx
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 72[rax]
	mov	edx, DWORD PTR EXT_PACKET[rip]
	mov	DWORD PTR 32[rax], edx
	mov	rax, QWORD PTR -80[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR MJUM16BYTES[rip]
	cmp	rdx, rax
	jne	.L13
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 72[rax]
	lea	rdx, 64[rax]
	mov	eax, DWORD PTR zone_jumbo16[rip]
	mov	DWORD PTR 36[rdx], eax
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 72[rax]
	lea	rdx, 64[rax]
	mov	eax, DWORD PTR EXT_JUMBO16[rip]
	mov	DWORD PTR 32[rdx], eax
	jmp	.L14
.L13:
	mov	rax, QWORD PTR -80[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR MJUM9BYTES[rip]
	cmp	rdx, rax
	jne	.L15
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 72[rax]
	lea	rdx, 64[rax]
	mov	eax, DWORD PTR zone_jumbo9[rip]
	mov	DWORD PTR 36[rdx], eax
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 72[rax]
	lea	rdx, 64[rax]
	mov	eax, DWORD PTR EXT_JUMBO9[rip]
	mov	DWORD PTR 32[rdx], eax
	jmp	.L14
.L15:
	mov	rax, QWORD PTR -80[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR MJUMPAGESIZE[rip]
	cmp	rdx, rax
	jne	.L16
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 72[rax]
	lea	rdx, 64[rax]
	mov	eax, DWORD PTR zone_jumbop[rip]
	mov	DWORD PTR 36[rdx], eax
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 72[rax]
	lea	rdx, 64[rax]
	mov	eax, DWORD PTR EXT_JUMBOP[rip]
	mov	DWORD PTR 32[rdx], eax
	jmp	.L14
.L16:
	mov	rax, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	mov	edi, 0
	call	KASSERT@PLT
	mov	eax, DWORD PTR EDOOFUS[rip]
	mov	DWORD PTR -36[rbp], eax
	jmp	.L3
.L14:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 72[rax]
	lea	rdx, 64[rax]
	mov	rax, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR 8[rdx], rax
	mov	rax, QWORD PTR 16[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR IFCAP_LRO[rip]
	and	eax, edx
	test	eax, eax
	setne	al
	movzx	edx, al
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR 88[rax], edx
	mov	rax, QWORD PTR 16[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR 96[rax], rdx
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	mtx_lock_spin@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 72[rax]
	mov	r8, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, QWORD PTR 24[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	ecx, DWORD PTR 32[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, DWORD PTR 16[rax]
	mov	edx, DWORD PTR -72[rbp]
	mov	rax, QWORD PTR -56[rbp]
	push	0
	push	1
	mov	r9, r8
	mov	r8, rdi
	mov	rdi, rax
	call	t3_sge_init_rspcntxt@PLT
	add	rsp, 16
	neg	eax
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	je	.L17
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L18
.L17:
	mov	DWORD PTR -40[rbp], 0
	jmp	.L19
.L21:
	mov	rax, QWORD PTR -80[rbp]
	mov	ecx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR 72[rax]
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	sal	rax, 6
	add	rax, rdx
	mov	r8, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR 72[rax]
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	sal	rax, 6
	add	rax, rdx
	mov	rdi, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR 72[rax]
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	sal	rax, 6
	add	rax, rdx
	mov	edx, DWORD PTR 24[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, QWORD PTR 72[rax]
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	sal	rax, 6
	add	rax, rsi
	mov	esi, DWORD PTR 28[rax]
	mov	rax, QWORD PTR -56[rbp]
	sub	rsp, 8
	push	0
	push	1
	push	rcx
	mov	r9, r8
	mov	r8, rdi
	mov	ecx, edx
	mov	edx, 0
	mov	rdi, rax
	call	t3_sge_init_flcntxt@PLT
	add	rsp, 32
	neg	eax
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	je	.L20
	mov	edx, DWORD PTR -40[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L18
.L20:
	add	DWORD PTR -40[rbp], 1
.L19:
	mov	eax, DWORD PTR SGE_RXQ_PER_SET[rip]
	cmp	DWORD PTR -40[rbp], eax
	jl	.L21
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, QWORD PTR 80[rax]
	mov	rdx, QWORD PTR TXQ_ETH[rip]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 5
	add	rax, rcx
	mov	r8d, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, QWORD PTR 80[rax]
	mov	rdx, QWORD PTR TXQ_ETH[rip]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 5
	add	rax, rcx
	mov	rdi, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, QWORD PTR 80[rax]
	mov	rdx, QWORD PTR TXQ_ETH[rip]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 5
	add	rax, rcx
	mov	r9d, DWORD PTR 24[rax]
	mov	ecx, DWORD PTR SGE_CNTXT_ETH[rip]
	mov	edx, DWORD PTR USE_GTS[rip]
	mov	rax, QWORD PTR -32[rbp]
	mov	r10, QWORD PTR 80[rax]
	mov	rsi, QWORD PTR TXQ_ETH[rip]
	mov	rax, rsi
	add	rax, rax
	add	rax, rsi
	sal	rax, 5
	add	rax, r10
	mov	esi, DWORD PTR 28[rax]
	mov	r10, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -56[rbp]
	push	0
	push	1
	push	r8
	push	rdi
	mov	r8, r10
	mov	rdi, rax
	call	t3_sge_init_ecntxt@PLT
	add	rsp, 32
	neg	eax
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	je	.L22
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L18
.L22:
	cmp	DWORD PTR -84[rbp], 1
	jle	.L23
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, QWORD PTR 80[rax]
	mov	rdx, QWORD PTR TXQ_OFLD[rip]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 5
	add	rax, rcx
	mov	rdi, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, QWORD PTR 80[rax]
	mov	rdx, QWORD PTR TXQ_OFLD[rip]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 5
	add	rax, rcx
	mov	r9d, DWORD PTR 24[rax]
	mov	ecx, DWORD PTR SGE_CNTXT_OFLD[rip]
	mov	edx, DWORD PTR USE_GTS[rip]
	mov	rax, QWORD PTR -32[rbp]
	mov	r8, QWORD PTR 80[rax]
	mov	rsi, QWORD PTR TXQ_OFLD[rip]
	mov	rax, rsi
	add	rax, rax
	add	rax, rsi
	sal	rax, 5
	add	rax, r8
	mov	esi, DWORD PTR 28[rax]
	mov	r8, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -56[rbp]
	push	0
	push	1
	push	0
	push	rdi
	mov	rdi, rax
	call	t3_sge_init_ecntxt@PLT
	add	rsp, 32
	neg	eax
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	je	.L23
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L18
.L23:
	cmp	DWORD PTR -84[rbp], 2
	jle	.L24
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, QWORD PTR 80[rax]
	mov	eax, DWORD PTR TXQ_CTRL[rip]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 5
	add	rax, rcx
	mov	edi, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, QWORD PTR 80[rax]
	mov	eax, DWORD PTR TXQ_CTRL[rip]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 5
	add	rax, rcx
	mov	rcx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, QWORD PTR 80[rax]
	mov	eax, DWORD PTR TXQ_CTRL[rip]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 5
	add	rax, rsi
	mov	r9d, DWORD PTR 24[rax]
	mov	edx, DWORD PTR SGE_CNTXT_CTRL[rip]
	mov	rax, QWORD PTR -32[rbp]
	mov	r8, QWORD PTR 80[rax]
	mov	eax, DWORD PTR TXQ_CTRL[rip]
	movsx	rsi, eax
	mov	rax, rsi
	add	rax, rax
	add	rax, rsi
	sal	rax, 5
	add	rax, r8
	mov	esi, DWORD PTR 28[rax]
	mov	r8, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -56[rbp]
	push	0
	push	1
	push	rdi
	push	rcx
	mov	ecx, edx
	mov	edx, 0
	mov	rdi, rax
	call	t3_sge_init_ecntxt@PLT
	add	rsp, 32
	neg	eax
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	je	.L24
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L18
.L24:
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	mtx_unlock_spin@PLT
	mov	rdx, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	t3_update_qset_coalesce@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 72[rax]
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, QWORD PTR 72[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	refill_fl@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 72[rax]
	add	rax, 64
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 72[rax]
	lea	rcx, 64[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	refill_fl@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 24[rax]
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -32[rbp]
	lea	rcx, 8[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	refill_rspq@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 16[rax]
	mov	edi, eax
	call	V_RSPQ@PLT
	mov	ebx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 12[rax]
	mov	edi, eax
	call	V_NEWTIMER@PLT
	or	ebx, eax
	mov	edx, ebx
	mov	ecx, DWORD PTR A_SG_GTS[rip]
	mov	rax, QWORD PTR -56[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	t3_write_reg@PLT
	mov	eax, 0
	jmp	.L25
.L18:
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	mtx_unlock_spin@PLT
.L3:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	TXQ_LOCK@PLT
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	t3_free_qset@PLT
	mov	eax, DWORD PTR -36[rbp]
.L25:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	t3_sge_alloc_qset, .-t3_sge_alloc_qset
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"529049.c"
	.text
	.comm	A_SG_GTS,4,4
	.comm	EDOOFUS,4,4
	.comm	EXT_JUMBO16,4,4
	.comm	EXT_JUMBO9,4,4
	.comm	EXT_JUMBOP,4,4
	.comm	EXT_PACKET,4,4
	.comm	IFCAP_LRO,4,4
	.comm	INT_MAX,4,4
	.comm	MCLBYTES,4,4
	.comm	MJUM16BYTES,4,4
	.comm	MJUM9BYTES,4,4
	.comm	MJUMPAGESIZE,4,4
	.comm	MTX_DEF,4,4
	.comm	M_DEVBUF,4,4
	.comm	M_NOWAIT,4,4
	.comm	M_WAITOK,4,4
	.comm	M_ZERO,4,4
	.comm	RSPQ_NAME_LEN,4,4
	.comm	SGE_CNTXT_CTRL,4,4
	.comm	SGE_CNTXT_ETH,4,4
	.comm	SGE_CNTXT_OFLD,4,4
	.comm	SGE_RXQ_PER_SET,4,4
	.comm	TXQ_CTRL,4,4
	.comm	TXQ_ETH,4,4
	.comm	TXQ_OFLD,4,4
	.comm	TX_MAX_SEGS,4,4
	.comm	USE_GTS,4,4
	.comm	cxgb_txq_buf_ring_size,4,4
	.comm	mp_ncpus,4,4
	.comm	restart_ctrlq,4,4
	.comm	restart_offloadq,4,4
	.comm	sge_txq_reclaim_handler,4,4
	.comm	zone_jumbo16,4,4
	.comm	zone_jumbo9,4,4
	.comm	zone_jumbop,4,4
	.comm	zone_pack,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"failed to allocate mbuf ring\012\000"
	.align	2
.LC1:
	.ascii	"failed to allocate ifq\012\000"
	.global	__aeabi_uidivmod
	.align	2
.LC2:
	.ascii	"error %d from alloc ring fl0\012\000"
	.align	2
.LC3:
	.ascii	"error %d from alloc ring fl1\012\000"
	.align	2
.LC4:
	.ascii	"error %d from alloc ring rspq\012\000"
	.align	2
.LC5:
	.ascii	"t3 rspq lock %d:%d\000"
	.align	2
.LC6:
	.ascii	"error %d from alloc ring tx %i\012\000"
	.align	2
.LC7:
	.ascii	"error %d from t3_sge_init_rspcntxt\012\000"
	.align	2
.LC8:
	.ascii	"error %d from t3_sge_init_flcntxt for index i=%d\012"
	.ascii	"\000"
	.align	2
.LC9:
	.ascii	"error %d from t3_sge_init_ecntxt\012\000"
	.text
	.align	2
	.global	t3_sge_alloc_qset
	.syntax unified
	.arm
	.fpu softvfp
	.type	t3_sge_alloc_qset, %function
t3_sge_alloc_qset:
	@ args = 12, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #64
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-40]
	ldr	r1, [r3, #4]
	ldr	r2, [fp, #-44]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-28]
	add	r0, r3, #64
	ldr	r3, [fp, #-28]
	ldr	r1, [r3, #76]
	ldr	r3, .L26
	ldr	r3, [r3]
	mov	r2, #0
	bl	MTX_INIT
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #12]
	str	r2, [r3, #72]
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-40]
	str	r2, [r3, #68]
	ldr	r3, .L26+4
	ldr	r0, [r3]
	ldr	r3, .L26+8
	ldr	ip, [r3]
	ldr	r3, .L26+12
	ldr	lr, [r3]
	ldr	r3, [fp, #-28]
	add	r5, r3, #64
	ldr	r3, [fp, #-28]
	ldr	r1, [r3, #52]
	ldr	r3, .L26+16
	ldr	r2, [r3]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r4, r1, r3
	mov	r3, r5
	mov	r2, lr
	mov	r1, ip
	bl	buf_ring_alloc
	mov	r3, r0
	str	r3, [r4, #68]
	ldr	r3, [r4, #68]
	cmp	r3, #0
	bne	.L2
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #12]
	ldr	r1, .L26+20
	mov	r0, r3
	bl	device_printf
	b	.L3
.L2:
	ldr	r3, .L26+8
	ldr	r0, [r3]
	ldr	r3, .L26+24
	ldr	r2, [r3]
	ldr	r3, .L26+28
	ldr	r3, [r3]
	orr	ip, r2, r3
	ldr	r3, [fp, #-28]
	ldr	r1, [r3, #52]
	ldr	r3, .L26+16
	ldr	r2, [r3]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r4, r1, r3
	mov	r2, ip
	mov	r1, r0
	mov	r0, #4
	bl	malloc
	mov	r3, r0
	str	r3, [r4, #64]
	ldr	r3, [r4, #64]
	cmp	r3, #0
	bne	.L4
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #12]
	ldr	r1, .L26+32
	mov	r0, r3
	bl	device_printf
	b	.L3
.L4:
	ldr	r3, [fp, #-28]
	ldr	r1, [r3, #52]
	ldr	r3, .L26+16
	ldr	r2, [r3]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldr	r2, [r3, #64]
	ldr	r3, [fp, #12]
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	ifq_init
	ldr	r3, [fp, #-28]
	ldr	r1, [r3, #52]
	ldr	r3, .L26+16
	ldr	r2, [r3]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #60
	mov	r1, #1
	mov	r0, r3
	bl	callout_init
	ldr	r3, [fp, #-28]
	ldr	r1, [r3, #52]
	ldr	r3, .L26+16
	ldr	r2, [r3]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #56
	mov	r1, #1
	mov	r0, r3
	bl	callout_init
	ldr	r3, .L26+36
	ldr	r0, [r3]
	ldr	r3, [fp, #-28]
	ldr	r1, [r3, #52]
	ldr	r3, .L26+16
	ldr	r2, [r3]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r4, r1, r3
	ldr	r3, [fp, #-44]
	mov	r1, r0
	mov	r0, r3
	bl	__aeabi_uidivmod
	mov	r3, r1
	str	r3, [r4, #60]
	ldr	r3, .L26+36
	ldr	r0, [r3]
	ldr	r3, [fp, #-28]
	ldr	r1, [r3, #52]
	ldr	r3, .L26+16
	ldr	r2, [r3]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r4, r1, r3
	ldr	r3, [fp, #-44]
	mov	r1, r0
	mov	r0, r3
	bl	__aeabi_uidivmod
	mov	r3, r1
	str	r3, [r4, #56]
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-28]
	bl	init_qset_cntxt
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-44]
	str	r2, [r3]
	ldr	r3, [fp, #4]
	ldr	r5, [r3, #16]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #48]
	add	r3, r3, #12
	ldr	r2, [fp, #-28]
	ldr	r2, [r2, #48]
	add	r2, r2, #44
	ldr	r1, [fp, #-28]
	ldr	r1, [r1, #48]
	add	r1, r1, #40
	ldr	r0, [fp, #-28]
	ldr	r0, [r0, #48]
	add	r0, r0, #36
	ldr	ip, [fp, #-28]
	ldr	ip, [ip, #48]
	add	ip, ip, #32
	ldr	lr, [fp, #-40]
	ldr	lr, [lr, #20]
	ldr	r4, [fp, #-28]
	ldr	r4, [r4, #48]
	add	r4, r4, #28
	str	r4, [sp, #24]
	str	lr, [sp, #20]
	str	ip, [sp, #16]
	str	r0, [sp, #12]
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, #4
	mov	r2, #4
	mov	r1, r5
	ldr	r0, [fp, #-40]
	bl	alloc_ring
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L5
	ldr	r1, [fp, #-32]
	ldr	r0, .L26+40
	bl	printf
	b	.L3
.L5:
	ldr	r3, [fp, #4]
	ldr	r5, [r3, #12]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #48]
	add	r3, r3, #48
	add	r3, r3, #12
	ldr	r2, [fp, #-28]
	ldr	r2, [r2, #48]
	add	r2, r2, #48
	add	r2, r2, #44
	ldr	r1, [fp, #-28]
	ldr	r1, [r1, #48]
	add	r1, r1, #48
	add	r1, r1, #40
	ldr	r0, [fp, #-28]
	ldr	r0, [r0, #48]
	add	r0, r0, #48
	add	r0, r0, #36
	ldr	ip, [fp, #-28]
	ldr	ip, [ip, #48]
	add	ip, ip, #48
	add	ip, ip, #32
	ldr	lr, [fp, #-40]
	ldr	lr, [lr, #16]
	ldr	r4, [fp, #-28]
	ldr	r4, [r4, #48]
	add	r4, r4, #48
	add	r4, r4, #28
	str	r4, [sp, #24]
	str	lr, [sp, #20]
	str	ip, [sp, #16]
	str	r0, [sp, #12]
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, #4
	mov	r2, #4
	mov	r1, r5
	ldr	r0, [fp, #-40]
	bl	alloc_ring
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L6
	ldr	r1, [fp, #-32]
	ldr	r0, .L26+44
	bl	printf
	b	.L3
.L6:
	ldr	r3, [fp, #4]
	ldr	ip, [r3, #8]
	ldr	r3, [fp, #-28]
	add	r3, r3, #20
	ldr	r2, [fp, #-28]
	add	r2, r2, #44
	ldr	r1, [fp, #-28]
	add	r1, r1, #40
	ldr	r0, [fp, #-28]
	add	r0, r0, #36
	mov	lr, #0
	str	lr, [sp, #24]
	mov	lr, #0
	str	lr, [sp, #20]
	str	r0, [sp, #16]
	str	r1, [sp, #12]
	mov	r1, #0
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #4
	mov	r1, ip
	ldr	r0, [fp, #-40]
	bl	alloc_ring
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L7
	ldr	r1, [fp, #-32]
	ldr	r0, .L26+48
	bl	printf
	b	.L3
.L7:
	ldr	r3, [fp, #-28]
	ldr	r4, [r3, #28]
	ldr	r3, .L26+52
	ldr	r5, [r3]
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #12]
	mov	r0, r3
	bl	device_get_unit
	mov	r2, r0
	ldr	r3, [fp, #-52]
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, .L26+56
	mov	r1, r5
	mov	r0, r4
	bl	snprintf
	ldr	r3, [fp, #-28]
	add	r0, r3, #32
	ldr	r3, [fp, #-28]
	ldr	r1, [r3, #28]
	ldr	r3, .L26
	ldr	r3, [r3]
	mov	r2, #0
	bl	MTX_INIT
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L8
.L12:
	ldr	r3, .L26+60
	ldr	r3, [r3]
	ldr	r2, [fp, #-36]
	cmp	r2, r3
	bne	.L9
	mov	r3, #0
	b	.L10
.L9:
	mov	r3, #4
.L10:
	str	r3, [fp, #-24]
	ldr	r3, [fp, #4]
	ldr	r2, [r3, #20]
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r7, [r3]
	ldr	r3, [fp, #-28]
	ldr	r1, [r3, #52]
	ldr	r2, [fp, #-36]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r1, r3, #16
	ldr	r3, [fp, #-28]
	ldr	r0, [r3, #52]
	ldr	r2, [fp, #-36]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r0, r3
	add	r0, r3, #52
	ldr	r3, [fp, #-28]
	ldr	ip, [r3, #52]
	ldr	r2, [fp, #-36]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, ip, r3
	add	ip, r3, #48
	ldr	r3, [fp, #-28]
	ldr	lr, [r3, #52]
	ldr	r2, [fp, #-36]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, lr, r3
	add	lr, r3, #44
	ldr	r3, [fp, #-28]
	ldr	r4, [r3, #52]
	ldr	r2, [fp, #-36]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r4, r3
	add	r4, r3, #40
	ldr	r3, [fp, #-40]
	ldr	r5, [r3, #8]
	ldr	r3, [fp, #-28]
	ldr	r6, [r3, #52]
	ldr	r2, [fp, #-36]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r6, r3
	add	r3, r3, #36
	str	r3, [sp, #24]
	str	r5, [sp, #20]
	str	r4, [sp, #16]
	str	lr, [sp, #12]
	str	ip, [sp, #8]
	str	r0, [sp, #4]
	str	r1, [sp]
	ldr	r3, [fp, #-24]
	mov	r2, #4
	mov	r1, r7
	ldr	r0, [fp, #-40]
	bl	alloc_ring
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L11
	ldr	r2, [fp, #-36]
	ldr	r1, [fp, #-32]
	ldr	r0, .L26+64
	bl	printf
	b	.L3
.L11:
	ldr	r3, [fp, #-28]
	ldr	r1, [r3, #52]
	ldr	r2, [fp, #-36]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #32
	ldr	r2, .L26+68
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	mbufq_init
	ldr	r3, [fp, #-28]
	ldr	r1, [r3, #52]
	ldr	r2, [fp, #-36]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, [fp, #4]
	ldr	r2, [r3, #20]
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	add	r1, r2, r3
	ldr	r3, [fp, #-28]
	ldr	r0, [r3, #52]
	ldr	r2, [fp, #-36]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r0, r3
	ldr	r2, [r1]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L8:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #8]
	cmp	r2, r3
	blt	.L12
	ldr	r3, [fp, #-28]
	ldr	r2, [r3, #52]
	ldr	r3, .L26+60
	ldr	r3, [r3]
	mov	r1, r3
	mov	r3, r1
	lsl	r3, r3, #3
	add	r3, r3, r1
	lsl	r3, r3, #3
	add	r3, r2, r3
	add	r0, r3, #28
	ldr	r3, .L26+72
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	mov	r1, #0
	bl	TASK_INIT
	ldr	r3, [fp, #-28]
	ldr	r1, [r3, #52]
	ldr	r3, .L26+16
	ldr	r2, [r3]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r0, r3, #24
	ldr	r3, .L26+76
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	mov	r1, #0
	bl	TASK_INIT
	ldr	r3, [fp, #-28]
	ldr	r1, [r3, #52]
	ldr	r3, .L26+80
	ldr	r2, [r3]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r0, r3, #24
	ldr	r3, .L26+76
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	mov	r1, #0
	bl	TASK_INIT
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #48]
	add	r3, r3, #48
	mov	r2, #1
	str	r2, [r3]
	ldr	r2, [fp, #-28]
	ldr	r2, [r2, #48]
	ldr	r3, [r3]
	str	r3, [r2]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #48]
	ldr	r2, [fp, #4]
	ldr	r2, [r2, #16]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #48]
	add	r3, r3, #48
	ldr	r2, [fp, #4]
	ldr	r2, [r2, #12]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-28]
	mov	r2, #1
	str	r2, [r3, #4]
	ldr	r3, [fp, #-28]
	mov	r2, #0
	str	r2, [r3, #24]
	ldr	r3, [fp, #4]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-28]
	str	r2, [r3, #16]
	ldr	r3, .L26+84
	ldr	r3, [r3]
	add	r3, r3, #1
	mov	r0, r3
	bl	sgl_len
	mov	r3, r0
	add	r3, r3, #3
	mov	r0, r3
	bl	flits_to_desc
	ldr	r3, [fp, #-28]
	ldr	r1, [r3, #52]
	ldr	r3, .L26+16
	ldr	r2, [r3]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldr	r2, [fp, #-48]
	mul	r2, r0, r2
	str	r2, [r3, #4]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #48]
	ldr	r2, .L26+88
	ldr	r2, [r2]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #48]
	ldr	r2, .L26+92
	ldr	r2, [r2]
	str	r2, [r3, #24]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #48]
	ldr	r2, .L26+96
	ldr	r2, [r2]
	str	r2, [r3, #20]
	ldr	r3, [fp, #4]
	ldr	r2, [r3]
	ldr	r3, .L26+100
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L13
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #48]
	add	r3, r3, #48
	ldr	r2, .L26+104
	ldr	r2, [r2]
	str	r2, [r3, #24]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #48]
	add	r3, r3, #48
	ldr	r2, .L26+108
	ldr	r2, [r2]
	str	r2, [r3, #20]
	b	.L14
.L13:
	ldr	r3, [fp, #4]
	ldr	r2, [r3]
	ldr	r3, .L26+112
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L15
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #48]
	add	r3, r3, #48
	ldr	r2, .L26+116
	ldr	r2, [r2]
	str	r2, [r3, #24]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #48]
	add	r3, r3, #48
	ldr	r2, .L26+120
	ldr	r2, [r2]
	str	r2, [r3, #20]
	b	.L14
.L15:
	ldr	r3, [fp, #4]
	ldr	r2, [r3]
	ldr	r3, .L26+124
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L16
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #48]
	add	r3, r3, #48
	ldr	r2, .L26+128
	ldr	r2, [r2]
	str	r2, [r3, #24]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #48]
	add	r3, r3, #48
	ldr	r2, .L26+132
	ldr	r2, [r2]
	str	r2, [r3, #20]
	b	.L14
.L16:
	ldr	r3, [fp, #4]
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #0
	bl	KASSERT
	ldr	r3, .L26+136
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	b	.L3
.L14:
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #48]
	add	r3, r3, #48
	ldr	r2, [fp, #4]
	ldr	r2, [r2]
	str	r2, [r3, #4]
	ldr	r3, [fp, #12]
	ldr	r3, [r3]
	ldr	r2, [r3]
	ldr	r3, .L26+140
	ldr	r3, [r3]
	and	r3, r3, r2
	cmp	r3, #0
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	mov	r2, r3
	ldr	r3, [fp, #-28]
	str	r2, [r3, #56]
	ldr	r3, [fp, #12]
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	str	r2, [r3, #60]
	ldr	r3, [fp, #-40]
	mov	r0, r3
	bl	mtx_lock_spin
	ldr	r3, [fp, #-28]
	ldr	r1, [r3, #12]
	ldr	r3, [fp, #-28]
	ldr	r0, [r3, #20]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #16]
	ldr	r2, [fp, #-28]
	ldr	r2, [r2, #48]
	ldr	r2, [r2, #4]
	mov	ip, #0
	str	ip, [sp, #12]
	mov	ip, #1
	str	ip, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, r0
	ldr	r2, [fp, #-52]
	ldr	r0, [fp, #-40]
	bl	t3_sge_init_rspcntxt
	mov	r3, r0
	rsb	r3, r3, #0
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L17
	ldr	r1, [fp, #-32]
	ldr	r0, .L26+144
	bl	printf
	b	.L18
.L17:
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L19
.L21:
	ldr	r3, [fp, #-28]
	ldr	r1, [r3, #48]
	ldr	r2, [fp, #-36]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	ldr	ip, [r3, #16]
	ldr	r3, [fp, #-28]
	ldr	r1, [r3, #48]
	ldr	r2, [fp, #-36]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	ldr	lr, [r3, #12]
	ldr	r3, [fp, #-28]
	ldr	r1, [r3, #48]
	ldr	r2, [fp, #-36]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	ldr	r1, [r3, #8]
	ldr	r3, [fp, #-28]
	ldr	r0, [r3, #48]
	ldr	r2, [fp, #-36]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r0, r3
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #4]
	ldr	r2, [r2, #4]
	mov	r0, #0
	str	r0, [sp, #16]
	mov	r0, #1
	str	r0, [sp, #12]
	str	r2, [sp, #8]
	str	r3, [sp, #4]
	str	r1, [sp]
	mov	r3, lr
	mov	r2, #0
	mov	r1, ip
	ldr	r0, [fp, #-40]
	bl	t3_sge_init_flcntxt
	mov	r3, r0
	rsb	r3, r3, #0
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L20
	ldr	r2, [fp, #-36]
	ldr	r1, [fp, #-32]
	ldr	r0, .L26+148
	bl	printf
	b	.L18
.L20:
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L19:
	ldr	r3, .L26+152
	ldr	r3, [r3]
	ldr	r2, [fp, #-36]
	cmp	r2, r3
	blt	.L21
	ldr	r3, [fp, #-28]
	ldr	r1, [r3, #52]
	ldr	r3, .L26+16
	ldr	r2, [r3]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldr	lr, [r3, #20]
	ldr	r3, .L26+156
	ldr	r4, [r3]
	ldr	r3, .L26+160
	ldr	r5, [r3]
	ldr	r3, [fp, #-28]
	ldr	r1, [r3, #52]
	ldr	r3, .L26+16
	ldr	r2, [r3]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldr	r1, [r3, #16]
	ldr	r3, [fp, #-28]
	ldr	r0, [r3, #52]
	ldr	r3, .L26+16
	ldr	r2, [r3]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r0, r3
	ldr	r0, [r3, #12]
	ldr	r3, [fp, #-28]
	ldr	ip, [r3, #52]
	ldr	r3, .L26+16
	ldr	r2, [r3]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, ip, r3
	ldr	r3, [r3, #8]
	mov	r2, #0
	str	r2, [sp, #20]
	mov	r2, #1
	str	r2, [sp, #16]
	str	r3, [sp, #12]
	str	r0, [sp, #8]
	str	r1, [sp, #4]
	ldr	r3, [fp, #-44]
	str	r3, [sp]
	mov	r3, r5
	mov	r2, r4
	mov	r1, lr
	ldr	r0, [fp, #-40]
	bl	t3_sge_init_ecntxt
	mov	r3, r0
	rsb	r3, r3, #0
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L22
	ldr	r1, [fp, #-32]
	ldr	r0, .L26+164
	bl	printf
	b	.L18
.L22:
	ldr	r3, [fp, #8]
	cmp	r3, #1
	ble	.L23
	ldr	r3, [fp, #-28]
	ldr	r1, [r3, #52]
	ldr	r3, .L26+80
	ldr	r2, [r3]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldr	ip, [r3, #20]
	ldr	r3, .L26+156
	ldr	lr, [r3]
	ldr	r3, .L26+168
	ldr	r4, [r3]
	ldr	r3, [fp, #-28]
	ldr	r1, [r3, #52]
	ldr	r3, .L26+80
	ldr	r2, [r3]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldr	r1, [r3, #16]
	ldr	r3, [fp, #-28]
	ldr	r0, [r3, #52]
	ldr	r3, .L26+80
	ldr	r2, [r3]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r0, r3
	ldr	r3, [r3, #12]
	mov	r2, #0
	str	r2, [sp, #20]
	mov	r2, #1
	str	r2, [sp, #16]
	mov	r2, #0
	str	r2, [sp, #12]
	str	r3, [sp, #8]
	str	r1, [sp, #4]
	ldr	r3, [fp, #-44]
	str	r3, [sp]
	mov	r3, r4
	mov	r2, lr
	mov	r1, ip
	ldr	r0, [fp, #-40]
	bl	t3_sge_init_ecntxt
	mov	r3, r0
	rsb	r3, r3, #0
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L23
	ldr	r1, [fp, #-32]
	ldr	r0, .L26+164
	bl	printf
	b	.L18
.L23:
	ldr	r3, [fp, #8]
	cmp	r3, #2
	ble	.L24
	ldr	r3, [fp, #-28]
	ldr	r2, [r3, #52]
	ldr	r3, .L26+60
	ldr	r3, [r3]
	mov	r1, r3
	mov	r3, r1
	lsl	r3, r3, #3
	add	r3, r3, r1
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	ip, [r3, #20]
	ldr	r3, .L26+172
	ldr	lr, [r3]
	ldr	r3, [fp, #-28]
	ldr	r2, [r3, #52]
	ldr	r3, .L26+60
	ldr	r3, [r3]
	mov	r1, r3
	mov	r3, r1
	lsl	r3, r3, #3
	add	r3, r3, r1
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r2, [r3, #16]
	ldr	r3, [fp, #-28]
	ldr	r1, [r3, #52]
	ldr	r3, .L26+60
	ldr	r3, [r3]
	mov	r0, r3
	mov	r3, r0
	lsl	r3, r3, #3
	add	r3, r3, r0
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldr	r1, [r3, #12]
	ldr	r3, [fp, #-28]
	ldr	r0, [r3, #52]
	ldr	r3, .L26+60
	ldr	r3, [r3]
	mov	r4, r3
	mov	r3, r4
	lsl	r3, r3, #3
	add	r3, r3, r4
	lsl	r3, r3, #3
	add	r3, r0, r3
	ldr	r3, [r3, #8]
	mov	r0, #0
	str	r0, [sp, #20]
	mov	r0, #1
	str	r0, [sp, #16]
	str	r3, [sp, #12]
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	ldr	r3, [fp, #-44]
	str	r3, [sp]
	mov	r3, lr
	mov	r2, #0
	mov	r1, ip
	ldr	r0, [fp, #-40]
	bl	t3_sge_init_ecntxt
	mov	r3, r0
	rsb	r3, r3, #0
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L24
	ldr	r1, [fp, #-32]
	ldr	r0, .L26+164
	bl	printf
	b	.L18
.L24:
	ldr	r3, [fp, #-40]
	mov	r0, r3
	bl	mtx_unlock_spin
	ldr	r1, [fp, #4]
	ldr	r0, [fp, #-28]
	bl	t3_update_qset_coalesce
	ldr	r3, [fp, #-28]
	ldr	r1, [r3, #48]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #48]
	ldr	r3, [r3, #8]
	mov	r2, r3
	ldr	r0, [fp, #-40]
	bl	refill_fl
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #48]
	add	r1, r3, #48
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #48]
	add	r3, r3, #48
	ldr	r3, [r3, #8]
	mov	r2, r3
	ldr	r0, [fp, #-40]
	bl	refill_fl
	ldr	r3, [fp, #-28]
	add	r1, r3, #4
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #16]
	sub	r3, r3, #1
	mov	r2, r3
	ldr	r0, [fp, #-40]
	bl	refill_rspq
	ldr	r3, .L26+176
	ldr	r4, [r3]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #12]
	mov	r0, r3
	bl	V_RSPQ
	mov	r5, r0
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	V_NEWTIMER
	mov	r3, r0
	orr	r3, r5, r3
	mov	r2, r3
	mov	r1, r4
	ldr	r0, [fp, #-40]
	bl	t3_write_reg
	mov	r3, #0
	b	.L25
.L18:
	ldr	r3, [fp, #-40]
	mov	r0, r3
	bl	mtx_unlock_spin
.L3:
	ldr	r0, [fp, #-28]
	bl	TXQ_LOCK
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-40]
	bl	t3_free_qset
	ldr	r3, [fp, #-32]
.L25:
	mov	r0, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L27:
	.align	2
.L26:
	.word	MTX_DEF
	.word	cxgb_txq_buf_ring_size
	.word	M_DEVBUF
	.word	M_WAITOK
	.word	TXQ_ETH
	.word	.LC0
	.word	M_NOWAIT
	.word	M_ZERO
	.word	.LC1
	.word	mp_ncpus
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	RSPQ_NAME_LEN
	.word	.LC5
	.word	TXQ_CTRL
	.word	.LC6
	.word	INT_MAX
	.word	restart_ctrlq
	.word	sge_txq_reclaim_handler
	.word	TXQ_OFLD
	.word	TX_MAX_SEGS
	.word	MCLBYTES
	.word	zone_pack
	.word	EXT_PACKET
	.word	MJUM16BYTES
	.word	zone_jumbo16
	.word	EXT_JUMBO16
	.word	MJUM9BYTES
	.word	zone_jumbo9
	.word	EXT_JUMBO9
	.word	MJUMPAGESIZE
	.word	zone_jumbop
	.word	EXT_JUMBOP
	.word	EDOOFUS
	.word	IFCAP_LRO
	.word	.LC7
	.word	.LC8
	.word	SGE_RXQ_PER_SET
	.word	USE_GTS
	.word	SGE_CNTXT_ETH
	.word	.LC9
	.word	SGE_CNTXT_OFLD
	.word	SGE_CNTXT_CTRL
	.word	A_SG_GTS
	.size	t3_sge_alloc_qset, .-t3_sge_alloc_qset
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
