	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mjpeg_idct_scan_progressive_ac
_mjpeg_idct_scan_progressive_ac:        ## @mjpeg_idct_scan_progressive_ac
	.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
	cmpq	$0, 120(%rdi)
	movl	$8, %eax
	movl	$1, %ecx
	cmovel	%eax, %ecx
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	cmpl	$0, 4(%rdi)
	jle	LBB0_16
## %bb.1:
	movq	%rdi, %rbx
	xorl	%eax, %eax
	cmpl	$9, (%rdi)
	setge	%al
	leal	8(,%rax,8), %eax
	xorl	%ecx, %ecx
	movq	_block@GOTPCREL(%rip), %r13
	movl	%eax, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%rcx
	movslq	4(%rbx), %rax
	cmpq	%rax, %rcx
	jge	LBB0_16
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
                                        ##       Child Loop BB0_11 Depth 3
	movq	112(%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax,%rcx,8), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %rax
	movl	(%rax,%rcx,4), %r12d
	movl	16(%rbx), %eax
	movq	24(%rbx), %rsi
	cltd
	idivl	(%rsi,%rcx,4)
	movl	%eax, %edi
	movl	32(%rbx), %eax
	movq	40(%rbx), %rsi
	cltd
	idivl	(%rsi,%rcx,4)
	movl	%eax, %esi
	movl	48(%rbx), %eax
	movl	-68(%rbp), %r8d                 ## 4-byte Reload
	imull	%r8d, %edi
	addl	%edi, %eax
	decl	%eax
	cltd
	idivl	%edi
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	52(%rbx), %eax
	imull	%r8d, %esi
	addl	%esi, %eax
	decl	%eax
	cltd
	idivl	%esi
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	56(%rbx), %rax
	cmpl	$-1, (%rax,%rcx,4)
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	72(%rbx), %rdi
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_av_log
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 104(%rbx)
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 96(%rbx)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r12d, %eax
	sarl	%eax
	cltq
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rax,4), %rdx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_15
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	(,%r12,8), %eax
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	xorl	%esi, %esi
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_9 Depth=2
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	incl	%esi
	cmpl	-44(%rbp), %esi                 ## 4-byte Folded Reload
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	je	LBB0_15
LBB0_9:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_11 Depth 3
	movq	64(%rbx), %rax
	movq	72(%rbx), %rdx
	movl	(%rdx), %r15d
	movslq	(%rax,%rcx,4), %rax
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movslq	%esi, %r14
	imulq	%rax, %r14
	movq	88(%rbx), %rax
	shlq	$2, %r14
	addq	(%rax,%rcx,8), %r14
	movq	(%r13), %rax
	movl	(%rax), %edi
	callq	_int16_t
	movq	%r14, 512(%rax)
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	movl	-72(%rbp), %eax                 ## 4-byte Reload
	imull	-52(%rbp), %eax                 ## 4-byte Folded Reload
	movl	%r15d, %ecx
	sarl	%cl, %eax
	cltq
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %r15
	movq	(%r13), %rax
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=3
	movq	72(%rbx), %rax
	movzbl	(%rax), %ecx
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	shrq	%cl, %rax
	leaq	(%r15,%rax,4), %r15
	movq	(%r13), %rax
	addq	$4, %rax
	movq	%rax, (%r13)
	decl	%r14d
	je	LBB0_14
LBB0_11:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_9 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	*80(%rbx)
	testb	$7, (%rbx)
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=3
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	callq	_shift_output
	jmp	LBB0_13
LBB0_16:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"component %d is incomplete\n"

	.comm	_block,8,3                      ## @block
	.no_dead_strip	_mjpeg_idct_scan_progressive_ac
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mjpeg_idct_scan_progressive_ac
_mjpeg_idct_scan_progressive_ac:        ; @mjpeg_idct_scan_progressive_ac
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	ldr	x8, [x0, #120]
	cmp	x8, #0
	mov	w8, #8
	csinc	w9, w8, wzr, eq
	str	w9, [sp]                        ; 4-byte Folded Spill
	ldr	w9, [x0, #4]
	cmp	w9, #1
	b.lt	LBB0_16
; %bb.1:
	mov	x19, x0
	mov	x20, #0
	ldr	w9, [x0]
	mov	w10, #16
	cmp	w9, #8
	csel	w25, w10, w8, gt
Lloh0:
	adrp	x26, _block@GOTPAGE
Lloh1:
	ldr	x26, [x26, _block@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x20, #1
	ldrsw	x8, [x19, #4]
	cmp	x20, x8
	b.ge	LBB0_16
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
                                        ;       Child Loop BB0_14 Depth 3
	ldr	x8, [x19, #112]
	ldr	x8, [x8]
	ldr	x8, [x8, x20, lsl #3]
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	ldr	x8, [x19, #8]
	lsl	x9, x20, #2
	ldr	w22, [x8, x9]
	ldr	w24, [x19, #16]
	ldr	x8, [x19, #24]
	ldr	w28, [x8, x9]
	ldr	w23, [x19, #32]
	ldr	x8, [x19, #40]
	ldr	w21, [x8, x9]
	ldp	w14, w27, [x19, #48]
	ldr	x8, [x19, #56]
	ldr	w8, [x8, x9]
	cmn	w8, #1
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x19, #72]
Lloh2:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, x20
	str	w14, [sp, #4]                   ; 4-byte Folded Spill
	bl	_av_log
	ldr	w14, [sp, #4]                   ; 4-byte Folded Reload
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	sdiv	w8, w23, w21
	ldr	w9, [sp]                        ; 4-byte Folded Reload
	mul	w8, w8, w9
	add	w9, w8, w27
	sub	w9, w9, #1
	ldr	x10, [x19, #104]
	cbz	x10, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x10, [x19, #96]
	cbz	x10, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	asr	w10, w22, #1
	ldr	x11, [sp, #8]                   ; 8-byte Folded Reload
	add	x11, x11, w10, sxtw #2
	str	x11, [sp, #8]                   ; 8-byte Folded Spill
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	sdiv	w27, w9, w8
	cmp	w27, #1
	b.lt	LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w21, #0
	sdiv	w8, w24, w28
	ldr	w9, [sp]                        ; 4-byte Folded Reload
	mul	w8, w8, w9
	add	w9, w8, w14
	sub	w9, w9, #1
	lsl	w10, w22, #3
	str	w10, [sp, #4]                   ; 4-byte Folded Spill
	sdiv	w24, w9, w8
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=2
	add	w21, w21, #1
	cmp	w21, w27
	b.eq	LBB0_2
LBB0_11:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_14 Depth 3
	ldp	x9, x8, [x19, #64]
	ldr	w23, [x8]
	ldr	w8, [x9, x20, lsl #2]
	mul	w8, w8, w21
	ldr	x9, [x19, #88]
	ldr	x9, [x9, x20, lsl #3]
	add	x28, x9, w8, sxtw #2
	ldr	x8, [x26]
	ldr	w0, [x8]
	bl	_int16_t
	str	x28, [x0, #512]
	cmp	w24, #1
	b.lt	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	ldr	w8, [sp, #4]                    ; 4-byte Folded Reload
	mul	w8, w8, w21
	asr	w8, w8, w23
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	add	x23, x9, w8, sxtw #2
	ldr	x8, [x26]
	mov	x28, x24
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=3
	ldr	x8, [x19, #72]
	ldr	w8, [x8]
	lsr	x8, x25, x8
	add	x23, x23, x8, lsl #2
	ldr	x8, [x26]
	add	x8, x8, #4
	str	x8, [x26]
	subs	w28, w28, #1
	b.eq	LBB0_10
LBB0_14:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_11 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x9, [x19, #80]
	ldr	w2, [x8]
	mov	x0, x23
	mov	x1, x22
	blr	x9
	ldrb	w8, [x19]
	tst	w8, #0x7
	b.eq	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=3
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	bl	_shift_output
	b	LBB0_13
LBB0_16:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"component %d is incomplete\n"

	.comm	_block,8,3                      ; @block
	.no_dead_strip	_mjpeg_idct_scan_progressive_ac
.subsections_via_symbols
