	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arith_normalise
_arith_normalise:                       ## @arith_normalise
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	$-16384, %r14d                  ## imm = 0xC000
	movl	$-32768, %r15d                  ## imm = 0x8000
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	12(%rbx), %edi
	callq	_get_bits1
	orl	%eax, 8(%rbx)
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %eax
	cmpl	$32767, %eax                    ## imm = 0x7FFF
	jle	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	4(%rbx), %ecx
	cmpl	$32767, %ecx                    ## imm = 0x7FFF
	jg	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$16384, %ecx                    ## imm = 0x4000
	jl	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$49151, %eax                    ## imm = 0xBFFF
	ja	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	8(%rbx), %edx
	addl	%r14d, %edx
	addl	$-16384, %ecx                   ## imm = 0xC000
	addl	$-16384, %eax                   ## imm = 0xC000
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	4(%rbx), %ecx
	movl	8(%rbx), %edx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	8(%rbx), %edx
	addl	%r15d, %edx
	addl	$-32768, %ecx                   ## imm = 0x8000
	addl	$-32768, %eax                   ## imm = 0x8000
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	addl	%edx, %edx
	movl	%edx, 8(%rbx)
	addl	%ecx, %ecx
	movl	%ecx, 4(%rbx)
	addl	%eax, %eax
	incl	%eax
	movl	%eax, (%rbx)
	movl	12(%rbx), %edi
	callq	_get_bits_left
	testl	%eax, %eax
	jg	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	incl	16(%rbx)
	jmp	LBB0_11
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_arith_normalise
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arith_normalise
_arith_normalise:                       ; @arith_normalise
	.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
	mov	x19, x0
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x19, #12]
	bl	_get_bits1
	ldr	w8, [x19, #8]
	orr	w8, w8, w0
	str	w8, [x19, #8]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19]
	subs	w11, w8, #8, lsl #12            ; =32768
	b.lt	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w10, [x19, #4]
	subs	w9, w10, #8, lsl #12            ; =32768
	b.ge	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	subs	w9, w10, #4, lsl #12            ; =16384
	lsr	w10, w8, #14
	ccmp	w10, #2, #2, ge
	b.hi	LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w10, [x19, #8]
	sub	w10, w10, #4, lsl #12           ; =16384
	sub	w8, w8, #4, lsl #12             ; =16384
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldp	w9, w10, [x19, #4]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x19, #8]
	sub	w10, w8, #8, lsl #12            ; =32768
	mov	x8, x11
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	lsl	w11, w10, #1
	lsl	w9, w9, #1
	mov	w10, #1
	bfi	w10, w8, #1, #31
	stp	w9, w11, [x19, #4]
	str	w10, [x19]
	ldr	w0, [x19, #12]
	bl	_get_bits_left
	cmp	w0, #0
	b.gt	LBB0_1
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x19, #16]
	add	w8, w8, #1
	str	w8, [x19, #16]
	b	LBB0_1
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_arith_normalise
.subsections_via_symbols
