	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function code_matrix_coeffs
_code_matrix_coeffs:                    ## @code_matrix_coeffs
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	8(%rdi), %r8
	movl	(%rdi), %edx
	movl	%esi, %r9d
	testq	%rdx, %rdx
	je	LBB0_26
## %bb.1:
	movq	(%r8), %rax
	movq	(%rax,%r9,8), %rsi
	cmpl	$8, %edx
	jae	LBB0_4
## %bb.2:
	xorl	%edi, %edi
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_4:
	movl	%edx, %edi
	andl	$-8, %edi
	leaq	-8(%rdi), %rcx
	movq	%rcx, %rax
	shrq	$3, %rax
	incq	%rax
	movl	%eax, %r10d
	andl	$3, %r10d
	cmpq	$24, %rcx
	jae	LBB0_6
## %bb.5:
	pxor	%xmm0, %xmm0
	xorl	%ecx, %ecx
	pxor	%xmm1, %xmm1
	jmp	LBB0_8
LBB0_6:
	andq	$-4, %rax
	pxor	%xmm0, %xmm0
	xorl	%ecx, %ecx
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rsi,%rcx,4), %xmm2
	por	%xmm0, %xmm2
	movdqu	16(%rsi,%rcx,4), %xmm0
	por	%xmm1, %xmm0
	movdqu	32(%rsi,%rcx,4), %xmm1
	movdqu	48(%rsi,%rcx,4), %xmm3
	movdqu	64(%rsi,%rcx,4), %xmm4
	por	%xmm1, %xmm4
	por	%xmm2, %xmm4
	movdqu	80(%rsi,%rcx,4), %xmm2
	por	%xmm3, %xmm2
	por	%xmm0, %xmm2
	movdqu	96(%rsi,%rcx,4), %xmm0
	por	%xmm4, %xmm0
	movdqu	112(%rsi,%rcx,4), %xmm1
	por	%xmm2, %xmm1
	addq	$32, %rcx
	addq	$-4, %rax
	jne	LBB0_7
LBB0_8:
	testq	%r10, %r10
	je	LBB0_11
## %bb.9:
	leaq	(%rsi,%rcx,4), %rax
	addq	$16, %rax
	shlq	$5, %r10
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movdqu	-16(%rax,%rcx), %xmm2
	por	%xmm2, %xmm0
	movdqu	(%rax,%rcx), %xmm2
	por	%xmm2, %xmm1
	addq	$32, %rcx
	cmpq	%rcx, %r10
	jne	LBB0_10
LBB0_11:
	por	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	por	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	por	%xmm1, %xmm0
	movd	%xmm0, %eax
	cmpq	%rdx, %rdi
	je	LBB0_12
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	orl	(%rsi,%rdi,4), %eax
	incq	%rdi
	cmpq	%rdi, %rdx
	jne	LBB0_3
LBB0_12:
	movl	$14, %edx
	testb	$1, %al
	jne	LBB0_27
## %bb.13:
	movl	$13, %edx
	testb	$2, %al
	jne	LBB0_27
## %bb.14:
	movl	$12, %edx
	testb	$4, %al
	jne	LBB0_27
## %bb.15:
	movl	$11, %edx
	testb	$8, %al
	jne	LBB0_27
## %bb.16:
	movl	$10, %edx
	testb	$16, %al
	jne	LBB0_27
## %bb.17:
	movl	$9, %edx
	testb	$32, %al
	jne	LBB0_27
## %bb.18:
	movl	$8, %edx
	testb	$64, %al
	jne	LBB0_27
## %bb.19:
	movl	$7, %edx
	testb	$-128, %al
	jne	LBB0_27
## %bb.20:
	movl	$6, %edx
	testl	$256, %eax                      ## imm = 0x100
	jne	LBB0_27
## %bb.21:
	movl	$5, %edx
	testl	$512, %eax                      ## imm = 0x200
	jne	LBB0_27
## %bb.22:
	movl	$4, %edx
	testl	$1024, %eax                     ## imm = 0x400
	jne	LBB0_27
## %bb.23:
	movl	$3, %edx
	testl	$2048, %eax                     ## imm = 0x800
	jne	LBB0_27
## %bb.24:
	movl	$2, %edx
	testl	$4096, %eax                     ## imm = 0x1000
	jne	LBB0_27
## %bb.25:
	movl	$1, %edx
	testl	$8192, %eax                     ## imm = 0x2000
	jne	LBB0_27
LBB0_26:
	xorl	%edx, %edx
LBB0_27:
	movq	8(%r8), %rax
	movl	%edx, (%rax,%r9,4)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_code_matrix_coeffs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function code_matrix_coeffs
_code_matrix_coeffs:                    ; @code_matrix_coeffs
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0, #8]
	ldr	w9, [x0]
	cbz	w9, LBB0_22
; %bb.1:
	ldr	x10, [x8]
	ldr	x10, [x10, w1, uxtw #3]
	cmp	w9, #16
	b.hs	LBB0_3
; %bb.2:
	mov	x12, #0
	mov	w11, #0
	b	LBB0_6
LBB0_3:
	and	x12, x9, #0xfffffff0
	add	x11, x10, #32
	movi.2d	v0, #0000000000000000
	mov	x13, x12
	movi.2d	v1, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x11, #-32]
	ldp	q6, q7, [x11], #64
	orr.16b	v0, v4, v0
	orr.16b	v1, v5, v1
	orr.16b	v2, v6, v2
	orr.16b	v3, v7, v3
	subs	x13, x13, #16
	b.ne	LBB0_4
; %bb.5:
	orr.16b	v0, v1, v0
	orr.16b	v0, v2, v0
	orr.16b	v0, v3, v0
	ext.16b	v1, v0, v0, #8
	orr.8b	v0, v0, v1
	fmov	w11, s0
	mov.s	w13, v0[1]
	orr	w11, w11, w13
	cmp	x12, x9
	b.eq	LBB0_8
LBB0_6:
	add	x10, x10, x12, lsl #2
	sub	x9, x9, x12
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x10], #4
	orr	w11, w12, w11
	subs	x9, x9, #1
	b.ne	LBB0_7
LBB0_8:
	tbnz	w11, #0, LBB0_23
; %bb.9:
	tbnz	w11, #1, LBB0_24
; %bb.10:
	tbnz	w11, #2, LBB0_25
; %bb.11:
	tbnz	w11, #3, LBB0_26
; %bb.12:
	tbnz	w11, #4, LBB0_27
; %bb.13:
	tbnz	w11, #5, LBB0_28
; %bb.14:
	tbnz	w11, #6, LBB0_29
; %bb.15:
	tbnz	w11, #7, LBB0_30
; %bb.16:
	tbnz	w11, #8, LBB0_31
; %bb.17:
	tbnz	w11, #9, LBB0_32
; %bb.18:
	tbnz	w11, #10, LBB0_33
; %bb.19:
	tbnz	w11, #11, LBB0_34
; %bb.20:
	tbnz	w11, #12, LBB0_35
; %bb.21:
	tbnz	w11, #13, LBB0_36
LBB0_22:
	mov	w9, #0
	b	LBB0_37
LBB0_23:
	mov	w9, #14
	b	LBB0_37
LBB0_24:
	mov	w9, #13
	b	LBB0_37
LBB0_25:
	mov	w9, #12
	b	LBB0_37
LBB0_26:
	mov	w9, #11
	b	LBB0_37
LBB0_27:
	mov	w9, #10
	b	LBB0_37
LBB0_28:
	mov	w9, #9
	b	LBB0_37
LBB0_29:
	mov	w9, #8
	b	LBB0_37
LBB0_30:
	mov	w9, #7
	b	LBB0_37
LBB0_31:
	mov	w9, #6
	b	LBB0_37
LBB0_32:
	mov	w9, #5
	b	LBB0_37
LBB0_33:
	mov	w9, #4
	b	LBB0_37
LBB0_34:
	mov	w9, #3
	b	LBB0_37
LBB0_35:
	mov	w9, #2
	b	LBB0_37
LBB0_36:
	mov	w9, #1
LBB0_37:
	ldr	x8, [x8, #8]
	str	w9, [x8, w1, uxtw #2]
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_code_matrix_coeffs
.subsections_via_symbols
