	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lzh_read_pt_bitlen
_lzh_read_pt_bitlen:                    ## @lzh_read_pt_bitlen
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r13d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	cmpl	%edx, %esi
	jge	LBB0_10
## %bb.1:
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	16(%rax), %r12
	movslq	%r13d, %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_lzh_br_consume
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rax
	movl	%ebx, (%rax,%r13,4)
	incq	%r13
	movq	8(%rcx), %rax
	movslq	%ebx, %rcx
	incl	(%rax,%rcx,4)
	cmpl	%r13d, -44(%rbp)                ## 4-byte Folded Reload
	je	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	$3, %edx
	callq	_lzh_br_read_ahead
	testl	%eax, %eax
	je	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$3, %r14d
	movq	%r12, %rdi
	movl	$3, %esi
	callq	_lzh_br_bits
	movl	%eax, %ebx
	cmpl	$7, %eax
	jne	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	$13, %edx
	callq	_lzh_br_read_ahead
	testl	%eax, %eax
	je	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_bitlen_tbl@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%r12, %rdi
	movl	$13, %esi
	callq	_lzh_br_bits
                                        ## kill: def $eax killed $eax def $rax
	andl	$1023, %eax                     ## imm = 0x3FF
	movl	(%rbx,%rax,4), %ebx
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	-3(%rbx), %r14d
	jmp	LBB0_8
LBB0_9:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %r13d
	jmp	LBB0_10
LBB0_6:
	movl	$-1, %r13d
LBB0_10:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_bitlen_tbl,8,3                 ## @bitlen_tbl
	.no_dead_strip	_lzh_read_pt_bitlen
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lzh_read_pt_bitlen
_lzh_read_pt_bitlen:                    ; @lzh_read_pt_bitlen
	.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	x19, x1
	cmp	w1, w2
	b.ge	LBB0_11
; %bb.1:
	mov	x20, x2
	mov	x21, x0
	ldr	x25, [x0]
	add	x22, x25, #16
	sbfiz	x26, x19, #2, #32
Lloh0:
	adrp	x27, _bitlen_tbl@GOTPAGE
Lloh1:
	ldr	x27, [x27, _bitlen_tbl@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x23, x0
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	mov	x1, x24
	bl	_lzh_br_consume
	ldp	x8, x9, [x25]
	str	w23, [x8, x26]
	sbfiz	x8, x23, #2, #32
	ldr	w10, [x9, x8]
	add	w10, w10, #1
	str	w10, [x9, x8]
	add	w19, w19, #1
	add	x26, x26, #4
	cmp	w20, w19
	b.eq	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x22
	mov	w2, #3
	bl	_lzh_br_read_ahead
	cbz	w0, LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w24, #3
	mov	x0, x22
	mov	w1, #3
	bl	_lzh_br_bits
	cmp	w0, #7
	b.ne	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	mov	x1, x22
	mov	w2, #13
	bl	_lzh_br_read_ahead
	cbz	w0, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x23, [x27]
	mov	x0, x22
	mov	w1, #13
	bl	_lzh_br_bits
	and	w8, w0, #0x3ff
	ldr	w23, [x23, w8, uxtw #2]
	cbz	w23, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w24, w23, #3
	b	LBB0_3
LBB0_9:
	mov	x19, x20
	b	LBB0_11
LBB0_10:
	mov	w19, #-1
LBB0_11:
	mov	x0, x19
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_bitlen_tbl,8,3                 ; @bitlen_tbl
	.no_dead_strip	_lzh_read_pt_bitlen
.subsections_via_symbols
