	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function put_residue_header
LCPI0_0:
	.long	16                              ## 0x10
	.long	32                              ## 0x20
	.long	64                              ## 0x40
	.long	128                             ## 0x80
LCPI0_1:
	.space	16,255
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_put_residue_header:                    ## @put_residue_header
	.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
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	(%rsi), %edx
	movl	$16, %esi
	callq	_put_bits
	movl	4(%r15), %edx
	movq	%r14, %rdi
	movl	$24, %esi
	callq	_put_bits
	movl	8(%r15), %edx
	movq	%r14, %rdi
	movl	$24, %esi
	callq	_put_bits
	movl	12(%r15), %edx
	decl	%edx
	movq	%r14, %rdi
	movl	$24, %esi
	callq	_put_bits
	movl	16(%r15), %edx
	decl	%edx
	movq	%r14, %rdi
	movl	$6, %esi
	callq	_put_bits
	movl	20(%r15), %edx
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_put_bits
	cmpl	$0, 16(%r15)
	jle	LBB0_24
## %bb.1:
	xorl	%r12d, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	movslq	16(%r15), %rax
	cmpq	%rax, %r12
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r15), %rax
	movq	(%rax,%r12,8), %rax
	xorl	%ecx, %ecx
	cmpl	$-1, (%rax)
	setne	%cl
	xorl	%edx, %edx
	cmpl	$-1, 4(%rax)
	setne	%dl
	leal	(%rcx,%rdx,2), %ecx
	xorl	%edx, %edx
	cmpl	$-1, 8(%rax)
	setne	%dl
	leal	(%rcx,%rdx,4), %edx
	xorl	%ecx, %ecx
	cmpl	$-1, 12(%rax)
	setne	%cl
	shll	$3, %ecx
	movdqu	16(%rax), %xmm0
	pcmpeqd	LCPI0_1(%rip), %xmm0
	pandn	LCPI0_0(%rip), %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, %r13d
	orl	%ecx, %r13d
	movl	%r13d, %ebx
	orl	%edx, %ebx
	movq	%r14, %rdi
	movl	$3, %esi
	callq	_put_bits
	xorl	%edx, %edx
	cmpl	$8, %ebx
	setge	%dl
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_put_bits
	cmpl	$7, %ebx
	jle	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	shrl	$3, %r13d
	movq	%r14, %rdi
	movl	$5, %esi
	movl	%r13d, %edx
	callq	_put_bits
	jmp	LBB0_4
LBB0_5:
	testl	%eax, %eax
	jle	LBB0_24
## %bb.6:
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	movslq	16(%r15), %rax
	cmpq	%rax, %rbx
	jge	LBB0_24
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r15), %rax
	movq	(%rax,%rbx,8), %rax
	movl	(%rax), %edx
	cmpl	$-1, %edx
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_put_bits
	movq	24(%r15), %rax
	movq	(%rax,%rbx,8), %rax
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movl	4(%rax), %edx
	cmpl	$-1, %edx
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_put_bits
	movq	24(%r15), %rax
	movq	(%rax,%rbx,8), %rax
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	8(%rax), %edx
	cmpl	$-1, %edx
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_put_bits
	movq	24(%r15), %rax
	movq	(%rax,%rbx,8), %rax
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	12(%rax), %edx
	cmpl	$-1, %edx
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_put_bits
	movq	24(%r15), %rax
	movq	(%rax,%rbx,8), %rax
LBB0_15:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	16(%rax), %edx
	cmpl	$-1, %edx
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_put_bits
	movq	24(%r15), %rax
	movq	(%rax,%rbx,8), %rax
LBB0_17:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	20(%rax), %edx
	cmpl	$-1, %edx
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_put_bits
	movq	24(%r15), %rax
	movq	(%rax,%rbx,8), %rax
LBB0_19:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	24(%rax), %edx
	cmpl	$-1, %edx
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_put_bits
	movq	24(%r15), %rax
	movq	(%rax,%rbx,8), %rax
LBB0_21:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	28(%rax), %edx
	cmpl	$-1, %edx
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_put_bits
	jmp	LBB0_23
LBB0_24:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_put_residue_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function put_residue_header
lCPI0_0:
	.long	16                              ; 0x10
	.long	32                              ; 0x20
	.long	64                              ; 0x40
	.long	128                             ; 0x80
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_put_residue_header:                    ; @put_residue_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	w2, [x1]
	mov	w1, #16
	bl	_put_bits
	ldr	w2, [x19, #4]
	mov	x0, x20
	mov	w1, #24
	bl	_put_bits
	ldr	w2, [x19, #8]
	mov	x0, x20
	mov	w1, #24
	bl	_put_bits
	ldr	w8, [x19, #12]
	sub	w2, w8, #1
	mov	x0, x20
	mov	w1, #24
	bl	_put_bits
	ldr	w8, [x19, #16]
	sub	w2, w8, #1
	mov	x0, x20
	mov	w1, #6
	bl	_put_bits
	ldr	w2, [x19, #20]
	mov	x0, x20
	mov	w1, #8
	bl	_put_bits
	ldr	w8, [x19, #16]
	cmp	w8, #1
	b.lt	LBB0_24
; %bb.1:
	mov	x21, #0
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	str	q0, [sp]                        ; 16-byte Folded Spill
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x19, #16]
	cmp	x21, x8
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	ldr	x8, [x8, x21, lsl #3]
	ldp	w9, w10, [x8]
	cmn	w9, #1
	cset	w2, ne
	cmn	w10, #1
	cset	w9, ne
	bfi	w2, w9, #1, #1
	ldp	w9, w10, [x8, #8]
	cmn	w9, #1
	cset	w9, ne
	bfi	w2, w9, #2, #1
	cmn	w10, #1
	cset	w9, ne
	ldr	q0, [x8, #16]
	movi.2d	v1, #0xffffffffffffffff
	cmeq.4s	v0, v0, v1
	ldr	q1, [sp]                        ; 16-byte Folded Reload
	bic.16b	v0, v1, v0
	ext.16b	v1, v0, v0, #8
	orr.8b	v0, v0, v1
	mov.s	w8, v0[1]
	fmov	w10, s0
	orr	w8, w10, w8
	orr	w22, w8, w9, lsl #3
	orr	w23, w22, w2
	mov	x0, x20
	mov	w1, #3
	bl	_put_bits
	cmp	w23, #7
	cset	w2, gt
	mov	x0, x20
	mov	w1, #1
	bl	_put_bits
	cmp	w23, #7
	b.le	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	lsr	w2, w22, #3
	mov	x0, x20
	mov	w1, #5
	bl	_put_bits
	b	LBB0_2
LBB0_5:
	cmp	w8, #1
	b.lt	LBB0_24
; %bb.6:
	mov	x21, #0
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x19, #16]
	cmp	x21, x8
	b.ge	LBB0_24
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	ldr	x8, [x8, x21, lsl #3]
	ldr	w2, [x8]
	cmn	w2, #1
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x20
	mov	w1, #8
	bl	_put_bits
	ldr	x8, [x19, #24]
	ldr	x8, [x8, x21, lsl #3]
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w2, [x8, #4]
	cmn	w2, #1
	b.eq	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x20
	mov	w1, #8
	bl	_put_bits
	ldr	x8, [x19, #24]
	ldr	x8, [x8, x21, lsl #3]
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w2, [x8, #8]
	cmn	w2, #1
	b.eq	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x20
	mov	w1, #8
	bl	_put_bits
	ldr	x8, [x19, #24]
	ldr	x8, [x8, x21, lsl #3]
LBB0_14:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w2, [x8, #12]
	cmn	w2, #1
	b.eq	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x20
	mov	w1, #8
	bl	_put_bits
	ldr	x8, [x19, #24]
	ldr	x8, [x8, x21, lsl #3]
LBB0_16:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w2, [x8, #16]
	cmn	w2, #1
	b.eq	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x20
	mov	w1, #8
	bl	_put_bits
	ldr	x8, [x19, #24]
	ldr	x8, [x8, x21, lsl #3]
LBB0_18:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w2, [x8, #20]
	cmn	w2, #1
	b.eq	LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x20
	mov	w1, #8
	bl	_put_bits
	ldr	x8, [x19, #24]
	ldr	x8, [x8, x21, lsl #3]
LBB0_20:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w2, [x8, #24]
	cmn	w2, #1
	b.eq	LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x20
	mov	w1, #8
	bl	_put_bits
	ldr	x8, [x19, #24]
	ldr	x8, [x8, x21, lsl #3]
LBB0_22:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w2, [x8, #28]
	cmn	w2, #1
	b.eq	LBB0_7
; %bb.23:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x20
	mov	w1, #8
	bl	_put_bits
	b	LBB0_7
LBB0_24:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdr	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_put_residue_header
.subsections_via_symbols
