	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GX_AdjustForOverscan           ## -- Begin function GX_AdjustForOverscan
	.p2align	4, 0x90
_GX_AdjustForOverscan:                  ## @GX_AdjustForOverscan
	.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
	movl	%ecx, %r14d
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %rbx
	cmpq	%rsi, %rdi
	je	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	$56, %edx
	callq	_memcpy
LBB0_2:
	movq	48(%rbx), %r9
	leal	(%r15,%r15), %r8d
	leal	(%r14,%r14), %esi
	movl	(%rbx), %ecx
	movl	4(%rbx), %edi
	movl	%ecx, %eax
	imull	%esi, %eax
	cltd
	idivl	%edi
	subl	%eax, %ecx
	movl	%ecx, (%r12)
	movq	8(%rbx), %rax
	movq	_VI_XFBMODE_SF@GOTPCREL(%rip), %r10
	movq	_VI_PROGRESSIVE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	16(%rbx), %edx
	leal	(,%r14,4), %ecx
	testl	%edx, %edx
	movl	%esi, %edx
	cmovel	%r14d, %edx
	cmovel	%esi, %ecx
	cmpq	(%r10), %rax
	cmovnel	%esi, %edx
	subl	%edx, %edi
	movd	%ecx, %xmm0
	pinsrd	$1, %r8d, %xmm0
	movl	%edi, 4(%r12)
	pmovsxdq	%xmm0, %xmm0
	pextrq	$1, %xmm0, %rax
	subq	%rax, %r9
	movq	%r9, 48(%r12)
	movdqu	32(%rbx), %xmm1
	psubq	%xmm0, %xmm1
	movdqu	%xmm1, 32(%r12)
	addl	%r15d, 20(%r12)
	addl	%r14d, 24(%r12)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VI_XFBMODE_SF,8,3              ## @VI_XFBMODE_SF
	.comm	_VI_PROGRESSIVE,4,2             ## @VI_PROGRESSIVE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GX_AdjustForOverscan           ; -- Begin function GX_AdjustForOverscan
	.p2align	2
_GX_AdjustForOverscan:                  ; @GX_AdjustForOverscan
	.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, x3
	mov	x21, x2
	mov	x20, x1
	mov	x22, x0
	cmp	x0, x1
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x20
	mov	x1, x22
	mov	w2, #56
	bl	_memcpy
LBB0_2:
	lsl	w8, w19, #1
	ldp	w9, w10, [x22]
	mul	w11, w9, w8
	sdiv	w11, w11, w10
	sub	w9, w9, w11
	str	w9, [x20]
Lloh0:
	adrp	x9, _VI_PROGRESSIVE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VI_PROGRESSIVE@GOTPAGEOFF]
	ldr	w11, [x22, #16]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w11
	lsl	w9, w19, #2
	csel	w9, w8, w9, eq
	ldr	x11, [x22, #48]
	lsl	w12, w21, #1
	sxtw	x12, w12
	ldr	x13, [x22, #8]
Lloh3:
	adrp	x14, _VI_XFBMODE_SF@GOTPAGE
Lloh4:
	ldr	x14, [x14, _VI_XFBMODE_SF@GOTPAGEOFF]
Lloh5:
	ldr	x14, [x14]
	ccmp	x13, x14, #0, eq
	csel	w8, w19, w8, eq
	sub	x11, x11, x12
	str	x11, [x20, #48]
	sub	w8, w10, w8
	str	w8, [x20, #4]
	ldp	x10, x8, [x22, #32]
	sub	x8, x8, x12
	sub	x9, x10, w9, sxtw
	stp	x9, x8, [x20, #32]
	ldp	w8, w9, [x20, #20]
	add	w8, w8, w21
	add	w9, w9, w19
	stp	w8, w9, [x20, #20]
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VI_XFBMODE_SF,8,3              ; @VI_XFBMODE_SF
	.comm	_VI_PROGRESSIVE,4,2             ; @VI_PROGRESSIVE
.subsections_via_symbols
