	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_huffyuv_generate_bits_table ## -- Begin function ff_huffyuv_generate_bits_table
	.p2align	4, 0x90
_ff_huffyuv_generate_bits_table:        ## @ff_huffyuv_generate_bits_table
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%edx, %r8d
	movl	%r8d, %r9d
	andl	$-2, %r9d
	movl	$32, %r10d
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	testl	%edx, %edx
	jle	LBB0_11
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%ecx, %ecx
	cmpl	$1, %edx
	jne	LBB0_3
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	testb	$1, %r8b
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	%r10d, (%rsi,%rcx,4)
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, (%rdi,%rcx,4)
	incl	%eax
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	testb	$1, %al
	jne	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_1 Depth=1
	sarl	%eax
	leal	-1(%r10), %ecx
	cmpl	$1, %r10d
	movl	%ecx, %r10d
	ja	LBB0_1
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=2
	addq	$2, %rcx
	cmpq	%rcx, %r9
	je	LBB0_8
LBB0_3:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	%r10d, (%rsi,%rcx,4)
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	movl	%eax, (%rdi,%rcx,4)
	incl	%eax
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=2
	cmpl	%r10d, 4(%rsi,%rcx,4)
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=2
	movl	%eax, 4(%rdi,%rcx,4)
	incl	%eax
	jmp	LBB0_7
LBB0_12:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%edi, %edi
	callq	_av_log
	movl	$-1, %eax
	popq	%rbp
	retq
LBB0_14:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error generating huffman table\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_huffyuv_generate_bits_table ; -- Begin function ff_huffyuv_generate_bits_table
	.p2align	2
_ff_huffyuv_generate_bits_table:        ; @ff_huffyuv_generate_bits_table
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	w9, #0
	mov	w8, w2
	mov	w10, #32
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	cmp	w2, #1
	b.lt	LBB0_6
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x11, x8
	mov	x12, x1
	mov	x13, x0
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=2
	add	x13, x13, #4
	add	x12, x12, #4
	subs	x11, x11, #1
	b.eq	LBB0_6
LBB0_4:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w14, [x12]
	cmp	w14, w10
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	str	w9, [x13]
	add	w9, w9, #1
	b	LBB0_3
LBB0_6:                                 ;   in Loop: Header=BB0_1 Depth=1
	tbnz	w9, #0, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_1 Depth=1
	asr	w9, w9, #1
	subs	w10, w10, #1
	b.hi	LBB0_1
; %bb.8:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_9:
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, #0
	bl	_av_log
	mov	w0, #-1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error generating huffman table\n"

.subsections_via_symbols
