	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function encode_strip
_encode_strip:                          ## @encode_strip
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movq	%rsi, %r14
	cmpl	$130, %r8d
	je	LBB0_7
## %bb.1:
	movq	%rdx, %r15
	cmpl	$129, %r8d
	je	LBB0_6
## %bb.2:
	cmpl	$128, %r8d
	jne	LBB0_8
## %bb.3:
	movl	%ebx, %esi
	callq	_check_size
	testl	%eax, %eax
	jne	LBB0_9
## %bb.4:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_memcpy
	movl	%ebx, %eax
	addq	$8, %rsp
	jmp	LBB0_5
LBB0_7:
	movl	28(%rdi), %edi
	movq	%r14, %rsi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ff_lzw_encode                  ## TAILCALL
LBB0_6:
	movq	(%rdi), %rsi
	movq	8(%rdi), %rax
	subq	(%rax), %rsi
	addq	16(%rdi), %rsi
	subq	$8, %rsp
	movq	%r15, %rdi
	movq	%r14, %rdx
	movl	$1, %ecx
	movl	%ebx, %r8d
	movl	$2, %r9d
	pushq	$0
	pushq	$-1
	pushq	$255
	callq	_ff_rle_encode
	addq	$40, %rsp
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	24(%rdi), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movl	%r8d, %ecx
	xorl	%eax, %eax
	callq	_av_log
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported compression method: %d\n"

	.comm	_AVERROR_EXTERNAL,4,2           ## @AVERROR_EXTERNAL
	.comm	_Z_OK,4,2                       ## @Z_OK
	.no_dead_strip	_encode_strip
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function encode_strip
_encode_strip:                          ; @encode_strip
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
                                        ; kill: def $w4 killed $w4 def $x4
	mov	x19, x3
	mov	x20, x1
	cmp	w4, #130
	b.eq	LBB0_5
; %bb.1:
	mov	x21, x2
	cmp	w4, #129
	b.eq	LBB0_6
; %bb.2:
	cmp	w4, #128
	b.ne	LBB0_8
; %bb.3:
	mov	x1, x19
	bl	_check_size
	cbnz	w0, LBB0_9
; %bb.4:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_memcpy
	mov	x0, x19
	b	LBB0_7
LBB0_5:
	ldr	w0, [x0, #28]
	mov	x1, x20
	mov	x2, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_ff_lzw_encode
LBB0_6:
	ldp	x8, x9, [x0]
	ldr	x9, [x9]
	ldr	x10, [x0, #16]
	sub	x8, x8, x9
	add	x1, x8, x10
	str	wzr, [sp]
	mov	x0, x21
	mov	x2, x20
	mov	w3, #1
	mov	x4, x19
	mov	w5, #2
	mov	w6, #255
	mov	w7, #-1
	bl	_ff_rle_encode
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_8:
	ldr	w0, [x0, #24]
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	str	x4, [sp]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
LBB0_9:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_AVERROR
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported compression method: %d\n"

	.comm	_AVERROR_EXTERNAL,4,2           ; @AVERROR_EXTERNAL
	.comm	_Z_OK,4,2                       ; @Z_OK
	.no_dead_strip	_encode_strip
.subsections_via_symbols
