	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdl_video_init
_sdl_video_init:                        ## @sdl_video_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_SDL_INIT_VIDEO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SDL_InitSubSystem
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movq	_VIDEO_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_VIDEO_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SDL_SWSURFACE@GOTPCREL(%rip), %r14
	movq	_fullscreen@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	orl	(%r14), %ecx
	movl	$16, %edx
	callq	_SDL_SetVideoMode
	movq	_sdl_video@GOTPCREL(%rip), %rbx
	movl	%eax, 12(%rbx)
	movl	(%r14), %edi
	movl	$720, %esi                      ## imm = 0x2D0
	movl	$576, %edx                      ## imm = 0x240
	movl	$16, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	$0
	pushq	$0
	callq	_SDL_CreateRGBSurface
	addq	$16, %rsp
	movl	%eax, 8(%rbx)
	movq	$0, (%rbx)
	xorl	%edi, %edi
	callq	_SDL_ShowCursor
	movl	$1, %ebx
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %rdx
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	xorl	%ecx, %ecx
	callq	_MessageBox
LBB0_3:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SDL_INIT_VIDEO,4,2             ## @SDL_INIT_VIDEO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SDL Video initialization failed"

L_.str.1:                               ## @.str.1
	.asciz	"Error"

	.comm	_VIDEO_WIDTH,4,2                ## @VIDEO_WIDTH
	.comm	_VIDEO_HEIGHT,4,2               ## @VIDEO_HEIGHT
	.comm	_SDL_SWSURFACE,4,2              ## @SDL_SWSURFACE
	.comm	_fullscreen,4,2                 ## @fullscreen
	.comm	_sdl_video,16,3                 ## @sdl_video
	.no_dead_strip	_sdl_video_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdl_video_init
_sdl_video_init:                        ; @sdl_video_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
Lloh0:
	adrp	x8, _SDL_INIT_VIDEO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SDL_INIT_VIDEO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_SDL_InitSubSystem
	tbnz	x0, #63, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _VIDEO_WIDTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VIDEO_WIDTH@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _VIDEO_HEIGHT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VIDEO_HEIGHT@GOTPAGEOFF]
Lloh8:
	adrp	x19, _SDL_SWSURFACE@GOTPAGE
Lloh9:
	ldr	x19, [x19, _SDL_SWSURFACE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	w8, [x19]
Lloh11:
	adrp	x9, _fullscreen@GOTPAGE
Lloh12:
	ldr	x9, [x9, _fullscreen@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	w2, #16
	bl	_SDL_SetVideoMode
Lloh14:
	adrp	x20, _sdl_video@GOTPAGE
Lloh15:
	ldr	x20, [x20, _sdl_video@GOTPAGEOFF]
	str	w0, [x20, #12]
	ldr	w0, [x19]
	mov	w1, #720
	mov	w2, #576
	mov	w3, #16
	mov	w4, #0
	mov	w5, #0
	mov	w6, #0
	mov	w7, #0
	bl	_SDL_CreateRGBSurface
	str	w0, [x20, #8]
	str	xzr, [x20]
	mov	w0, #0
	bl	_SDL_ShowCursor
	mov	w0, #1
	b	LBB0_3
LBB0_2:
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
Lloh18:
	adrp	x2, l_.str.1@PAGE
Lloh19:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, #0
	mov	w3, #0
	bl	_MessageBox
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_SDL_INIT_VIDEO,4,2             ; @SDL_INIT_VIDEO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SDL Video initialization failed"

l_.str.1:                               ; @.str.1
	.asciz	"Error"

	.comm	_VIDEO_WIDTH,4,2                ; @VIDEO_WIDTH
	.comm	_VIDEO_HEIGHT,4,2               ; @VIDEO_HEIGHT
	.comm	_SDL_SWSURFACE,4,2              ; @SDL_SWSURFACE
	.comm	_fullscreen,4,2                 ; @fullscreen
	.comm	_sdl_video,16,3                 ; @sdl_video
	.no_dead_strip	_sdl_video_init
.subsections_via_symbols
