	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function d3d10_gfx_set_rotation
LCPI0_0:
	.long	0x3f000000                      ## float 0.5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_d3d10_gfx_set_rotation:                ## @d3d10_gfx_set_rotation
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	$0, -16(%rbp)
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	movl	%esi, %eax
	cvtsi2ss	%rax, %xmm0
	movq	_M_PI@GOTPCREL(%rip), %rax
	movss	(%rax), %xmm1                   ## xmm1 = mem[0],zero,zero,zero
	mulss	LCPI0_0(%rip), %xmm1
	mulss	%xmm0, %xmm1
	cvttss2si	%xmm1, %rsi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_matrix_4x4_rotate_z
	movl	4(%rbx), %edi
	movl	8(%rbx), %edx
	callq	_matrix_4x4_multiply
	movl	(%rbx), %edi
	movq	_D3D10_MAP_WRITE_DISCARD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-16(%rbp), %rcx
	xorl	%edx, %edx
	callq	_D3D10MapBuffer
	movl	4(%rbx), %eax
	movq	-16(%rbp), %rcx
	movl	%eax, (%rcx)
	movl	(%rbx), %edi
	callq	_D3D10UnmapBuffer
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_M_PI,4,2                       ## @M_PI
	.comm	_D3D10_MAP_WRITE_DISCARD,4,2    ## @D3D10_MAP_WRITE_DISCARD
	.no_dead_strip	_d3d10_gfx_set_rotation
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function d3d10_gfx_set_rotation
_d3d10_gfx_set_rotation:                ; @d3d10_gfx_set_rotation
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	str	xzr, [sp, #8]
	cbz	x0, LBB0_2
; %bb.1:
	mov	x19, x0
	ucvtf	s0, w1
Lloh0:
	adrp	x8, _M_PI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _M_PI@GOTPAGEOFF]
Lloh2:
	ldr	s1, [x8]
	fmov	s2, #0.50000000
	fmul	s1, s1, s2
	fmul	s0, s1, s0
	fcvtzu	w1, s0
	bl	_matrix_4x4_rotate_z
	ldp	w0, w2, [x19, #4]
	bl	_matrix_4x4_multiply
	ldr	w0, [x19]
Lloh3:
	adrp	x8, _D3D10_MAP_WRITE_DISCARD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _D3D10_MAP_WRITE_DISCARD@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x3, sp, #8
	mov	w2, #0
	bl	_D3D10MapBuffer
	ldr	w8, [x19, #4]
	ldr	x9, [sp, #8]
	str	w8, [x9]
	ldr	w0, [x19]
	bl	_D3D10UnmapBuffer
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_M_PI,4,2                       ; @M_PI
	.comm	_D3D10_MAP_WRITE_DISCARD,4,2    ; @D3D10_MAP_WRITE_DISCARD
	.no_dead_strip	_d3d10_gfx_set_rotation
.subsections_via_symbols
