	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function getcode
_getcode:                               ## @getcode
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_gbuf@GOTPCREL(%rip), %r14
	movq	(%r14), %r12
	movq	_clear_flg@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	testq	%rax, %rax
	jg	LBB0_4
## %bb.1:
	movq	_roffset@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	_size@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r8d
	jge	LBB0_4
## %bb.2:
	movq	_free_ent@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_maxcode@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jle	LBB0_3
LBB0_4:
	movq	_free_ent@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_maxcode@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rcx
	jle	LBB0_8
## %bb.5:
	movq	_n_bits@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	incl	%edi
	movl	%edi, (%rcx)
	movq	_maxbits@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %edi
	jne	LBB0_7
## %bb.6:
	movq	_maxmaxcode@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rbx)
LBB0_8:
	testq	%rax, %rax
	jle	LBB0_10
LBB0_9:
	movq	_INIT_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_n_bits@GOTPCREL(%rip), %rax
	movl	%edi, (%rax)
	callq	_MAXCODE
	movq	%rax, (%rbx)
	movq	$0, (%r15)
LBB0_10:
	movq	(%r14), %rdi
	movq	_n_bits@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	_fp@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$1, %esi
	callq	_fread
                                        ## kill: def $eax killed $eax def $rax
	movq	_size@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	testl	%eax, %eax
	jle	LBB0_11
## %bb.12:
	movq	_roffset@GOTPCREL(%rip), %rdx
	movl	$0, (%rdx)
	movl	(%rbx), %edx
	leal	1(,%rax,8), %eax
	subl	%edx, %eax
	movl	%eax, (%rcx)
	xorl	%r8d, %r8d
LBB0_13:
	movl	%r8d, %eax
	sarl	$3, %eax
	movslq	%eax, %rcx
	movl	%r8d, %eax
	andl	$7, %eax
	leaq	(%r12,%rcx,4), %r9
	addq	$4, %r9
	movl	(%r12,%rcx,4), %edi
	movl	%eax, %ecx
	sarl	%cl, %edi
	movl	$8, %ecx
	subl	%eax, %ecx
	movl	%edx, %esi
	subl	%ecx, %esi
	cmpl	$8, %esi
	jl	LBB0_15
## %bb.14:
	movl	(%r9), %ebx
	addq	$4, %r9
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %ebx
	orl	%ebx, %edi
	movl	$16, %ecx
	subl	%eax, %ecx
	addl	$-8, %esi
LBB0_15:
	movq	_rmask@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%esi, %rsi
	movl	(%rax,%rsi,4), %eax
	andl	(%r9), %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	orl	%edi, %eax
	addl	%r8d, %edx
	movq	_roffset@GOTPCREL(%rip), %rcx
	movl	%edx, (%rcx)
	jmp	LBB0_16
LBB0_11:
	movl	$-1, %eax
LBB0_16:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	_MAXCODE
	movq	%rax, (%rbx)
	movq	(%r15), %rax
	testq	%rax, %rax
	jg	LBB0_9
	jmp	LBB0_10
LBB0_3:
	movq	_n_bits@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_gbuf,8,3                       ## @gbuf
	.comm	_clear_flg,8,3                  ## @clear_flg
	.comm	_roffset,4,2                    ## @roffset
	.comm	_size,4,2                       ## @size
	.comm	_free_ent,8,3                   ## @free_ent
	.comm	_maxcode,8,3                    ## @maxcode
	.comm	_n_bits,4,2                     ## @n_bits
	.comm	_maxbits,4,2                    ## @maxbits
	.comm	_maxmaxcode,8,3                 ## @maxmaxcode
	.comm	_INIT_BITS,4,2                  ## @INIT_BITS
	.comm	_fp,4,2                         ## @fp
	.comm	_rmask,8,3                      ## @rmask
	.no_dead_strip	_getcode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function getcode
_getcode:                               ; @getcode
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x22, _gbuf@GOTPAGE
Lloh1:
	ldr	x22, [x22, _gbuf@GOTPAGEOFF]
	ldr	x20, [x22]
Lloh2:
	adrp	x23, _clear_flg@GOTPAGE
Lloh3:
	ldr	x23, [x23, _clear_flg@GOTPAGEOFF]
Lloh4:
	adrp	x19, _roffset@GOTPAGE
Lloh5:
	ldr	x19, [x19, _roffset@GOTPAGEOFF]
Lloh6:
	adrp	x10, _free_ent@GOTPAGE
Lloh7:
	ldr	x10, [x10, _free_ent@GOTPAGEOFF]
	ldr	x9, [x23]
Lloh8:
	adrp	x24, _maxcode@GOTPAGE
Lloh9:
	ldr	x24, [x24, _maxcode@GOTPAGEOFF]
Lloh10:
	adrp	x21, _size@GOTPAGE
Lloh11:
	ldr	x21, [x21, _size@GOTPAGEOFF]
	cmp	x9, #0
	b.gt	LBB0_3
; %bb.1:
	ldr	w8, [x19]
	ldr	w11, [x21]
	cmp	w8, w11
	b.ge	LBB0_3
; %bb.2:
	ldr	x11, [x10]
	ldr	x12, [x24]
	cmp	x11, x12
	b.le	LBB0_16
LBB0_3:
	ldr	x8, [x10]
	ldr	x10, [x24]
	cmp	x8, x10
	b.le	LBB0_6
; %bb.4:
Lloh12:
	adrp	x8, _n_bits@GOTPAGE
Lloh13:
	ldr	x8, [x8, _n_bits@GOTPAGEOFF]
	ldr	w10, [x8]
	add	w0, w10, #1
	str	w0, [x8]
Lloh14:
	adrp	x8, _maxbits@GOTPAGE
Lloh15:
	ldr	x8, [x8, _maxbits@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_15
; %bb.5:
Lloh17:
	adrp	x8, _maxmaxcode@GOTPAGE
Lloh18:
	ldr	x8, [x8, _maxmaxcode@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	str	x8, [x24]
LBB0_6:
	cmp	x9, #1
	b.lt	LBB0_8
LBB0_7:
Lloh20:
	adrp	x8, _INIT_BITS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _INIT_BITS@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x8, _n_bits@GOTPAGE
Lloh24:
	ldr	x8, [x8, _n_bits@GOTPAGEOFF]
Lloh25:
	str	w0, [x8]
	bl	_MAXCODE
	str	x0, [x24]
	str	xzr, [x23]
LBB0_8:
	ldr	x0, [x22]
Lloh26:
	adrp	x22, _n_bits@GOTPAGE
Lloh27:
	ldr	x22, [x22, _n_bits@GOTPAGEOFF]
	ldr	w2, [x22]
Lloh28:
	adrp	x8, _fp@GOTPAGE
Lloh29:
	ldr	x8, [x8, _fp@GOTPAGEOFF]
Lloh30:
	ldr	w3, [x8]
	mov	w23, #1
	mov	w1, #1
	bl	_fread
	str	w0, [x21]
	cmp	w0, #1
	b.lt	LBB0_13
; %bb.9:
	mov	w8, #0
	str	wzr, [x19]
	ldr	w9, [x22]
	bfi	w23, w0, #3, #29
	sub	w10, w23, w9
	str	w10, [x21]
LBB0_10:
	asr	w10, w8, #3
	add	x10, x20, w10, sxtw #2
	ldr	w11, [x10], #4
	and	w15, w8, #0x7
	asr	w11, w11, w15
	mov	w12, #8
	sub	w12, w12, w15
	sub	w13, w9, w12
	subs	w14, w13, #8
	b.lt	LBB0_12
; %bb.11:
	ldr	w13, [x10], #4
	lsl	w12, w13, w12
	orr	w11, w12, w11
	mov	w12, #16
	sub	w12, w12, w15
	mov	x13, x14
LBB0_12:
Lloh31:
	adrp	x14, _rmask@GOTPAGE
Lloh32:
	ldr	x14, [x14, _rmask@GOTPAGEOFF]
Lloh33:
	ldr	x14, [x14]
	ldr	w13, [x14, w13, sxtw #2]
	ldr	w10, [x10]
	and	w10, w13, w10
	lsl	w10, w10, w12
	orr	w0, w10, w11
	add	w8, w9, w8
	str	w8, [x19]
	b	LBB0_14
LBB0_13:
	mov	w0, #-1
LBB0_14:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_15:
	bl	_MAXCODE
	str	x0, [x24]
	ldr	x9, [x23]
	cmp	x9, #1
	b.ge	LBB0_7
	b	LBB0_8
LBB0_16:
Lloh34:
	adrp	x9, _n_bits@GOTPAGE
Lloh35:
	ldr	x9, [x9, _n_bits@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	b	LBB0_10
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotStr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_gbuf,8,3                       ; @gbuf
	.comm	_clear_flg,8,3                  ; @clear_flg
	.comm	_roffset,4,2                    ; @roffset
	.comm	_size,4,2                       ; @size
	.comm	_free_ent,8,3                   ; @free_ent
	.comm	_maxcode,8,3                    ; @maxcode
	.comm	_n_bits,4,2                     ; @n_bits
	.comm	_maxbits,4,2                    ; @maxbits
	.comm	_maxmaxcode,8,3                 ; @maxmaxcode
	.comm	_INIT_BITS,4,2                  ; @INIT_BITS
	.comm	_fp,4,2                         ; @fp
	.comm	_rmask,8,3                      ; @rmask
	.no_dead_strip	_getcode
.subsections_via_symbols
