	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_scanline
_get_scanline:                          ## @get_scanline
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testl	%edi, %edi
	je	LBB0_4
## %bb.1:
	xorl	%eax, %eax
	callq	_z80_cyclesDone
	movl	%eax, %ecx
	movq	_z80_scanline_cycles@GOTPCREL(%rip), %r8
	movl	(%r8), %edi
	movq	_z80_scanline@GOTPCREL(%rip), %rsi
	movl	(%rsi), %eax
	subl	%edi, %ecx
	cmpl	$228, %ecx
	jl	LBB0_3
## %bb.2:
	addl	$-228, %ecx
	shrl	$2, %ecx
	imulq	$150700607, %rcx, %rcx          ## imm = 0x8FB823F
	shrq	$33, %rcx
	imull	$228, %ecx, %edx
	addl	%ecx, %eax
	incl	%eax
	leal	(%rdi,%rdx), %ecx
	addl	$228, %ecx
	movl	%eax, (%rsi)
	movl	%ecx, (%r8)
LBB0_3:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_4:
	movq	_Pico@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_z80_scanline_cycles,4,2        ## @z80_scanline_cycles
	.comm	_z80_scanline,4,2               ## @z80_scanline
	.comm	_Pico,4,2                       ## @Pico
	.no_dead_strip	_get_scanline
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_scanline
_get_scanline:                          ; @get_scanline
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	cbz	w0, LBB0_4
; %bb.1:
	bl	_z80_cyclesDone
	mov	x8, x0
Lloh0:
	adrp	x9, _z80_scanline_cycles@GOTPAGE
Lloh1:
	ldr	x9, [x9, _z80_scanline_cycles@GOTPAGEOFF]
	ldr	w11, [x9]
Lloh2:
	adrp	x10, _z80_scanline@GOTPAGE
Lloh3:
	ldr	x10, [x10, _z80_scanline@GOTPAGEOFF]
	ldr	w0, [x10]
	sub	w8, w8, w11
	subs	w8, w8, #228
	b.lt	LBB0_3
; %bb.2:
	lsr	w8, w8, #2
	mov	w12, #33343
	movk	w12, #2299, lsl #16
	umull	x8, w8, w12
	lsr	x8, x8, #33
	add	w12, w0, w8
	mov	w13, #228
	madd	w8, w8, w13, w11
	add	w0, w12, #1
	add	w8, w8, #228
	str	w0, [x10]
	str	w8, [x9]
LBB0_3:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh4:
	adrp	x8, _Pico@GOTPAGE
Lloh5:
	ldr	x8, [x8, _Pico@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_z80_scanline_cycles,4,2        ; @z80_scanline_cycles
	.comm	_z80_scanline,4,2               ; @z80_scanline
	.comm	_Pico,4,2                       ; @Pico
	.no_dead_strip	_get_scanline
.subsections_via_symbols
