	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_cliplist
_set_cliplist:                          ## @set_cliplist
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movl	%esi, %r13d
	testl	%ecx, %ecx
	jle	LBB0_4
## %bb.1:
	movq	%rdx, %r15
	movl	%ecx, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r13d, %edi
	movl	%ebx, %esi
	callq	_saa_writeb
	leal	2(%r13), %edi
	movzbl	8(%r15,%r12,4), %esi
	callq	_saa_writeb
	leal	3(%r13), %edi
	movl	8(%r15,%r12,4), %esi
	sarl	$8, %esi
	callq	_saa_writeb
	movl	8(%r15,%r12,4), %ecx
	leaq	L_.str(%rip), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_video_dbg
	addl	$8, %r13d
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	-56(%rbp), %r14                 ## 8-byte Folded Reload
	je	LBB0_4
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%r14,%r14,2), %r12
	movl	%ebx, %eax
	orl	(%r15,%r12,4), %eax
	movl	4(%r15,%r12,4), %ebx
	notl	%ebx
	andl	%eax, %ebx
	cmpq	$15, %r14
	jae	LBB0_3
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%r15,%r12,4), %eax
	incq	%r14
	cmpl	20(%r15,%r12,4), %eax
	jne	LBB0_8
	jmp	LBB0_9
LBB0_4:
	cmpl	$1023, %r13d                    ## imm = 0x3FF
	jg	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %edi
	xorl	%esi, %esi
	callq	_saa_writeb
	leal	1(%r13), %edi
	xorl	%esi, %esi
	callq	_saa_writeb
	leal	2(%r13), %edi
	xorl	%esi, %esi
	callq	_saa_writeb
	leal	3(%r13), %edi
	xorl	%esi, %esi
	callq	_saa_writeb
	leal	8(%r13), %eax
	cmpl	$1016, %r13d                    ## imm = 0x3F8
	movl	%eax, %r13d
	jl	LBB0_5
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"clip: %s winbits=%02x pos=%d\n"

	.no_dead_strip	_set_cliplist
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_cliplist
_set_cliplist:                          ; @set_cliplist
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	cmp	w3, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x20, x4
	mov	x21, x2
	mov	x26, #0
	mov	w22, #0
	mov	w24, w3
	mov	w25, #12
Lloh0:
	adrp	x23, l_.str@PAGE
Lloh1:
	add	x23, x23, l_.str@PAGEOFF
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x27, x26, #1
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_saa_writeb
	add	w0, w19, #2
	madd	x26, x26, x25, x21
	ldrb	w1, [x26, #8]
	bl	_saa_writeb
	add	w0, w19, #3
	ldr	w8, [x26, #8]
	asr	w1, w8, #8
	bl	_saa_writeb
	ldr	w3, [x26, #8]
	mov	x0, x23
	mov	x1, x20
	mov	x2, x22
	bl	_video_dbg
	add	w19, w19, #8
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x26, x27
	cmp	x27, x24
	b.eq	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	madd	x8, x26, x25, x21
	ldp	w9, w8, [x8]
	orr	w9, w9, w22
	bic	w22, w9, w8
	cmp	x26, #15
	b.hs	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	madd	x8, x26, x25, x21
	ldr	w9, [x8, #8]
	add	x27, x26, #1
	ldr	w8, [x8, #20]
	cmp	w9, w8
	b.ne	LBB0_3
	b	LBB0_4
LBB0_7:
	cmp	w19, #1023
	b.gt	LBB0_9
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #0
	bl	_saa_writeb
	add	w0, w19, #1
	mov	w1, #0
	bl	_saa_writeb
	add	w0, w19, #2
	mov	w1, #0
	bl	_saa_writeb
	add	w0, w19, #3
	mov	w1, #0
	bl	_saa_writeb
	add	w8, w19, #8
	cmp	w19, #1016
	mov	x19, x8
	b.lt	LBB0_8
LBB0_9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"clip: %s winbits=%02x pos=%d\n"

	.no_dead_strip	_set_cliplist
.subsections_via_symbols
