	.file	"extr_khrn_client_platform_linux.c_platform_tls_get.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Attaching process"
	.text
	.p2align 4
	.globl	platform_tls_get
	.type	platform_tls_get, @function
platform_tls_get:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR process_attached[rip]
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	ebp, edi
	test	eax, eax
	je	.L7
	mov	edi, ebp
	call	vcos_tls_get@PLT
	test	rax, rax
	je	.L8
.L1:
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	vcos_log_trace@PLT
	xor	eax, eax
	call	client_process_attach@PLT
	mov	ebp, DWORD PTR client_tls[rip]
	xor	eax, eax
	mov	DWORD PTR process_attached[rip], 1
	call	vc_vchi_khronos_init@PLT
	mov	edi, ebp
	call	vcos_tls_get@PLT
	test	rax, rax
	jne	.L1
.L8:
	call	client_thread_attach@PLT
	mov	edi, DWORD PTR client_thread_detach[rip]
	xor	esi, esi
	call	vcos_thread_at_exit@PLT
	mov	edi, ebp
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	vcos_tls_get@PLT
	.cfi_endproc
.LFE0:
	.size	platform_tls_get, .-platform_tls_get
	.comm	process_attached,4,4
	.comm	client_tls,4,4
	.comm	client_thread_detach,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_khrn_client_platform_linux.c_platform_tls_get.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Attaching process\000"
	.text
	.align	2
	.global	platform_tls_get
	.syntax unified
	.arm
	.fpu softvfp
	.type	platform_tls_get, %function
platform_tls_get:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r5, .L8
	ldr	r3, [r5]
	cmp	r3, #0
	movne	r4, r0
	beq	.L7
.L2:
	mov	r0, r4
	bl	vcos_tls_get
	subs	r5, r0, #0
	popne	{r4, r5, r6, pc}
	bl	client_thread_attach
	ldr	r3, .L8+4
	mov	r1, r5
	ldr	r0, [r3]
	bl	vcos_thread_at_exit
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	vcos_tls_get
.L7:
	ldr	r0, .L8+8
	bl	vcos_log_trace
	bl	client_process_attach
	mov	r2, #1
	ldr	r3, .L8+12
	str	r2, [r5]
	ldr	r4, [r3]
	bl	vc_vchi_khronos_init
	b	.L2
.L9:
	.align	2
.L8:
	.word	process_attached
	.word	client_thread_detach
	.word	.LC0
	.word	client_tls
	.size	platform_tls_get, .-platform_tls_get
	.comm	process_attached,4,4
	.comm	client_tls,4,4
	.comm	client_thread_detach,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
