	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_platform_tls_get               ## -- Begin function platform_tls_get
	.p2align	4, 0x90
_platform_tls_get:                      ## @platform_tls_get
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %ebx
	movq	_process_attached@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_vcos_log_trace
	xorl	%eax, %eax
	callq	_client_process_attach
	movl	$1, (%r14)
	movq	_client_tls@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_vc_vchi_khronos_init
LBB0_2:
	movl	%ebx, %edi
	callq	_vcos_tls_get
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	xorl	%eax, %eax
	callq	_client_thread_attach
	movq	_client_thread_detach@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_vcos_thread_at_exit
	movl	%ebx, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_vcos_tls_get                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_process_attached,4,2           ## @process_attached
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Attaching process"

	.comm	_client_tls,4,2                 ## @client_tls
	.comm	_client_thread_detach,4,2       ## @client_thread_detach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_platform_tls_get               ; -- Begin function platform_tls_get
	.p2align	2
_platform_tls_get:                      ; @platform_tls_get
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x20, _process_attached@GOTPAGE
Lloh1:
	ldr	x20, [x20, _process_attached@GOTPAGEOFF]
	ldr	w8, [x20]
	cbnz	w8, LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_vcos_log_trace
	bl	_client_process_attach
	mov	w8, #1
	str	w8, [x20]
Lloh4:
	adrp	x8, _client_tls@GOTPAGE
Lloh5:
	ldr	x8, [x8, _client_tls@GOTPAGEOFF]
Lloh6:
	ldr	w19, [x8]
	bl	_vc_vchi_khronos_init
LBB0_2:
	mov	x0, x19
	bl	_vcos_tls_get
	cbz	x0, LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	bl	_client_thread_attach
Lloh7:
	adrp	x8, _client_thread_detach@GOTPAGE
Lloh8:
	ldr	x8, [x8, _client_thread_detach@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_vcos_thread_at_exit
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_vcos_tls_get
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_process_attached,4,2           ; @process_attached
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Attaching process"

	.comm	_client_tls,4,2                 ; @client_tls
	.comm	_client_thread_detach,4,2       ; @client_thread_detach
.subsections_via_symbols
