	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function video_open
_video_open:                            ## @video_open
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_screen_width@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	testl	%r15d, %r15d
	jne	LBB0_2
## %bb.1:
	movq	_default_width@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_2:
	movq	_screen_height@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	jne	LBB0_4
## %bb.3:
	movq	_default_height@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_4:
	movq	_window_title@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	testq	%rsi, %rsi
	jne	LBB0_6
## %bb.5:
	movq	_input_filename@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movq	%rsi, (%rax)
LBB0_6:
	movq	_window@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_SDL_SetWindowTitle
	movl	(%r12), %edi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_SDL_SetWindowSize
	movl	(%r12), %edi
	movq	_screen_left@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_screen_top@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_SDL_SetWindowPosition
	movq	_is_full_screen@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.7:
	movl	(%r12), %edi
	movq	_SDL_WINDOW_FULLSCREEN_DESKTOP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SDL_SetWindowFullscreen
LBB0_8:
	movl	(%r12), %edi
	callq	_SDL_ShowWindow
	movl	%r15d, (%r14)
	movl	%ebx, 4(%r14)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_screen_width,4,2               ## @screen_width
	.comm	_default_width,4,2              ## @default_width
	.comm	_screen_height,4,2              ## @screen_height
	.comm	_default_height,4,2             ## @default_height
	.comm	_window_title,8,3               ## @window_title
	.comm	_input_filename,8,3             ## @input_filename
	.comm	_window,4,2                     ## @window
	.comm	_screen_left,4,2                ## @screen_left
	.comm	_screen_top,4,2                 ## @screen_top
	.comm	_is_full_screen,8,3             ## @is_full_screen
	.comm	_SDL_WINDOW_FULLSCREEN_DESKTOP,4,2 ## @SDL_WINDOW_FULLSCREEN_DESKTOP
	.no_dead_strip	_video_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function video_open
_video_open:                            ; @video_open
	.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, x0
Lloh0:
	adrp	x8, _screen_width@GOTPAGE
Lloh1:
	ldr	x8, [x8, _screen_width@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _default_width@GOTPAGE
Lloh4:
	ldr	x9, [x9, _default_width@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, #0
	csel	w20, w9, w8, eq
Lloh6:
	adrp	x8, _screen_height@GOTPAGE
Lloh7:
	ldr	x8, [x8, _screen_height@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _default_height@GOTPAGE
Lloh10:
	ldr	x9, [x9, _default_height@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w8, #0
	csel	w21, w9, w8, eq
Lloh12:
	adrp	x8, _window_title@GOTPAGE
Lloh13:
	ldr	x8, [x8, _window_title@GOTPAGEOFF]
	ldr	x1, [x8]
	cbnz	x1, LBB0_2
; %bb.1:
Lloh14:
	adrp	x9, _input_filename@GOTPAGE
Lloh15:
	ldr	x9, [x9, _input_filename@GOTPAGEOFF]
Lloh16:
	ldr	x1, [x9]
	str	x1, [x8]
LBB0_2:
Lloh17:
	adrp	x22, _window@GOTPAGE
Lloh18:
	ldr	x22, [x22, _window@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_SDL_SetWindowTitle
	ldr	w0, [x22]
	mov	x1, x20
	mov	x2, x21
	bl	_SDL_SetWindowSize
	ldr	w0, [x22]
Lloh19:
	adrp	x8, _screen_left@GOTPAGE
Lloh20:
	ldr	x8, [x8, _screen_left@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x8, _screen_top@GOTPAGE
Lloh23:
	ldr	x8, [x8, _screen_top@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	bl	_SDL_SetWindowPosition
Lloh25:
	adrp	x8, _is_full_screen@GOTPAGE
Lloh26:
	ldr	x8, [x8, _is_full_screen@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w0, [x22]
Lloh28:
	adrp	x8, _SDL_WINDOW_FULLSCREEN_DESKTOP@GOTPAGE
Lloh29:
	ldr	x8, [x8, _SDL_WINDOW_FULLSCREEN_DESKTOP@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	bl	_SDL_SetWindowFullscreen
LBB0_4:
	ldr	w0, [x22]
	bl	_SDL_ShowWindow
	stp	w20, w21, [x19]
	mov	w0, #0
	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 AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_screen_width,4,2               ; @screen_width
	.comm	_default_width,4,2              ; @default_width
	.comm	_screen_height,4,2              ; @screen_height
	.comm	_default_height,4,2             ; @default_height
	.comm	_window_title,8,3               ; @window_title
	.comm	_input_filename,8,3             ; @input_filename
	.comm	_window,4,2                     ; @window
	.comm	_screen_left,4,2                ; @screen_left
	.comm	_screen_top,4,2                 ; @screen_top
	.comm	_is_full_screen,8,3             ; @is_full_screen
	.comm	_SDL_WINDOW_FULLSCREEN_DESKTOP,4,2 ; @SDL_WINDOW_FULLSCREEN_DESKTOP
	.no_dead_strip	_video_open
.subsections_via_symbols
