	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arith2_normalise
_arith2_normalise:                      ## @arith2_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
	movl	(%rdi), %eax
	movl	4(%rdi), %ecx
	movl	%eax, %edx
	sarl	$15, %edx
	movl	%ecx, %esi
	sarl	$15, %esi
	subl	%esi, %edx
	cmpl	$1, %edx
	jg	LBB0_6
## %bb.1:
	movq	%rdi, %r15
	movl	$32768, %r14d                   ## imm = 0x8000
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	$32768, %eax                    ## imm = 0x8000
	movl	8(%r15), %ebx
	xorl	%r14d, %ebx
	movl	%ebx, 8(%r15)
	xorl	$32768, %ecx                    ## imm = 0x8000
	movl	%ecx, 4(%r15)
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	shll	$8, %eax
	orl	$255, %eax
	movl	%eax, (%r15)
	shll	$8, %ebx
	movl	12(%r15), %edi
	callq	_bytestream2_get_byte
	orl	%ebx, %eax
	movl	%eax, 8(%r15)
	movl	(%r15), %eax
	movl	4(%r15), %ecx
	shll	$8, %ecx
	movl	%ecx, 4(%r15)
	movl	%eax, %edx
	sarl	$15, %edx
	movl	%ecx, %esi
	sarl	$15, %esi
	subl	%esi, %edx
	cmpl	$2, %edx
	jge	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, %edx
	xorl	%eax, %edx
	testl	$65536, %edx                    ## imm = 0x10000
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%r15), %ebx
	jmp	LBB0_5
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_arith2_normalise
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arith2_normalise
_arith2_normalise:                      ; @arith2_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
	ldp	w8, w9, [x0]
	asr	w10, w8, #15
	sub	w10, w10, w9, asr #15
	cmp	w10, #1
	b.gt	LBB0_6
; %bb.1:
	mov	x19, x0
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	eor	w8, w8, #0x8000
	ldr	w10, [x19, #8]
	eor	w20, w10, #0x8000
	eor	w9, w9, #0x8000
	stp	w9, w20, [x19, #4]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w9, #255
	bfi	w9, w8, #8, #24
	str	w9, [x19]
	ldr	w0, [x19, #12]
	bl	_bytestream2_get_byte
	orr	w10, w0, w20, lsl #8
	ldp	w8, w9, [x19]
	lsl	w9, w9, #8
	stp	w9, w10, [x19, #4]
	asr	w10, w8, #15
	sub	w10, w10, w9, asr #15
	cmp	w10, #2
	b.ge	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	eor	w10, w9, w8
	tbnz	w10, #16, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w20, [x19, #8]
	b	LBB0_3
LBB0_6:
	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	_arith2_normalise
.subsections_via_symbols
