	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_NS_SendSessionRequestBroadcast ## -- Begin function NS_SendSessionRequestBroadcast
	.p2align	4, 0x90
_NS_SendSessionRequestBroadcast:        ## @NS_SendSessionRequestBroadcast
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movl	%esi, %r15d
	movq	%rdi, %r14
	callq	_debugstr_guid
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_TRACE
	leaq	L_.str.1(%rip), %rdi
	callq	_FIXME
	movl	(%r12), %ebx
	addl	$32, %ebx
	movl	%ebx, -56(%rbp)
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	_HEAP_ZERO_MEMORY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	movl	%ebx, %edx
	callq	_HeapAlloc
	movq	%rax, -48(%rbp)
	movl	16(%r12), %ecx
	movl	%ecx, -40(%rbp)
	movq	_DPENUMSESSIONS_RETURNSTATUS@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	movl	(%rcx), %ecx
	andl	%r15d, %ecx
	setne	%dl
	movl	%edx, -52(%rbp)
	movslq	(%r12), %rcx
	movq	_DPMSGMAGIC_DPLAYMSG@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 24(%rax,%rcx,4)
	movq	_DPMSGCMD_ENUMSESSIONSREQUEST@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 20(%rax,%rcx,4)
	movq	_DPMSGVER_DP6@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 16(%rax,%rcx,4)
	movq	$0, 8(%rax,%rcx,4)
	movl	%r15d, (%rax,%rcx,4)
	movl	(%r14), %edx
	movl	%edx, 4(%rax,%rcx,4)
	movq	8(%r12), %rax
	leaq	-56(%rbp), %rdi
	callq	*(%rax)
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"enumerating for guid %s\n"

L_.str.1:                               ## @.str.1
	.asciz	": not all data fields are correct\n"

	.comm	_HEAP_ZERO_MEMORY,4,2           ## @HEAP_ZERO_MEMORY
	.comm	_DPENUMSESSIONS_RETURNSTATUS,4,2 ## @DPENUMSESSIONS_RETURNSTATUS
	.comm	_DPMSGMAGIC_DPLAYMSG,4,2        ## @DPMSGMAGIC_DPLAYMSG
	.comm	_DPMSGCMD_ENUMSESSIONSREQUEST,4,2 ## @DPMSGCMD_ENUMSESSIONSREQUEST
	.comm	_DPMSGVER_DP6,4,2               ## @DPMSGVER_DP6
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_NS_SendSessionRequestBroadcast ; -- Begin function NS_SendSessionRequestBroadcast
	.p2align	2
_NS_SendSessionRequestBroadcast:        ; @NS_SendSessionRequestBroadcast
	.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	_debugstr_guid
	mov	x1, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_FIXME
	ldr	w8, [x19]
	add	w22, w8, #32
	str	w22, [sp, #8]
	bl	_GetProcessHeap
Lloh4:
	adrp	x8, _HEAP_ZERO_MEMORY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _HEAP_ZERO_MEMORY@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x2, x22
	bl	_HeapAlloc
	str	x0, [sp, #16]
	ldr	w8, [x19, #16]
	str	w8, [sp, #24]
Lloh7:
	adrp	x8, _DPENUMSESSIONS_RETURNSTATUS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DPENUMSESSIONS_RETURNSTATUS@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	tst	w8, w20
	cset	w8, ne
	str	w8, [sp, #12]
	ldrsw	x8, [x19]
	add	x8, x0, x8, lsl #2
Lloh10:
	adrp	x9, _DPMSGMAGIC_DPLAYMSG@GOTPAGE
Lloh11:
	ldr	x9, [x9, _DPMSGMAGIC_DPLAYMSG@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	str	w9, [x8, #24]
Lloh13:
	adrp	x9, _DPMSGCMD_ENUMSESSIONSREQUEST@GOTPAGE
Lloh14:
	ldr	x9, [x9, _DPMSGCMD_ENUMSESSIONSREQUEST@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	str	w9, [x8, #20]
Lloh16:
	adrp	x9, _DPMSGVER_DP6@GOTPAGE
Lloh17:
	ldr	x9, [x9, _DPMSGVER_DP6@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	str	w9, [x8, #16]
	str	xzr, [x8, #8]
	str	w20, [x8]
	ldr	w9, [x21]
	str	w9, [x8, #4]
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	add	x0, sp, #8
	blr	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 AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"enumerating for guid %s\n"

l_.str.1:                               ; @.str.1
	.asciz	": not all data fields are correct\n"

	.comm	_HEAP_ZERO_MEMORY,4,2           ; @HEAP_ZERO_MEMORY
	.comm	_DPENUMSESSIONS_RETURNSTATUS,4,2 ; @DPENUMSESSIONS_RETURNSTATUS
	.comm	_DPMSGMAGIC_DPLAYMSG,4,2        ; @DPMSGMAGIC_DPLAYMSG
	.comm	_DPMSGCMD_ENUMSESSIONSREQUEST,4,2 ; @DPMSGCMD_ENUMSESSIONSREQUEST
	.comm	_DPMSGVER_DP6,4,2               ; @DPMSGVER_DP6
.subsections_via_symbols
