	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xmb_draw_bg
_xmb_draw_bg:                           ## @xmb_draw_bg
	.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
	subq	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r15
	movq	%rsi, %rbx
	movl	(%rsi), %r14d
	xorps	%xmm0, %xmm0
	movups	%xmm0, -72(%rbp)
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%r8, -144(%rbp)
	movl	%edx, -136(%rbp)
	movl	%ecx, -132(%rbp)
	movq	%r9, -128(%rbp)
	movups	%xmm0, -88(%rbp)
	movl	$4, -120(%rbp)
	movq	_MENU_DISPLAY_PRIM_TRIANGLESTRIP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -96(%rbp)
	movq	$0, -112(%rbp)
	movq	%rsi, %rdi
	callq	_xmb_shader_pipeline_active
	movl	%eax, -104(%rbp)
	movq	%rbx, %rdi
	callq	_menu_display_blend_begin
	movl	20(%rbx), %esi
	movl	24(%rbx), %edi
	callq	_menu_display_set_viewport
	movq	8(%rbx), %rax
	movq	_XMB_THEME_WALLPAPER@GOTPCREL(%rip), %r13
	movq	%r15, %r12
	cmpq	(%r13), %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_xmb_gradient_ident
	movq	%rax, %r12
	movq	%rax, -128(%rbp)
LBB0_2:
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	testl	%r14d, %r14d
	cmoveq	16(%rbp), %r15
	movss	12(%r15), %xmm0                 ## xmm0 = mem[0],zero,zero,zero
	movq	%r12, %rdi
	callq	_menu_display_set_alpha
	movq	8(%rbx), %rax
	cmpq	(%r13), %rax
	je	LBB0_4
## %bb.3:
	leaq	-144(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_menu_display_draw_gradient
	movq	-128(%rbp), %r12
LBB0_4:
	movss	16(%rbx), %xmm0                 ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, -144(%rbp)
	movq	16(%rbp), %r14
	movss	12(%r14), %xmm0                 ## xmm0 = mem[0],zero,zero,zero
	movq	%r12, %rdi
	callq	_menu_display_set_alpha
	cmpq	$0, -144(%rbp)
	je	LBB0_6
## %bb.5:
	movq	%r14, %rax
	movq	%r14, -128(%rbp)
LBB0_6:
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_8
## %bb.7:
	movq	8(%rbx), %rax
	xorl	%edx, %edx
	cmpq	(%r13), %rax
	jne	LBB0_9
LBB0_8:
	movl	$1, %edx
LBB0_9:
	leaq	-144(%rbp), %r14
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	callq	_menu_display_draw_bg
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_menu_display_draw
	movq	%rbx, %rdi
	callq	_menu_display_blend_end
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MENU_DISPLAY_PRIM_TRIANGLESTRIP,4,2 ## @MENU_DISPLAY_PRIM_TRIANGLESTRIP
	.comm	_XMB_THEME_WALLPAPER,8,3        ## @XMB_THEME_WALLPAPER
	.comm	_VIDEO_SHADER_MENU,8,3          ## @VIDEO_SHADER_MENU
	.comm	_VIDEO_SHADER_MENU_2,8,3        ## @VIDEO_SHADER_MENU_2
	.comm	_VIDEO_SHADER_MENU_3,8,3        ## @VIDEO_SHADER_MENU_3
	.comm	_VIDEO_SHADER_MENU_4,8,3        ## @VIDEO_SHADER_MENU_4
	.comm	_VIDEO_SHADER_MENU_5,8,3        ## @VIDEO_SHADER_MENU_5
	.comm	_VIDEO_SHADER_MENU_6,8,3        ## @VIDEO_SHADER_MENU_6
	.comm	_XMB_SHADER_PIPELINE_WALLPAPER,4,2 ## @XMB_SHADER_PIPELINE_WALLPAPER
	.no_dead_strip	_xmb_draw_bg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xmb_draw_bg
_xmb_draw_bg:                           ; @xmb_draw_bg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	d9, d8, [sp, #96]               ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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 w25, -72
	.cfi_offset w26, -80
	.cfi_offset b8, -88
	.cfi_offset b9, -96
	mov	x20, x6
	mov	x22, x5
	mov	x21, x4
	mov	x19, x1
	ldr	w24, [x1]
	stp	xzr, xzr, [sp, #80]
	str	x4, [sp, #8]
	stp	w2, w3, [sp, #16]
	str	x5, [sp, #24]
	stp	xzr, xzr, [sp, #64]
	mov	w8, #4
	str	w8, [sp, #32]
Lloh0:
	adrp	x8, _MENU_DISPLAY_PRIM_TRIANGLESTRIP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MENU_DISPLAY_PRIM_TRIANGLESTRIP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #56]
	str	xzr, [sp, #40]
	mov	x0, x1
	bl	_xmb_shader_pipeline_active
	str	w0, [sp, #48]
	mov	x0, x19
	bl	_menu_display_blend_begin
	ldp	w1, w0, [x19, #20]
	bl	_menu_display_set_viewport
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x25, _XMB_THEME_WALLPAPER@GOTPAGE
Lloh4:
	ldr	x25, [x25, _XMB_THEME_WALLPAPER@GOTPAGEOFF]
	ldr	x9, [x25]
	mov	x23, x22
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_xmb_gradient_ident
	mov	x23, x0
	str	x0, [sp, #24]
LBB0_2:
	cmp	w24, #0
	csel	x8, x20, x22, eq
	ldr	s0, [x8, #12]
	mov	x0, x23
	bl	_menu_display_set_alpha
	ldr	x8, [x19, #8]
	ldr	x9, [x25]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.3:
	add	x0, sp, #8
	mov	x1, x19
	bl	_menu_display_draw_gradient
	ldr	x23, [sp, #24]
LBB0_4:
	ldr	s8, [x19, #16]
	str	x21, [sp, #8]
	ldr	s0, [x20, #12]
	mov	x0, x23
	bl	_menu_display_set_alpha
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_6
; %bb.5:
	str	x20, [sp, #24]
LBB0_6:
	cbnz	w24, LBB0_8
; %bb.7:
	ldr	x8, [x19, #8]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_9
LBB0_8:
	mov	w2, #1
	b	LBB0_10
LBB0_9:
	mov	w2, #0
LBB0_10:
	add	x0, sp, #8
	mov	x1, x19
	fmov	s0, s8
	bl	_menu_display_draw_bg
	add	x0, sp, #8
	mov	x1, x19
	bl	_menu_display_draw
	mov	x0, x19
	bl	_menu_display_blend_end
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #96]               ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MENU_DISPLAY_PRIM_TRIANGLESTRIP,4,2 ; @MENU_DISPLAY_PRIM_TRIANGLESTRIP
	.comm	_XMB_THEME_WALLPAPER,8,3        ; @XMB_THEME_WALLPAPER
	.comm	_VIDEO_SHADER_MENU,8,3          ; @VIDEO_SHADER_MENU
	.comm	_VIDEO_SHADER_MENU_2,8,3        ; @VIDEO_SHADER_MENU_2
	.comm	_VIDEO_SHADER_MENU_3,8,3        ; @VIDEO_SHADER_MENU_3
	.comm	_VIDEO_SHADER_MENU_4,8,3        ; @VIDEO_SHADER_MENU_4
	.comm	_VIDEO_SHADER_MENU_5,8,3        ; @VIDEO_SHADER_MENU_5
	.comm	_VIDEO_SHADER_MENU_6,8,3        ; @VIDEO_SHADER_MENU_6
	.comm	_XMB_SHADER_PIPELINE_WALLPAPER,4,2 ; @XMB_SHADER_PIPELINE_WALLPAPER
	.no_dead_strip	_xmb_draw_bg
.subsections_via_symbols
