	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cbp_test
_cbp_test:                              ## @cbp_test
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rsi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leal	256(,%rdx,4), %r14d
	xorl	%edx, %edx
	leaq	-80(%rbp), %r8
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_2 Depth 2
	movl	%eax, %ebx
	leal	8(%rbx), %eax
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r13), %eax
	imull	%edx, %eax
	cltq
	shlq	$2, %rax
	addq	(%rdi), %rax
	addq	%r15, %rax
	movq	%rax, -80(%rbp)
	movl	4(%r13), %eax
	imull	%ecx, %eax
	cltq
	shlq	$2, %rax
	addq	8(%rdi), %rax
	addq	%r12, %rax
	movq	%rax, -72(%rbp)
	movl	8(%r13), %eax
	imull	%ecx, %eax
	cltq
	shlq	$2, %rax
	addq	16(%rdi), %rax
	addq	%r12, %rax
	movq	%rax, -64(%rbp)
	movq	%r8, %rdi
	movq	%r13, %rsi
	movl	%ebx, %edx
	movl	%r14d, %ecx
	movl	$1024, %r8d                     ## imm = 0x400
	callq	_draw_cbp
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	leaq	-80(%rbp), %r8
	movq	-112(%rbp), %rdx                ## 8-byte Reload
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	incl	%ebx
	subq	$-128, %r15
	addq	$64, %r12
	cmpl	$512, %r12d                     ## imm = 0x200
	jne	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	leal	16(%rcx), %eax
	addl	$32, %edx
	cmpl	$112, %ecx
	movl	%eax, %ecx
	movl	-84(%rbp), %eax                 ## 4-byte Reload
	jb	LBB0_1
## %bb.4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_cbp_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cbp_test
_cbp_test:                              ; @cbp_test
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x20, x0
	mov	w23, #0
	mov	w24, #0
	mov	w25, #0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	lsl	w8, w2, #2
	add	w21, w8, #256
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_2 Depth 2
	mov	x26, #0
	mov	x27, #0
	mov	x22, x24
	add	w24, w24, #8
LBB0_2:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	w8, w9, [x19]
	mul	w8, w23, w8
	ldp	x10, x11, [x20]
	add	x8, x10, w8, sxtw #2
	mul	w9, w25, w9
	add	x9, x11, w9, sxtw #2
	add	x8, x8, x27
	add	x9, x9, x26
	stp	x8, x9, [sp]
	ldr	x8, [x20, #16]
	ldr	w9, [x19, #8]
	mul	w9, w25, w9
	add	x8, x8, w9, sxtw #2
	add	x8, x8, x26
	str	x8, [sp, #16]
	mov	x0, sp
	mov	x1, x19
	mov	x2, x22
	mov	x3, x21
	mov	w4, #1024
	bl	_draw_cbp
	add	w22, w22, #1
	add	x27, x27, #128
	add	x26, x26, #64
	cmp	w26, #512
	b.ne	LBB0_2
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	add	w8, w25, #16
	add	w23, w23, #32
	cmp	w25, #112
	mov	x25, x8
	b.lo	LBB0_1
; %bb.4:
	ldr	x8, [sp, #24]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_cbp_test
.subsections_via_symbols
