	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DPLAYX_GetConnectionSettingsA  ## -- Begin function DPLAYX_GetConnectionSettingsA
	.p2align	4, 0x90
_DPLAYX_GetConnectionSettingsA:         ## @DPLAYX_GetConnectionSettingsA
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_DPLAYX_AcquireSemaphore
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_DPLAYX_IsAppIdLobbied
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	-40(%rbp), %rax
	movl	(%rax), %edi
	callq	_DPLAYX_SizeOfLobbyDataA
	testq	%r15, %r15
	je	LBB0_4
## %bb.3:
	cmpq	%rax, (%r14)
	jge	LBB0_5
LBB0_4:
	xorl	%eax, %eax
	callq	_DPLAYX_ReleaseSemaphore
	movq	-40(%rbp), %rax
	movl	(%rax), %edi
	callq	_DPLAYX_SizeOfLobbyDataA
	movq	%rax, (%r14)
	movq	_DPERR_BUFFERTOOSMALL@GOTPCREL(%rip), %rbx
	jmp	LBB0_8
LBB0_1:
	xorl	%eax, %eax
	callq	_DPLAYX_ReleaseSemaphore
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_TRACE
	movq	_DPERR_NOTLOBBIED@GOTPCREL(%rip), %rbx
LBB0_8:
	movl	(%rbx), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	-40(%rbp), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_DPLAYX_CopyConnStructA
	xorl	%eax, %eax
	callq	_DPLAYX_ReleaseSemaphore
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-32(%rbp), %rdx
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_DPLAYX_GetThisLobbyHandles
	movq	_DP_OK@GOTPCREL(%rip), %rbx
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	-32(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:
	callq	_SetEvent
	movq	-32(%rbp), %rsi
	testq	%rax, %rax
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.2(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-32(%rbp), %rdx
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_DPLAYX_GetThisLobbyHandles
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Application 0x%08x is not lobbied\n"

	.comm	_DPERR_NOTLOBBIED,4,2           ## @DPERR_NOTLOBBIED
	.comm	_DPERR_BUFFERTOOSMALL,4,2       ## @DPERR_BUFFERTOOSMALL
	.comm	_FALSE,4,2                      ## @FALSE
L_.str.1:                               ## @.str.1
	.asciz	"Signalling setting read event %p %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"succeed"

L_.str.3:                               ## @.str.3
	.asciz	"failed"

	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_DP_OK,4,2                      ## @DP_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DPLAYX_GetConnectionSettingsA  ; -- Begin function DPLAYX_GetConnectionSettingsA
	.p2align	2
_DPLAYX_GetConnectionSettingsA:         ; @DPLAYX_GetConnectionSettingsA
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_DPLAYX_AcquireSemaphore
	add	x1, sp, #24
	mov	x0, x21
	bl	_DPLAYX_IsAppIdLobbied
	cbz	w0, LBB0_4
; %bb.1:
	ldr	x8, [sp, #24]
	ldr	w0, [x8]
	bl	_DPLAYX_SizeOfLobbyDataA
	cbz	x20, LBB0_3
; %bb.2:
	ldr	x8, [x19]
	cmp	x8, x0
	b.ge	LBB0_5
LBB0_3:
	bl	_DPLAYX_ReleaseSemaphore
	ldr	x8, [sp, #24]
	ldr	w0, [x8]
	bl	_DPLAYX_SizeOfLobbyDataA
	str	x0, [x19]
Lloh0:
	adrp	x8, _DPERR_BUFFERTOOSMALL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DPERR_BUFFERTOOSMALL@GOTPAGEOFF]
	b	LBB0_8
LBB0_4:
	bl	_DPLAYX_ReleaseSemaphore
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_TRACE
Lloh4:
	adrp	x8, _DPERR_NOTLOBBIED@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DPERR_NOTLOBBIED@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
	ldr	x8, [sp, #24]
	ldr	w1, [x8]
	mov	x0, x20
	bl	_DPLAYX_CopyConnStructA
	bl	_DPLAYX_ReleaseSemaphore
Lloh6:
	adrp	x8, _FALSE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	add	x2, sp, #16
	mov	x0, #0
	mov	x1, #0
	bl	_DPLAYX_GetThisLobbyHandles
	mov	x8, x0
	ldr	x0, [sp, #16]
	cmp	x8, #0
	ccmp	x0, #0, #4, ne
	b.eq	LBB0_7
; %bb.6:
	bl	_SetEvent
	ldr	x1, [sp, #16]
Lloh9:
	adrp	x8, l_.str.2@PAGE
Lloh10:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh11:
	adrp	x9, l_.str.3@PAGE
Lloh12:
	add	x9, x9, l_.str.3@PAGEOFF
	cmp	x0, #0
	csel	x8, x9, x8, eq
	str	x8, [sp]
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_TRACE
Lloh15:
	adrp	x8, _TRUE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
	add	x2, sp, #16
	mov	x0, #0
	mov	x1, #0
	bl	_DPLAYX_GetThisLobbyHandles
LBB0_7:
Lloh18:
	adrp	x8, _DP_OK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DP_OK@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Application 0x%08x is not lobbied\n"

	.comm	_DPERR_NOTLOBBIED,4,2           ; @DPERR_NOTLOBBIED
	.comm	_DPERR_BUFFERTOOSMALL,4,2       ; @DPERR_BUFFERTOOSMALL
	.comm	_FALSE,4,2                      ; @FALSE
l_.str.1:                               ; @.str.1
	.asciz	"Signalling setting read event %p %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"succeed"

l_.str.3:                               ; @.str.3
	.asciz	"failed"

	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_DP_OK,4,2                      ; @DP_OK
.subsections_via_symbols
