	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DPLAYX_CreateLobbyApplication  ## -- Begin function DPLAYX_CreateLobbyApplication
	.p2align	4, 0x90
_DPLAYX_CreateLobbyApplication:         ## @DPLAYX_CreateLobbyApplication
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_DPLAYX_AcquireSemaphore
	movq	_numSupportedLobbies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	_lobbyData@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rcx,%r15)
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	addq	$40, %r15
	cmpq	%rbx, %rax
	jne	LBB0_4
LBB0_7:
	leaq	L_.str.1(%rip), %rdi
	callq	_ERR
	movq	_FALSE@GOTPCREL(%rip), %rbx
	jmp	LBB0_8
LBB0_1:
	movq	_FALSE@GOTPCREL(%rip), %rbx
	jmp	LBB0_9
LBB0_5:
	xorl	%eax, %eax
	callq	_GetCurrentProcessId
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movl	%eax, %ecx
	callq	_TRACE
	movq	(%r12), %rax
	movq	%r14, (%rax,%r15)
	xorl	%eax, %eax
	callq	_GetCurrentProcessId
	movq	(%r12), %rcx
	movl	%eax, 32(%rcx,%r15)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rcx,%r15)
	movq	$0, 24(%rcx,%r15)
	movq	_TRUE@GOTPCREL(%rip), %rbx
LBB0_8:
	xorl	%eax, %eax
	callq	_DPLAYX_ReleaseSemaphore
LBB0_9:
	movl	(%rbx), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_numSupportedLobbies,8,3        ## @numSupportedLobbies
	.comm	_lobbyData,8,3                  ## @lobbyData
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Setting lobbyData[%u] for (0x%08x,0x%08x)\n"

	.comm	_TRUE,4,2                       ## @TRUE
L_.str.1:                               ## @.str.1
	.asciz	"No empty lobbies\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DPLAYX_CreateLobbyApplication  ; -- Begin function DPLAYX_CreateLobbyApplication
	.p2align	2
_DPLAYX_CreateLobbyApplication:         ; @DPLAYX_CreateLobbyApplication
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	bl	_DPLAYX_AcquireSemaphore
Lloh0:
	adrp	x8, _numSupportedLobbies@GOTPAGE
Lloh1:
	ldr	x8, [x8, _numSupportedLobbies@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.2:
	mov	x21, #0
	mov	x20, #0
Lloh3:
	adrp	x22, _lobbyData@GOTPAGE
Lloh4:
	ldr	x22, [x22, _lobbyData@GOTPAGEOFF]
	ldr	x9, [x22]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9, x21]
	cbz	x10, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x20, #1
	add	x21, x21, #40
	cmp	x8, x20
	b.ne	LBB0_3
LBB0_5:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_ERR
Lloh7:
	adrp	x19, _FALSE@GOTPAGE
Lloh8:
	ldr	x19, [x19, _FALSE@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
Lloh9:
	adrp	x19, _FALSE@GOTPAGE
Lloh10:
	ldr	x19, [x19, _FALSE@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
	bl	_GetCurrentProcessId
	mov	x3, x0
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	bl	_TRACE
	ldr	x8, [x22]
	str	x19, [x8, x21]
	bl	_GetCurrentProcessId
	ldr	x8, [x22]
	add	x8, x8, x21
	str	w0, [x8, #32]
	stp	xzr, xzr, [x8, #16]
	str	xzr, [x8, #8]
Lloh13:
	adrp	x19, _TRUE@GOTPAGE
Lloh14:
	ldr	x19, [x19, _TRUE@GOTPAGEOFF]
LBB0_8:
	bl	_DPLAYX_ReleaseSemaphore
LBB0_9:
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_numSupportedLobbies,8,3        ; @numSupportedLobbies
	.comm	_lobbyData,8,3                  ; @lobbyData
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Setting lobbyData[%u] for (0x%08x,0x%08x)\n"

	.comm	_TRUE,4,2                       ; @TRUE
l_.str.1:                               ; @.str.1
	.asciz	"No empty lobbies\n"

.subsections_via_symbols
