	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __adjustPosition
___adjustPosition:                      ## @__adjustPosition
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	.cfi_offset %rbx, -24
	movq	_HorVer@GOTPCREL(%rip), %r8
	movl	24(%r8), %esi
	movl	%esi, %r9d
	andl	$1, %r9d
	movq	_displayOffsetV@GOTPCREL(%rip), %rax
	addl	(%rax), %esi
	movl	32(%r8), %edx
	leal	(%rsi,%rdx), %eax
	addl	%edi, %edi
	subl	%r9d, %edi
	movl	%edi, %r11d
	subl	%eax, %r11d
	negl	%r11d
	xorl	%r10d, %r10d
	subl	%eax, %edi
	movq	_displayOffsetH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmovgel	%r10d, %edi
	cmovgel	%r10d, %r11d
	addl	(%r8), %eax
	movl	$720, %ecx                      ## imm = 0x2D0
	subl	4(%r8), %ecx
	testl	%eax, %eax
	movl	$0, %ebx
	cmovgl	%eax, %ebx
	cmpl	%ecx, %eax
	cmovgl	%ecx, %ebx
	movl	%ebx, 8(%r8)
	movq	16(%r8), %rax
	movq	_VI_XFBMODE_SF@GOTPCREL(%rip), %rbx
	xorl	%ecx, %ecx
	cmpq	(%rbx), %rax
	sete	%cl
	incl	%ecx
	movl	%esi, %eax
	subl	%r9d, %eax
	cmovlel	%r9d, %esi
	movl	%esi, 28(%r8)
	cmovgel	%r10d, %eax
	addl	%eax, %edx
	addl	%edi, %edx
	movl	%edx, 36(%r8)
	movq	56(%r8), %rsi
	cltd
	idivl	%ecx
	movslq	%eax, %rdi
	subq	%rdi, %rsi
	movq	%rsi, 64(%r8)
	addq	40(%r8), %rdi
	movl	%r11d, %eax
	cltd
	idivl	%ecx
	cltq
	subq	%rax, %rdi
	movq	%rdi, 48(%r8)
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HorVer,72,3                    ## @HorVer
	.comm	_displayOffsetH,4,2             ## @displayOffsetH
	.comm	_VI_XFBMODE_SF,8,3              ## @VI_XFBMODE_SF
	.comm	_displayOffsetV,4,2             ## @displayOffsetV
	.no_dead_strip	___adjustPosition
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __adjustPosition
___adjustPosition:                      ; @__adjustPosition
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _HorVer@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HorVer@GOTPAGEOFF]
Lloh2:
	adrp	x9, _displayOffsetH@GOTPAGE
Lloh3:
	ldr	x9, [x9, _displayOffsetH@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	ldp	w10, w11, [x8]
	add	w9, w9, w10
	mov	w10, #720
	cmp	w9, #0
	csel	w12, w9, wzr, gt
	sub	w10, w10, w11
	cmp	w9, w10
	csel	w9, w10, w12, gt
	str	w9, [x8, #8]
Lloh5:
	adrp	x9, _VI_XFBMODE_SF@GOTPAGE
Lloh6:
	ldr	x9, [x9, _VI_XFBMODE_SF@GOTPAGEOFF]
	ldr	x10, [x8, #16]
Lloh7:
	ldr	x9, [x9]
	cmp	x10, x9
	mov	w9, #1
	cinc	w9, w9, eq
	ldr	w10, [x8, #24]
	and	w11, w10, #0x1
Lloh8:
	adrp	x12, _displayOffsetV@GOTPAGE
Lloh9:
	ldr	x12, [x12, _displayOffsetV@GOTPAGEOFF]
Lloh10:
	ldr	w12, [x12]
	lsl	w13, w0, #1
	sub	w13, w13, w11
	add	w10, w12, w10
	subs	w12, w10, w11
	csel	w11, w10, w11, gt
	str	w11, [x8, #28]
	ldr	w11, [x8, #32]
	csel	w12, w12, wzr, lt
	ldr	x14, [x8, #56]
	sdiv	w15, w12, w9
	sxtw	x15, w15
	sub	x14, x14, x15
	add	w10, w10, w11
	sub	w16, w10, w13
	subs	w10, w13, w10
	csel	w10, w10, wzr, lt
	add	w11, w12, w11
	add	w10, w11, w10
	str	w10, [x8, #36]
	str	x14, [x8, #64]
	csel	w10, w16, wzr, lt
	ldr	x11, [x8, #40]
	add	x11, x11, x15
	sdiv	w9, w10, w9
	sub	x9, x11, w9, sxtw
	str	x9, [x8, #48]
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_HorVer,72,3                    ; @HorVer
	.comm	_displayOffsetH,4,2             ; @displayOffsetH
	.comm	_VI_XFBMODE_SF,8,3              ; @VI_XFBMODE_SF
	.comm	_displayOffsetV,4,2             ; @displayOffsetV
	.no_dead_strip	___adjustPosition
.subsections_via_symbols
