	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function set_matrix_item
LCPI0_0:
	.long	0x3f000000                      ## float 0.5
LCPI0_1:
	.long	0x3f800000                      ## float 1
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
LCPI0_2:
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_set_matrix_item
	.p2align	4, 0x90
_set_matrix_item:                       ## @set_matrix_item
	.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	%r12
	pushq	%rbx
	subq	$208, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	cvtsi2ss	%esi, %xmm3
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cvtsi2ss	%edx, %xmm0
	shll	$6, %ecx
	cvtsi2ss	%ecx, %xmm1
	movq	%rax, -40(%rbp)
	movaps	%xmm0, %xmm2
	divss	%xmm1, %xmm2
	mulss	LCPI0_0(%rip), %xmm2
	movaps	%xmm2, -208(%rbp)               ## 16-byte Spill
	movaps	%xmm1, %xmm2
	divss	%xmm3, %xmm2
	divss	%xmm0, %xmm3
	movss	%xmm3, -180(%rbp)               ## 4-byte Spill
	addss	%xmm2, %xmm2
	movss	LCPI0_1(%rip), %xmm3            ## xmm3 = mem[0],zero,zero,zero
	movaps	%xmm3, %xmm4
	subss	%xmm2, %xmm4
	movaps	%xmm4, -240(%rbp)               ## 16-byte Spill
	divss	%xmm0, %xmm1
	addss	%xmm1, %xmm1
	subss	%xmm1, %xmm3
	movaps	%xmm3, -224(%rbp)               ## 16-byte Spill
	leaq	-112(%rbp), %r15
	movq	%r15, %rdi
	callq	_mat_identity
	movq	_PI@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	leal	3(%rax), %r8d
	testl	%eax, %eax
	cmovnsl	%eax, %r8d
	sarl	$2, %r8d
	negl	%r8d
	leaq	-176(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_mat_rotate
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_mat_multiply
	movslq	(%r12), %rax
	imulq	$-1717986919, %rax, %r8         ## imm = 0x99999999
	movq	%r8, %rax
	shrq	$63, %rax
	sarq	$34, %r8
	addl	%eax, %r8d
	movq	%rbx, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_mat_rotate
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_mat_multiply
	movaps	-208(%rbp), %xmm3               ## 16-byte Reload
	movaps	%xmm3, %xmm2
	xorps	LCPI0_2(%rip), %xmm2
	movaps	%xmm2, %xmm0
	movss	-180(%rbp), %xmm1               ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm0
	mulss	%xmm3, %xmm1
	movq	%rbx, %rdi
	movl	$-1, %esi
	movl	$1, %edx
	callq	_mat_ortho
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_mat_multiply
	movaps	-240(%rbp), %xmm0               ## 16-byte Reload
	movaps	LCPI0_2(%rip), %xmm2            ## xmm2 = [-0.0E+0,-0.0E+0,-0.0E+0,-0.0E+0]
	xorps	%xmm2, %xmm0
	movaps	-224(%rbp), %xmm1               ## 16-byte Reload
	xorps	%xmm2, %xmm1
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_mat_translate
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_mat_multiply
	movq	%r14, %rdi
	callq	_mat_identity
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_mat_multiply
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	addq	$208, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PI,4,2                         ## @PI
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_matrix_item                ; -- Begin function set_matrix_item
	.p2align	2
_set_matrix_item:                       ; @set_matrix_item
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	d13, d12, [sp, #144]            ; 16-byte Folded Spill
	stp	d11, d10, [sp, #160]            ; 16-byte Folded Spill
	stp	d9, d8, [sp, #176]              ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset b8, -40
	.cfi_offset b9, -48
	.cfi_offset b10, -56
	.cfi_offset b11, -64
	.cfi_offset b12, -72
	.cfi_offset b13, -80
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	scvtf	s0, w1
	scvtf	s1, w2
	fdiv	s11, s0, s1
	lsl	w8, w3, #6
	scvtf	s2, w8
	fdiv	s12, s1, s2
	fmov	s13, #0.50000000
	fmul	s8, s12, s13
	fneg	s2, s2
	fdiv	s9, s2, s0
	fdiv	s10, s2, s1
	add	x0, sp, #72
	bl	_mat_identity
Lloh3:
	adrp	x20, _PI@GOTPAGE
Lloh4:
	ldr	x20, [x20, _PI@GOTPAGEOFF]
	ldr	w8, [x20]
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	neg	w4, w8, asr #2
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #1
	mov	w3, #0
	bl	_mat_rotate
	add	x0, sp, #72
	add	x1, sp, #8
	add	x2, sp, #72
	bl	_mat_multiply
	ldrsw	x8, [x20]
	mov	x9, #-26215
	movk	x9, #39321, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w4, w8, w9
	add	x0, sp, #8
	mov	w1, #1
	mov	w2, #0
	mov	w3, #0
	bl	_mat_rotate
	add	x0, sp, #72
	add	x1, sp, #8
	add	x2, sp, #72
	bl	_mat_multiply
	fnmul	s2, s12, s13
	fmul	s0, s11, s2
	fmul	s1, s11, s8
	add	x0, sp, #8
	fmov	s3, s8
	mov	w1, #-1
	mov	w2, #1
	bl	_mat_ortho
	add	x0, sp, #72
	add	x1, sp, #8
	add	x2, sp, #72
	bl	_mat_multiply
	fmov	s1, #1.00000000
	fmov	s2, #2.00000000
	fnmadd	s0, s9, s2, s1
	fnmadd	s1, s10, s2, s1
	add	x0, sp, #8
	mov	w1, #0
	bl	_mat_translate
	add	x0, sp, #72
	add	x1, sp, #8
	add	x2, sp, #72
	bl	_mat_multiply
	mov	x0, x19
	bl	_mat_identity
	add	x1, sp, #72
	mov	x0, x19
	mov	x2, x19
	bl	_mat_multiply
	ldur	x8, [x29, #-72]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #176]              ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #160]            ; 16-byte Folded Reload
	ldp	d13, d12, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PI,4,2                         ; @PI
.subsections_via_symbols
