	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VideoChangeCore                ## -- Begin function VideoChangeCore
	.p2align	4, 0x90
_VideoChangeCore:                       ## @VideoChangeCore
	.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
	movl	%edi, %ebx
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_VideoDeInit
	movq	_VIDCORE_DEFAULT@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	cmovel	%r14d, %ebx
	movq	_VIDCoreList@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.1:
	addq	$8, %rax
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%ebx, (%rcx)
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rax), %rcx
	addq	$8, %rax
	testq	%rcx, %rcx
	jne	LBB0_3
LBB0_8:
	movq	_VIDCore@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	jne	LBB0_5
## %bb.9:
	movl	$-1, %ebx
	jmp	LBB0_10
LBB0_4:
	movq	_VIDCore@GOTPCREL(%rip), %rax
	movq	%rcx, (%rax)
LBB0_5:
	xorl	%eax, %eax
	callq	*8(%rcx)
	movl	$-1, %ebx
	testq	%rax, %rax
	jne	LBB0_10
## %bb.6:
	movq	_Vdp2Regs@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movl	$0, %ebx
	je	LBB0_10
## %bb.7:
	movq	_VIDCore@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	*16(%rcx)
LBB0_10:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VIDCORE_DEFAULT,4,2            ## @VIDCORE_DEFAULT
	.comm	_VIDCoreList,8,3                ## @VIDCoreList
	.comm	_VIDCore,8,3                    ## @VIDCore
	.comm	_Vdp2Regs,8,3                   ## @Vdp2Regs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VideoChangeCore                ; -- Begin function VideoChangeCore
	.p2align	2
_VideoChangeCore:                       ; @VideoChangeCore
	.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
	bl	_VideoDeInit
Lloh0:
	adrp	x8, _VIDCORE_DEFAULT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VIDCORE_DEFAULT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w19
	csel	w9, wzr, w19, eq
Lloh3:
	adrp	x8, _VIDCoreList@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VIDCoreList@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x8]
	ldr	x8, [x10]
	cbz	x8, LBB0_4
; %bb.1:
	add	x10, x10, #8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x8]
	cmp	w11, w9
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x10], #8
	cbnz	x8, LBB0_2
LBB0_4:
Lloh6:
	adrp	x8, _VIDCore@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VIDCore@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cbnz	x8, LBB0_6
	b	LBB0_7
LBB0_5:
Lloh9:
	adrp	x9, _VIDCore@GOTPAGE
Lloh10:
	ldr	x9, [x9, _VIDCore@GOTPAGEOFF]
Lloh11:
	str	x8, [x9]
LBB0_6:
	ldr	x8, [x8, #8]
	blr	x8
	cbz	x0, LBB0_8
LBB0_7:
	mov	w0, #-1
	b	LBB0_11
LBB0_8:
Lloh12:
	adrp	x8, _Vdp2Regs@GOTPAGE
Lloh13:
	ldr	x8, [x8, _Vdp2Regs@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cbz	x8, LBB0_10
; %bb.9:
Lloh15:
	adrp	x8, _VIDCore@GOTPAGE
Lloh16:
	ldr	x8, [x8, _VIDCore@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	ldr	x8, [x8, #16]
	blr	x8
LBB0_10:
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_VIDCORE_DEFAULT,4,2            ; @VIDCORE_DEFAULT
	.comm	_VIDCoreList,8,3                ; @VIDCoreList
	.comm	_VIDCore,8,3                    ; @VIDCore
	.comm	_Vdp2Regs,8,3                   ; @Vdp2Regs
.subsections_via_symbols
