	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_normal_matrix
_get_normal_matrix:                     ## @get_normal_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	(%rdi), %rax
	movq	_WINED3D_LEGACY_FFP_LIGHTING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	callq	_invert_matrix_3d
	jmp	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	callq	_invert_matrix
LBB0_3:
	movss	(%rbx), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, (%r14)
	movss	16(%rbx), %xmm0                 ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, 4(%r14)
	movss	32(%rbx), %xmm0                 ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, 8(%r14)
	movss	4(%rbx), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, 12(%r14)
	movss	20(%rbx), %xmm0                 ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, 16(%r14)
	movss	36(%rbx), %xmm0                 ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, 20(%r14)
	movss	8(%rbx), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, 24(%r14)
	movss	24(%rbx), %xmm0                 ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, 28(%r14)
	movss	40(%rbx), %xmm0                 ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, 32(%r14)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WINED3D_LEGACY_FFP_LIGHTING,4,2 ## @WINED3D_LEGACY_FFP_LIGHTING
	.no_dead_strip	_get_normal_matrix
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_normal_matrix
_get_normal_matrix:                     ; @get_normal_matrix
	.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
	mov	x20, x1
	ldr	x8, [x0]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _WINED3D_LEGACY_FFP_LIGHTING@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WINED3D_LEGACY_FFP_LIGHTING@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	mov	x0, x1
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	bl	_invert_matrix_3d
	b	LBB0_3
LBB0_2:
	bl	_invert_matrix
LBB0_3:
	ldr	s0, [x20]
	str	s0, [x19]
	ldr	s0, [x20, #16]
	str	s0, [x19, #4]
	ldr	s0, [x20, #32]
	str	s0, [x19, #8]
	ldr	s0, [x20, #4]
	str	s0, [x19, #12]
	ldr	s0, [x20, #20]
	str	s0, [x19, #16]
	ldr	s0, [x20, #36]
	str	s0, [x19, #20]
	ldr	s0, [x20, #8]
	str	s0, [x19, #24]
	ldr	s0, [x20, #24]
	str	s0, [x19, #28]
	ldr	s0, [x20, #40]
	str	s0, [x19, #32]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_WINED3D_LEGACY_FFP_LIGHTING,4,2 ; @WINED3D_LEGACY_FFP_LIGHTING
	.no_dead_strip	_get_normal_matrix
.subsections_via_symbols
