	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_mjpeg_decode_dqt            ## -- Begin function ff_mjpeg_decode_dqt
	.p2align	4, 0x90
_ff_mjpeg_decode_dqt:                   ## @ff_mjpeg_decode_dqt
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	leaq	20(%rdi), %r14
	movq	%r14, %rdi
	movl	$16, %esi
	callq	_get_bits
	movl	%eax, %ebx
	leal	-2(%rbx), %r13d
	leal	-16(,%rbx,8), %r12d
	movq	%r14, %rdi
	callq	_get_bits_left
	cmpl	%eax, %r12d
	jle	LBB0_1
## %bb.15:
	movl	16(%r15), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_6
LBB0_1:
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	xorl	%r13d, %r13d
	cmpl	$67, %ebx
	jl	LBB0_14
## %bb.2:
	leaq	L_.str.2(%rip), %r12
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_get_bits
	cmpl	$2, %eax
	jge	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %ebx
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_get_bits
	cmpl	$3, %eax
	jg	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %r13d
	movl	16(%r15), %edi
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdx
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_av_log
	xorl	%eax, %eax
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	testl	%ebx, %ebx
	setne	%al
	leal	8(,%rax,8), %ebx
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	movslq	%r13d, %r13
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_get_bits
	movq	(%r15), %rcx
	movq	(%rcx,%r13,8), %rcx
	movl	%eax, (%rcx,%r12,4)
	testl	%eax, %eax
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_11 Depth=2
	incq	%r12
	cmpq	$64, %r12
	jne	LBB0_11
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	4(%rcx), %edi
	movl	32(%rcx), %esi
	callq	_FFMAX
	sarl	%eax
	movq	8(%r15), %rcx
	movl	%eax, (%rcx,%r13,4)
	movl	16(%r15), %edi
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	xorl	%r13d, %r13d
	leaq	L_.str.4(%rip), %rdx
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_av_log
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	shll	$6, %ecx
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	subl	%ecx, %eax
	addl	$-65, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmpl	$64, %eax
	leaq	L_.str.2(%rip), %r12
	jg	LBB0_3
	jmp	LBB0_14
LBB0_12:
	movl	16(%r15), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
LBB0_5:
	xorl	%eax, %eax
	callq	_av_log
LBB0_6:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_14:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	16(%r15), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_5
LBB0_8:
	movl	$-1, %r13d
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dqt: len %d is too large\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.1:                               ## @.str.1
	.asciz	"dqt: invalid precision\n"

	.comm	_AV_LOG_DEBUG,4,2               ## @AV_LOG_DEBUG
L_.str.2:                               ## @.str.2
	.asciz	"index=%d\n"

L_.str.3:                               ## @.str.3
	.asciz	"dqt: 0 quant value\n"

L_.str.4:                               ## @.str.4
	.asciz	"qscale[%d]: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_mjpeg_decode_dqt            ; -- Begin function ff_mjpeg_decode_dqt
	.p2align	2
_ff_mjpeg_decode_dqt:                   ; @ff_mjpeg_decode_dqt
	.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
	mov	x19, x0
	add	x20, x0, #20
	mov	x0, x20
	mov	w1, #16
	bl	_get_bits
	mov	x21, x0
	sub	w26, w0, #2
	mov	x0, x20
	bl	_get_bits_left
	cmp	w0, w26, lsl #3
	b.ge	LBB0_2
; %bb.1:
	ldr	w0, [x19, #16]
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	str	x26, [sp]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_12
LBB0_2:
	cmp	w21, #67
	b.lt	LBB0_10
; %bb.3:
Lloh5:
	adrp	x27, _AV_LOG_DEBUG@GOTPAGE
Lloh6:
	ldr	x27, [x27, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh7:
	adrp	x21, l_.str.2@PAGE
Lloh8:
	add	x21, x21, l_.str.2@PAGEOFF
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	mov	x0, x20
	mov	w1, #4
	bl	_get_bits
	cmp	w0, #2
	b.ge	LBB0_14
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x23, x0
	mov	x0, x20
	mov	w1, #4
	bl	_get_bits
	cmp	w0, #3
	b.gt	LBB0_15
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x24, x0
	ldr	w0, [x19, #16]
	ldr	w1, [x27]
	mov	x28, x24
	str	x28, [sp]
	mov	x22, x21
	mov	x2, x21
	bl	_av_log
	mov	x21, #0
	cmp	w23, #0
	mov	w8, #16
	mov	w9, #8
	csel	w25, w9, w8, eq
	sxtw	x28, w28
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x20
	mov	x1, x25
	bl	_get_bits
	ldr	x8, [x19]
	ldr	x8, [x8, x28, lsl #3]
	str	w0, [x8, x21]
	cbz	w0, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	add	x21, x21, #4
	cmp	x21, #256
	b.ne	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x8, #4]
	ldr	w1, [x8, #32]
	bl	_FFMAX
	asr	w8, w0, #1
	ldr	x9, [x19, #8]
	str	w8, [x9, x28, lsl #2]
	ldr	w0, [x19, #16]
	ldr	w1, [x27]
	stp	x24, x8, [sp]
Lloh9:
	adrp	x2, l_.str.4@PAGE
Lloh10:
	add	x2, x2, l_.str.4@PAGEOFF
	bl	_av_log
	mov	w0, #0
	sub	w8, w26, w23, lsl #6
	sub	w26, w8, #65
	cmp	w26, #64
	mov	x21, x22
	b.gt	LBB0_4
	b	LBB0_13
LBB0_10:
	mov	w0, #0
	b	LBB0_13
LBB0_11:
	ldr	w0, [x19, #16]
Lloh11:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x2, l_.str.3@PAGE
Lloh15:
	add	x2, x2, l_.str.3@PAGEOFF
LBB0_12:
	bl	_av_log
Lloh16:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
LBB0_13:
	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
LBB0_14:
	ldr	w0, [x19, #16]
Lloh19:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x2, l_.str.1@PAGE
Lloh23:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_15:
	mov	w0, #-1
	b	LBB0_13
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dqt: len %d is too large\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.1:                               ; @.str.1
	.asciz	"dqt: invalid precision\n"

	.comm	_AV_LOG_DEBUG,4,2               ; @AV_LOG_DEBUG
l_.str.2:                               ; @.str.2
	.asciz	"index=%d\n"

l_.str.3:                               ; @.str.3
	.asciz	"dqt: 0 quant value\n"

l_.str.4:                               ; @.str.4
	.asciz	"qscale[%d]: %d\n"

.subsections_via_symbols
