	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_lzo1x_decode                ## -- Begin function av_lzo1x_decode
	.p2align	4, 0x90
_av_lzo1x_decode:                       ## @av_lzo1x_decode
	.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
	subq	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movl	(%rsi), %ecx
	movl	(%r15), %ebx
	testl	%ecx, %ecx
	jle	LBB0_2
## %bb.1:
	testl	%ebx, %ebx
	jle	LBB0_2
## %bb.7:
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)
	leaq	(%rdx,%rbx,4), %rax
	movq	%rax, -64(%rbp)
	movq	%rdi, -48(%rbp)
	movq	%rdi, -80(%rbp)
	leaq	(%rdi,%rcx,4), %rax
	movq	%rax, -72(%rbp)
	movl	$0, -88(%rbp)
	movups	-88(%rbp), %xmm0
	movups	-72(%rbp), %xmm1
	movups	-56(%rbp), %xmm2
	movups	%xmm2, 32(%rsp)
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_GETB
	movl	%eax, %r13d
	cmpl	$18, %eax
	jl	LBB0_10
## %bb.8:
	addl	$-17, %r13d
	leaq	-88(%rbp), %rdi
	movl	%r13d, %esi
	callq	_copy
	movups	-88(%rbp), %xmm0
	movups	-72(%rbp), %xmm1
	movups	-56(%rbp), %xmm2
	movups	%xmm2, 32(%rsp)
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_GETB
	movl	%eax, %r13d
	cmpl	$15, %eax
	jg	LBB0_10
## %bb.9:
	movq	_AV_LZO_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -88(%rbp)
LBB0_10:
	movq	-56(%rbp), %rax
	cmpq	-64(%rbp), %rax
	jbe	LBB0_11
## %bb.12:
	movq	_AV_LZO_INPUT_DEPLETED@GOTPCREL(%rip), %rcx
	movl	-88(%rbp), %eax
	orl	(%rcx), %eax
	movl	%eax, -88(%rbp)
	testl	%eax, %eax
	jne	LBB0_31
	jmp	LBB0_14
LBB0_2:
	xorl	%eax, %eax
	movl	$0, %edx
	testl	%ecx, %ecx
	jg	LBB0_4
## %bb.3:
	movq	_AV_LZO_OUTPUT_FULL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
LBB0_4:
	testl	%ebx, %ebx
	jg	LBB0_6
## %bb.5:
	movq	_AV_LZO_INPUT_DEPLETED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	orl	%edx, %eax
	jmp	LBB0_32
LBB0_11:
	movl	-88(%rbp), %eax
	testl	%eax, %eax
	jne	LBB0_31
LBB0_14:
	xorl	%ecx, %ecx
	leaq	-88(%rbp), %r12
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$16, %r13d
	jl	LBB0_25
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	cmpl	$64, %r13d
	jb	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	%r13d, %ebx
	shrl	$5, %ebx
	decl	%ebx
	movups	-88(%rbp), %xmm0
	movups	-72(%rbp), %xmm1
	movups	-56(%rbp), %xmm2
	movups	%xmm2, 32(%rsp)
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_GETB
                                        ## kill: def $eax killed $eax def $rax
	movl	%r13d, %ecx
	shrl	$2, %ecx
	andl	$7, %ecx
	leal	(%rcx,%rax,8), %esi
	incl	%esi
	jmp	LBB0_29
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_15 Depth=1
	testl	%ecx, %ecx
	je	LBB0_26
## %bb.28:                              ##   in Loop: Header=BB0_15 Depth=1
	movups	-88(%rbp), %xmm0
	movups	-72(%rbp), %xmm1
	movups	-56(%rbp), %xmm2
	movups	%xmm2, 32(%rsp)
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_GETB
                                        ## kill: def $eax killed $eax def $rax
	movl	%r13d, %ecx
	sarl	$2, %ecx
	leal	(%rcx,%rax,4), %esi
	incl	%esi
	xorl	%ebx, %ebx
	jmp	LBB0_29
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	%r12, %rdi
	cmpl	$32, %r13d
	jb	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	%r13d, %esi
	movl	$31, %edx
	callq	_get_len
	movl	%eax, %ebx
	movups	-88(%rbp), %xmm0
	movups	-72(%rbp), %xmm1
	movups	-56(%rbp), %xmm2
	movups	%xmm2, 32(%rsp)
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_GETB
	movl	%eax, %r13d
	movups	-88(%rbp), %xmm0
	movups	-72(%rbp), %xmm1
	movups	-56(%rbp), %xmm2
	movups	%xmm2, 32(%rsp)
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_GETB
                                        ## kill: def $eax killed $eax def $rax
	shll	$6, %eax
	movl	%r13d, %ecx
	sarl	$2, %ecx
	leal	(%rcx,%rax), %esi
	incl	%esi
	jmp	LBB0_29
LBB0_26:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	$15, %edx
	callq	_get_len
                                        ## kill: def $eax killed $eax def $rax
	leal	3(%rax), %esi
	movq	%r12, %rdi
	callq	_copy
	movups	-88(%rbp), %xmm0
	movups	-72(%rbp), %xmm1
	movups	-56(%rbp), %xmm2
	movups	%xmm2, 32(%rsp)
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_GETB
	movl	%eax, %r13d
	xorl	%ecx, %ecx
	cmpl	$15, %eax
	jg	LBB0_30
## %bb.27:                              ##   in Loop: Header=BB0_15 Depth=1
	movups	-88(%rbp), %xmm0
	movups	-72(%rbp), %xmm1
	movups	-56(%rbp), %xmm2
	movups	%xmm2, 32(%rsp)
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_GETB
                                        ## kill: def $eax killed $eax def $rax
	movl	%r13d, %ecx
	sarl	$2, %ecx
	leal	(%rcx,%rax,4), %esi
	addl	$2049, %esi                     ## imm = 0x801
	movl	$1, %ebx
	jmp	LBB0_29
LBB0_20:                                ##   in Loop: Header=BB0_15 Depth=1
	movl	%r13d, %esi
	movl	$7, %edx
	callq	_get_len
	movl	%eax, %ebx
	andl	$8, %r13d
	shll	$11, %r13d
	movups	-88(%rbp), %xmm0
	movups	-72(%rbp), %xmm1
	movups	-56(%rbp), %xmm2
	movups	%xmm2, 32(%rsp)
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_GETB
	movl	%eax, %r14d
	movups	-88(%rbp), %xmm0
	movups	-72(%rbp), %xmm1
	movups	-56(%rbp), %xmm2
	movups	%xmm2, 32(%rsp)
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_GETB
                                        ## kill: def $eax killed $eax def $rax
	shll	$6, %eax
	movl	%r14d, %ecx
	sarl	$2, %ecx
	addl	%r13d, %ecx
	leal	(%rax,%rcx), %esi
	addl	$16384, %esi                    ## imm = 0x4000
	cmpl	$16384, %esi                    ## imm = 0x4000
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	%r14d, %r13d
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_15 Depth=1
	addl	$2, %ebx
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_copy_backptr
	andl	$3, %r13d
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_copy
	movups	-88(%rbp), %xmm0
	movups	-72(%rbp), %xmm1
	movups	-56(%rbp), %xmm2
	movups	%xmm2, 32(%rsp)
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_GETB
	movl	%r13d, %ecx
	movl	%eax, %r13d
LBB0_30:                                ##   in Loop: Header=BB0_15 Depth=1
	movl	-88(%rbp), %eax
	testl	%eax, %eax
	je	LBB0_15
LBB0_31:
	movq	-64(%rbp), %rcx
	movq	-56(%rbp), %rdx
	movq	%rcx, %rsi
	subq	%rdx, %rsi
	shrq	$2, %rsi
	xorl	%edi, %edi
	cmpq	%rdx, %rcx
	cmovbl	%edi, %esi
	movl	%esi, (%r15)
	movq	-72(%rbp), %rcx
	subq	-80(%rbp), %rcx
	shrq	$2, %rcx
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	movl	%ecx, (%rdx)
LBB0_32:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	cmpl	$1, %ebx
	jne	LBB0_24
## %bb.23:
	movl	-88(%rbp), %eax
	jmp	LBB0_31
LBB0_24:
	movq	_AV_LZO_ERROR@GOTPCREL(%rip), %rcx
	movl	-88(%rbp), %eax
	orl	(%rcx), %eax
	jmp	LBB0_31
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LZO_OUTPUT_FULL,4,2         ## @AV_LZO_OUTPUT_FULL
	.comm	_AV_LZO_INPUT_DEPLETED,4,2      ## @AV_LZO_INPUT_DEPLETED
	.comm	_AV_LZO_ERROR,4,2               ## @AV_LZO_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_lzo1x_decode                ; -- Begin function av_lzo1x_decode
	.p2align	2
_av_lzo1x_decode:                       ; @av_lzo1x_decode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	ldr	w8, [x1]
	ldr	w9, [x3]
	cmp	w8, #1
	ccmp	w9, #0, #4, ge
	b.gt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x10, _AV_LZO_OUTPUT_FULL@GOTPAGE
Lloh1:
	ldr	x10, [x10, _AV_LZO_OUTPUT_FULL@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	cmp	w8, #1
	csel	w8, w10, wzr, lt
Lloh3:
	adrp	x10, _AV_LZO_INPUT_DEPLETED@GOTPAGE
Lloh4:
	ldr	x10, [x10, _AV_LZO_INPUT_DEPLETED@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w9, #0
	csel	w9, wzr, w10, gt
	orr	w0, w9, w8
	b	LBB0_9
LBB0_2:
	mov	x20, x3
	mov	x19, x1
	add	x9, x2, x9, lsl #2
	stp	x9, x2, [sp, #72]
	str	x0, [sp, #88]
	add	x8, x0, x8, lsl #2
	stp	x0, x8, [sp, #56]
	str	wzr, [sp, #48]
	ldp	q0, q1, [sp, #48]
	stp	q0, q1, [sp]
	ldr	q0, [sp, #80]
	str	q0, [sp, #32]
	mov	x0, sp
	bl	_GETB
	mov	x21, x0
	cmp	w0, #18
	b.lt	LBB0_5
; %bb.3:
	sub	w1, w21, #17
	add	x0, sp, #48
	bl	_copy
	ldp	q0, q1, [sp, #48]
	stp	q0, q1, [sp]
	ldr	q0, [sp, #80]
	str	q0, [sp, #32]
	mov	x0, sp
	bl	_GETB
	mov	x21, x0
	cmp	w0, #15
	b.gt	LBB0_5
; %bb.4:
Lloh6:
	adrp	x8, _AV_LZO_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_LZO_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [sp, #48]
	orr	w8, w9, w8
	str	w8, [sp, #48]
LBB0_5:
	ldp	x9, x8, [sp, #72]
	cmp	x8, x9
	b.ls	LBB0_7
; %bb.6:
Lloh9:
	adrp	x8, _AV_LZO_INPUT_DEPLETED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AV_LZO_INPUT_DEPLETED@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [sp, #48]
	orr	w0, w9, w8
	str	w0, [sp, #48]
	cbnz	w0, LBB0_8
	b	LBB0_10
LBB0_7:
	ldr	w0, [sp, #48]
	cbz	w0, LBB0_10
LBB0_8:
	ldp	x8, x9, [sp, #72]
	subs	x8, x8, x9
	lsr	x8, x8, #2
	csel	w8, wzr, w8, lo
	str	w8, [x20]
	ldp	x9, x8, [sp, #56]
	sub	x8, x8, x9
	lsr	x8, x8, #2
	str	w8, [x19]
LBB0_9:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_10:
	mov	w22, #0
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	cmp	w21, #16
	b.lt	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	cmp	w21, #64
	b.lo	LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	lsr	w8, w21, #5
	sub	w22, w8, #1
	ldp	q0, q1, [sp, #48]
	stp	q0, q1, [sp]
	ldr	q0, [sp, #80]
	str	q0, [sp, #32]
	mov	x0, sp
	bl	_GETB
	lsl	w8, w0, #3
	bfxil	w8, w21, #2, #3
	b	LBB0_18
LBB0_14:                                ;   in Loop: Header=BB0_11 Depth=1
	cbz	w22, LBB0_20
; %bb.15:                               ;   in Loop: Header=BB0_11 Depth=1
	ldp	q0, q1, [sp, #48]
	stp	q0, q1, [sp]
	ldr	q0, [sp, #80]
	str	q0, [sp, #32]
	mov	x0, sp
	bl	_GETB
	mov	w22, #0
	asr	w8, w21, #2
	add	w8, w8, w0, lsl #2
	b	LBB0_18
LBB0_16:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x0, sp, #48
	cmp	w21, #32
	b.lo	LBB0_22
; %bb.17:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x1, x21
	mov	w2, #31
	bl	_get_len
	mov	x22, x0
	ldp	q0, q1, [sp, #48]
	stp	q0, q1, [sp]
	ldr	q0, [sp, #80]
	str	q0, [sp, #32]
	mov	x0, sp
	bl	_GETB
	mov	x21, x0
	ldp	q0, q1, [sp, #48]
	stp	q0, q1, [sp]
	ldr	q0, [sp, #80]
	str	q0, [sp, #32]
	mov	x0, sp
	bl	_GETB
	asr	w8, w21, #2
	add	w8, w8, w0, lsl #6
LBB0_18:                                ;   in Loop: Header=BB0_11 Depth=1
	add	w1, w8, #1
LBB0_19:                                ;   in Loop: Header=BB0_11 Depth=1
	add	w2, w22, #2
	add	x0, sp, #48
	bl	_copy_backptr
	and	w22, w21, #0x3
	add	x0, sp, #48
	mov	x1, x22
	bl	_copy
	ldp	q0, q1, [sp, #48]
	stp	q0, q1, [sp]
	ldr	q0, [sp, #80]
	str	q0, [sp, #32]
	mov	x0, sp
	bl	_GETB
	mov	x21, x0
	ldr	w0, [sp, #48]
	cbz	w0, LBB0_11
	b	LBB0_8
LBB0_20:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x0, sp, #48
	mov	x1, x21
	mov	w2, #15
	bl	_get_len
	add	w1, w0, #3
	add	x0, sp, #48
	bl	_copy
	ldp	q0, q1, [sp, #48]
	stp	q0, q1, [sp]
	ldr	q0, [sp, #80]
	str	q0, [sp, #32]
	mov	x0, sp
	bl	_GETB
	mov	x21, x0
	cmp	w0, #15
	b.le	LBB0_23
; %bb.21:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	w22, #0
	ldr	w0, [sp, #48]
	cbz	w0, LBB0_11
	b	LBB0_8
LBB0_22:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x1, x21
	mov	w2, #7
	bl	_get_len
	mov	x22, x0
	lsl	w8, w21, #11
	and	w23, w8, #0x4000
	ldp	q0, q1, [sp, #48]
	stp	q0, q1, [sp]
	ldr	q0, [sp, #80]
	str	q0, [sp, #32]
	mov	x0, sp
	bl	_GETB
	mov	x21, x0
	ldp	q0, q1, [sp, #48]
	stp	q0, q1, [sp]
	ldr	q0, [sp, #80]
	str	q0, [sp, #32]
	mov	x0, sp
	bl	_GETB
	add	w8, w23, w21, asr #2
	add	w8, w8, w0, lsl #6
	add	w1, w8, #4, lsl #12             ; =16384
	cmp	w1, #4, lsl #12                 ; =16384
	b.ne	LBB0_19
	b	LBB0_24
LBB0_23:                                ;   in Loop: Header=BB0_11 Depth=1
	ldp	q0, q1, [sp, #48]
	stp	q0, q1, [sp]
	ldr	q0, [sp, #80]
	str	q0, [sp, #32]
	mov	x0, sp
	bl	_GETB
	asr	w8, w21, #2
	add	w8, w8, w0, lsl #2
	add	w1, w8, #2049
	mov	w22, #1
	b	LBB0_19
LBB0_24:
	cmp	w22, #1
	b.ne	LBB0_26
; %bb.25:
	ldr	w0, [sp, #48]
	b	LBB0_8
LBB0_26:
Lloh12:
	adrp	x8, _AV_LZO_ERROR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AV_LZO_ERROR@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	w9, [sp, #48]
	orr	w0, w9, w8
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LZO_OUTPUT_FULL,4,2         ; @AV_LZO_OUTPUT_FULL
	.comm	_AV_LZO_INPUT_DEPLETED,4,2      ; @AV_LZO_INPUT_DEPLETED
	.comm	_AV_LZO_ERROR,4,2               ; @AV_LZO_ERROR
.subsections_via_symbols
