	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CreateLobbyMessageReceptionThread ## -- Begin function CreateLobbyMessageReceptionThread
	.p2align	4, 0x90
_CreateLobbyMessageReceptionThread:     ## @CreateLobbyMessageReceptionThread
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r13
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_HeapAlloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %rbx
	testq	%r13, %r13
	je	LBB0_4
## %bb.2:
	xorl	%eax, %eax
	callq	_GetCurrentProcess
	movl	%eax, %r14d
	xorl	%eax, %eax
	callq	_GetCurrentProcess
	movq	%rbx, %rcx
	addq	$24, %rcx
	movq	_FALSE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	movq	_DUPLICATE_SAME_ACCESS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, (%rsp)
	movl	%r14d, %edi
	movq	%r13, %rsi
	movl	%eax, %edx
	xorl	%r8d, %r8d
	callq	_DuplicateHandle
	testl	%eax, %eax
	je	LBB0_3
LBB0_4:
	movq	%r12, 16(%rbx)
	movq	%r15, 8(%rbx)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%rbx)
	movq	_DPL_MSG_ThreadMain@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-44(%rbp), %r9
	xorl	%edi, %edi
	xorl	%esi, %esi
	movq	%rbx, %rcx
	xorl	%r8d, %r8d
	callq	_CreateThread
	testq	%rax, %rax
	je	LBB0_5
## %bb.8:
	movq	%rax, %rdi
	callq	_CloseHandle
	movl	-44(%rbp), %r14d
	jmp	LBB0_7
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_6
LBB0_3:
	leaq	L_.str(%rip), %rdi
LBB0_6:
	callq	_ERR
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_HeapFree
LBB0_7:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_DUPLICATE_SAME_ACCESS,4,2      ## @DUPLICATE_SAME_ACCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to duplicate event handle\n"

	.comm	_DPL_MSG_ThreadMain,4,2         ## @DPL_MSG_ThreadMain
L_.str.1:                               ## @.str.1
	.asciz	"Unable to create msg thread\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CreateLobbyMessageReceptionThread ; -- Begin function CreateLobbyMessageReceptionThread
	.p2align	2
_CreateLobbyMessageReceptionThread:     ; @CreateLobbyMessageReceptionThread
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	bl	_GetProcessHeap
	mov	w1, #0
	mov	w2, #32
	bl	_HeapAlloc
	cbz	x0, LBB0_8
; %bb.1:
	mov	x19, x0
	cbz	x23, LBB0_3
; %bb.2:
	bl	_GetCurrentProcess
	mov	x24, x0
	bl	_GetCurrentProcess
	mov	x2, x0
	add	x3, x19, #24
Lloh0:
	adrp	x8, _FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh2:
	ldr	w5, [x8]
Lloh3:
	adrp	x8, _DUPLICATE_SAME_ACCESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DUPLICATE_SAME_ACCESS@GOTPAGEOFF]
Lloh5:
	ldr	w6, [x8]
	mov	x0, x24
	mov	x1, x23
	mov	w4, #0
	bl	_DuplicateHandle
	cbz	w0, LBB0_6
LBB0_3:
	stp	x21, x22, [x19, #8]
	str	x20, [x19]
Lloh6:
	adrp	x8, _DPL_MSG_ThreadMain@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DPL_MSG_ThreadMain@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	add	x5, sp, #12
	mov	x0, #0
	mov	w1, #0
	mov	x3, x19
	mov	w4, #0
	bl	_CreateThread
	cbz	x0, LBB0_5
; %bb.4:
	bl	_CloseHandle
	ldr	w0, [sp, #12]
	b	LBB0_8
LBB0_5:
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
LBB0_7:
	bl	_ERR
	bl	_GetProcessHeap
	mov	w1, #0
	mov	x2, x19
	bl	_HeapFree
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_DUPLICATE_SAME_ACCESS,4,2      ; @DUPLICATE_SAME_ACCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to duplicate event handle\n"

	.comm	_DPL_MSG_ThreadMain,4,2         ; @DPL_MSG_ThreadMain
l_.str.1:                               ; @.str.1
	.asciz	"Unable to create msg thread\n"

.subsections_via_symbols
