	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gfx_ctx_ps3_init
_gfx_ctx_ps3_init:                      ## @gfx_ctx_ps3_init
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_global_get_ptr
	movq	%rax, %r14
	movl	$1, %edi
	movl	$1, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %r15
	movq	_CELL_VIDEO_OUT_PRIMARY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CELL_VIDEO_OUT_RESOLUTION_576@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CELL_VIDEO_OUT_ASPECT_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	_cellVideoOutGetResolutionAvailability
	movl	%eax, (%r14)
	xorl	%eax, %eax
	callq	_gfx_ctx_ps3_get_available_resolutions
	movq	%r15, %rbx
LBB0_2:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CELL_VIDEO_OUT_PRIMARY,4,2     ## @CELL_VIDEO_OUT_PRIMARY
	.comm	_CELL_VIDEO_OUT_RESOLUTION_576,4,2 ## @CELL_VIDEO_OUT_RESOLUTION_576
	.comm	_CELL_VIDEO_OUT_ASPECT_AUTO,4,2 ## @CELL_VIDEO_OUT_ASPECT_AUTO
	.comm	_GL_ARGB_SCE,4,2                ## @GL_ARGB_SCE
	.comm	_GL_FALSE,4,2                   ## @GL_FALSE
	.comm	_GL_MULTISAMPLING_NONE_SCE,4,2  ## @GL_MULTISAMPLING_NONE_SCE
	.comm	_GL_NONE,4,2                    ## @GL_NONE
	.comm	_PSGL_DEVICE_PARAMETERS_COLOR_FORMAT,4,2 ## @PSGL_DEVICE_PARAMETERS_COLOR_FORMAT
	.comm	_PSGL_DEVICE_PARAMETERS_DEPTH_FORMAT,4,2 ## @PSGL_DEVICE_PARAMETERS_DEPTH_FORMAT
	.comm	_PSGL_DEVICE_PARAMETERS_MULTISAMPLING_MODE,4,2 ## @PSGL_DEVICE_PARAMETERS_MULTISAMPLING_MODE
	.comm	_PSGL_DEVICE_PARAMETERS_RESC_PAL_TEMPORAL_MODE,4,2 ## @PSGL_DEVICE_PARAMETERS_RESC_PAL_TEMPORAL_MODE
	.comm	_PSGL_DEVICE_PARAMETERS_RESC_RATIO_MODE,4,2 ## @PSGL_DEVICE_PARAMETERS_RESC_RATIO_MODE
	.comm	_PSGL_DEVICE_PARAMETERS_WIDTH_HEIGHT,4,2 ## @PSGL_DEVICE_PARAMETERS_WIDTH_HEIGHT
	.comm	_PSGL_INIT_INITIALIZE_SPUS,4,2  ## @PSGL_INIT_INITIALIZE_SPUS
	.comm	_PSGL_INIT_MAX_SPUS,4,2         ## @PSGL_INIT_MAX_SPUS
	.comm	_RESC_PAL_TEMPORAL_MODE_60_INTERPOLATE,4,2 ## @RESC_PAL_TEMPORAL_MODE_60_INTERPOLATE
	.comm	_RESC_RATIO_MODE_FULLSCREEN,4,2 ## @RESC_RATIO_MODE_FULLSCREEN
	.no_dead_strip	_gfx_ctx_ps3_init
.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_init
_gfx_ctx_ps3_init:                      ; @gfx_ctx_ps3_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_global_get_ptr
	mov	x20, x0
	mov	w0, #1
	mov	w1, #1
	bl	_calloc
	mov	x19, x0
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _CELL_VIDEO_OUT_PRIMARY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CELL_VIDEO_OUT_PRIMARY@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _CELL_VIDEO_OUT_RESOLUTION_576@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CELL_VIDEO_OUT_RESOLUTION_576@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _CELL_VIDEO_OUT_ASPECT_AUTO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CELL_VIDEO_OUT_ASPECT_AUTO@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_cellVideoOutGetResolutionAvailability
	str	w0, [x20]
	bl	_gfx_ctx_ps3_get_available_resolutions
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CELL_VIDEO_OUT_PRIMARY,4,2     ; @CELL_VIDEO_OUT_PRIMARY
	.comm	_CELL_VIDEO_OUT_RESOLUTION_576,4,2 ; @CELL_VIDEO_OUT_RESOLUTION_576
	.comm	_CELL_VIDEO_OUT_ASPECT_AUTO,4,2 ; @CELL_VIDEO_OUT_ASPECT_AUTO
	.comm	_GL_ARGB_SCE,4,2                ; @GL_ARGB_SCE
	.comm	_GL_FALSE,4,2                   ; @GL_FALSE
	.comm	_GL_MULTISAMPLING_NONE_SCE,4,2  ; @GL_MULTISAMPLING_NONE_SCE
	.comm	_GL_NONE,4,2                    ; @GL_NONE
	.comm	_PSGL_DEVICE_PARAMETERS_COLOR_FORMAT,4,2 ; @PSGL_DEVICE_PARAMETERS_COLOR_FORMAT
	.comm	_PSGL_DEVICE_PARAMETERS_DEPTH_FORMAT,4,2 ; @PSGL_DEVICE_PARAMETERS_DEPTH_FORMAT
	.comm	_PSGL_DEVICE_PARAMETERS_MULTISAMPLING_MODE,4,2 ; @PSGL_DEVICE_PARAMETERS_MULTISAMPLING_MODE
	.comm	_PSGL_DEVICE_PARAMETERS_RESC_PAL_TEMPORAL_MODE,4,2 ; @PSGL_DEVICE_PARAMETERS_RESC_PAL_TEMPORAL_MODE
	.comm	_PSGL_DEVICE_PARAMETERS_RESC_RATIO_MODE,4,2 ; @PSGL_DEVICE_PARAMETERS_RESC_RATIO_MODE
	.comm	_PSGL_DEVICE_PARAMETERS_WIDTH_HEIGHT,4,2 ; @PSGL_DEVICE_PARAMETERS_WIDTH_HEIGHT
	.comm	_PSGL_INIT_INITIALIZE_SPUS,4,2  ; @PSGL_INIT_INITIALIZE_SPUS
	.comm	_PSGL_INIT_MAX_SPUS,4,2         ; @PSGL_INIT_MAX_SPUS
	.comm	_RESC_PAL_TEMPORAL_MODE_60_INTERPOLATE,4,2 ; @RESC_PAL_TEMPORAL_MODE_60_INTERPOLATE
	.comm	_RESC_RATIO_MODE_FULLSCREEN,4,2 ; @RESC_RATIO_MODE_FULLSCREEN
	.no_dead_strip	_gfx_ctx_ps3_init
.subsections_via_symbols
