	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function d3dx9_base_effect_cleanup
_d3dx9_base_effect_cleanup:             ## @d3dx9_base_effect_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
	movl	40(%r14), %edi
	callq	_heap_free
	movq	32(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.1:
	cmpl	$0, (%r14)
	je	LBB0_5
## %bb.2:
	callq	_free_top_level_parameter
	cmpl	$2, (%r14)
	jb	LBB0_5
## %bb.3:
	movl	$1, %r15d
	movl	$4, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r14), %rdi
	addq	%rbx, %rdi
	callq	_free_top_level_parameter
	incq	%r15
	movl	(%r14), %eax
	addq	$4, %rbx
	cmpq	%rax, %r15
	jb	LBB0_4
LBB0_5:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	32(%r14), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapFree
	movq	$0, 32(%r14)
LBB0_6:
	movq	24(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.7:
	cmpl	$0, 4(%r14)
	je	LBB0_11
## %bb.8:
	callq	_free_technique
	cmpl	$2, 4(%r14)
	jb	LBB0_11
## %bb.9:
	movl	$1, %r15d
	movl	$4, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r14), %rdi
	addq	%rbx, %rdi
	callq	_free_technique
	incq	%r15
	movl	4(%r14), %eax
	addq	$4, %rbx
	cmpq	%rax, %r15
	jb	LBB0_10
LBB0_11:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	24(%r14), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapFree
	movq	$0, 24(%r14)
LBB0_12:
	movq	16(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.13:
	cmpl	$0, 8(%r14)
	je	LBB0_17
## %bb.14:
	callq	_free_object
	cmpl	$2, 8(%r14)
	jb	LBB0_17
## %bb.15:
	movl	$1, %r15d
	movl	$4, %ebx
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %rdi
	addq	%rbx, %rdi
	callq	_free_object
	incq	%r15
	movl	8(%r14), %eax
	addq	$4, %rbx
	cmpq	%rax, %r15
	jb	LBB0_16
LBB0_17:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	16(%r14), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapFree
	movq	$0, 16(%r14)
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"base %p.\n"

	.no_dead_strip	_d3dx9_base_effect_cleanup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function d3dx9_base_effect_cleanup
_d3dx9_base_effect_cleanup:             ; @d3dx9_base_effect_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	w0, [x19, #40]
	bl	_heap_free
	ldr	x0, [x19, #32]
	cbz	x0, LBB0_6
; %bb.1:
	ldr	w8, [x19]
	cbz	w8, LBB0_5
; %bb.2:
	bl	_free_top_level_parameter
	ldr	w8, [x19]
	cmp	w8, #2
	b.lo	LBB0_5
; %bb.3:
	mov	w20, #1
	mov	w21, #4
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
	add	x0, x8, x21
	bl	_free_top_level_parameter
	add	x20, x20, #1
	ldr	w8, [x19]
	add	x21, x21, #4
	cmp	x20, x8
	b.lo	LBB0_4
LBB0_5:
	bl	_GetProcessHeap
	ldr	x2, [x19, #32]
	mov	w1, #0
	bl	_HeapFree
	str	xzr, [x19, #32]
LBB0_6:
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_12
; %bb.7:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_11
; %bb.8:
	bl	_free_technique
	ldr	w8, [x19, #4]
	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, #24]
	add	x0, x8, x21
	bl	_free_technique
	add	x20, x20, #1
	ldr	w8, [x19, #4]
	add	x21, x21, #4
	cmp	x20, x8
	b.lo	LBB0_10
LBB0_11:
	bl	_GetProcessHeap
	ldr	x2, [x19, #24]
	mov	w1, #0
	bl	_HeapFree
	str	xzr, [x19, #24]
LBB0_12:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_18
; %bb.13:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_17
; %bb.14:
	bl	_free_object
	ldr	w8, [x19, #8]
	cmp	w8, #2
	b.lo	LBB0_17
; %bb.15:
	mov	w20, #1
	mov	w21, #4
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	add	x0, x8, x21
	bl	_free_object
	add	x20, x20, #1
	ldr	w8, [x19, #8]
	add	x21, x21, #4
	cmp	x20, x8
	b.lo	LBB0_16
LBB0_17:
	bl	_GetProcessHeap
	ldr	x2, [x19, #16]
	mov	w1, #0
	bl	_HeapFree
	str	xzr, [x19, #16]
LBB0_18:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"base %p.\n"

	.no_dead_strip	_d3dx9_base_effect_cleanup
.subsections_via_symbols
