	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gbr24ptopacked24
_gbr24ptopacked24:                      ## @gbr24ptopacked24
	.cfi_startproc
## %bb.0:
	testl	%r8d, %r8d
	jle	LBB0_8
## %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
	movslq	%ecx, %r10
	movl	%r8d, %r11d
	movl	%r9d, %r8d
	movq	(%rdi), %rbx
	movq	8(%rdi), %r13
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	16(%rdi), %r12
	movl	%r8d, %r14d
	andl	$-2, %r14d
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movslq	(%rsi), %rax
	leaq	(%rbx,%rax,4), %rbx
	movslq	4(%rsi), %rax
	leaq	(%r13,%rax,4), %r13
	movslq	8(%rsi), %rax
	leaq	(%r12,%rax,4), %r12
	incq	%r15
	cmpq	%r11, %r15
	je	LBB0_7
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	testl	%r9d, %r9d
	jle	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rax
	imulq	%r10, %rax
	leaq	(%rdx,%rax,4), %rax
	xorl	%ecx, %ecx
	cmpl	$1, %r9d
	je	LBB0_4
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rbx,%rcx,4), %edi
	movl	%edi, (%rax)
	movl	(%r13,%rcx,4), %edi
	movl	%edi, 4(%rax)
	movl	(%r12,%rcx,4), %edi
	movl	%edi, 8(%rax)
	movl	4(%rbx,%rcx,4), %edi
	movl	%edi, 12(%rax)
	movl	4(%r13,%rcx,4), %edi
	movl	%edi, 16(%rax)
	movl	4(%r12,%rcx,4), %edi
	movl	%edi, 20(%rax)
	addq	$24, %rax
	addq	$2, %rcx
	cmpq	%rcx, %r14
	jne	LBB0_9
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	testb	$1, %r8b
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r10, %rdi
	movl	(%rbx,%rcx,4), %r10d
	movl	%r10d, (%rax)
	movq	%rdi, %r10
	movl	(%r13,%rcx,4), %edi
	movl	%edi, 4(%rax)
	movl	(%r12,%rcx,4), %ecx
	movl	%ecx, 8(%rax)
	jmp	LBB0_6
LBB0_7:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, (%rax)
	movq	%r13, 8(%rax)
	movq	%r12, 16(%rax)
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
LBB0_8:
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_gbr24ptopacked24
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gbr24ptopacked24
_gbr24ptopacked24:                      ; @gbr24ptopacked24
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w3 killed $w3 def $x3
	cmp	w4, #1
	b.lt	LBB0_15
; %bb.1:
	stp	x24, x23, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 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
	mov	x8, #0
	sxtw	x9, w3
	mov	w10, w4
	mov	w11, w5
	ldp	x12, x13, [x0]
	ldr	x14, [x0, #16]
	add	x15, x11, w5, uxtw #1
	and	x16, x11, #0xfffffff8
	sbfiz	x17, x3, #2, #32
	mov	x3, x2
	add	x4, x16, x16, lsl #1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldpsw	x6, x7, [x1]
	add	x12, x12, x6, lsl #2
	add	x13, x13, x7, lsl #2
	ldrsw	x6, [x1, #8]
	add	x14, x14, x6, lsl #2
	add	x8, x8, #1
	add	x3, x3, x17
	cmp	x8, x10
	b.eq	LBB0_14
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
                                        ;     Child Loop BB0_13 Depth 2
	cmp	w5, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mul	x19, x8, x9
	add	x6, x2, x19, lsl #2
	cmp	w5, #8
	b.hs	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x7, #0
	b	LBB0_12
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x7, #0
	add	x19, x15, x19
	add	x21, x2, x19, lsl #2
	lsl	x22, x11, #2
	add	x19, x13, x22
	cmp	x6, x19
	ccmp	x13, x21, #2, lo
	cset	w20, lo
	add	x19, x14, x22
	cmp	x6, x19
	ccmp	x14, x21, #2, lo
	cset	w19, lo
	cmp	x12, x21
	add	x21, x12, x22
	ccmp	x6, x21, #2, lo
	b.lo	LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	tbnz	w20, #0, LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	tbnz	w19, #0, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x7, x12, #16
	add	x19, x13, #16
	add	x20, x14, #16
	mov	x22, x3
	mov	x21, x16
	add	x6, x6, x4, lsl #2
LBB0_10:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	q0, q3, [x7, #-16]
	ldp	q1, q4, [x19, #-16]
	ldp	q2, q5, [x20, #-16]
	add	x23, x22, #96
	st3.4s	{ v0, v1, v2 }, [x22], #48
	st3.4s	{ v3, v4, v5 }, [x22]
	add	x7, x7, #32
	add	x19, x19, #32
	add	x20, x20, #32
	mov	x22, x23
	subs	x21, x21, #8
	b.ne	LBB0_10
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x7, x16
	cmp	x16, x11
	b.eq	LBB0_2
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	lsl	x21, x7, #2
	add	x19, x14, x21
	add	x20, x13, x21
	add	x21, x12, x21
	sub	x7, x11, x7
LBB0_13:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w22, [x21], #4
	str	w22, [x6]
	ldr	w22, [x20], #4
	str	w22, [x6, #4]
	ldr	w22, [x19], #4
	str	w22, [x6, #8]
	add	x6, x6, #12
	subs	x7, x7, #1
	b.ne	LBB0_13
	b	LBB0_2
LBB0_14:
	stp	x12, x13, [x0]
	str	x14, [x0, #16]
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #48             ; 16-byte Folded Reload
LBB0_15:
	.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
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_gbr24ptopacked24
.subsections_via_symbols
