	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_client_thread_attach           ## -- Begin function client_thread_attach
	.p2align	4, 0x90
_client_thread_attach:                  ## @client_thread_attach
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	leaq	L_.str(%rip), %rsi
	movl	$4, %edi
	callq	_khrn_platform_malloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_client_thread_state_init
	movq	_client_tls@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_platform_tls_set
	movq	%rbx, %rdi
	callq	_client_send_make_current
	movl	$1, %eax
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CLIENT_THREAD_STATE_T"

	.comm	_client_tls,4,2                 ## @client_tls
	.comm	_KHR_SUCCESS,8,3                ## @KHR_SUCCESS
	.comm	_client_tls_mutex,4,2           ## @client_tls_mutex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_client_thread_attach           ; -- Begin function client_thread_attach
	.p2align	2
_client_thread_attach:                  ; @client_thread_attach
	.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
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #4
	bl	_khrn_platform_malloc
	cbz	x0, LBB0_2
; %bb.1:
	mov	x19, x0
	bl	_client_thread_state_init
Lloh2:
	adrp	x8, _client_tls@GOTPAGE
Lloh3:
	ldr	x8, [x8, _client_tls@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_platform_tls_set
	mov	x0, x19
	bl	_client_send_make_current
	mov	w0, #1
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CLIENT_THREAD_STATE_T"

	.comm	_client_tls,4,2                 ; @client_tls
	.comm	_KHR_SUCCESS,8,3                ; @KHR_SUCCESS
	.comm	_client_tls_mutex,4,2           ; @client_tls_mutex
.subsections_via_symbols
