	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VIDGCDVdp2SetResolution        ## -- Begin function VIDGCDVdp2SetResolution
	.p2align	4, 0x90
_VIDGCDVdp2SetResolution:               ## @VIDGCDVdp2SetResolution
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%edi, %eax
	andl	$7, %eax
	leaq	l_switch.table.VIDGCDVdp2SetResolution(%rip), %rcx
	movl	(%rcx,%rax,4), %ecx
	leaq	l_switch.table.VIDGCDVdp2SetResolution.1(%rip), %rdx
	movl	(%rdx,%rax,4), %eax
	movq	_vdp2width@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
	movq	_resxratio@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	%edi, %eax
	shrl	$4, %eax
	andl	$3, %eax
	cmpl	$3, %eax
	je	LBB0_2
## %bb.1:
	shll	$4, %eax
	addl	$224, %eax
	movq	_vdp2height@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_2:
	notl	%edi
	andl	$192, %edi
	xorl	%eax, %eax
	cmpl	$1, %edi
	adcl	$1, %eax
	movq	_resyratio@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_vdp2width,4,2                  ## @vdp2width
	.comm	_resxratio,4,2                  ## @resxratio
	.comm	_vdp2height,4,2                 ## @vdp2height
	.comm	_resyratio,4,2                  ## @resyratio
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.VIDGCDVdp2SetResolution
l_switch.table.VIDGCDVdp2SetResolution:
	.long	320                             ## 0x140
	.long	352                             ## 0x160
	.long	320                             ## 0x140
	.long	352                             ## 0x160
	.long	320                             ## 0x140
	.long	352                             ## 0x160
	.long	320                             ## 0x140
	.long	352                             ## 0x160

	.p2align	2                               ## @switch.table.VIDGCDVdp2SetResolution.1
l_switch.table.VIDGCDVdp2SetResolution.1:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	2                               ## 0x2

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VIDGCDVdp2SetResolution        ; -- Begin function VIDGCDVdp2SetResolution
	.p2align	2
_VIDGCDVdp2SetResolution:               ; @VIDGCDVdp2SetResolution
	.cfi_startproc
; %bb.0:
	and	w8, w0, #0x7
	lsl	x8, x8, #2
Lloh0:
	adrp	x9, l_switch.table.VIDGCDVdp2SetResolution@PAGE
Lloh1:
	add	x9, x9, l_switch.table.VIDGCDVdp2SetResolution@PAGEOFF
	ldr	w9, [x9, x8]
Lloh2:
	adrp	x10, l_switch.table.VIDGCDVdp2SetResolution.1@PAGE
Lloh3:
	add	x10, x10, l_switch.table.VIDGCDVdp2SetResolution.1@PAGEOFF
	ldr	w8, [x10, x8]
Lloh4:
	adrp	x10, _vdp2width@GOTPAGE
Lloh5:
	ldr	x10, [x10, _vdp2width@GOTPAGEOFF]
Lloh6:
	str	w9, [x10]
Lloh7:
	adrp	x9, _resxratio@GOTPAGE
Lloh8:
	ldr	x9, [x9, _resxratio@GOTPAGEOFF]
Lloh9:
	str	w8, [x9]
	ubfx	w8, w0, #4, #2
	cmp	w8, #3
	b.eq	LBB0_2
; %bb.1:
	lsl	w8, w8, #4
	add	w8, w8, #224
Lloh10:
	adrp	x9, _vdp2height@GOTPAGE
Lloh11:
	ldr	x9, [x9, _vdp2height@GOTPAGEOFF]
Lloh12:
	str	w8, [x9]
LBB0_2:
	mov	w8, #192
	bics	wzr, w8, w0
	mov	w8, #1
	cinc	w8, w8, eq
Lloh13:
	adrp	x9, _resyratio@GOTPAGE
Lloh14:
	ldr	x9, [x9, _resyratio@GOTPAGEOFF]
Lloh15:
	str	w8, [x9]
	ret
	.loh AdrpLdrGotStr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_vdp2width,4,2                  ; @vdp2width
	.comm	_resxratio,4,2                  ; @resxratio
	.comm	_vdp2height,4,2                 ; @vdp2height
	.comm	_resyratio,4,2                  ; @resyratio
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.VIDGCDVdp2SetResolution
l_switch.table.VIDGCDVdp2SetResolution:
	.long	320                             ; 0x140
	.long	352                             ; 0x160
	.long	320                             ; 0x140
	.long	352                             ; 0x160
	.long	320                             ; 0x140
	.long	352                             ; 0x160
	.long	320                             ; 0x140
	.long	352                             ; 0x160

	.p2align	2                               ; @switch.table.VIDGCDVdp2SetResolution.1
l_switch.table.VIDGCDVdp2SetResolution.1:
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	2                               ; 0x2

.subsections_via_symbols
