	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function needs_termination
_needs_termination:                     ## @needs_termination
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_JPEG2000_CBLK_BYPASS@GOTPCREL(%rip), %rax
	testl	%edi, (%rax)
	je	LBB0_1
## %bb.2:
	movslq	%esi, %rax
	imulq	$1431655766, %rax, %rcx         ## imm = 0x55555556
	movq	%rcx, %rdx
	shrq	$63, %rdx
	shrq	$32, %rcx
	addl	%edx, %ecx
	leal	(%rcx,%rcx,2), %edx
	movl	%eax, %ecx
	subl	%edx, %ecx
	cmpl	$9, %eax
	jl	LBB0_4
## %bb.3:
	movl	$2, %eax
	testl	%ecx, %ecx
	jne	LBB0_4
LBB0_9:
	popq	%rbp
	retq
LBB0_1:
	movq	_JPEG2000_CBLK_TERMALL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	testl	%edi, (%rcx)
	setne	%al
	popq	%rbp
	retq
LBB0_4:
	cmpl	$9, %esi
	jl	LBB0_6
## %bb.5:
	movl	$1, %eax
	cmpl	$2, %ecx
	je	LBB0_9
LBB0_6:
	xorl	%eax, %eax
	cmpl	$9, %esi
	setge	%cl
	movq	_JPEG2000_CBLK_TERMALL@GOTPCREL(%rip), %rdx
	testl	%edi, (%rdx)
	je	LBB0_8
## %bb.7:
	movb	%cl, %al
	incl	%eax
	popq	%rbp
	retq
LBB0_8:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_JPEG2000_CBLK_BYPASS,4,2       ## @JPEG2000_CBLK_BYPASS
	.comm	_JPEG2000_CBLK_TERMALL,4,2      ## @JPEG2000_CBLK_TERMALL
	.no_dead_strip	_needs_termination
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function needs_termination
_needs_termination:                     ; @needs_termination
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _JPEG2000_CBLK_BYPASS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _JPEG2000_CBLK_BYPASS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.1:
	mov	w8, #21846
	movk	w8, #21845, lsl #16
	smull	x8, w1, w8
	lsr	x9, x8, #63
	lsr	x8, x8, #32
	add	w8, w8, w9
	add	w8, w8, w8, lsl #1
	sub	w9, w1, w8
	cmp	w1, #9
	b.lt	LBB0_5
; %bb.2:
	cbnz	w9, LBB0_5
; %bb.3:
	mov	w0, #2
	ret
LBB0_4:
Lloh3:
	adrp	x8, _JPEG2000_CBLK_TERMALL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _JPEG2000_CBLK_TERMALL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w0, ne
	ret
LBB0_5:
	mov	w8, #1
	cmp	w1, #9
	b.lt	LBB0_8
; %bb.6:
	cmp	w9, #2
	b.ne	LBB0_8
LBB0_7:
	mov	x0, x8
	ret
LBB0_8:
Lloh6:
	adrp	x9, _JPEG2000_CBLK_TERMALL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _JPEG2000_CBLK_TERMALL@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w1, #8
	cinc	w8, w8, gt
	and	w9, w9, w0
	cbnz	w9, LBB0_7
; %bb.9:
	mov	w8, #0
	mov	x0, x8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_JPEG2000_CBLK_BYPASS,4,2       ; @JPEG2000_CBLK_BYPASS
	.comm	_JPEG2000_CBLK_TERMALL,4,2      ; @JPEG2000_CBLK_TERMALL
	.no_dead_strip	_needs_termination
.subsections_via_symbols
