	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function d3dx9_base_effect_get_parameter_desc
_d3dx9_base_effect_get_parameter_desc:  ## @d3dx9_base_effect_get_parameter_desc
	.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	%rdx, %r14
	callq	_get_valid_parameter
	testq	%r14, %r14
	je	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movl	36(%rbx), %eax
	movl	%eax, 40(%r14)
	movl	32(%rbx), %eax
	movl	%eax, 36(%r14)
	movl	28(%rbx), %eax
	movl	%eax, 32(%r14)
	movups	12(%rbx), %xmm0
	movups	%xmm0, 16(%r14)
	movq	%rbx, %rdi
	callq	_is_top_level_parameter
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rbx, %rdi
	callq	_top_level_parameter_from_parameter
	movl	(%rax), %eax
	jmp	LBB0_6
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_WARN
	movq	_D3DERR_INVALIDCALL@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_4:
	xorl	%eax, %eax
LBB0_6:
	movl	%eax, 12(%r14)
	movl	8(%rbx), %eax
	movl	%eax, 8(%r14)
	movl	4(%rbx), %eax
	movl	%eax, 4(%r14)
	movl	(%rbx), %eax
	movl	%eax, (%r14)
	movq	_D3D_OK@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid argument specified.\n"

	.comm	_D3DERR_INVALIDCALL,4,2         ## @D3DERR_INVALIDCALL
	.comm	_D3D_OK,4,2                     ## @D3D_OK
	.no_dead_strip	_d3dx9_base_effect_get_parameter_desc
.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_get_parameter_desc
_d3dx9_base_effect_get_parameter_desc:  ; @d3dx9_base_effect_get_parameter_desc
	.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, x2
	bl	_get_valid_parameter
	cbz	x19, LBB0_4
; %bb.1:
	mov	x20, x0
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w8, [x20, #36]
	str	w8, [x19, #40]
	ldur	d0, [x20, #28]
	str	d0, [x19, #32]
	ldur	q0, [x20, #12]
	str	q0, [x19, #16]
	mov	x0, x20
	bl	_is_top_level_parameter
	cbz	x0, LBB0_5
; %bb.3:
	mov	x0, x20
	bl	_top_level_parameter_from_parameter
	ldr	w8, [x0]
	b	LBB0_6
LBB0_4:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_WARN
Lloh2:
	adrp	x8, _D3DERR_INVALIDCALL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _D3DERR_INVALIDCALL@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
	mov	w8, #0
LBB0_6:
	ldr	w9, [x20, #8]
	stp	w9, w8, [x19, #8]
	ldr	d0, [x20]
	str	d0, [x19]
Lloh4:
	adrp	x8, _D3D_OK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _D3D_OK@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid argument specified.\n"

	.comm	_D3DERR_INVALIDCALL,4,2         ; @D3DERR_INVALIDCALL
	.comm	_D3D_OK,4,2                     ; @D3D_OK
	.no_dead_strip	_d3dx9_base_effect_get_parameter_desc
.subsections_via_symbols
