	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function video_display
_video_display:                         ## @video_display
	.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	%rdi, %rbx
	cmpl	$0, 24(%rdi)
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_video_open
LBB0_2:
	movq	_renderer@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	$255, %r8d
	callq	_SDL_SetRenderDrawColor
	movl	(%r14), %edi
	callq	_SDL_RenderClear
	cmpq	$0, 16(%rbx)
	je	LBB0_5
## %bb.3:
	movq	(%rbx), %rax
	movq	_SHOW_MODE_VIDEO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
LBB0_5:
	cmpq	$0, 8(%rbx)
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	callq	_video_image_display
	jmp	LBB0_7
LBB0_4:
	movq	%rbx, %rdi
	callq	_video_audio_display
LBB0_7:
	movl	(%r14), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_SDL_RenderPresent              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_renderer,4,2                   ## @renderer
	.comm	_SHOW_MODE_VIDEO,8,3            ## @SHOW_MODE_VIDEO
	.no_dead_strip	_video_display
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function video_display
_video_display:                         ; @video_display
	.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
	mov	x19, x0
	ldr	w8, [x0, #24]
	cbnz	w8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_video_open
LBB0_2:
Lloh0:
	adrp	x20, _renderer@GOTPAGE
Lloh1:
	ldr	x20, [x20, _renderer@GOTPAGEOFF]
	ldr	w0, [x20]
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	mov	w4, #255
	bl	_SDL_SetRenderDrawColor
	ldr	w0, [x20]
	bl	_SDL_RenderClear
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _SHOW_MODE_VIDEO@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SHOW_MODE_VIDEO@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
LBB0_4:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_7
; %bb.5:
	mov	x0, x19
	bl	_video_image_display
	b	LBB0_7
LBB0_6:
	mov	x0, x19
	bl	_video_audio_display
LBB0_7:
	ldr	w0, [x20]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_SDL_RenderPresent
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_renderer,4,2                   ; @renderer
	.comm	_SHOW_MODE_VIDEO,8,3            ; @SHOW_MODE_VIDEO
	.no_dead_strip	_video_display
.subsections_via_symbols
