	.file	"extr_t4_smt.c_t4_init_smt.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"SMT"
.LC1:
	.string	"SMT_E"
	.text
	.p2align 4
	.globl	t4_init_smt
	.type	t4_init_smt, @function
t4_init_smt:
.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, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	ebx, DWORD PTR SMT_SIZE[rip]
	mov	edx, DWORD PTR M_ZERO[rip]
	mov	edi, ebx
	or	edx, esi
	mov	esi, DWORD PTR M_CXGBE[rip]
	sal	edi, 4
	add	edi, 24
	call	malloc@PLT
	test	rax, rax
	je	.L9
	mov	DWORD PTR [rax], ebx
	lea	rdi, 16[rax]
	lea	rsi, .LC0[rip]
	mov	rbp, rax
	call	rw_init@PLT
	test	ebx, ebx
	jle	.L4
	lea	r13d, -1[rbx]
	xor	r15d, r15d
	lea	r12, .LC1[rip]
	.p2align 4,,10
	.p2align 3
.L5:
	mov	eax, DWORD PTR SMT_STATE_UNUSED[rip]
	mov	rbx, r15
	xor	edx, edx
	mov	rsi, r12
	sal	rbx, 4
	add	rbx, QWORD PTR 8[rbp]
	mov	ecx, DWORD PTR MTX_DEF[rip]
	mov	DWORD PTR [rbx], r15d
	lea	rdi, 8[rbx]
	mov	DWORD PTR 12[rbx], eax
	call	mtx_init@PLT
	lea	rdi, 4[rbx]
	xor	esi, esi
	call	atomic_store_rel_int@PLT
	mov	rax, r15
	add	r15, 1
	cmp	rax, r13
	jne	.L5
.L4:
	mov	QWORD PTR [r14], rbp
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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
.L9:
	.cfi_restore_state
	mov	eax, DWORD PTR ENOMEM[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 56
	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
	.cfi_endproc
.LFE0:
	.size	t4_init_smt, .-t4_init_smt
	.comm	SMT_STATE_UNUSED,4,4
	.comm	SMT_SIZE,4,4
	.comm	M_ZERO,4,4
	.comm	M_CXGBE,4,4
	.comm	MTX_DEF,4,4
	.comm	ENOMEM,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_t4_smt.c_t4_init_smt.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"SMT\000"
	.align	2
.LC1:
	.ascii	"SMT_E\000"
	.text
	.align	2
	.global	t4_init_smt
	.syntax unified
	.arm
	.fpu softvfp
	.type	t4_init_smt, %function
t4_init_smt:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, .L10
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L10+4
	ldr	r7, [r2]
	ldr	r2, [r3]
	ldr	r3, .L10+8
	mov	fp, r0
	lsl	r0, r7, #4
	orr	r2, r1, r2
	add	r0, r0, #12
	ldr	r1, [r3]
	bl	malloc
	subs	r6, r0, #0
	beq	.L9
	mov	r0, r6
	ldr	r1, .L10+12
	str	r7, [r0], #8
	bl	rw_init
	cmp	r7, #0
	ble	.L4
	mov	r4, #0
	ldr	r10, .L10+16
	ldr	r9, .L10+20
	ldr	r8, .L10+24
.L5:
	ldr	r3, [r6, #4]
	ldr	r2, [r10]
	add	r5, r3, r4, lsl #4
	str	r4, [r3, r4, lsl #4]
	mov	r1, r8
	ldr	r3, [r9]
	str	r2, [r5, #12]
	add	r0, r5, #8
	mov	r2, #0
	bl	mtx_init
	add	r4, r4, #1
	mov	r1, #0
	add	r0, r5, #4
	bl	atomic_store_rel_int
	cmp	r7, r4
	bne	.L5
.L4:
	mov	r0, #0
	str	r6, [fp]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L9:
	ldr	r3, .L10+28
	ldr	r0, [r3]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L11:
	.align	2
.L10:
	.word	SMT_SIZE
	.word	M_ZERO
	.word	M_CXGBE
	.word	.LC0
	.word	SMT_STATE_UNUSED
	.word	MTX_DEF
	.word	.LC1
	.word	ENOMEM
	.size	t4_init_smt, .-t4_init_smt
	.comm	SMT_STATE_UNUSED,4,4
	.comm	SMT_SIZE,4,4
	.comm	M_ZERO,4,4
	.comm	M_CXGBE,4,4
	.comm	MTX_DEF,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
