	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdl_ctx_get_video_size
_sdl_ctx_get_video_size:                ## @sdl_ctx_get_video_size
	.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
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_config_get_ptr
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.1:
	movl	(%rbx), %eax
	movl	%eax, (%r15)
	movl	4(%rbx), %eax
	movl	%eax, (%r14)
	cmpl	$0, 8(%rbx)
	jne	LBB0_7
## %bb.2:
	movq	_SDL_FULLSCREEN@GOTPCREL(%rip), %rax
	movq	_SDL_HWSURFACE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_SDL_ListModes
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	(%rax), %rcx
	movl	$0, %eax
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.5:
	movl	(%rcx), %ebx
	movl	4(%rcx), %eax
	jmp	LBB0_6
LBB0_3:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_SDL_GetError
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_RARCH_WARN
	xorl	%eax, %eax
LBB0_6:
	movl	%ebx, (%r15)
	movl	%eax, (%r14)
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SDL_FULLSCREEN,4,2             ## @SDL_FULLSCREEN
	.comm	_SDL_HWSURFACE,4,2              ## @SDL_HWSURFACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[SDL_GL]: Failed to detect available video modes: %s\n"

	.no_dead_strip	_sdl_ctx_get_video_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdl_ctx_get_video_size
_sdl_ctx_get_video_size:                ; @sdl_ctx_get_video_size
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_config_get_ptr
	cbz	x21, LBB0_8
; %bb.1:
	ldr	w8, [x21]
	str	w8, [x20]
	ldr	w8, [x21, #4]
	str	w8, [x19]
	ldr	w8, [x21, #8]
	cbnz	w8, LBB0_8
; %bb.2:
Lloh0:
	adrp	x8, _SDL_FULLSCREEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SDL_FULLSCREEN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _SDL_HWSURFACE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SDL_HWSURFACE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, #0
	bl	_SDL_ListModes
	cbz	x0, LBB0_5
; %bb.3:
	ldr	x9, [x0]
	cbz	x9, LBB0_6
; %bb.4:
	ldp	w8, w9, [x9]
	b	LBB0_7
LBB0_5:
	bl	_SDL_GetError
	mov	x1, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_RARCH_WARN
	mov	w8, #0
	mov	w9, #0
	b	LBB0_7
LBB0_6:
	mov	w8, #0
LBB0_7:
	str	w8, [x20]
	str	w9, [x19]
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SDL_FULLSCREEN,4,2             ; @SDL_FULLSCREEN
	.comm	_SDL_HWSURFACE,4,2              ; @SDL_HWSURFACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[SDL_GL]: Failed to detect available video modes: %s\n"

	.no_dead_strip	_sdl_ctx_get_video_size
.subsections_via_symbols
