	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DP_HandleMessage               ## -- Begin function DP_HandleMessage
	.p2align	4, 0x90
_DP_HandleMessage:                      ## @DP_HandleMessage
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r13d
	movq	%rcx, %rbx
	movl	%edx, %r12d
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	%r9d, (%rsp)
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	movl	%r12d, %ecx
	movq	%rbx, %r8
	movl	%r13d, %r9d
	xorl	%eax, %eax
	callq	_TRACE
	leal	-128(%r13), %eax
	cmpl	$7, %eax
	ja	LBB0_9
## %bb.1:
	movq	24(%rbp), %rdx
	movq	16(%rbp), %rsi
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_5:
	movq	%r15, %rdi
	movl	%r13d, %esi
	movq	%r14, %rdx
	movl	%r12d, %ecx
	callq	_DP_MSG_ReplyReceived
	jmp	LBB0_10
LBB0_9:
	leaq	L_.str.5(%rip), %rdi
	movl	%r13d, %esi
	callq	_FIXME
	xorl	%eax, %eax
	callq	_DebugBreak
	jmp	LBB0_10
LBB0_4:
	movq	(%r15), %rax
	movl	4(%rax), %eax
	addl	$16, %eax
	movl	%eax, (%rdx)
	xorl	%eax, %eax
	movq	%rsi, %r12
	movq	%rdx, %rbx
	callq	_GetProcessHeap
	movq	_HEAP_ZERO_MEMORY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%rbx), %edx
	movl	%eax, %edi
	callq	_HeapAlloc
	movq	%rax, (%r12)
	movl	(%r14), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_FIXME
	movq	(%r12), %r14
	movq	(%r15), %rax
	movslq	4(%rax), %rbx
	movq	_DPMSGMAGIC_DPLAYMSG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r14,%rbx,4)
	movl	$129, 4(%r14,%rbx,4)
	movq	_DPMSGVER_DP6@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14,%rbx,4)
	xorl	%eax, %eax
	callq	_DP_NextObjectId
	movl	%eax, (%r14,%rbx,4)
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_TRACE
	jmp	LBB0_10
LBB0_6:
	movl	4(%rbx), %edx
	leaq	L_.str.3(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_TRACE
	movq	(%r15), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	movl	$20, %edx
	callq	_NS_SetLocalAddr
	movq	%r15, %rdi
	movl	$130, %esi
	movq	%r14, %rdx
	movl	%r12d, %ecx
	callq	_DP_MSG_ReplyReceived
LBB0_7:
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_DP_MSG_ToSelf
	jmp	LBB0_10
LBB0_8:
	movq	%r15, %rdi
	movl	$132, %esi
	movq	%r14, %rdx
	movl	%r12d, %ecx
	callq	_DP_MSG_ErrorReceived
	jmp	LBB0_10
LBB0_2:
	movq	%r14, %rdi
	movq	%r15, %rcx
	callq	_NS_ReplyToEnumSessionsRequest
	jmp	LBB0_10
LBB0_3:
	movq	(%r15), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_NS_AddRemoteComputerAsNameServer
LBB0_10:
	movq	_DP_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_5
	.long	L0_0_set_8
	.long	L0_0_set_7
	.long	L0_0_set_2
	.long	L0_0_set_3
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(%p)->(%p,0x%08x,%p,%u,%u)\n"

	.comm	_HEAP_ZERO_MEMORY,4,2           ## @HEAP_ZERO_MEMORY
L_.str.1:                               ## @.str.1
	.asciz	"Ignoring dwFlags 0x%08x in request msg\n"

	.comm	_DPMSGMAGIC_DPLAYMSG,4,2        ## @DPMSGMAGIC_DPLAYMSG
	.comm	_DPMSGVER_DP6,4,2               ## @DPMSGVER_DP6
L_.str.2:                               ## @.str.2
	.asciz	"Allocating new playerid 0x%08x from remote request\n"

L_.str.3:                               ## @.str.3
	.asciz	"GOT THE SELF MESSAGE: %p -> 0x%08x\n"

L_.str.4:                               ## @.str.4
	.asciz	"Sending message to self to get my addr\n"

L_.str.5:                               ## @.str.5
	.asciz	"Unknown wCommandId %u. Ignoring message\n"

	.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	_DP_HandleMessage               ; -- Begin function DP_HandleMessage
	.p2align	2
_DP_HandleMessage:                      ; @DP_HandleMessage
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x24, x7
	mov	x22, x6
                                        ; kill: def $w5 killed $w5 def $x5
	mov	x25, x4
	mov	x23, x3
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	stp	x25, x5, [sp, #32]
	stp	x21, x3, [sp, #16]
	stp	x0, x1, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	sub	w8, w25, #128
	cmp	w8, #7
	b.hi	LBB0_3
; %bb.1:
Lloh2:
	adrp	x9, lJTI0_0@PAGE
Lloh3:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	mov	x0, x19
	mov	x1, x25
	mov	x2, x20
	mov	x3, x21
	bl	_DP_MSG_ReplyReceived
	b	LBB0_10
LBB0_3:
Lloh4:
	adrp	x0, l_.str.5@PAGE
Lloh5:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	x1, x25
	bl	_FIXME
	bl	_DebugBreak
	b	LBB0_10
LBB0_4:
	ldr	x8, [x19]
	ldr	w8, [x8, #4]
	add	w8, w8, #16
	str	w8, [x24]
	bl	_GetProcessHeap
Lloh6:
	adrp	x8, _HEAP_ZERO_MEMORY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HEAP_ZERO_MEMORY@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	w2, [x24]
	bl	_HeapAlloc
	str	x0, [x22]
	ldr	w1, [x20]
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_FIXME
	ldr	x8, [x22]
	ldr	x9, [x19]
	ldrsw	x9, [x9, #4]
	add	x19, x8, x9, lsl #2
Lloh11:
	adrp	x8, _DPMSGMAGIC_DPLAYMSG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DPMSGMAGIC_DPLAYMSG@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x19, #12]
	mov	w8, #129
	str	w8, [x19, #4]
Lloh14:
	adrp	x8, _DPMSGVER_DP6@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DPMSGVER_DP6@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	bl	_DP_NextObjectId
                                        ; kill: def $w0 killed $w0 def $x0
	str	w0, [x19]
	str	x0, [sp]
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_TRACE
	b	LBB0_10
LBB0_5:
	ldr	w8, [x23, #4]
	stp	x23, x8, [sp]
Lloh19:
	adrp	x0, l_.str.3@PAGE
Lloh20:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_TRACE
	ldr	x8, [x19]
	ldr	w0, [x8]
	mov	x1, x23
	mov	w2, #20
	bl	_NS_SetLocalAddr
	mov	x0, x19
	mov	w1, #130
	mov	x2, x20
	mov	x3, x21
	bl	_DP_MSG_ReplyReceived
LBB0_6:
Lloh21:
	adrp	x0, l_.str.4@PAGE
Lloh22:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_TRACE
	mov	x0, x19
	mov	w1, #1
	bl	_DP_MSG_ToSelf
	b	LBB0_10
LBB0_7:
	mov	x0, x19
	mov	w1, #132
	mov	x2, x20
	mov	x3, x21
	bl	_DP_MSG_ErrorReceived
	b	LBB0_10
LBB0_8:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x24
	mov	x3, x19
	bl	_NS_ReplyToEnumSessionsRequest
	b	LBB0_10
LBB0_9:
	ldr	x8, [x19]
	ldp	w3, w1, [x8]
	mov	x0, x23
	mov	x2, x20
	bl	_NS_AddRemoteComputerAsNameServer
LBB0_10:
Lloh23:
	adrp	x8, _DP_OK@GOTPAGE
Lloh24:
	ldr	x8, [x8, _DP_OK@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(%p)->(%p,0x%08x,%p,%u,%u)\n"

	.comm	_HEAP_ZERO_MEMORY,4,2           ; @HEAP_ZERO_MEMORY
l_.str.1:                               ; @.str.1
	.asciz	"Ignoring dwFlags 0x%08x in request msg\n"

	.comm	_DPMSGMAGIC_DPLAYMSG,4,2        ; @DPMSGMAGIC_DPLAYMSG
	.comm	_DPMSGVER_DP6,4,2               ; @DPMSGVER_DP6
l_.str.2:                               ; @.str.2
	.asciz	"Allocating new playerid 0x%08x from remote request\n"

l_.str.3:                               ; @.str.3
	.asciz	"GOT THE SELF MESSAGE: %p -> 0x%08x\n"

l_.str.4:                               ; @.str.4
	.asciz	"Sending message to self to get my addr\n"

l_.str.5:                               ; @.str.5
	.asciz	"Unknown wCommandId %u. Ignoring message\n"

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