	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_matrix
_set_matrix:                            ## @set_matrix
	.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	%rsi, %r14
	movq	%rdi, %r12
	movl	20(%rdi), %eax
	movq	_D3DXPT_FLOAT@GOTPCREL(%rip), %r8
	cmpl	(%r8), %eax
	jne	LBB0_1
## %bb.8:
	movl	(%r12), %edx
	cmpl	$4, %edx
	jne	LBB0_9
## %bb.14:
	movq	8(%r12), %rdi
	movq	(%r14), %rsi
	movl	16(%r12), %edx
	shll	$4, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memcpy                         ## TAILCALL
LBB0_1:
	movl	16(%r12), %ecx
	testl	%ecx, %ecx
	jle	LBB0_13
## %bb.2:
	movl	(%r12), %eax
	xorl	%r13d, %r13d
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
	movslq	%ecx, %rdx
	cmpq	%rdx, %r13
	jge	LBB0_13
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	testl	%eax, %eax
	jle	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	imull	%r13d, %eax
	movslq	%eax, %rdi
	shlq	$2, %rdi
	addq	8(%r12), %rdi
	addq	%rbx, %rdi
	movl	20(%r12), %esi
	movq	(%r14), %rax
	movq	(%rax,%r13,8), %rdx
	addq	%rbx, %rdx
	movl	(%r8), %ecx
	movq	%r14, %r12
	movq	%r8, %r14
	callq	_set_number
	movq	%r14, %r8
	movq	%r12, %r14
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	incq	%r15
	movslq	(%r12), %rax
	addq	$4, %rbx
	cmpq	%rax, %r15
	jl	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	16(%r12), %ecx
	jmp	LBB0_7
LBB0_9:
	cmpl	$0, 16(%r12)
	jle	LBB0_13
## %bb.10:
	movq	8(%r12), %rdi
	movq	(%r14), %rsi
	shll	$2, %edx
	callq	_memcpy
	cmpl	$2, 16(%r12)
	jl	LBB0_13
## %bb.11:
	movl	$1, %ebx
	movl	$8, %r15d
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edx
	movl	%ebx, %eax
	imull	%edx, %eax
	movslq	%eax, %rdi
	shlq	$2, %rdi
	addq	8(%r12), %rdi
	movq	(%r14), %rsi
	addq	%r15, %rsi
	shll	$2, %edx
	callq	_memcpy
	incq	%rbx
	movslq	16(%r12), %rax
	addq	$8, %r15
	cmpq	%rax, %rbx
	jl	LBB0_12
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_D3DXPT_FLOAT,4,2               ## @D3DXPT_FLOAT
	.no_dead_strip	_set_matrix
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_matrix
_set_matrix:                            ; @set_matrix
	.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	x20, x1
	mov	x19, x0
	ldr	w8, [x0, #20]
Lloh0:
	adrp	x21, _D3DXPT_FLOAT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _D3DXPT_FLOAT@GOTPAGEOFF]
	ldr	w9, [x21]
	cmp	w8, w9
	b.ne	LBB0_3
; %bb.1:
	ldr	w8, [x19]
	cmp	w8, #4
	b.ne	LBB0_10
; %bb.2:
	ldr	x0, [x19, #8]
	ldr	x1, [x20]
	ldr	w8, [x19, #16]
	lsl	w2, w8, #4
	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	_memcpy
LBB0_3:
	ldr	w9, [x19, #16]
	cmp	w9, #1
	b.lt	LBB0_14
; %bb.4:
	mov	x22, #0
	ldr	w8, [x19]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x22, x22, #1
	cmp	x22, w9, sxtw
	b.ge	LBB0_14
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x23, #0
	mov	x24, #0
LBB0_8:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x19, #8]
	mul	w8, w22, w8
	add	x8, x9, w8, sxtw #2
	add	x0, x8, x23
	ldr	w1, [x19, #20]
	ldr	x8, [x20]
	ldr	x8, [x8, x22, lsl #3]
	add	x2, x8, x23
	ldr	w3, [x21]
	bl	_set_number
	add	x24, x24, #1
	ldrsw	x8, [x19]
	add	x23, x23, #4
	cmp	x24, x8
	b.lt	LBB0_8
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w9, [x19, #16]
	b	LBB0_5
LBB0_10:
	ldr	w9, [x19, #16]
	cmp	w9, #1
	b.lt	LBB0_14
; %bb.11:
	ldr	x0, [x19, #8]
	ldr	x1, [x20]
	lsl	w2, w8, #2
	bl	_memcpy
	ldr	w8, [x19, #16]
	cmp	w8, #2
	b.lt	LBB0_14
; %bb.12:
	mov	w21, #1
	mov	w22, #8
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19]
	ldr	x9, [x19, #8]
	mul	w10, w8, w21
	add	x0, x9, w10, sxtw #2
	ldr	x9, [x20]
	add	x1, x9, x22
	lsl	w2, w8, #2
	bl	_memcpy
	add	x21, x21, #1
	ldrsw	x8, [x19, #16]
	add	x22, x22, #8
	cmp	x21, x8
	b.lt	LBB0_13
LBB0_14:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_D3DXPT_FLOAT,4,2               ; @D3DXPT_FLOAT
	.no_dead_strip	_set_matrix
.subsections_via_symbols
