	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function d3dx_pool_release_shared_parameter
_d3dx_pool_release_shared_parameter:    ## @d3dx_pool_release_shared_parameter
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_PARAMETER_FLAG_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rdi)
	je	LBB0_9
## %bb.1:
	movq	%rdi, %rbx
	movq	(%rdi), %rdx
	testq	%rdx, %rdx
	je	LBB0_9
## %bb.2:
	movl	(%rdx), %r14d
	leal	-1(%r14), %ecx
	movl	%ecx, (%rdx)
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_TRACE
	movl	%r14d, %eax
	decl	%eax
	je	LBB0_8
## %bb.3:
	leaq	8(%rbx), %r15
	movq	(%rbx), %rcx
	movq	16(%rcx), %rdi
	movl	%eax, %ecx
	shlq	$3, %rcx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rbx, (%rdi)
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	addq	$8, %rdi
	addq	$8, %rax
	cmpq	%rax, %rcx
	jne	LBB0_4
	jmp	LBB0_7
LBB0_8:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	(%rbx), %rcx
	movq	16(%rcx), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapFree
	movq	(%rbx), %rax
	movq	$0, 8(%rax)
	movq	$0, (%rbx)
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	8(%rdi), %rsi
	shll	$3, %r14d
	subl	%eax, %r14d
	addl	$-8, %r14d
	movl	%r14d, %edx
	callq	_memmove
LBB0_7:
	movq	_param_zero_data_func@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_walk_parameter_tree            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PARAMETER_FLAG_SHARED,4,2      ## @PARAMETER_FLAG_SHARED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"param %p, param->shared_data %p, new_count %d.\n"

	.comm	_param_zero_data_func,4,2       ## @param_zero_data_func
	.no_dead_strip	_d3dx_pool_release_shared_parameter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function d3dx_pool_release_shared_parameter
_d3dx_pool_release_shared_parameter:    ; @d3dx_pool_release_shared_parameter
	.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
	mov	x20, x0
	ldr	w8, [x20, #8]!
Lloh0:
	adrp	x9, _PARAMETER_FLAG_SHARED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PARAMETER_FLAG_SHARED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.1:
	mov	x19, x0
	ldr	x2, [x0]
	cbz	x2, LBB0_7
; %bb.2:
	ldr	w22, [x2]
	sub	w21, w22, #1
	str	w21, [x2]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x3, x21
	bl	_TRACE
	cbz	w21, LBB0_6
; %bb.3:
	ldr	x8, [x19]
	ldr	x0, [x8, #16]
	lsl	w8, w22, #3
	sub	w2, w8, #8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x0]
	cmp	x8, x19
	b.eq	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x0, x0, #8
	sub	w2, w2, #8
	subs	x21, x21, #1
	b.ne	LBB0_4
	b	LBB0_9
LBB0_6:
	bl	_GetProcessHeap
	ldr	x8, [x19]
	ldr	x2, [x8, #16]
	mov	w1, #0
	bl	_HeapFree
	ldr	x8, [x19]
	str	xzr, [x8, #8]
	str	xzr, [x19]
LBB0_7:
	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
LBB0_8:
	add	x1, x0, #8
	bl	_memmove
LBB0_9:
Lloh5:
	adrp	x8, _param_zero_data_func@GOTPAGE
Lloh6:
	ldr	x8, [x8, _param_zero_data_func@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, #0
	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
	b	_walk_parameter_tree
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PARAMETER_FLAG_SHARED,4,2      ; @PARAMETER_FLAG_SHARED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"param %p, param->shared_data %p, new_count %d.\n"

	.comm	_param_zero_data_func,4,2       ; @param_zero_data_func
	.no_dead_strip	_d3dx_pool_release_shared_parameter
.subsections_via_symbols
