	.file	"extr_t4_smt.c_t4_smt_set_switching.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	t4_smt_set_switching
	.type	t4_smt_set_switching, @function
t4_smt_set_switching:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	xor	r14d, r14d
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	lea	rdi, 32[rsi]
	call	atomic_load_acq_int@PLT
	cmp	eax, 1
	je	.L7
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r14d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	rdi, rbp
	call	mtx_lock@PLT
	mov	rax, QWORD PTR 8[rbx]
	mov	edi, DWORD PTR 4[rbp]
	mov	rsi, r12
	mov	edx, DWORD PTR ETHER_ADDR_LEN[rip]
	mov	QWORD PTR 24[rbp], rax
	mov	eax, DWORD PTR [rbx]
	mov	DWORD PTR 12[rbp], r13d
	mov	DWORD PTR 16[rbp], eax
	mov	eax, DWORD PTR SMT_STATE_SWITCHING[rip]
	mov	DWORD PTR 8[rbp], eax
	call	memcpy@PLT
	mov	rdi, rbp
	call	t4_write_sme@PLT
	mov	rdi, rbp
	mov	r14d, eax
	call	mtx_unlock@PLT
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	eax, r14d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	t4_smt_set_switching, .-t4_smt_set_switching
	.comm	SMT_STATE_SWITCHING,4,4
	.comm	ETHER_ADDR_LEN,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_smt_set_switching.c"
	.text
	.align	2
	.global	t4_smt_set_switching
	.syntax unified
	.arm
	.fpu softvfp
	.type	t4_smt_set_switching, %function
t4_smt_set_switching:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r0
	add	r0, r1, #24
	mov	r4, r1
	mov	r7, r2
	mov	r5, r3
	bl	atomic_load_acq_int
	cmp	r0, #1
	movne	r4, #0
	beq	.L6
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	mov	r0, r4
	bl	mtx_lock
	ldr	r3, .L7
	ldr	r0, [r6, #4]
	ldr	r2, [r6]
	ldr	ip, [r3]
	ldr	r3, .L7+4
	str	ip, [r4, #8]
	mov	r1, r5
	str	r0, [r4, #20]
	str	r2, [r4, #16]
	str	r7, [r4, #12]
	ldr	r2, [r3]
	ldr	r0, [r4, #4]
	bl	memcpy
	mov	r0, r4
	bl	t4_write_sme
	mov	r3, r0
	mov	r0, r4
	mov	r4, r3
	bl	mtx_unlock
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	.align	2
.L7:
	.word	SMT_STATE_SWITCHING
	.word	ETHER_ADDR_LEN
	.size	t4_smt_set_switching, .-t4_smt_set_switching
	.comm	SMT_STATE_SWITCHING,4,4
	.comm	ETHER_ADDR_LEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
