	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function free_parameter
_free_parameter:                        ## @free_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	%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	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r13
	movq	16(%rdi), %r12
	movl	40(%rdi), %edi
	callq	_debug_d3dxparameter_type
	leaq	L_.str(%rip), %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	movl	%eax, %ecx
	movl	%ebx, %r8d
	movl	%r15d, %r9d
	callq	_TRACE
	movq	32(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_d3dx_free_param_eval
LBB0_2:
	movq	24(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.3:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	(%r13), %eax
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movl	4(%r13), %ebx
	testl	%ebx, %ebx
	je	LBB0_8
LBB0_5:
	xorl	%esi, %esi
	testl	%eax, %eax
	setne	%sil
	movq	_TRUE@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	callq	_free_parameter
	cmpl	$1, %ebx
	je	LBB0_8
## %bb.6:
	movl	%ebx, %ebx
	decq	%rbx
	movl	$48, %r14d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r13), %rdi
	addq	%r14, %rdi
	xorl	%esi, %esi
	cmpl	$0, (%r13)
	setne	%sil
	movl	(%r12), %edx
	callq	_free_parameter
	addq	$48, %r14
	decq	%rbx
	jne	LBB0_7
LBB0_8:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	24(%r13), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapFree
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
LBB0_9:
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_free_parameter_data
	testl	%ebx, %ebx
	je	LBB0_11
## %bb.10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	16(%r13), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapFree
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	8(%r13), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_HeapFree                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Free parameter %p, name %s, type %s, element %#x, child %#x.\n"

	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_free_parameter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function free_parameter
_free_parameter:                        ; @free_parameter
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x22, [x0, #16]
	ldr	w0, [x0, #40]
	bl	_debug_d3dxparameter_type
	mov	x3, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x2, x22
	mov	x4, x20
	mov	x5, x21
	bl	_TRACE
	ldr	x0, [x19, #32]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_d3dx_free_param_eval
LBB0_2:
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_9
; %bb.3:
	ldr	w8, [x19]
	mov	x23, x8
	cbnz	w8, LBB0_5
; %bb.4:
	ldr	w23, [x19, #4]
	cbz	w23, LBB0_8
LBB0_5:
	cmp	w8, #0
	cset	w1, ne
Lloh2:
	adrp	x22, _TRUE@GOTPAGE
Lloh3:
	ldr	x22, [x22, _TRUE@GOTPAGEOFF]
	ldr	w2, [x22]
	bl	_free_parameter
	cmp	w23, #1
	b.eq	LBB0_8
; %bb.6:
	mov	w8, w23
	sub	x23, x8, #1
	mov	w24, #48
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	ldr	w9, [x19]
	add	x0, x8, x24
	cmp	w9, #0
	cset	w1, ne
	ldr	w2, [x22]
	bl	_free_parameter
	add	x24, x24, #48
	subs	x23, x23, #1
	b.ne	LBB0_7
LBB0_8:
	bl	_GetProcessHeap
	ldr	x2, [x19, #24]
	mov	w1, #0
	bl	_HeapFree
LBB0_9:
	mov	x0, x19
	mov	x1, x21
	bl	_free_parameter_data
	cbz	w20, LBB0_11
; %bb.10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_11:
	bl	_GetProcessHeap
	ldr	x2, [x19, #16]
	mov	w1, #0
	bl	_HeapFree
	bl	_GetProcessHeap
	ldr	x2, [x19, #8]
	mov	w1, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_HeapFree
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Free parameter %p, name %s, type %s, element %#x, child %#x.\n"

	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_free_parameter
.subsections_via_symbols
