	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dirac_get_arith_bit
_dirac_get_arith_bit:                   ## @dirac_get_arith_bit
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	(%rdi), %r8
	movslq	%esi, %r9
	movl	(%r8,%r9,4), %edi
	movl	8(%rbx), %r10d
	movl	12(%rbx), %eax
	movl	%eax, %edx
	imull	%edi, %edx
	movl	%edx, %ecx
	sarl	$16, %ecx
	movl	%r10d, %esi
	shrl	$16, %esi
	andl	$-65536, %edx                   ## imm = 0xFFFF0000
	subl	%ecx, %eax
	xorl	%r11d, %r11d
	xorl	%r14d, %r14d
	cmpl	%ecx, %esi
	cmovael	%edx, %r11d
	cmovbl	%ecx, %eax
	setae	%r14b
	movq	_ff_dirac_prob_branchless@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%edi, %edx
	sarl	$8, %edx
	movslq	%edx, %rdx
	movq	(%rcx,%rdx,8), %rcx
	addl	(%rcx,%r14,8), %edi
	subl	%r11d, %r10d
	movl	%edi, (%r8,%r9,4)
	movl	%r10d, 8(%rbx)
	movl	%eax, 12(%rbx)
	movq	%rbx, %rdi
	callq	_renorm
	movq	%rbx, %rdi
	callq	_refill
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_dirac_prob_branchless,8,3   ## @ff_dirac_prob_branchless
	.no_dead_strip	_dirac_get_arith_bit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dirac_get_arith_bit
_dirac_get_arith_bit:                   ; @dirac_get_arith_bit
	.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
                                        ; kill: def $w1 killed $w1 def $x1
	mov	x19, x0
	ldr	x8, [x0]
	sbfiz	x9, x1, #2, #32
	ldr	w10, [x8, x9]
	ldp	w11, w12, [x0, #8]
	mul	w13, w12, w10
	asr	w14, w13, #16
	lsr	w15, w11, #16
	sub	w12, w12, w14
	and	w13, w13, #0xffff0000
	cmp	w15, w14
	csel	w13, w13, wzr, hs
	csel	w12, w12, w14, hs
Lloh0:
	adrp	x14, _ff_dirac_prob_branchless@GOTPAGE
Lloh1:
	ldr	x14, [x14, _ff_dirac_prob_branchless@GOTPAGEOFF]
Lloh2:
	ldr	x14, [x14]
	asr	w15, w10, #8
	ldr	x14, [x14, w15, sxtw #3]
	cset	w20, hs
	ldr	x14, [x14, w20, uxtw #3]
	add	w10, w10, w14
	str	w10, [x8, x9]
	sub	w8, w11, w13
	stp	w8, w12, [x0, #8]
	bl	_renorm
	mov	x0, x19
	bl	_refill
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_dirac_prob_branchless,8,3   ; @ff_dirac_prob_branchless
	.no_dead_strip	_dirac_get_arith_bit
.subsections_via_symbols
