	.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_d3d9_clear_color
LCPI0_0:
	.long	0x437f0000                      ## float 255
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_menu_display_d3d9_clear_color:         ## @menu_display_d3d9_clear_color
	.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
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movq	(%rsi), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rdi, %rbx
	movq	(%rax), %r14
	movss	(%rdi), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	mulss	LCPI0_0(%rip), %xmm0
	callq	_BYTE_CLAMP
	movl	%eax, %r15d
	movss	4(%rbx), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	mulss	LCPI0_0(%rip), %xmm0
	callq	_BYTE_CLAMP
	movl	%eax, %r12d
	movss	8(%rbx), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	mulss	LCPI0_0(%rip), %xmm0
	callq	_BYTE_CLAMP
	movl	%eax, %r13d
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	mulss	12(%rbx), %xmm0
	callq	_BYTE_CLAMP
	movl	%r15d, %edi
	movl	%r12d, %esi
	movl	%r13d, %edx
	movl	%eax, %ecx
	callq	_D3DCOLOR_ARGB
	movq	_D3D_COMM_CLEAR_TARGET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	$0, (%rsp)
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	%eax, %r8d
	xorl	%r9d, %r9d
	callq	_d3d9_clear
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_D3D_COMM_CLEAR_TARGET,4,2      ## @D3D_COMM_CLEAR_TARGET
	.no_dead_strip	_menu_display_d3d9_clear_color
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function menu_display_d3d9_clear_color
_menu_display_d3d9_clear_color:         ; @menu_display_d3d9_clear_color
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-80]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset b8, -72
	.cfi_offset b9, -80
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x1]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x19, x0
	ldr	x20, [x8]
	ldr	s0, [x0]
	mov	w8, #1132396544
	fmov	s8, w8
	fmul	s0, s0, s8
	bl	_BYTE_CLAMP
	mov	x21, x0
	ldr	s0, [x19, #4]
	fmul	s0, s0, s8
	bl	_BYTE_CLAMP
	mov	x22, x0
	ldr	s0, [x19, #8]
	fmul	s0, s0, s8
	bl	_BYTE_CLAMP
	mov	x23, x0
	ldr	s0, [x19, #12]
	fmul	s0, s0, s8
	bl	_BYTE_CLAMP
	mov	x3, x0
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	bl	_D3DCOLOR_ARGB
	mov	x4, x0
Lloh0:
	adrp	x8, _D3D_COMM_CLEAR_TARGET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _D3D_COMM_CLEAR_TARGET@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x0, x20
	mov	w1, #0
	mov	x2, #0
	mov	w5, #0
	mov	w6, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #80               ; 16-byte Folded Reload
	b	_d3d9_clear
LBB0_3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #80               ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_D3D_COMM_CLEAR_TARGET,4,2      ; @D3D_COMM_CLEAR_TARGET
	.no_dead_strip	_menu_display_d3d9_clear_color
.subsections_via_symbols
