	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function menu_display_d3d12_draw_pipeline
LCPI0_0:
	.long	0x3c23d70a                      ## float 0.00999999977
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_menu_display_d3d12_draw_pipeline:      ## @menu_display_d3d12_draw_pipeline
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.1:
	movq	(%rsi), %rbx
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.2:
	movq	%rdi, %r15
	movl	8(%rdi), %eax
	leal	-128(%rax), %ecx
	cmpl	$4, %ecx
	jae	LBB0_3
## %bb.7:
	movl	4(%rbx), %edi
	leaq	16(%rbx), %rcx
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_D3D12IASetVertexBuffers
	movl	$4, %eax
	jmp	LBB0_8
LBB0_3:
	addl	$-132, %eax
	cmpl	$1, %eax
	ja	LBB0_9
## %bb.4:
	xorl	%eax, %eax
	callq	_menu_display_get_coords_array
	movq	%rax, %r14
	cmpl	$0, 40(%rbx)
	jne	LBB0_6
## %bb.5:
	leaq	40(%rbx), %rdx
	movq	$0, -32(%rbp)
	movl	$8, 28(%rbx)
	movl	(%r14), %esi
	shll	$3, %esi
	movl	%esi, 32(%rbx)
	movl	44(%rbx), %edi
	callq	_d3d12_create_buffer
	movl	%eax, 36(%rbx)
	movl	40(%rbx), %edi
	leaq	-32(%rbp), %rdx
	leaq	-40(%rbp), %rcx
	xorl	%esi, %esi
	callq	_D3D12Map
	movq	-40(%rbp), %rdi
	movl	4(%r14), %esi
	movl	32(%rbx), %edx
	callq	_memcpy
	movl	40(%rbx), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_D3D12Unmap
LBB0_6:
	movl	4(%rbx), %edi
	leaq	28(%rbx), %rcx
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_D3D12IASetVertexBuffers
	movl	(%r14), %eax
LBB0_8:
	movq	(%r15), %rcx
	movl	%eax, (%rcx)
	movl	4(%rbx), %edi
	movq	_D3D_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_D3D12IASetPrimitiveTopology
	movss	12(%rbx), %xmm0                 ## xmm0 = mem[0],zero,zero,zero
	addss	LCPI0_0(%rip), %xmm0
	movss	%xmm0, 12(%rbx)
	movq	$0, -40(%rbp)
	movl	8(%rbx), %edi
	leaq	-40(%rbp), %rdx
	leaq	-32(%rbp), %rcx
	xorl	%esi, %esi
	callq	_D3D12Map
	movq	-32(%rbp), %rax
	movl	12(%rbx), %ecx
	movl	%ecx, (%rax)
	movl	8(%rbx), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_D3D12Unmap
	movl	(%rbx), %edx
	movl	4(%rbx), %edi
	movq	_ROOT_ID_UBO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_D3D12SetGraphicsRootConstantBufferView
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_D3D_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP,4,2 ## @D3D_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP
	.comm	_ROOT_ID_UBO,4,2                ## @ROOT_ID_UBO
	.no_dead_strip	_menu_display_d3d12_draw_pipeline
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function menu_display_d3d12_draw_pipeline
_menu_display_d3d12_draw_pipeline:      ; @menu_display_d3d12_draw_pipeline
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	cbz	x0, LBB0_9
; %bb.1:
	ldr	x21, [x1]
	cbz	x21, LBB0_9
; %bb.2:
	mov	x19, x0
	ldr	w8, [x0, #8]
	sub	w9, w8, #128
	cmp	w9, #4
	b.hs	LBB0_4
; %bb.3:
	ldr	w0, [x21, #4]
	add	x3, x21, #16
	mov	w1, #0
	mov	w2, #1
	bl	_D3D12IASetVertexBuffers
	mov	w8, #4
	b	LBB0_8
LBB0_4:
	sub	w8, w8, #132
	cmp	w8, #1
	b.hi	LBB0_9
; %bb.5:
	bl	_menu_display_get_coords_array
	mov	x20, x0
	mov	x2, x21
	ldr	w8, [x2, #40]!
	cbnz	w8, LBB0_7
; %bb.6:
	str	xzr, [sp]
	mov	w8, #8
	str	w8, [x21, #28]
	ldr	w8, [x20]
	lsl	w1, w8, #3
	str	w1, [x21, #32]
	ldr	w0, [x21, #44]
	bl	_d3d12_create_buffer
	str	w0, [x21, #36]
	ldr	w0, [x21, #40]
	mov	x2, sp
	add	x3, sp, #8
	mov	w1, #0
	bl	_D3D12Map
	ldr	x0, [sp, #8]
	ldr	w1, [x20, #4]
	ldr	w2, [x21, #32]
	bl	_memcpy
	ldr	w0, [x21, #40]
	mov	w1, #0
	mov	x2, #0
	bl	_D3D12Unmap
LBB0_7:
	ldr	w0, [x21, #4]
	add	x3, x21, #28
	mov	w1, #0
	mov	w2, #1
	bl	_D3D12IASetVertexBuffers
	ldr	w8, [x20]
LBB0_8:
	ldr	x9, [x19]
	str	w8, [x9]
	ldr	w0, [x21, #4]
Lloh0:
	adrp	x8, _D3D_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _D3D_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_D3D12IASetPrimitiveTopology
	ldr	s0, [x21, #12]
	mov	w8, #55050
	movk	w8, #15395, lsl #16
	fmov	s1, w8
	fadd	s0, s0, s1
	str	s0, [x21, #12]
	str	xzr, [sp, #8]
	ldr	w0, [x21, #8]
	add	x2, sp, #8
	mov	x3, sp
	mov	w1, #0
	bl	_D3D12Map
	ldr	x8, [sp]
	ldr	w9, [x21, #12]
	str	w9, [x8]
	ldr	w0, [x21, #8]
	mov	w1, #0
	mov	x2, #0
	bl	_D3D12Unmap
Lloh3:
	adrp	x8, _ROOT_ID_UBO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ROOT_ID_UBO@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldp	w2, w0, [x21]
	bl	_D3D12SetGraphicsRootConstantBufferView
LBB0_9:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_D3D_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP,4,2 ; @D3D_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP
	.comm	_ROOT_ID_UBO,4,2                ; @ROOT_ID_UBO
	.no_dead_strip	_menu_display_d3d12_draw_pipeline
.subsections_via_symbols
