	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_slice_thread
_decode_slice_thread:                   ## @decode_slice_thread
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edx, %r14d
	movq	(%rdi), %rbx
	movq	24(%rbx), %rcx
	movslq	%edx, %rax
	movq	(%rcx,%rax,8), %rsi
	movq	_HQX_HEADER_SIZE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rsi
	jl	LBB0_3
## %bb.1:
	movq	8(%rcx,%rax,8), %rcx
	movq	%rcx, %rdx
	subq	%rsi, %rdx
	jle	LBB0_3
## %bb.2:
	cmpq	(%rbx), %rcx
	jle	LBB0_4
LBB0_3:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%rbx), %rcx
	leaq	L_.str(%rip), %rdx
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	shlq	$2, %rax
	addq	16(%rbx), %rax
	addq	8(%rbx), %rsi
	movq	%rax, %rdi
	callq	_init_get_bits8
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_decode_slice                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HQX_HEADER_SIZE,8,3            ## @HQX_HEADER_SIZE
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid slice size %d.\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_decode_slice_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_slice_thread
_decode_slice_thread:                   ; @decode_slice_thread
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x19, [x0]
	ldr	x10, [x19, #24]
	ldr	x8, [x10, w2, sxtw #3]
Lloh0:
	adrp	x9, _HQX_HEADER_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HQX_HEADER_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_3
; %bb.1:
	mov	x20, x2
	sxtw	x9, w20
	add	x10, x10, x9, lsl #3
	ldr	x10, [x10, #8]
	subs	x2, x10, x8
	b.le	LBB0_3
; %bb.2:
	ldr	x11, [x19]
	cmp	x10, x11
	b.le	LBB0_5
LBB0_3:
Lloh3:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	x3, [x19]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
Lloh8:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldp	x11, x10, [x19, #8]
	add	x0, x10, x9, lsl #2
	add	x1, x11, x8
	bl	_init_get_bits8
	tbnz	w0, #31, LBB0_4
; %bb.6:
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_decode_slice
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_HQX_HEADER_SIZE,8,3            ; @HQX_HEADER_SIZE
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid slice size %d.\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_decode_slice_thread
.subsections_via_symbols
