	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_sgirle8
_decode_sgirle8:                        ## @decode_sgirle8
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -60(%rbp)                 ## 4-byte Spill
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	cmpl	$2, %ecx
	jl	LBB0_21
## %bb.1:
	movslq	%ecx, %rax
	movq	%rdx, %rdi
	leaq	(%rdx,%rax,4), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%ecx, %ecx
	xorl	%esi, %esi
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	jmp	LBB0_2
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%r13d, %eax
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %esi
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	subq	%rdx, %rax
	movq	%rdx, %rdi
	cmpq	$4, %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	jle	LBB0_20
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
                                        ##     Child Loop BB0_4 Depth 2
	leaq	4(%rdi), %rdx
	movl	(%rdi), %r14d
	leal	-1(%r14), %eax
	cmpl	$190, %eax
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	ja	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%esi, %eax
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=2
	movl	%r13d, %eax
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=2
	subl	%r12d, %r14d
	jle	LBB0_10
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r8d, %esi
	subl	%eax, %esi
	movl	%r14d, %edi
	movl	%eax, %r13d
	movl	%r8d, %ebx
	callq	_FFMIN
	testl	%eax, %eax
	jle	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	%eax, %r12d
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %eax
	imull	16(%rbp), %eax
	cltq
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rax
	movslq	%r13d, %rcx
	leaq	(%rax,%rcx,4), %r15
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_RBG323_TO_BGR8
	movq	%r15, %rdi
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	movl	%eax, %esi
	movl	%r12d, %edx
	callq	_memset
	movl	%r15d, %r8d
	addl	%r12d, %r13d
	cmpl	%r15d, %r13d
	jl	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=2
	incl	%ebx
	xorl	%eax, %eax
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	cmpl	-60(%rbp), %ebx                 ## 4-byte Folded Reload
	jl	LBB0_9
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$193, %r14d
	jl	LBB0_22
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	addl	$-192, %r14d
	movl	%esi, %eax
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_13 Depth=2
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%r15,4), %rdx
	subl	%r12d, %r14d
	jle	LBB0_19
LBB0_13:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r8d, %esi
	movl	%eax, %r13d
	subl	%eax, %esi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	subq	%rdx, %rbx
	sarq	$2, %rbx
	movl	%r14d, %edi
	movl	%ebx, %edx
	callq	_FFMIN3
	testl	%eax, %eax
	jle	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=2
	movl	%eax, %r12d
	movslq	%eax, %r15
	cmpq	%r15, %rbx
	jl	LBB0_14
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=2
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %eax
	imull	16(%rbp), %eax
	cltq
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rax
	movslq	%r13d, %rcx
	leaq	(%rax,%rcx,4), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, %edx
	callq	_rbg323_to_bgr8
	movl	%r13d, %eax
	addl	%r12d, %eax
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	cmpl	%r8d, %eax
	jl	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_13 Depth=2
	incl	%ebx
	xorl	%eax, %eax
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	cmpl	-60(%rbp), %ebx                 ## 4-byte Folded Reload
	jl	LBB0_18
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r13d, %eax
	movl	%ebx, %r8d
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	addq	$8, %rdx
	jmp	LBB0_19
LBB0_20:
	xorl	%eax, %eax
	jmp	LBB0_21
LBB0_22:
	leaq	L_.str(%rip), %rsi
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %edx
	callq	_avpriv_request_sample
	movq	_AVERROR_PATCHWELCOME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_21:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"opcode %d"

	.comm	_AVERROR_PATCHWELCOME,4,2       ## @AVERROR_PATCHWELCOME
	.no_dead_strip	_decode_sgirle8
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_sgirle8
_decode_sgirle8:                        ; @decode_sgirle8
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cmp	w3, #2
	b.lt	LBB0_17
; %bb.1:
	mov	x19, x6
	mov	x28, x5
	mov	x21, x4
	mov	x23, x1
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	mov	w22, #0
	mov	w20, #0
	mov	x24, x2
	add	x8, x2, w3, sxtw #2
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	add	x24, x8, #8
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	sub	x8, x8, x24
	mov	x2, x24
	cmp	x8, #4
	b.le	LBB0_17
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
                                        ;     Child Loop BB0_8 Depth 2
	ldr	w26, [x24], #4
	sub	w8, w26, #1
	cmp	w8, #190
	b.hi	LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	str	x2, [sp, #16]                   ; 8-byte Folded Spill
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=2
	mov	x28, x25
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	sub	w26, w26, w27
	cmp	w26, #0
	b.le	LBB0_2
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sub	w1, w21, w20
	mov	x0, x26
	bl	_FFMIN
	cmp	w0, #1
	b.lt	LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	mov	x27, x0
	mov	x25, x28
	mul	w8, w22, w19
	add	x8, x23, w8, sxtw #2
	add	x28, x8, w20, sxtw #2
	ldr	w0, [x24]
	bl	_RBG323_TO_BGR8
	mov	x1, x0
	mov	x0, x28
	mov	x2, x27
	bl	_memset
	add	w20, w27, w20
	cmp	w20, w21
	b.lt	LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=2
	mov	w20, #0
	mov	w0, #0
	add	w22, w22, #1
	mov	x28, x25
	cmp	w22, w25
	b.lt	LBB0_7
	b	LBB0_18
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w26, #193
	b.lt	LBB0_19
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	sub	w25, w26, #192
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=2
	add	x24, x24, x26, lsl #2
	sub	w25, w25, w26
	cmp	w25, #0
	b.le	LBB0_3
LBB0_14:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sub	w1, w21, w20
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	sub	x8, x8, x24
	asr	x27, x8, #2
	mov	x0, x25
	mov	x2, x27
	bl	_FFMIN3
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x26, w0
	cmp	w0, #1
	ccmp	x27, x26, #8, ge
	b.lt	LBB0_3
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=2
	mul	w8, w22, w19
	add	x8, x23, w8, sxtw #2
	add	x0, x8, w20, sxtw #2
	mov	x1, x24
	mov	x2, x26
	bl	_rbg323_to_bgr8
	add	w20, w26, w20
	cmp	w20, w21
	b.lt	LBB0_13
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=2
	mov	w20, #0
	mov	w0, #0
	add	w22, w22, #1
	cmp	w22, w28
	b.lt	LBB0_13
	b	LBB0_18
LBB0_17:
	mov	w0, #0
LBB0_18:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_19:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	x2, x26
	bl	_avpriv_request_sample
Lloh2:
	adrp	x8, _AVERROR_PATCHWELCOME@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AVERROR_PATCHWELCOME@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	b	LBB0_18
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"opcode %d"

	.comm	_AVERROR_PATCHWELCOME,4,2       ; @AVERROR_PATCHWELCOME
	.no_dead_strip	_decode_sgirle8
.subsections_via_symbols
