	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function d3dx9_base_effect_get_float_array
_d3dx9_base_effect_get_float_array:     ## @d3dx9_base_effect_get_float_array
	.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
	movq	%rcx, %r15
	movq	%rdx, %r14
	callq	_get_valid_parameter
	testq	%r14, %r14
	je	LBB0_10
## %bb.1:
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_10
## %bb.2:
	movq	(%r12), %rax
	movq	_D3DXPC_SCALAR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.3:
	movq	_D3DXPC_VECTOR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.4:
	movq	_D3DXPC_MATRIX_ROWS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.5:
	movq	_D3DXPC_MATRIX_COLUMNS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
LBB0_10:
	leaq	L_.str(%rip), %rdi
	callq	_WARN
	movq	_D3DERR_INVALIDCALL@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	8(%r12), %esi
	sarl	$2, %esi
	movq	%r15, %rdi
	callq	_min
	movq	%rax, %r13
	movq	_D3D_OK@GOTPCREL(%rip), %rax
	testq	%r13, %r13
	je	LBB0_11
## %bb.7:
	xorl	%ebx, %ebx
	movq	_D3DXPT_FLOAT@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%r14,%rbx), %rdi
	movl	(%r15), %esi
	movq	16(%r12), %rdx
	addq	%rbx, %rdx
	movl	12(%r12), %ecx
	callq	_set_number
	addq	$4, %rbx
	decq	%r13
	jne	LBB0_8
## %bb.9:
	movq	_D3D_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_D3DXPC_SCALAR,8,3              ## @D3DXPC_SCALAR
	.comm	_D3DXPC_VECTOR,8,3              ## @D3DXPC_VECTOR
	.comm	_D3DXPC_MATRIX_ROWS,8,3         ## @D3DXPC_MATRIX_ROWS
	.comm	_D3DXPC_MATRIX_COLUMNS,8,3      ## @D3DXPC_MATRIX_COLUMNS
	.comm	_D3DXPT_FLOAT,4,2               ## @D3DXPT_FLOAT
	.comm	_D3D_OK,4,2                     ## @D3D_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Parameter not found.\n"

	.comm	_D3DERR_INVALIDCALL,4,2         ## @D3DERR_INVALIDCALL
	.no_dead_strip	_d3dx9_base_effect_get_float_array
.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_float_array
_d3dx9_base_effect_get_float_array:     ; @d3dx9_base_effect_get_float_array
	.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, x3
	mov	x19, x2
	bl	_get_valid_parameter
	cbz	x19, LBB0_6
; %bb.1:
	mov	x20, x0
	cbz	x0, LBB0_6
; %bb.2:
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _D3DXPC_SCALAR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _D3DXPC_SCALAR@GOTPAGEOFF]
Lloh2:
	adrp	x10, _D3DXPC_VECTOR@GOTPAGE
Lloh3:
	ldr	x10, [x10, _D3DXPC_VECTOR@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	ldr	x10, [x10]
Lloh6:
	adrp	x11, _D3DXPC_MATRIX_ROWS@GOTPAGE
Lloh7:
	ldr	x11, [x11, _D3DXPC_MATRIX_ROWS@GOTPAGEOFF]
Lloh8:
	adrp	x12, _D3DXPC_MATRIX_COLUMNS@GOTPAGE
Lloh9:
	ldr	x12, [x12, _D3DXPC_MATRIX_COLUMNS@GOTPAGEOFF]
Lloh10:
	ldr	x11, [x11]
Lloh11:
	ldr	x12, [x12]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x8, x11, #4, ne
	ccmp	x8, x12, #4, ne
	b.ne	LBB0_6
; %bb.3:
	ldr	w8, [x20, #8]
	asr	w1, w8, #2
	mov	x0, x21
	bl	_min
	cbz	x0, LBB0_8
; %bb.4:
	mov	x21, x0
	mov	x23, #0
Lloh12:
	adrp	x24, _D3DXPT_FLOAT@GOTPAGE
Lloh13:
	ldr	x24, [x24, _D3DXPT_FLOAT@GOTPAGEOFF]
Lloh14:
	adrp	x22, _D3D_OK@GOTPAGE
Lloh15:
	ldr	x22, [x22, _D3D_OK@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, x19, x23
	ldr	w1, [x24]
	ldr	x8, [x20, #16]
	add	x2, x8, x23
	ldr	w3, [x20, #12]
	bl	_set_number
	add	x23, x23, #4
	subs	x21, x21, #1
	b.ne	LBB0_5
	b	LBB0_7
LBB0_6:
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	bl	_WARN
Lloh18:
	adrp	x22, _D3DERR_INVALIDCALL@GOTPAGE
Lloh19:
	ldr	x22, [x22, _D3DERR_INVALIDCALL@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x22]
	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_8:
Lloh20:
	adrp	x22, _D3D_OK@GOTPAGE
Lloh21:
	ldr	x22, [x22, _D3D_OK@GOTPAGEOFF]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_D3DXPC_SCALAR,8,3              ; @D3DXPC_SCALAR
	.comm	_D3DXPC_VECTOR,8,3              ; @D3DXPC_VECTOR
	.comm	_D3DXPC_MATRIX_ROWS,8,3         ; @D3DXPC_MATRIX_ROWS
	.comm	_D3DXPC_MATRIX_COLUMNS,8,3      ; @D3DXPC_MATRIX_COLUMNS
	.comm	_D3DXPT_FLOAT,4,2               ; @D3DXPT_FLOAT
	.comm	_D3D_OK,4,2                     ; @D3D_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Parameter not found.\n"

	.comm	_D3DERR_INVALIDCALL,4,2         ; @D3DERR_INVALIDCALL
	.no_dead_strip	_d3dx9_base_effect_get_float_array
.subsections_via_symbols
