	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function DP_IF_DestroyPlayer
_DP_IF_DestroyPlayer:                   ## @DP_IF_DestroyPlayer
	.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	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rdx, %r14
	movq	%rsi, %rdx
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movq	%r14, %rcx
	movl	%r15d, %r8d
	xorl	%eax, %eax
	callq	_FIXME
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	_NO_PROVIDER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_DPERR_UNINITIALIZED@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_2:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_DP_FindPlayer
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rbx, -56(%rbp)
	movq	%r14, -64(%rbp)
	movl	%r15d, -72(%rbp)
	leaq	8(%rbx), %rdi
	movq	_cbDeletePlayerFromAllGroups@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_DPENUMGROUPS_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-72(%rbp), %rcx
	xorl	%esi, %esi
	callq	_IDirectPlayX_EnumGroups
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_DP_DeletePlayer
	movq	(%rbx), %rax
	movq	8(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_FIXME
	movq	%r14, -32(%rbp)
	movq	$0, -40(%rbp)
	movq	(%rbx), %rax
	movl	16(%rax), %ecx
	movl	%ecx, -48(%rbp)
	movq	8(%rax), %rax
	leaq	-48(%rbp), %rdi
	callq	*(%rax)
LBB0_6:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_FIXME
	movq	_DP_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_3:
	movq	_DPERR_INVALIDPLAYER@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(%p)->(%p,0x%08x,%u): semi stub\n"

	.comm	_NO_PROVIDER,8,3                ## @NO_PROVIDER
	.comm	_DPERR_UNINITIALIZED,4,2        ## @DPERR_UNINITIALIZED
	.comm	_DPERR_INVALIDPLAYER,4,2        ## @DPERR_INVALIDPLAYER
	.comm	_cbDeletePlayerFromAllGroups,4,2 ## @cbDeletePlayerFromAllGroups
	.comm	_DPENUMGROUPS_ALL,4,2           ## @DPENUMGROUPS_ALL
L_.str.1:                               ## @.str.1
	.asciz	"data.dwFlags is incorrect\n"

L_.str.2:                               ## @.str.2
	.asciz	"Send a DELETEPLAYERORGROUP msg\n"

	.comm	_DP_OK,4,2                      ## @DP_OK
	.no_dead_strip	_DP_IF_DestroyPlayer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function DP_IF_DestroyPlayer
_DP_IF_DestroyPlayer:                   ; @DP_IF_DestroyPlayer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	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
	mov	x21, x3
	mov	x20, x2
	mov	x19, x0
	stp	x2, x21, [sp, #16]
	stp	x0, x1, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_FIXME
	ldr	x8, [x19]
	ldr	x8, [x8]
Lloh2:
	adrp	x9, _NO_PROVIDER@GOTPAGE
Lloh3:
	ldr	x9, [x9, _NO_PROVIDER@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _DPERR_UNINITIALIZED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DPERR_UNINITIALIZED@GOTPAGEOFF]
	b	LBB0_7
LBB0_2:
	mov	x0, x19
	mov	x1, x20
	bl	_DP_FindPlayer
	cbz	x0, LBB0_6
; %bb.3:
	stp	x20, x19, [sp, #64]
	str	w21, [sp, #56]
	add	x0, x19, #8
Lloh7:
	adrp	x8, _cbDeletePlayerFromAllGroups@GOTPAGE
Lloh8:
	ldr	x8, [x8, _cbDeletePlayerFromAllGroups@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
Lloh10:
	adrp	x8, _DPENUMGROUPS_ALL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DPENUMGROUPS_ALL@GOTPAGEOFF]
Lloh12:
	ldr	w4, [x8]
	add	x3, sp, #56
	mov	x1, #0
	bl	_IDirectPlayX_EnumGroups
	mov	x0, x19
	mov	x1, x20
	bl	_DP_DeletePlayer
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.4:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_FIXME
	stp	xzr, x20, [sp, #40]
	ldr	x8, [x19]
	ldr	w9, [x8, #16]
	str	w9, [sp, #32]
	ldr	x8, [x8, #8]
	ldr	x8, [x8]
	add	x0, sp, #32
	blr	x8
LBB0_5:
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_FIXME
Lloh17:
	adrp	x8, _DP_OK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DP_OK@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh19:
	adrp	x8, _DPERR_INVALIDPLAYER@GOTPAGE
Lloh20:
	ldr	x8, [x8, _DPERR_INVALIDPLAYER@GOTPAGEOFF]
LBB0_7:
	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
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(%p)->(%p,0x%08x,%u): semi stub\n"

	.comm	_NO_PROVIDER,8,3                ; @NO_PROVIDER
	.comm	_DPERR_UNINITIALIZED,4,2        ; @DPERR_UNINITIALIZED
	.comm	_DPERR_INVALIDPLAYER,4,2        ; @DPERR_INVALIDPLAYER
	.comm	_cbDeletePlayerFromAllGroups,4,2 ; @cbDeletePlayerFromAllGroups
	.comm	_DPENUMGROUPS_ALL,4,2           ; @DPENUMGROUPS_ALL
l_.str.1:                               ; @.str.1
	.asciz	"data.dwFlags is incorrect\n"

l_.str.2:                               ; @.str.2
	.asciz	"Send a DELETEPLAYERORGROUP msg\n"

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