	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function reflection_cleanup
_reflection_cleanup:                    ## @reflection_cleanup
	.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	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	callq	_TRACE
	movq	64(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_free_signature
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	64(%r14), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapFree
LBB0_2:
	movq	56(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_free_signature
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	56(%r14), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapFree
LBB0_4:
	movq	48(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_free_signature
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	48(%r14), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapFree
LBB0_6:
	movq	32(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.7:
	cmpl	$0, (%r14)
	je	LBB0_11
## %bb.8:
	callq	_free_constant_buffer
	cmpl	$2, (%r14)
	jb	LBB0_11
## %bb.9:
	movl	$1, %r15d
	movl	$4, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	32(%r14), %rdi
	addq	%rbx, %rdi
	callq	_free_constant_buffer
	incq	%r15
	movl	(%r14), %eax
	addq	$4, %rbx
	cmpq	%rax, %r15
	jb	LBB0_10
LBB0_11:
	leaq	40(%r14), %rdi
	movq	_d3dcompiler_shader_reflection_type_destroy@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_wine_rb_destroy
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	32(%r14), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapFree
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	24(%r14), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapFree
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	16(%r14), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapFree
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	8(%r14), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_HeapFree                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cleanup %p\n"

	.comm	_d3dcompiler_shader_reflection_type_destroy,4,2 ## @d3dcompiler_shader_reflection_type_destroy
	.no_dead_strip	_reflection_cleanup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function reflection_cleanup
_reflection_cleanup:                    ; @reflection_cleanup
	.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	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_TRACE
	ldr	x0, [x19, #64]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_free_signature
	bl	_GetProcessHeap
	ldr	x2, [x19, #64]
	mov	w1, #0
	bl	_HeapFree
LBB0_2:
	ldr	x0, [x19, #56]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_free_signature
	bl	_GetProcessHeap
	ldr	x2, [x19, #56]
	mov	w1, #0
	bl	_HeapFree
LBB0_4:
	ldr	x0, [x19, #48]
	cbz	x0, LBB0_6
; %bb.5:
	bl	_free_signature
	bl	_GetProcessHeap
	ldr	x2, [x19, #48]
	mov	w1, #0
	bl	_HeapFree
LBB0_6:
	ldr	x0, [x19, #32]
	cbz	x0, LBB0_11
; %bb.7:
	ldr	w8, [x19]
	cbz	w8, LBB0_11
; %bb.8:
	bl	_free_constant_buffer
	ldr	w8, [x19]
	cmp	w8, #2
	b.lo	LBB0_11
; %bb.9:
	mov	w20, #1
	mov	w21, #4
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
	add	x0, x8, x21
	bl	_free_constant_buffer
	add	x20, x20, #1
	ldr	w8, [x19]
	add	x21, x21, #4
	cmp	x20, x8
	b.lo	LBB0_10
LBB0_11:
	add	x0, x19, #40
Lloh2:
	adrp	x8, _d3dcompiler_shader_reflection_type_destroy@GOTPAGE
Lloh3:
	ldr	x8, [x8, _d3dcompiler_shader_reflection_type_destroy@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x2, #0
	bl	_wine_rb_destroy
	bl	_GetProcessHeap
	ldr	x2, [x19, #32]
	mov	w1, #0
	bl	_HeapFree
	bl	_GetProcessHeap
	ldr	x2, [x19, #24]
	mov	w1, #0
	bl	_HeapFree
	bl	_GetProcessHeap
	ldr	x2, [x19, #16]
	mov	w1, #0
	bl	_HeapFree
	bl	_GetProcessHeap
	ldr	x2, [x19, #8]
	mov	w1, #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	_HeapFree
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cleanup %p\n"

	.comm	_d3dcompiler_shader_reflection_type_destroy,4,2 ; @d3dcompiler_shader_reflection_type_destroy
	.no_dead_strip	_reflection_cleanup
.subsections_via_symbols
