	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function record_block
_record_block:                          ## @record_block
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	(%rdi), %rax
	movq	24(%rdi), %r14
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, %r15d
	andl	$1, %r15d
	incl	%r15d
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	cmpl	$4, %edx
	cmovll	%ebx, %r15d
	setge	%r13b
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movl	(%rsi), %edx
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	subl	(%rax,%r15,4), %edx
	movq	%r14, %rdi
	movl	%r13d, %esi
	xorl	%ecx, %ecx
	callq	_ff_mjpeg_encode_coef
	movq	(%r12), %rax
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax,%r15,4)
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	8(%r12), %rax
	movslq	-48(%rbp), %rcx                 ## 4-byte Folded Reload
	movl	(%rax,%rcx,4), %eax
	orl	$2, %r13d
	testl	%eax, %eax
	jle	LBB0_11
## %bb.1:
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	incq	%rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	$1, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	callq	_ff_mjpeg_encode_coef
	xorl	%ebx, %ebx
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	cmpq	-48(%rbp), %r12                 ## 8-byte Folded Reload
	je	LBB0_7
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	movslq	(%rax,%r12,4), %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx,%rax,4), %r15d
	testl	%r15d, %r15d
	je	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$16, %ebx
	jl	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	$240, %edx
	callq	_ff_mjpeg_encode_code
	leal	-16(%rbx), %eax
	cmpl	$31, %ebx
	movl	%eax, %ebx
	ja	LBB0_4
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	jmp	LBB0_6
LBB0_7:
	cmpl	$63, -64(%rbp)                  ## 4-byte Folded Reload
	jl	LBB0_11
## %bb.8:
	testl	%ebx, %ebx
	jne	LBB0_11
## %bb.9:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	%r14, %rdi
	movl	%r13d, %esi
	xorl	%edx, %edx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ff_mjpeg_encode_code           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_record_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function record_block
_record_block:                          ; @record_block
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x22, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x19, [x0, #24]
	cmp	w2, #3
	cset	w23, gt
	and	w8, w2, #0x1
	cmp	w2, #4
	csinc	w8, wzr, w8, lt
	ldr	w24, [x1]
	ldr	x9, [x0]
	lsl	x25, x8, #2
	ldr	w8, [x9, x25]
	sub	w2, w24, w8
	mov	x0, x19
	mov	x1, x23
	mov	w3, #0
	bl	_ff_mjpeg_encode_coef
	ldp	x8, x9, [x21]
	str	w24, [x8, x25]
	ldr	w25, [x9, w22, sxtw #2]
	orr	w22, w23, #0x2
	cmp	w25, #1
	b.lt	LBB0_11
; %bb.1:
	mov	w23, #0
	add	x26, x25, #1
	mov	w27, #1
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	x1, x22
	mov	x2, x24
	mov	x3, x23
	bl	_ff_mjpeg_encode_coef
	mov	w23, #0
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x27, x27, #1
	cmp	x27, x26
	b.eq	LBB0_8
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	x8, [x21, #16]
	ldrsw	x8, [x8, x27, lsl #2]
	ldr	w24, [x20, x8, lsl #2]
	cbz	w24, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w23, #16
	b.lt	LBB0_2
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x19
	mov	x1, x22
	mov	w2, #240
	bl	_ff_mjpeg_encode_code
	sub	w8, w23, #16
	cmp	w23, #31
	mov	x23, x8
	b.hi	LBB0_6
	b	LBB0_2
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w23, w23, #1
	b	LBB0_3
LBB0_8:
	cmp	w25, #63
	b.lt	LBB0_11
; %bb.9:
	cbnz	w23, LBB0_11
; %bb.10:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_11:
	mov	x0, x19
	mov	x1, x22
	mov	w2, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_ff_mjpeg_encode_code
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_record_block
.subsections_via_symbols
