	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function Vdp2DrawPage
_Vdp2DrawPage:                          ## @Vdp2DrawPage
	.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	4(%rdi), %eax
	testl	%eax, %eax
	jle	LBB0_13
## %bb.1:
	movq	%rdi, %rbx
	movl	(%rdi), %r14d
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	%r15d
	cmpl	%eax, %r15d
	jge	LBB0_13
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movl	8(%rbx), %r12d
	movl	%r14d, (%rbx)
	testl	%eax, %eax
	jle	LBB0_12
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %r13d
	movl	%r14d, %ecx
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r12d, 8(%rbx)
	movl	12(%rbx), %edx
	movl	%edx, %esi
	negl	%esi
	cmpl	%esi, %ecx
	jl	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	cmpl	%esi, %r12d
	jl	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	cmpl	16(%rbx), %ecx
	jg	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=2
	cmpl	20(%rbx), %r12d
	jle	LBB0_8
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=2
	movl	28(%rbx), %esi
	addl	%esi, %esi
	addl	%esi, 24(%rbx)
	addl	%edx, %ecx
	movl	%ecx, (%rbx)
	addl	%r12d, %edx
	movl	%edx, 8(%rbx)
	cmpl	%eax, %r13d
	jge	LBB0_12
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=2
	movl	(%rbx), %ecx
	incl	%r13d
	jmp	LBB0_4
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=2
	movq	%rbx, %rdi
	callq	_Vdp2PatternAddr
	movq	%rbx, %rdi
	callq	_Vdp2DrawPattern
	movl	4(%rbx), %eax
	cmpl	%eax, %r13d
	jl	LBB0_11
	jmp	LBB0_12
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_Vdp2DrawPage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function Vdp2DrawPage
_Vdp2DrawPage:                          ; @Vdp2DrawPage
	.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
	ldr	w8, [x0, #4]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.1:
	mov	x19, x0
	mov	w20, #0
	ldr	w21, [x0]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w20, w20, #1
	cmp	w20, w8
	b.ge	LBB0_11
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldr	w22, [x19, #8]
	str	w21, [x19]
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w23, #1
	mov	x9, x21
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	str	w22, [x19, #8]
	ldr	w10, [x19, #12]
	neg	w11, w10
	cmp	w9, w11
	ccmp	w22, w11, #8, ge
	b.lt	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	w11, [x19, #16]
	cmp	w9, w11
	b.gt	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	w11, [x19, #20]
	cmp	w22, w11
	b.le	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=2
	ldp	w12, w11, [x19, #24]
	add	w11, w12, w11, lsl #1
	str	w11, [x19, #24]
	add	w9, w10, w9
	str	w9, [x19]
	add	w9, w10, w22
	str	w9, [x19, #8]
	cmp	w23, w8
	b.ge	LBB0_2
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=2
	ldr	w9, [x19]
	add	w23, w23, #1
	b	LBB0_5
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=2
	mov	x0, x19
	bl	_Vdp2PatternAddr
	mov	x0, x19
	bl	_Vdp2DrawPattern
	ldr	w8, [x19, #4]
	cmp	w23, w8
	b.lt	LBB0_9
	b	LBB0_2
LBB0_11:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_Vdp2DrawPage
.subsections_via_symbols
