	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gfx_ctx_ps3_get_available_resolutions
_gfx_ctx_ps3_get_available_resolutions: ## @gfx_ctx_ps3_get_available_resolutions
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_CELL_VIDEO_OUT_RESOLUTION_480@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, -80(%rbp)
	movq	_CELL_VIDEO_OUT_RESOLUTION_576@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -104(%rbp)                ## 4-byte Spill
	movl	%eax, -76(%rbp)
	movq	_CELL_VIDEO_OUT_RESOLUTION_960x1080@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -108(%rbp)                ## 4-byte Spill
	movl	%eax, -72(%rbp)
	movq	_CELL_VIDEO_OUT_RESOLUTION_720@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -96(%rbp)                 ## 4-byte Spill
	movl	%eax, -68(%rbp)
	movq	_CELL_VIDEO_OUT_RESOLUTION_1280x1080@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	movl	%eax, -64(%rbp)
	movq	_CELL_VIDEO_OUT_RESOLUTION_1440x1080@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	%r13d, -60(%rbp)
	movq	_CELL_VIDEO_OUT_RESOLUTION_1600x1080@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%r12d, -56(%rbp)
	movq	_CELL_VIDEO_OUT_RESOLUTION_1080@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%r15d, -52(%rbp)
	xorl	%eax, %eax
	callq	_global_get_ptr
	cmpl	$0, (%rax)
	jne	LBB0_11
## %bb.1:
	movq	%rax, %r14
	movq	_CELL_VIDEO_OUT_PRIMARY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CELL_VIDEO_OUT_ASPECT_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %esi
	xorl	%ecx, %ecx
	callq	_cellVideoOutGetResolutionAvailability
	movl	%r13d, -100(%rbp)               ## 4-byte Spill
	xorl	%r13d, %r13d
	testq	%rax, %rax
	setne	%r13b
	movq	_CELL_VIDEO_OUT_PRIMARY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CELL_VIDEO_OUT_ASPECT_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	-104(%rbp), %esi                ## 4-byte Reload
	xorl	%ecx, %ecx
	callq	_cellVideoOutGetResolutionAvailability
	cmpq	$1, %rax
	sbbl	$-1, %r13d
	movq	_CELL_VIDEO_OUT_PRIMARY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CELL_VIDEO_OUT_ASPECT_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	-108(%rbp), %esi                ## 4-byte Reload
	xorl	%ecx, %ecx
	callq	_cellVideoOutGetResolutionAvailability
	cmpq	$1, %rax
	sbbl	$-1, %r13d
	movq	_CELL_VIDEO_OUT_PRIMARY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CELL_VIDEO_OUT_ASPECT_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	-96(%rbp), %esi                 ## 4-byte Reload
	xorl	%ecx, %ecx
	callq	_cellVideoOutGetResolutionAvailability
	cmpq	$1, %rax
	sbbl	$-1, %r13d
	movq	_CELL_VIDEO_OUT_PRIMARY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CELL_VIDEO_OUT_ASPECT_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	-84(%rbp), %esi                 ## 4-byte Reload
	xorl	%ecx, %ecx
	callq	_cellVideoOutGetResolutionAvailability
	cmpq	$1, %rax
	sbbl	$-1, %r13d
	movq	_CELL_VIDEO_OUT_PRIMARY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CELL_VIDEO_OUT_ASPECT_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	-100(%rbp), %esi                ## 4-byte Reload
	xorl	%ecx, %ecx
	callq	_cellVideoOutGetResolutionAvailability
	cmpq	$1, %rax
	sbbl	$-1, %r13d
	movq	_CELL_VIDEO_OUT_PRIMARY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CELL_VIDEO_OUT_ASPECT_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r12d, %esi
	xorl	%ecx, %ecx
	callq	_cellVideoOutGetResolutionAvailability
	cmpq	$1, %rax
	sbbl	$-1, %r13d
	movl	%r15d, %esi
	movq	_CELL_VIDEO_OUT_PRIMARY@GOTPCREL(%rip), %rax
	movq	%rax, %r15
	movl	(%rax), %edi
	movq	_CELL_VIDEO_OUT_ASPECT_AUTO@GOTPCREL(%rip), %rax
	movq	%rax, %r12
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	_cellVideoOutGetResolutionAvailability
	cmpq	$1, %rax
	sbbl	$-1, %r13d
	movl	$0, 4(%r14)
	movq	%r13, -96(%rbp)                 ## 8-byte Spill
	leal	(,%r13,4), %edi
	callq	_malloc
	movq	%rax, 8(%r14)
	movl	$1, -84(%rbp)                   ## 4-byte Folded Spill
	movl	$1, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	movl	(%r12), %edx
	movl	%ebx, %esi
	xorl	%ecx, %ecx
	callq	_cellVideoOutGetResolutionAvailability
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r14), %rax
	movslq	4(%r14), %rcx
	leal	1(%rcx), %edx
	movl	%edx, 4(%r14)
	movl	%ebx, (%rax,%rcx,4)
	movl	%ebx, 24(%r14)
	cmpl	%ebx, 16(%r14)
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r14), %eax
	decl	%eax
	movl	%eax, 20(%r14)
	movl	$0, -84(%rbp)                   ## 4-byte Folded Spill
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$8, %r13
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-80(%rbp,%r13,4), %ebx
	incq	%r13
	jmp	LBB0_2
LBB0_7:
	cmpl	$8, 16(%r14)
	ja	LBB0_9
## %bb.8:
	cmpl	$0, -84(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_10
LBB0_9:
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	leal	-1(%rcx), %eax
	movl	%eax, 20(%r14)
	movq	8(%r14), %rax
	movslq	%ecx, %rcx
	movl	-4(%rax,%rcx,4), %eax
	movl	%eax, 16(%r14)
LBB0_10:
	movl	$1, (%r14)
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CELL_VIDEO_OUT_RESOLUTION_480,4,2 ## @CELL_VIDEO_OUT_RESOLUTION_480
	.comm	_CELL_VIDEO_OUT_RESOLUTION_576,4,2 ## @CELL_VIDEO_OUT_RESOLUTION_576
	.comm	_CELL_VIDEO_OUT_RESOLUTION_960x1080,4,2 ## @CELL_VIDEO_OUT_RESOLUTION_960x1080
	.comm	_CELL_VIDEO_OUT_RESOLUTION_720,4,2 ## @CELL_VIDEO_OUT_RESOLUTION_720
	.comm	_CELL_VIDEO_OUT_RESOLUTION_1280x1080,4,2 ## @CELL_VIDEO_OUT_RESOLUTION_1280x1080
	.comm	_CELL_VIDEO_OUT_RESOLUTION_1440x1080,4,2 ## @CELL_VIDEO_OUT_RESOLUTION_1440x1080
	.comm	_CELL_VIDEO_OUT_RESOLUTION_1600x1080,4,2 ## @CELL_VIDEO_OUT_RESOLUTION_1600x1080
	.comm	_CELL_VIDEO_OUT_RESOLUTION_1080,4,2 ## @CELL_VIDEO_OUT_RESOLUTION_1080
	.comm	_CELL_VIDEO_OUT_PRIMARY,4,2     ## @CELL_VIDEO_OUT_PRIMARY
	.comm	_CELL_VIDEO_OUT_ASPECT_AUTO,4,2 ## @CELL_VIDEO_OUT_ASPECT_AUTO
	.no_dead_strip	_gfx_ctx_ps3_get_available_resolutions
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gfx_ctx_ps3_get_available_resolutions
_gfx_ctx_ps3_get_available_resolutions: ; @gfx_ctx_ps3_get_available_resolutions
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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 w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
Lloh3:
	adrp	x8, _CELL_VIDEO_OUT_RESOLUTION_480@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CELL_VIDEO_OUT_RESOLUTION_480@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
Lloh6:
	adrp	x8, _CELL_VIDEO_OUT_RESOLUTION_576@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CELL_VIDEO_OUT_RESOLUTION_576@GOTPAGEOFF]
Lloh8:
	ldr	w27, [x8]
	stp	w20, w27, [sp, #8]
Lloh9:
	adrp	x8, _CELL_VIDEO_OUT_RESOLUTION_960x1080@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CELL_VIDEO_OUT_RESOLUTION_960x1080@GOTPAGEOFF]
Lloh11:
	ldr	w26, [x8]
Lloh12:
	adrp	x8, _CELL_VIDEO_OUT_RESOLUTION_720@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CELL_VIDEO_OUT_RESOLUTION_720@GOTPAGEOFF]
Lloh14:
	ldr	w25, [x8]
	stp	w26, w25, [sp, #16]
Lloh15:
	adrp	x8, _CELL_VIDEO_OUT_RESOLUTION_1280x1080@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CELL_VIDEO_OUT_RESOLUTION_1280x1080@GOTPAGEOFF]
Lloh17:
	adrp	x9, _CELL_VIDEO_OUT_RESOLUTION_1440x1080@GOTPAGE
Lloh18:
	ldr	x9, [x9, _CELL_VIDEO_OUT_RESOLUTION_1440x1080@GOTPAGEOFF]
Lloh19:
	ldr	w24, [x8]
Lloh20:
	ldr	w23, [x9]
	stp	w24, w23, [sp, #24]
Lloh21:
	adrp	x8, _CELL_VIDEO_OUT_RESOLUTION_1600x1080@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CELL_VIDEO_OUT_RESOLUTION_1600x1080@GOTPAGEOFF]
Lloh23:
	ldr	w22, [x8]
Lloh24:
	adrp	x8, _CELL_VIDEO_OUT_RESOLUTION_1080@GOTPAGE
Lloh25:
	ldr	x8, [x8, _CELL_VIDEO_OUT_RESOLUTION_1080@GOTPAGEOFF]
Lloh26:
	ldr	w21, [x8]
	stp	w22, w21, [sp, #32]
	bl	_global_get_ptr
	ldr	w8, [x0]
	cbnz	w8, LBB0_10
; %bb.1:
	mov	x19, x0
	str	w21, [sp, #4]                   ; 4-byte Folded Spill
Lloh27:
	adrp	x21, _CELL_VIDEO_OUT_PRIMARY@GOTPAGE
Lloh28:
	ldr	x21, [x21, _CELL_VIDEO_OUT_PRIMARY@GOTPAGEOFF]
	ldr	w0, [x21]
	str	w22, [sp]                       ; 4-byte Folded Spill
Lloh29:
	adrp	x22, _CELL_VIDEO_OUT_ASPECT_AUTO@GOTPAGE
Lloh30:
	ldr	x22, [x22, _CELL_VIDEO_OUT_ASPECT_AUTO@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x1, x20
	mov	w3, #0
	bl	_cellVideoOutGetResolutionAvailability
	mov	x28, x0
	ldr	w0, [x21]
	ldr	w2, [x22]
	mov	x1, x27
	mov	w3, #0
	bl	_cellVideoOutGetResolutionAvailability
	cmp	x0, #0
	cset	w8, ne
	cmp	x28, #0
	cinc	w27, w8, ne
	ldr	w0, [x21]
	ldr	w2, [x22]
	mov	x1, x26
	mov	w3, #0
	bl	_cellVideoOutGetResolutionAvailability
	cmp	x0, #0
	cinc	w26, w27, ne
	ldr	w0, [x21]
	ldr	w2, [x22]
	mov	x1, x25
	mov	w3, #0
	bl	_cellVideoOutGetResolutionAvailability
	cmp	x0, #0
	cinc	w25, w26, ne
	ldr	w0, [x21]
	ldr	w2, [x22]
	mov	x1, x24
	mov	w3, #0
	bl	_cellVideoOutGetResolutionAvailability
	cmp	x0, #0
	cinc	w24, w25, ne
	ldr	w0, [x21]
	ldr	w2, [x22]
	mov	x1, x23
	mov	w3, #0
	bl	_cellVideoOutGetResolutionAvailability
	cmp	x0, #0
	cinc	w23, w24, ne
	ldr	w0, [x21]
	ldr	w2, [x22]
	ldr	w1, [sp]                        ; 4-byte Folded Reload
	mov	w3, #0
	bl	_cellVideoOutGetResolutionAvailability
	cmp	x0, #0
	cinc	w23, w23, ne
	ldr	w0, [x21]
	ldr	w2, [x22]
	ldr	w1, [sp, #4]                    ; 4-byte Folded Reload
	mov	w3, #0
	bl	_cellVideoOutGetResolutionAvailability
	cmp	x0, #0
	cinc	w23, w23, ne
	str	wzr, [x19, #4]
	lsl	w0, w23, #2
	bl	_malloc
	str	x0, [x19, #8]
	mov	w24, #1
	mov	w25, #4
	add	x26, sp, #8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	ldr	w2, [x22]
	mov	x1, x20
	mov	w3, #0
	bl	_cellVideoOutGetResolutionAvailability
	cbz	x0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19, #8]
	ldrsw	x9, [x19, #4]
	add	w10, w9, #1
	str	w10, [x19, #4]
	str	w20, [x8, x9, lsl #2]
	str	w20, [x19, #24]
	ldr	w8, [x19, #16]
	cmp	w8, w20
	b.ne	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w24, #0
	ldr	w8, [x19, #4]
	sub	w8, w8, #1
	str	w8, [x19, #20]
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	cmp	x25, #32
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w20, [x26, x25]
	add	x25, x25, #4
	b	LBB0_2
LBB0_7:
	ldr	w8, [x19, #16]
	cmp	w8, #8
	ccmp	w24, #0, #0, ls
	b.eq	LBB0_9
; %bb.8:
	sub	w8, w23, #1
	str	w8, [x19, #20]
	ldr	x9, [x19, #8]
	ldr	w8, [x9, w8, sxtw #2]
	str	w8, [x19, #16]
LBB0_9:
	mov	w8, #1
	str	w8, [x19]
LBB0_10:
	ldr	x8, [sp, #40]
Lloh31:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh32:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh19
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_CELL_VIDEO_OUT_RESOLUTION_480,4,2 ; @CELL_VIDEO_OUT_RESOLUTION_480
	.comm	_CELL_VIDEO_OUT_RESOLUTION_576,4,2 ; @CELL_VIDEO_OUT_RESOLUTION_576
	.comm	_CELL_VIDEO_OUT_RESOLUTION_960x1080,4,2 ; @CELL_VIDEO_OUT_RESOLUTION_960x1080
	.comm	_CELL_VIDEO_OUT_RESOLUTION_720,4,2 ; @CELL_VIDEO_OUT_RESOLUTION_720
	.comm	_CELL_VIDEO_OUT_RESOLUTION_1280x1080,4,2 ; @CELL_VIDEO_OUT_RESOLUTION_1280x1080
	.comm	_CELL_VIDEO_OUT_RESOLUTION_1440x1080,4,2 ; @CELL_VIDEO_OUT_RESOLUTION_1440x1080
	.comm	_CELL_VIDEO_OUT_RESOLUTION_1600x1080,4,2 ; @CELL_VIDEO_OUT_RESOLUTION_1600x1080
	.comm	_CELL_VIDEO_OUT_RESOLUTION_1080,4,2 ; @CELL_VIDEO_OUT_RESOLUTION_1080
	.comm	_CELL_VIDEO_OUT_PRIMARY,4,2     ; @CELL_VIDEO_OUT_PRIMARY
	.comm	_CELL_VIDEO_OUT_ASPECT_AUTO,4,2 ; @CELL_VIDEO_OUT_ASPECT_AUTO
	.no_dead_strip	_gfx_ctx_ps3_get_available_resolutions
.subsections_via_symbols
