	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function curses_display_line
LCPI0_0:
	.long	12                              ## 0xc
	.long	12                              ## 0xc
	.long	12                              ## 0xc
	.long	12                              ## 0xc
LCPI0_1:
	.long	161                             ## 0xa1
	.long	97                              ## 0x61
	.long	33                              ## 0x21
	.long	4294967265                      ## 0xffffffe1
LCPI0_2:
	.long	32                              ## 0x20
	.long	4294967264                      ## 0xffffffe0
	.long	4294967200                      ## 0xffffffa0
	.long	4294967136                      ## 0xffffff60
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_curses_display_line
	.p2align	4, 0x90
_curses_display_line:                   ## @curses_display_line
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $edi killed $edi def $rdi
	movq	_ANTIC_ypos@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	-224(%rax), %ecx
	cmpl	$-192, %ecx
	jae	LBB0_1
LBB0_21:
	popq	%rbp
	retq
LBB0_1:
	shrl	$3, %eax
	addl	$-4, %eax
	movq	_curses_screen@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%rax,8), %r10
	leal	-2(%rdi), %eax
	cmpl	$4, %eax
	jae	LBB0_2
## %bb.6:
	movq	_ANTIC_DMACTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	$3, %edx
	movl	$40, %ecx
	cmpl	$3, %edx
	je	LBB0_10
## %bb.7:
	cmpl	$2, %edx
	je	LBB0_11
## %bb.8:
	cmpl	$1, %edx
	jne	LBB0_21
## %bb.9:
	addq	$16, %r10
	movl	$32, %ecx
	jmp	LBB0_11
LBB0_2:
	addl	$-6, %edi
	cmpl	$2, %edi
	jae	LBB0_21
## %bb.3:
	movq	_ANTIC_DMACTL@GOTPCREL(%rip), %rax
	movl	(%rax), %r11d
	movl	%r11d, %eax
	andl	$3, %eax
	decl	%eax
	cmpl	$2, %eax
	ja	LBB0_21
## %bb.4:
	movl	%eax, %eax
	addq	%rax, %rax
	movl	$12, %edx
	subq	%rax, %rdx
	leaq	(%r10,%rdx,4), %rax
	movq	_GTIA_COLPF0@GOTPCREL(%rip), %rdx
	movq	_GTIA_COLPF1@GOTPCREL(%rip), %rdi
	movq	_GTIA_COLPF2@GOTPCREL(%rip), %r8
	movq	_GTIA_COLPF3@GOTPCREL(%rip), %r9
	movd	(%rdx), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	pinsrd	$1, (%rdi), %xmm0
	pinsrd	$2, (%r8), %xmm0
	pinsrd	$3, (%r9), %xmm0
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = [12,12,12,12]
	pand	%xmm1, %xmm0
	pcmpeqd	%xmm1, %xmm0
	movaps	LCPI0_2(%rip), %xmm1            ## xmm1 = [32,4294967264,4294967200,4294967136]
	blendvps	%xmm0, LCPI0_1(%rip), %xmm1
	movaps	%xmm1, -16(%rbp)
	andl	$3, %r11d
	shlq	$4, %r11
	addq	$48, %r11
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rsi,%rdx), %ecx
	movl	%ecx, %edi
	sarl	$6, %edi
	movslq	%edi, %rdi
	addl	-16(%rbp,%rdi,4), %ecx
	movl	%ecx, (%rax,%rdx)
	movl	4(%rsi,%rdx), %ecx
	movl	%ecx, %edi
	sarl	$6, %edi
	movslq	%edi, %rdi
	addl	-16(%rbp,%rdi,4), %ecx
	movl	%ecx, 4(%rax,%rdx)
	addq	$8, %rdx
	cmpl	%edx, %r11d
	jne	LBB0_5
	jmp	LBB0_21
LBB0_10:
	addq	$16, %rsi
LBB0_11:
	movl	%ecx, %r9d
	xorl	%edx, %edx
	leaq	_curses_display_line.offset(%rip), %r8
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_12 Depth=1
	movl	%ecx, %eax
	sarl	$5, %eax
	cltq
	addl	(%r8,%rax,4), %ecx
	movl	%ecx, %edi
LBB0_20:                                ##   in Loop: Header=BB0_12 Depth=1
	movl	%edi, 4(%r10,%rdx,4)
	addq	$2, %rdx
	cmpl	%edx, %r9d
	je	LBB0_21
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rsi,%rdx,4), %ecx
	movl	$191, %edi
	movl	$191, %eax
	cmpl	$127, %ecx
	je	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	cmpl	$255, %ecx
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	$319, %eax                      ## imm = 0x13F
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_12 Depth=1
	movl	%ecx, %eax
	sarl	$5, %eax
	cltq
	addl	(%r8,%rax,4), %ecx
	movl	%ecx, %eax
LBB0_16:                                ##   in Loop: Header=BB0_12 Depth=1
	movl	%eax, (%r10,%rdx,4)
	movl	4(%rsi,%rdx,4), %ecx
	cmpl	$127, %ecx
	je	LBB0_20
## %bb.17:                              ##   in Loop: Header=BB0_12 Depth=1
	cmpl	$255, %ecx
	jne	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	$319, %edi                      ## imm = 0x13F
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_ANTIC_ypos,4,2                 ## @ANTIC_ypos
	.comm	_curses_screen,8,3              ## @curses_screen
	.comm	_ANTIC_DMACTL,4,2               ## @ANTIC_DMACTL
	.section	__TEXT,__const
	.p2align	4                               ## @curses_display_line.offset
_curses_display_line.offset:
	.long	32                              ## 0x20
	.long	32                              ## 0x20
	.long	129                             ## 0x81
	.long	0                               ## 0x0
	.long	32                              ## 0x20
	.long	32                              ## 0x20
	.long	129                             ## 0x81
	.long	0                               ## 0x0

	.comm	_GTIA_COLPF0,4,2                ## @GTIA_COLPF0
	.comm	_GTIA_COLPF1,4,2                ## @GTIA_COLPF1
	.comm	_GTIA_COLPF2,4,2                ## @GTIA_COLPF2
	.comm	_GTIA_COLPF3,4,2                ## @GTIA_COLPF3
	.comm	_LIGHT_THRESHOLD,4,2            ## @LIGHT_THRESHOLD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function curses_display_line
lCPI0_0:
	.long	32                              ; 0x20
	.long	4294967264                      ; 0xffffffe0
	.long	4294967200                      ; 0xffffffa0
	.long	4294967136                      ; 0xffffff60
lCPI0_1:
	.long	161                             ; 0xa1
	.long	97                              ; 0x61
	.long	33                              ; 0x21
	.long	4294967265                      ; 0xffffffe1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_curses_display_line
	.p2align	2
_curses_display_line:                   ; @curses_display_line
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #16
	.cfi_def_cfa_offset 16
Lloh0:
	adrp	x8, _ANTIC_ypos@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ANTIC_ypos@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sub	w9, w8, #224
	cmn	w9, #192
	b.hs	LBB0_2
LBB0_1:
	add	sp, sp, #16
	ret
LBB0_2:
	lsr	w8, w8, #3
Lloh3:
	adrp	x9, _curses_screen@GOTPAGE
Lloh4:
	ldr	x9, [x9, _curses_screen@GOTPAGEOFF]
	sub	w8, w8, #4
Lloh5:
	ldr	x9, [x9]
	ldr	x8, [x9, w8, uxtw #3]
	sub	w9, w0, #2
	cmp	w9, #4
	b.hs	LBB0_7
; %bb.3:
Lloh6:
	adrp	x9, _ANTIC_DMACTL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ANTIC_DMACTL@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	and	w9, w9, #0x3
	cmp	w9, #3
	b.eq	LBB0_11
; %bb.4:
	cmp	w9, #2
	b.eq	LBB0_12
; %bb.5:
	cmp	w9, #1
	b.ne	LBB0_1
; %bb.6:
	add	x8, x8, #16
	mov	w9, #32
	b	LBB0_13
LBB0_7:
	sub	w9, w0, #6
	cmp	w9, #2
	b.hs	LBB0_1
; %bb.8:
Lloh9:
	adrp	x9, _ANTIC_DMACTL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ANTIC_DMACTL@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	and	w9, w9, #0x3
	sub	w10, w9, #1
	cmp	w10, #2
	b.hi	LBB0_1
; %bb.9:
	mov	w11, #12
	sub	x10, x11, w10, uxtw #1
Lloh12:
	adrp	x11, _GTIA_COLPF0@GOTPAGE
Lloh13:
	ldr	x11, [x11, _GTIA_COLPF0@GOTPAGEOFF]
Lloh14:
	adrp	x12, _GTIA_COLPF1@GOTPAGE
Lloh15:
	ldr	x12, [x12, _GTIA_COLPF1@GOTPAGEOFF]
	add	x8, x8, x10, lsl #2
Lloh16:
	adrp	x10, _GTIA_COLPF2@GOTPAGE
Lloh17:
	ldr	x10, [x10, _GTIA_COLPF2@GOTPAGEOFF]
Lloh18:
	adrp	x13, _GTIA_COLPF3@GOTPAGE
Lloh19:
	ldr	x13, [x13, _GTIA_COLPF3@GOTPAGEOFF]
Lloh20:
	ldr	s0, [x11]
	ld1.s	{ v0 }[1], [x12]
	ld1.s	{ v0 }[2], [x10]
	ld1.s	{ v0 }[3], [x13]
	movi.4s	v1, #12
	and.16b	v0, v0, v1
	cmeq.4s	v0, v0, v1
Lloh21:
	adrp	x10, lCPI0_0@PAGE
Lloh22:
	ldr	q1, [x10, lCPI0_0@PAGEOFF]
Lloh23:
	adrp	x10, lCPI0_1@PAGE
Lloh24:
	ldr	q2, [x10, lCPI0_1@PAGEOFF]
	bsl.16b	v0, v2, v1
	str	q0, [sp]
	mov	w10, #-12
	sub	w9, w10, w9, lsl #2
	mov	x10, sp
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x1], #4
	asr	w12, w11, #6
	ldr	w12, [x10, w12, sxtw #2]
	add	w11, w12, w11
	str	w11, [x8], #4
	adds	w9, w9, #1
	b.lo	LBB0_10
	b	LBB0_1
LBB0_11:
	add	x1, x1, #16
LBB0_12:
	mov	w9, #40
LBB0_13:
Lloh25:
	adrp	x10, _curses_display_line.offset@PAGE
Lloh26:
	add	x10, x10, _curses_display_line.offset@PAGEOFF
	b	LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_16 Depth=1
	mov	w11, #191
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	str	w11, [x8], #4
	subs	w9, w9, #1
	b.eq	LBB0_1
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x1], #4
	cmp	w11, #127
	b.eq	LBB0_14
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	cmp	w11, #255
	b.ne	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	w11, #319
	b	LBB0_15
LBB0_19:                                ;   in Loop: Header=BB0_16 Depth=1
	asr	w12, w11, #5
	ldr	w12, [x10, w12, sxtw #2]
	add	w11, w12, w11
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdr	Lloh23, Lloh24
	.loh AdrpAdrp	Lloh21, Lloh23
	.loh AdrpLdr	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh20
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_ANTIC_ypos,4,2                 ; @ANTIC_ypos
	.comm	_curses_screen,8,3              ; @curses_screen
	.comm	_ANTIC_DMACTL,4,2               ; @ANTIC_DMACTL
	.section	__TEXT,__const
	.p2align	2                               ; @curses_display_line.offset
_curses_display_line.offset:
	.long	32                              ; 0x20
	.long	32                              ; 0x20
	.long	129                             ; 0x81
	.long	0                               ; 0x0
	.long	32                              ; 0x20
	.long	32                              ; 0x20
	.long	129                             ; 0x81
	.long	0                               ; 0x0

	.comm	_GTIA_COLPF0,4,2                ; @GTIA_COLPF0
	.comm	_GTIA_COLPF1,4,2                ; @GTIA_COLPF1
	.comm	_GTIA_COLPF2,4,2                ; @GTIA_COLPF2
	.comm	_GTIA_COLPF3,4,2                ; @GTIA_COLPF3
	.comm	_LIGHT_THRESHOLD,4,2            ; @LIGHT_THRESHOLD
.subsections_via_symbols
