	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gbr24ptopacked32
_gbr24ptopacked32:                      ## @gbr24ptopacked32
	.cfi_startproc
## %bb.0:
	testl	%r8d, %r8d
	jle	LBB0_20
## %bb.1:
	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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	16(%rbp), %r15d
	movslq	%ecx, %r11
	movl	%r8d, %r14d
	movl	%r15d, %r12d
	movq	(%rdi), %r8
	movq	8(%rdi), %rbx
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	16(%rdi), %rcx
	leaq	-1(%r12), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
                                        ## kill: def $r12d killed $r12d killed $r12 def $r12
	andl	$-2, %r12d
	xorl	%r13d, %r13d
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	movslq	(%rsi), %rax
	leaq	(%r8,%rax,4), %r8
	movslq	4(%rsi), %rax
	leaq	(%rbx,%rax,4), %rbx
	movslq	8(%rsi), %rax
	leaq	(%rcx,%rax,4), %rcx
	incq	%r13
	cmpq	%r14, %r13
	je	LBB0_19
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
                                        ##     Child Loop BB0_15 Depth 2
	movq	%r13, %rdi
	imulq	%r11, %rdi
	leaq	(%rdx,%rdi,4), %r10
	testl	%r9d, %r9d
	je	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%r15d, %r15d
	jle	LBB0_18
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_5
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r11, %r14
	movl	%r15d, %r11d
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	$255, (%r10)
	movl	(%r8,%rdi,4), %r15d
	movl	%r15d, 4(%r10)
	movl	(%rbx,%rdi,4), %eax
	movl	%eax, 8(%r10)
	movl	(%rcx,%rdi,4), %eax
	movl	%eax, 12(%r10)
	movl	$255, 16(%r10)
	movl	4(%r8,%rdi,4), %eax
	movl	%eax, 20(%r10)
	movl	4(%rbx,%rdi,4), %eax
	movl	%eax, 24(%r10)
	movl	4(%rcx,%rdi,4), %eax
	movl	%eax, 28(%r10)
	addq	$32, %r10
	addq	$2, %rdi
	cmpq	%rdi, %r12
	jne	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%r11d, %r15d
	movq	%r14, %r11
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	testb	$1, -56(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_18
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	testl	%r15d, %r15d
	jle	LBB0_18
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_10
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r8,%rdi,4), %eax
	movl	%eax, (%r10)
	movl	(%rbx,%rdi,4), %eax
	movl	%eax, 4(%r10)
	movl	(%rcx,%rdi,4), %eax
	movl	%eax, 8(%r10)
	movl	$255, 12(%r10)
	movl	4(%r8,%rdi,4), %eax
	movl	%eax, 16(%r10)
	movl	4(%rbx,%rdi,4), %eax
	movl	%eax, 20(%r10)
	movl	4(%rcx,%rdi,4), %eax
	movl	%eax, 24(%r10)
	movl	$255, 28(%r10)
	addq	$32, %r10
	addq	$2, %rdi
	cmpq	%rdi, %r12
	jne	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	testb	$1, -56(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_18
	jmp	LBB0_17
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edi, %edi
	testb	$1, -56(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_18
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$255, (%r10)
	movl	(%r8,%rdi,4), %eax
	movl	%eax, 4(%r10)
	movl	(%rbx,%rdi,4), %eax
	movl	%eax, 8(%r10)
	movl	(%rcx,%rdi,4), %eax
	movl	%eax, 12(%r10)
	jmp	LBB0_18
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edi, %edi
	testb	$1, -56(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_18
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r8,%rdi,4), %eax
	movl	%eax, (%r10)
	movl	(%rbx,%rdi,4), %eax
	movl	%eax, 4(%r10)
	movl	(%rcx,%rdi,4), %eax
	movl	%eax, 8(%r10)
	movl	$255, 12(%r10)
	jmp	LBB0_18
LBB0_19:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%r8, (%rax)
	movq	%rbx, 8(%rax)
	movq	%rcx, 16(%rax)
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
LBB0_20:
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_gbr24ptopacked32
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gbr24ptopacked32
_gbr24ptopacked32:                      ; @gbr24ptopacked32
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w3 killed $w3 def $x3
	cmp	w4, #1
	b.lt	LBB0_27
; %bb.1:
	stp	x26, x25, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	.cfi_offset w19, -8
	.cfi_offset w20, -16
	.cfi_offset w21, -24
	.cfi_offset w22, -32
	.cfi_offset w23, -40
	.cfi_offset w24, -48
	.cfi_offset w25, -56
	.cfi_offset w26, -64
	mov	x8, #0
	sxtw	x9, w3
	mov	w10, w6
	ldp	x11, x12, [x0]
	ldr	x13, [x0, #16]
	lsl	x14, x10, #2
	and	x15, x10, #0xfffffff8
	lsl	x16, x15, #2
	add	x17, x2, #64
	sbfiz	x3, x3, #2, #32
	lsl	x7, x10, #4
	and	x7, x7, #0xfffffff80
	mov	w19, #255
	movi.2d	v0, #0x0000ff000000ff
	mov	w4, w4
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldpsw	x20, x21, [x1]
	add	x11, x11, x20, lsl #2
	add	x12, x12, x21, lsl #2
	ldrsw	x20, [x1, #8]
	add	x13, x13, x20, lsl #2
	add	x8, x8, #1
	add	x17, x17, x3
	cmp	x8, x4
	b.eq	LBB0_26
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
                                        ;     Child Loop BB0_17 Depth 2
                                        ;     Child Loop BB0_22 Depth 2
                                        ;     Child Loop BB0_25 Depth 2
	mul	x21, x8, x9
	add	x20, x2, x21, lsl #2
	add	x21, x14, x21
	add	x22, x2, x21, lsl #2
	cmp	w6, #1
	cbz	w5, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	b.lt	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w6, #8
	b.hs	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x21, #0
	b	LBB0_16
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	b.lt	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w6, #8
	b.hs	LBB0_18
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x21, #0
	b	LBB0_24
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x21, #0
	add	x25, x11, x14
	add	x23, x12, x14
	cmp	x20, x23
	ccmp	x12, x22, #2, lo
	cset	w24, lo
	add	x23, x13, x14
	cmp	x20, x23
	ccmp	x13, x22, #2, lo
	cset	w23, lo
	cmp	x11, x22
	ccmp	x20, x25, #2, lo
	b.lo	LBB0_16
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	tbnz	w24, #0, LBB0_16
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	tbnz	w23, #0, LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x11, #16
	add	x22, x12, #16
	add	x23, x13, #16
	mov	x24, x17
	mov	x25, x15
	add	x20, x20, x16, lsl #2
LBB0_14:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	q5, q1, [x21, #-16]
	ldp	q6, q2, [x22, #-16]
	ldp	q7, q3, [x23, #-16]
	sub	x26, x24, #64
	mov.16b	v4, v0
	st4.4s	{ v4, v5, v6, v7 }, [x26]
	st4.4s	{ v0, v1, v2, v3 }, [x24]
	add	x21, x21, #32
	add	x24, x24, #128
	add	x22, x22, #32
	add	x23, x23, #32
	subs	x25, x25, #8
	b.ne	LBB0_14
; %bb.15:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x21, x15
	cmp	x15, x10
	b.eq	LBB0_2
LBB0_16:                                ;   in Loop: Header=BB0_3 Depth=1
	lsl	x24, x21, #2
	add	x22, x13, x24
	add	x23, x12, x24
	add	x24, x11, x24
	sub	x21, x10, x21
LBB0_17:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	str	w19, [x20]
	ldr	w25, [x24], #4
	str	w25, [x20, #4]
	ldr	w25, [x23], #4
	str	w25, [x20, #8]
	ldr	w25, [x22], #4
	str	w25, [x20, #12]
	add	x20, x20, #16
	subs	x21, x21, #1
	b.ne	LBB0_17
	b	LBB0_2
LBB0_18:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x21, #0
	add	x25, x11, x14
	add	x23, x12, x14
	cmp	x20, x23
	ccmp	x12, x22, #2, lo
	cset	w24, lo
	add	x23, x13, x14
	cmp	x20, x23
	ccmp	x13, x22, #2, lo
	cset	w23, lo
	cmp	x11, x22
	ccmp	x20, x25, #2, lo
	b.lo	LBB0_24
; %bb.19:                               ;   in Loop: Header=BB0_3 Depth=1
	tbnz	w24, #0, LBB0_24
; %bb.20:                               ;   in Loop: Header=BB0_3 Depth=1
	tbnz	w23, #0, LBB0_24
; %bb.21:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x21, #0
	add	x22, x11, #16
	add	x23, x12, #16
	add	x24, x13, #16
	add	x20, x20, x16, lsl #2
LBB0_22:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	q4, q16, [x22, #-16]
	ldp	q5, q17, [x23, #-16]
	ldp	q6, q18, [x24, #-16]
	mov.16b	v7, v0
	mov.16b	v19, v0
	add	x25, x17, x21
	sub	x26, x25, #64
	st4.4s	{ v4, v5, v6, v7 }, [x26]
	st4.4s	{ v16, v17, v18, v19 }, [x25]
	add	x21, x21, #128
	add	x22, x22, #32
	add	x23, x23, #32
	add	x24, x24, #32
	cmp	x7, x21
	b.ne	LBB0_22
; %bb.23:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x21, x15
	cmp	x15, x10
	b.eq	LBB0_2
LBB0_24:                                ;   in Loop: Header=BB0_3 Depth=1
	lsl	x24, x21, #2
	add	x22, x13, x24
	add	x23, x12, x24
	add	x24, x11, x24
	sub	x21, x10, x21
LBB0_25:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w25, [x24], #4
	str	w25, [x20]
	ldr	w25, [x23], #4
	str	w25, [x20, #4]
	ldr	w25, [x22], #4
	stp	w25, w19, [x20, #8]
	add	x20, x20, #16
	subs	x21, x21, #1
	b.ne	LBB0_25
	b	LBB0_2
LBB0_26:
	stp	x11, x12, [x0]
	str	x13, [x0, #16]
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #64             ; 16-byte Folded Reload
LBB0_27:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	.cfi_same_value w23
	.cfi_same_value w24
	.cfi_same_value w25
	.cfi_same_value w26
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_gbr24ptopacked32
.subsections_via_symbols
