	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function free_parameter_data
_free_parameter_data:                   ## @free_parameter_data
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.1:
	movl	%esi, %r14d
	movq	8(%rbx), %rax
	movq	_D3DXPC_OBJECT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.2:
	cmpl	$0, 20(%rbx)
	je	LBB0_3
LBB0_11:
	testl	%r14d, %r14d
	je	LBB0_13
LBB0_12:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_13:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	(%rbx), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_HeapFree                       ## TAILCALL
LBB0_3:
	movl	16(%rbx), %eax
	leal	-128(%rax), %ecx
	cmpl	$12, %ecx
	ja	LBB0_10
## %bb.4:
	movl	$4159, %eax                     ## imm = 0x103F
	btl	%ecx, %eax
	jae	LBB0_5
## %bb.7:
	movq	(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.8:
	callq	_IUnknown_Release
	jmp	LBB0_11
LBB0_5:
	movl	$3968, %eax                     ## imm = 0xF80
	btl	%ecx, %eax
	jae	LBB0_6
## %bb.9:
	callq	_free_sampler
	jmp	LBB0_11
LBB0_10:
	movl	%eax, %edi
	callq	_debug_d3dxparameter_type
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_FIXME
	jmp	LBB0_11
LBB0_6:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	(%rbx), %rcx
	movq	(%rcx), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapFree
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_D3DXPC_OBJECT,8,3              ## @D3DXPC_OBJECT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unhandled type %s\n"

	.no_dead_strip	_free_parameter_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function free_parameter_data
_free_parameter_data:                   ; @free_parameter_data
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x0, [x0]
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x1
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _D3DXPC_OBJECT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _D3DXPC_OBJECT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	ldr	w8, [x19, #20]
	cbz	w8, LBB0_6
LBB0_3:
	cbz	w20, LBB0_5
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	bl	_GetProcessHeap
	ldr	x2, [x19]
	mov	w1, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_HeapFree
LBB0_6:
	ldr	w8, [x19, #16]
	sub	w9, w8, #128
	cmp	w9, #12
	b.hi	LBB0_12
; %bb.7:
	mov	w8, #1
	lsl	w8, w8, w9
	mov	w9, #4159
	tst	w8, w9
	b.eq	LBB0_10
; %bb.8:
	ldr	x0, [x0]
	cbz	x0, LBB0_3
; %bb.9:
	bl	_IUnknown_Release
	b	LBB0_3
LBB0_10:
	tst	w8, #0xf80
	b.eq	LBB0_13
; %bb.11:
	bl	_free_sampler
	b	LBB0_3
LBB0_12:
	mov	x0, x8
	bl	_debug_d3dxparameter_type
	mov	x1, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_FIXME
	b	LBB0_3
LBB0_13:
	bl	_GetProcessHeap
	ldr	x8, [x19]
	ldr	x2, [x8]
	mov	w1, #0
	bl	_HeapFree
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_D3DXPC_OBJECT,8,3              ; @D3DXPC_OBJECT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unhandled type %s\n"

	.no_dead_strip	_free_parameter_data
.subsections_via_symbols
