	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AM_addMark                     ## -- Begin function AM_addMark
	.p2align	4, 0x90
_AM_addMark:                            ## @AM_addMark
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_m_x@GOTPCREL(%rip), %rax
	movq	_m_w@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	sarl	%edx
	movslq	%edx, %rdx
	addq	(%rax), %rdx
	movq	_markpoints@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_markpointnum@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	shlq	$4, %rsi
	movq	%rdx, 8(%rax,%rsi)
	movq	_m_y@GOTPCREL(%rip), %rdx
	movq	_m_h@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, %edi
	shrl	$31, %edi
	addl	%esi, %edi
	sarl	%edi
	movslq	%edi, %rsi
	addq	(%rdx), %rsi
	movq	(%rcx), %rdx
	shlq	$4, %rdx
	movq	%rsi, (%rax,%rdx)
	movq	(%rcx), %rax
	incq	%rax
	movq	_AM_NUMMARKPOINTS@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	movq	%rax, %rdx
	orq	%rsi, %rdx
	shrq	$32, %rdx
	je	LBB0_1
## %bb.2:
	xorl	%edx, %edx
	divq	%rsi
	jmp	LBB0_3
LBB0_1:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $edx killed $edx def $rdx
LBB0_3:
	movq	%rdx, (%rcx)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_m_x,8,3                        ## @m_x
	.comm	_m_w,4,2                        ## @m_w
	.comm	_markpoints,8,3                 ## @markpoints
	.comm	_markpointnum,8,3               ## @markpointnum
	.comm	_m_y,8,3                        ## @m_y
	.comm	_m_h,4,2                        ## @m_h
	.comm	_AM_NUMMARKPOINTS,8,3           ## @AM_NUMMARKPOINTS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AM_addMark                     ; -- Begin function AM_addMark
	.p2align	2
_AM_addMark:                            ; @AM_addMark
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _m_x@GOTPAGE
Lloh1:
	ldr	x8, [x8, _m_x@GOTPAGEOFF]
Lloh2:
	adrp	x9, _m_w@GOTPAGE
Lloh3:
	ldr	x9, [x9, _m_w@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	ldr	w9, [x9]
	cmp	w9, #0
	cinc	w9, w9, lt
	asr	w9, w9, #1
	add	x8, x8, w9, sxtw
Lloh6:
	adrp	x9, _markpoints@GOTPAGE
Lloh7:
	ldr	x9, [x9, _markpoints@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
Lloh9:
	adrp	x10, _markpointnum@GOTPAGE
Lloh10:
	ldr	x10, [x10, _markpointnum@GOTPAGEOFF]
	ldr	x11, [x10]
	add	x11, x9, x11, lsl #4
	str	x8, [x11, #8]
Lloh11:
	adrp	x8, _m_y@GOTPAGE
Lloh12:
	ldr	x8, [x8, _m_y@GOTPAGEOFF]
Lloh13:
	adrp	x11, _m_h@GOTPAGE
Lloh14:
	ldr	x11, [x11, _m_h@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
Lloh16:
	ldr	w11, [x11]
	cmp	w11, #0
	cinc	w11, w11, lt
	asr	w11, w11, #1
	add	x8, x8, w11, sxtw
	ldr	x11, [x10]
	lsl	x11, x11, #4
	str	x8, [x9, x11]
	ldr	x8, [x10]
	add	x8, x8, #1
Lloh17:
	adrp	x9, _AM_NUMMARKPOINTS@GOTPAGE
Lloh18:
	ldr	x9, [x9, _AM_NUMMARKPOINTS@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	udiv	x11, x8, x9
	msub	x8, x11, x9, x8
	str	x8, [x10]
	ret
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh15
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_m_x,8,3                        ; @m_x
	.comm	_m_w,4,2                        ; @m_w
	.comm	_markpoints,8,3                 ; @markpoints
	.comm	_markpointnum,8,3               ; @markpointnum
	.comm	_m_y,8,3                        ; @m_y
	.comm	_m_h,4,2                        ; @m_h
	.comm	_AM_NUMMARKPOINTS,8,3           ; @AM_NUMMARKPOINTS
.subsections_via_symbols
