	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hcom_decode
_hcom_decode:                           ## @hcom_decode
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movl	(%rcx), %eax
	movq	_INT16_MAX@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jle	LBB0_2
## %bb.1:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %r12
	jmp	LBB0_8
LBB0_2:
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	(%rdi), %rbx
	shll	$3, %eax
	movl	%eax, (%rsi)
	xorl	%edx, %edx
	callq	_ff_get_buffer
	testl	%eax, %eax
	js	LBB0_9
## %bb.3:
	movl	(%r12), %edx
	movl	4(%r12), %esi
	leaq	-44(%rbp), %rdi
	callq	_init_get_bits8
	testl	%eax, %eax
	js	LBB0_9
## %bb.4:
	leaq	-44(%rbp), %rdi
	callq	_get_bits_left
	testq	%rax, %rax
	jle	LBB0_7
## %bb.5:
	leaq	-44(%rbp), %r13
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_get_bits1
	movq	(%rbx), %rcx
	movq	16(%rbx), %rdx
	shlq	$4, %rcx
	leaq	(%rdx,%rcx), %rsi
	testq	%rax, %rax
	leaq	8(%rdx,%rcx), %rax
	cmovneq	%rsi, %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movq	%r13, %rdi
	callq	_get_bits_left
	testq	%rax, %rax
	jg	LBB0_6
LBB0_7:
	movl	$0, (%r15)
	movl	$1, (%r14)
LBB0_8:
	movl	(%r12), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INT16_MAX,4,2                  ## @INT16_MAX
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_hcom_decode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hcom_decode
_hcom_decode:                           ; @hcom_decode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	w8, [x3]
Lloh0:
	adrp	x9, _INT16_MAX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _INT16_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.le	LBB0_2
; %bb.1:
Lloh3:
	adrp	x19, _AVERROR_INVALIDDATA@GOTPAGE
Lloh4:
	ldr	x19, [x19, _AVERROR_INVALIDDATA@GOTPAGEOFF]
	b	LBB0_7
LBB0_2:
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	ldr	x22, [x0]
	lsl	w8, w8, #3
	str	w8, [x1]
	mov	w2, #0
	bl	_ff_get_buffer
	tbnz	w0, #31, LBB0_8
; %bb.3:
	ldp	w2, w1, [x19]
	add	x0, sp, #12
	bl	_init_get_bits8
	tbnz	w0, #31, LBB0_8
; %bb.4:
	add	x0, sp, #12
	bl	_get_bits_left
	cmp	x0, #1
	b.lt	LBB0_6
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #12
	bl	_get_bits1
	ldr	x8, [x22, #16]
	ldr	x9, [x22]
	add	x8, x8, x9, lsl #4
	add	x9, x8, #8
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	x8, [x8]
	str	x8, [x22]
	add	x0, sp, #12
	bl	_get_bits_left
	cmp	x0, #0
	b.gt	LBB0_5
LBB0_6:
	str	wzr, [x21]
	mov	w8, #1
	str	w8, [x20]
LBB0_7:
	ldr	w0, [x19]
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_INT16_MAX,4,2                  ; @INT16_MAX
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_hcom_decode
.subsections_via_symbols
