	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_picture
_decode_picture:                        ## @decode_picture
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	8(%rdi), %rbx
	movq	_decode_slice_thread@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %r8d
	xorl	%r14d, %r14d
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	*(%rdi)
	movl	(%rbx), %eax
	movl	$0, %esi
	testl	%eax, %eax
	jle	LBB0_14
## %bb.1:
	movq	8(%rbx), %rcx
	cmpl	$4, %eax
	jae	LBB0_3
## %bb.2:
	xorl	%edx, %edx
	xorl	%esi, %esi
	jmp	LBB0_10
LBB0_3:
	movl	%eax, %edx
	andl	$-4, %edx
	leaq	-4(%rdx), %rsi
	movq	%rsi, %r8
	shrq	$2, %r8
	incq	%r8
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.5:
	movq	%r8, %rsi
	andq	$-2, %rsi
	pxor	%xmm0, %xmm0
	xorl	%edi, %edi
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rcx,%rdi,8), %xmm2
	movdqu	16(%rcx,%rdi,8), %xmm3
	movdqu	32(%rcx,%rdi,8), %xmm4
	movdqu	48(%rcx,%rdi,8), %xmm5
	psrlq	$63, %xmm2
	psrlq	$63, %xmm3
	pshufd	$232, %xmm2, %xmm2              ## xmm2 = xmm2[0,2,2,3]
	paddd	%xmm0, %xmm2
	pshufd	$232, %xmm3, %xmm3              ## xmm3 = xmm3[0,2,2,3]
	paddd	%xmm1, %xmm3
	psrlq	$63, %xmm4
	psrlq	$63, %xmm5
	pshufd	$232, %xmm4, %xmm0              ## xmm0 = xmm4[0,2,2,3]
	paddd	%xmm2, %xmm0
	pshufd	$232, %xmm5, %xmm1              ## xmm1 = xmm5[0,2,2,3]
	paddd	%xmm3, %xmm1
	addq	$8, %rdi
	addq	$-2, %rsi
	jne	LBB0_6
## %bb.7:
	testb	$1, %r8b
	je	LBB0_9
LBB0_8:
	movdqu	(%rcx,%rdi,8), %xmm2
	movdqu	16(%rcx,%rdi,8), %xmm3
	psrlq	$63, %xmm2
	psrlq	$63, %xmm3
	pshufd	$232, %xmm2, %xmm2              ## xmm2 = xmm2[0,2,2,3]
	paddd	%xmm2, %xmm0
	pshufd	$232, %xmm3, %xmm2              ## xmm2 = xmm3[0,2,2,3]
	paddd	%xmm2, %xmm1
LBB0_9:
	paddd	%xmm1, %xmm0
	pshufd	$85, %xmm0, %xmm1               ## xmm1 = xmm0[1,1,1,1]
	paddd	%xmm0, %xmm1
	movd	%xmm1, %esi
	cmpq	%rax, %rdx
	je	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rdx,8), %rdi
	shrq	$63, %rdi
	addl	%edi, %esi
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_10
LBB0_11:
	testl	%esi, %esi
	je	LBB0_12
## %bb.13:
	movq	_FF_DECODE_ERROR_INVALID_BITSTREAM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	16(%rbx), %rdx
	movl	%ecx, (%rdx)
LBB0_14:
	cmpl	%eax, %esi
	jl	LBB0_16
LBB0_15:
	movq	8(%rbx), %rax
	movl	(%rax), %r14d
LBB0_16:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_12:
	xorl	%esi, %esi
	cmpl	%eax, %esi
	jge	LBB0_15
	jmp	LBB0_16
LBB0_4:
	pxor	%xmm0, %xmm0
	xorl	%edi, %edi
	pxor	%xmm1, %xmm1
	testb	$1, %r8b
	jne	LBB0_8
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_decode_slice_thread,4,2        ## @decode_slice_thread
	.comm	_FF_DECODE_ERROR_INVALID_BITSTREAM,4,2 ## @FF_DECODE_ERROR_INVALID_BITSTREAM
	.no_dead_strip	_decode_picture
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_picture
_decode_picture:                        ; @decode_picture
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldp	x8, x19, [x0]
Lloh0:
	adrp	x9, _decode_slice_thread@GOTPAGE
Lloh1:
	ldr	x9, [x9, _decode_slice_thread@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	ldr	w4, [x19]
	mov	x2, #0
	mov	x3, #0
	blr	x8
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	ldr	x9, [x19, #8]
	cmp	w8, #8
	b.hs	LBB0_4
; %bb.2:
	mov	x10, #0
	mov	w11, #0
	b	LBB0_7
LBB0_3:
	mov	w11, #0
	b	LBB0_11
LBB0_4:
	and	x10, x8, #0xfffffff8
	movi.2d	v0, #0000000000000000
	add	x11, x9, #32
	mov	x12, x10
	movi.2d	v1, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x11, #-32]
	ldp	q6, q7, [x11], #64
	ushr.2d	v4, v4, #63
	ushr.2d	v5, v5, #63
	ushr.2d	v6, v6, #63
	ushr.2d	v7, v7, #63
	xtn.2s	v4, v4
	xtn.2s	v5, v5
	xtn.2s	v6, v6
	xtn.2s	v7, v7
	add.2s	v0, v0, v4
	add.2s	v1, v1, v5
	add.2s	v2, v2, v6
	add.2s	v3, v3, v7
	subs	x12, x12, #8
	b.ne	LBB0_5
; %bb.6:
	add.2s	v0, v1, v0
	add.2s	v0, v2, v0
	add.2s	v0, v3, v0
	addp.2s	v0, v0, v0
	fmov	w11, s0
	cmp	x10, x8
	b.eq	LBB0_9
LBB0_7:
	add	x9, x9, x10, lsl #3
	sub	x10, x8, x10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x9], #8
	lsr	x12, x12, #63
	add	w11, w11, w12
	subs	x10, x10, #1
	b.ne	LBB0_8
LBB0_9:
	cbz	w11, LBB0_11
; %bb.10:
Lloh3:
	adrp	x9, _FF_DECODE_ERROR_INVALID_BITSTREAM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FF_DECODE_ERROR_INVALID_BITSTREAM@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	ldr	x10, [x19, #16]
	str	w9, [x10]
LBB0_11:
	cmp	w11, w8
	b.ge	LBB0_13
; %bb.12:
	mov	w0, #0
	b	LBB0_14
LBB0_13:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
LBB0_14:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_decode_slice_thread,4,2        ; @decode_slice_thread
	.comm	_FF_DECODE_ERROR_INVALID_BITSTREAM,4,2 ; @FF_DECODE_ERROR_INVALID_BITSTREAM
	.no_dead_strip	_decode_picture
.subsections_via_symbols
