	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_update_scanline_chbase         ## -- Begin function update_scanline_chbase
	.p2align	4, 0x90
_update_scanline_chbase:                ## @update_scanline_chbase
	.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
	movq	_ANTIC_cpu2antic_ptr@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ANTIC_xpos@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %eax
	movq	_IR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	shll	$27, %ecx
	sarl	$31, %ecx
	movq	_ANTIC_HSCROL@GOTPCREL(%rip), %rdx
	andl	(%rdx), %ecx
	movq	_anticmode@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	leal	-2(%rsi), %edx
	cmpl	$3, %edx
	ja	LBB0_2
## %bb.1:
	leal	(%rcx,%rax,2), %edx
	andl	$2, %edx
	jmp	LBB0_4
LBB0_2:
	andl	$-2, %esi
	xorl	%edx, %edx
	cmpl	$6, %esi
	jne	LBB0_5
## %bb.3:
	movl	%ecx, %edx
	subl	%eax, %edx
	subl	%eax, %edx
	addl	$4, %edx
	andl	$6, %edx
LBB0_4:
	orl	$9, %edx
LBB0_5:
	andl	$1, %ecx
	leal	(%rcx,%rax,2), %eax
	leal	(%rdx,%rax), %ebx
	addl	$-37, %ebx
	movq	_ANTIC_cur_screen_pos@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movl	%ebx, %esi
	callq	_draw_partial_scanline
	movl	%ebx, (%r14)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ANTIC_cpu2antic_ptr,8,3        ## @ANTIC_cpu2antic_ptr
	.comm	_ANTIC_xpos,8,3                 ## @ANTIC_xpos
	.comm	_IR,4,2                         ## @IR
	.comm	_ANTIC_HSCROL,4,2               ## @ANTIC_HSCROL
	.comm	_anticmode,4,2                  ## @anticmode
	.comm	_ANTIC_cur_screen_pos,4,2       ## @ANTIC_cur_screen_pos
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_update_scanline_chbase         ; -- Begin function update_scanline_chbase
	.p2align	2
_update_scanline_chbase:                ; @update_scanline_chbase
	.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
Lloh0:
	adrp	x8, _ANTIC_cpu2antic_ptr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ANTIC_cpu2antic_ptr@GOTPAGEOFF]
Lloh2:
	adrp	x9, _ANTIC_xpos@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ANTIC_xpos@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
Lloh6:
	adrp	x9, _IR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IR@GOTPAGEOFF]
Lloh8:
	adrp	x10, _ANTIC_HSCROL@GOTPAGE
Lloh9:
	ldr	x10, [x10, _ANTIC_HSCROL@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	ldrb	w9, [x9]
	lsl	w9, w9, #27
	and	w9, w10, w9, asr #31
Lloh11:
	adrp	x10, _anticmode@GOTPAGE
Lloh12:
	ldr	x10, [x10, _anticmode@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	sub	w11, w10, #2
	and	w10, w10, #0xfffffffe
	sub	w12, w9, w8, lsl #1
	add	w12, w12, #4
	and	w12, w12, #0x6
	mov	w13, #9
	orr	w12, w12, w13
	cmp	w10, #6
	csel	w10, wzr, w12, ne
	add	w12, w9, w8, lsl #1
	and	w12, w12, #0x2
	orr	w12, w12, w13
	cmp	w11, #3
	csel	w10, w10, w12, hi
	bfi	w9, w8, #1, #31
	add	w8, w9, w10
	sub	w19, w8, #37
Lloh14:
	adrp	x20, _ANTIC_cur_screen_pos@GOTPAGE
Lloh15:
	ldr	x20, [x20, _ANTIC_cur_screen_pos@GOTPAGEOFF]
	ldr	w0, [x20]
	mov	x1, x19
	bl	_draw_partial_scanline
	str	w19, [x20]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ANTIC_cpu2antic_ptr,8,3        ; @ANTIC_cpu2antic_ptr
	.comm	_ANTIC_xpos,8,3                 ; @ANTIC_xpos
	.comm	_IR,4,2                         ; @IR
	.comm	_ANTIC_HSCROL,4,2               ; @ANTIC_HSCROL
	.comm	_anticmode,4,2                  ; @anticmode
	.comm	_ANTIC_cur_screen_pos,4,2       ; @ANTIC_cur_screen_pos
.subsections_via_symbols
