	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function restore_tqb_pixels
_restore_tqb_pixels:                    ## @restore_tqb_pixels
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -64(%rbp)                 ## 4-byte Spill
	movl	%r8d, -60(%rbp)                 ## 4-byte Spill
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r10
	movq	%rdi, -112(%rbp)                ## 8-byte Spill
	movq	8(%rdi), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_1
LBB0_3:
	movb	(%r10), %cl
	movl	$1, %r14d
	shll	%cl, %r14d
	movl	16(%rbp), %r8d
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	movl	%edi, %edx
	sarl	%cl, %edx
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movq	8(%r10), %rsi
	movl	%r8d, %edx
	sarl	%cl, %edx
	movslq	40(%rbp), %r9
	movl	(%rsi,%r9,4), %esi
	movl	24(%rbp), %eax
	addl	%edi, %eax
	sarl	%cl, %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movl	32(%rbp), %eax
	addl	%r8d, %eax
	sarl	%cl, %eax
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	movl	%esi, -84(%rbp)                 ## 4-byte Spill
	movl	%esi, %ecx
	sarl	%cl, %r14d
	movb	24(%r10), %cl
	shll	%cl, %r14d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	cmpl	%eax, %edx
	jge	LBB0_13
## %bb.4:
	movq	16(%r10), %rax
	movl	(%rax,%r9,4), %ecx
	movl	%ecx, -80(%rbp)                 ## 4-byte Spill
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, -48(%rbp)                  ## 4-byte Folded Spill
	movslq	-56(%rbp), %r13                 ## 4-byte Folded Reload
	movslq	-60(%rbp), %rdi                 ## 4-byte Folded Reload
	shlq	$2, %rdi
	shlq	$2, %r13
	movq	%rdi, -120(%rbp)                ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	incl	%eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmpl	-76(%rbp), %eax                 ## 4-byte Folded Reload
	je	LBB0_13
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
                                        ##       Child Loop BB0_10 Depth 3
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, -52(%rbp)                 ## 4-byte Folded Reload
	jge	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=2
	movl	-72(%rbp), %esi                 ## 4-byte Reload
	incl	%esi
	cmpl	-68(%rbp), %esi                 ## 4-byte Folded Reload
	je	LBB0_12
LBB0_7:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_10 Depth 3
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rdx
	movq	16(%rax), %rax
	movl	28(%rdx), %ecx
	imull	-44(%rbp), %ecx                 ## 4-byte Folded Reload
	movl	%esi, -72(%rbp)                 ## 4-byte Spill
	addl	%esi, %ecx
	movslq	%ecx, %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=2
	movb	(%rdx), %al
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%eax, %ecx
	shll	%cl, %esi
	subl	16(%rbp), %esi
	movl	-80(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %esi
	movb	24(%rdx), %r10b
	movl	%esi, %edx
	movl	-72(%rbp), %ebx                 ## 4-byte Reload
	movl	%eax, %ecx
	shll	%cl, %ebx
	subl	-64(%rbp), %ebx                 ## 4-byte Folded Reload
	movl	-84(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %ebx
	imull	-60(%rbp), %edx                 ## 4-byte Folded Reload
	movl	%r10d, %ecx
	shll	%cl, %ebx
	movslq	%edx, %rax
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rax
	movslq	%ebx, %rcx
	leaq	(%rax,%rcx,4), %rbx
	imull	-56(%rbp), %esi                 ## 4-byte Folded Reload
	movslq	%esi, %rax
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rax,4), %rax
	leaq	(%rax,%rcx,4), %r15
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_5 Depth=1
                                        ##     Parent Loop BB0_7 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_memcpy
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	addq	%rdi, %rbx
	addq	%r13, %r15
	decl	%r12d
	jne	LBB0_10
	jmp	LBB0_11
LBB0_1:
	cmpq	$0, 40(%r10)
	je	LBB0_13
## %bb.2:
	cmpq	$0, 32(%r10)
	jne	LBB0_3
LBB0_13:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_restore_tqb_pixels
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function restore_tqb_pixels
_restore_tqb_pixels:                    ; @restore_tqb_pixels
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	stp	w5, w6, [sp, #68]               ; 8-byte Folded Spill
	stp	x3, x4, [sp, #48]               ; 16-byte Folded Spill
	stp	x1, x2, [sp, #32]               ; 16-byte Folded Spill
	mov	x25, x0
	ldp	x8, x9, [x0]
	ldr	x9, [x9]
	cbz	x9, LBB0_10
LBB0_1:
	ldr	w10, [x29, #16]
	ldr	w9, [x8]
	ldr	w11, [sp, #72]                  ; 4-byte Folded Reload
	asr	w20, w11, w9
	add	w10, w10, w11
	asr	w10, w10, w9
	str	w10, [sp, #12]                  ; 4-byte Folded Spill
	cmp	w20, w10
	b.ge	LBB0_12
; %bb.2:
	ldr	w10, [x29, #20]
	mov	w11, #1
	sbfiz	x10, x10, #2, #32
	ldp	x12, x13, [x8, #8]
	ldr	w12, [x12, x10]
	lsl	w11, w11, w9
	ldr	w13, [x13, x10]
	ldr	w10, [sp, #68]                  ; 4-byte Folded Reload
	asr	w14, w10, w9
	stp	w14, w13, [sp, #16]             ; 8-byte Folded Spill
	add	w10, w7, w10
	asr	w9, w10, w9
	str	w9, [sp, #76]                   ; 4-byte Folded Spill
	str	x12, [sp, #24]                  ; 8-byte Folded Spill
	asr	w9, w11, w12
	ldr	w8, [x8, #24]
	lsl	w26, w9, w8
	asr	w22, w11, w13
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	sbfiz	x24, x8, #2, #32
	ldr	x8, [sp, #48]                   ; 8-byte Folded Reload
	sbfiz	x19, x8, #2, #32
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w20, w20, #1
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cmp	w20, w8
	b.eq	LBB0_12
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;       Child Loop BB0_9 Depth 3
	ldr	w8, [sp, #16]                   ; 4-byte Folded Reload
	ldr	w9, [sp, #76]                   ; 4-byte Folded Reload
	cmp	w8, w9
	b.ge	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w21, [sp, #16]                  ; 4-byte Folded Reload
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	w21, w21, #1
	ldr	w8, [sp, #76]                   ; 4-byte Folded Reload
	cmp	w21, w8
	b.eq	LBB0_3
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_9 Depth 3
	ldr	x9, [x25, #16]
	ldr	x8, [x25]
	ldr	w10, [x8, #28]
	madd	w10, w10, w20, w21
	ldr	x9, [x9, w10, sxtw #3]
	cmp	x9, #0
	ccmp	w22, #1, #8, ne
	b.lt	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	w9, [x8]
	lsl	w10, w20, w9
	ldr	w11, [sp, #72]                  ; 4-byte Folded Reload
	sub	w10, w10, w11
	ldr	w11, [sp, #20]                  ; 4-byte Folded Reload
	asr	w10, w10, w11
	ldr	x11, [sp, #56]                  ; 8-byte Folded Reload
	mul	w11, w10, w11
	ldr	x12, [sp, #40]                  ; 8-byte Folded Reload
	add	x11, x12, w11, sxtw #2
	lsl	w9, w21, w9
	ldr	w12, [sp, #68]                  ; 4-byte Folded Reload
	sub	w9, w9, w12
	ldr	x12, [sp, #24]                  ; 8-byte Folded Reload
	asr	w9, w9, w12
	ldr	w8, [x8, #24]
	lsl	w8, w9, w8
	sbfiz	x8, x8, #2, #32
	add	x27, x11, x8
	ldr	x9, [sp, #48]                   ; 8-byte Folded Reload
	mul	w9, w10, w9
	ldr	x10, [sp, #32]                  ; 8-byte Folded Reload
	add	x9, x10, w9, sxtw #2
	add	x28, x9, x8
	mov	x23, x22
LBB0_9:                                 ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_7 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	mov	x0, x28
	mov	x1, x27
	mov	x2, x26
	bl	_memcpy
	add	x27, x27, x24
	add	x28, x28, x19
	subs	w23, w23, #1
	b.ne	LBB0_9
	b	LBB0_6
LBB0_10:
	ldr	x9, [x8, #40]
	cbz	x9, LBB0_12
; %bb.11:
	ldr	x9, [x8, #32]
	cbnz	x9, LBB0_1
LBB0_12:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_restore_tqb_pixels
.subsections_via_symbols
