	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function make_clip_tab
_make_clip_tab:                         ## @make_clip_tab
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rdi, %r14
	movq	24(%rdi), %r15
	movl	(%rdi), %eax
	movl	4(%rdi), %ecx
	cmpl	$1023, %eax                     ## imm = 0x3FF
	movl	$1023, %edx                     ## imm = 0x3FF
	cmovll	%eax, %edx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	cmpl	$641, %ecx                      ## imm = 0x281
	movl	$639, %eax                      ## imm = 0x27F
	cmovll	%ecx, %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	testl	%r12d, %r12d
	jle	LBB0_3
## %bb.1:
	movq	%rsi, %rbx
	movq	_VIDEO_CLIPMAP_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r13d, %r13d
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_memset
	movl	%r12d, %r12d
	shlq	$4, %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx,%r13), %esi
	movl	4(%rbx,%r13), %edx
	movl	8(%rbx,%r13), %ecx
	movl	12(%rbx,%r13), %r8d
	movq	%r15, %rdi
	callq	_clip_draw_rectangle
	addq	$16, %r13
	cmpq	%r13, %r12
	jne	LBB0_2
LBB0_3:
	movl	8(%r14), %eax
	movl	12(%r14), %ecx
	movl	%ecx, %esi
	subl	%eax, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	addl	%edx, %eax
	cmpl	%ecx, %eax
	cmovlel	%edx, %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	movl	$1024, %ecx                     ## imm = 0x400
	movl	$768, %r8d                      ## imm = 0x300
	callq	_clip_draw_rectangle
	movl	16(%r14), %eax
	movl	20(%r14), %ecx
	movl	%ecx, %edx
	subl	%eax, %edx
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	addl	%esi, %eax
	cmpl	%ecx, %eax
	cmovlel	%esi, %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$1024, %ecx                     ## imm = 0x400
	movl	$768, %r8d                      ## imm = 0x300
	callq	_clip_draw_rectangle
	movl	8(%r14), %ecx
	testl	%ecx, %ecx
	jns	LBB0_5
## %bb.4:
	negl	%ecx
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	$768, %r8d                      ## imm = 0x300
	callq	_clip_draw_rectangle
LBB0_5:
	movl	16(%r14), %r8d
	testl	%r8d, %r8d
	js	LBB0_7
## %bb.6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	negl	%r8d
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	$1024, %ecx                     ## imm = 0x400
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_clip_draw_rectangle            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VIDEO_CLIPMAP_SIZE,4,2         ## @VIDEO_CLIPMAP_SIZE
	.no_dead_strip	_make_clip_tab
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function make_clip_tab
_make_clip_tab:                         ; @make_clip_tab
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x0
	ldr	x19, [x0, #24]
	mov	w8, #1023
	ldp	w9, w10, [x0]
	cmp	w9, #1023
	csel	w24, w9, w8, lt
	mov	w8, #639
	cmp	w10, #640
	csel	w23, w8, w10, gt
	cmp	w2, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x22, x2
	mov	x21, x1
Lloh0:
	adrp	x8, _VIDEO_CLIPMAP_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VIDEO_CLIPMAP_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_memset
	mov	w22, w22
	add	x21, x21, #8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w1, w2, [x21, #-8]
	ldp	w3, w4, [x21], #16
	mov	x0, x19
	bl	_clip_draw_rectangle
	subs	x22, x22, #1
	b.ne	LBB0_2
LBB0_3:
	ldp	w8, w9, [x20, #8]
	sub	w10, w9, w8
	add	w8, w8, w24
	cmp	w8, w9
	csel	w1, w10, w24, gt
	mov	x0, x19
	mov	w2, #0
	mov	w3, #1024
	mov	w4, #768
	bl	_clip_draw_rectangle
	ldp	w8, w9, [x20, #16]
	sub	w10, w9, w8
	add	w8, w8, w23
	cmp	w8, w9
	csel	w2, w10, w23, gt
	mov	x0, x19
	mov	w1, #0
	mov	w3, #1024
	mov	w4, #768
	bl	_clip_draw_rectangle
	ldr	w8, [x20, #8]
	tbnz	w8, #31, LBB0_6
; %bb.4:
	ldr	w8, [x20, #16]
	tbnz	w8, #31, LBB0_7
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_6:
	neg	w3, w8
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	mov	w4, #768
	bl	_clip_draw_rectangle
	ldr	w8, [x20, #16]
	tbz	w8, #31, LBB0_5
LBB0_7:
	neg	w4, w8
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	mov	w3, #1024
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_clip_draw_rectangle
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VIDEO_CLIPMAP_SIZE,4,2         ; @VIDEO_CLIPMAP_SIZE
	.no_dead_strip	_make_clip_tab
.subsections_via_symbols
