	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function bitreduction
LCPI0_0:
	.quad	0xbff0000000000000              ## double -1
LCPI0_1:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
LCPI0_2:
	.quad	0x7fffffffffffffff              ## double NaN
	.quad	0x7fffffffffffffff              ## double NaN
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_bitreduction:                          ## @bitreduction
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$104, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movsd	(%rdi), %xmm1                   ## xmm1 = mem[0],zero
	movsd	%xmm1, -16(%rbp)                ## 8-byte Spill
	movsd	8(%rdi), %xmm1                  ## xmm1 = mem[0],zero
	movsd	%xmm1, -32(%rbp)                ## 8-byte Spill
	movsd	16(%rdi), %xmm1                 ## xmm1 = mem[0],zero
	movsd	%xmm1, -72(%rbp)                ## 8-byte Spill
	movsd	24(%rdi), %xmm1                 ## xmm1 = mem[0],zero
	movsd	%xmm1, -80(%rbp)                ## 8-byte Spill
	movl	52(%rdi), %edi
	movl	48(%rbx), %esi
	callq	_add_dc
	movapd	%xmm0, %xmm1
	cmpl	$1, 32(%rbx)
	movapd	%xmm0, -96(%rbp)                ## 16-byte Spill
	jne	LBB0_1
## %bb.7:
	movapd	LCPI0_2(%rip), %xmm0            ## xmm0 = [NaN,NaN]
	andpd	%xmm1, %xmm0
	movapd	%xmm0, -48(%rbp)                ## 16-byte Spill
	callq	_log
	movsd	-16(%rbp), %xmm2                ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	movapd	%xmm2, %xmm1
	mulsd	%xmm2, %xmm1
	mulsd	%xmm2, %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -32(%rbp)                ## 8-byte Spill
	callq	_roundf
	movapd	-96(%rbp), %xmm2                ## 16-byte Reload
	xorpd	%xmm1, %xmm1
	ucomisd	%xmm1, %xmm2
	jne	LBB0_8
	jnp	LBB0_15
LBB0_8:
	movapd	%xmm0, %xmm4
	movsd	-80(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	subsd	%xmm1, %xmm0
	movsd	-32(%rbp), %xmm3                ## 8-byte Reload
                                        ## xmm3 = mem[0],zero
	ucomisd	%xmm0, %xmm3
	addsd	%xmm4, %xmm1
	jb	LBB0_11
## %bb.9:
	ucomisd	-32(%rbp), %xmm1                ## 8-byte Folded Reload
	jb	LBB0_11
## %bb.10:
	divsd	-48(%rbp), %xmm2                ## 16-byte Folded Reload
	movapd	%xmm2, -32(%rbp)                ## 16-byte Spill
	movsd	-16(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	divsd	%xmm0, %xmm4
	subsd	%xmm0, %xmm4
	movapd	%xmm4, %xmm0
	callq	_exp
	movapd	-96(%rbp), %xmm2                ## 16-byte Reload
	movapd	%xmm0, %xmm1
	mulsd	-32(%rbp), %xmm1                ## 16-byte Folded Reload
	jmp	LBB0_15
LBB0_1:
	movsd	-32(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	mulsd	%xmm1, %xmm0
	movsd	%xmm0, -16(%rbp)                ## 8-byte Spill
	callq	_roundf
	movsd	-16(%rbp), %xmm4                ## 8-byte Reload
                                        ## xmm4 = mem[0],zero
	movapd	%xmm0, %xmm1
	movsd	-80(%rbp), %xmm2                ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	subsd	%xmm2, %xmm0
	ucomisd	%xmm0, %xmm4
	movapd	%xmm2, %xmm0
	addsd	%xmm1, %xmm0
	jb	LBB0_4
## %bb.2:
	ucomisd	%xmm4, %xmm0
	jb	LBB0_4
## %bb.3:
	divsd	-32(%rbp), %xmm1                ## 8-byte Folded Reload
	movapd	-96(%rbp), %xmm2                ## 16-byte Reload
	jmp	LBB0_15
LBB0_4:
	ucomisd	%xmm0, %xmm4
	movapd	%xmm1, %xmm5
	movsd	-32(%rbp), %xmm3                ## 8-byte Reload
                                        ## xmm3 = mem[0],zero
	divsd	%xmm3, %xmm5
	movsd	%xmm5, -48(%rbp)                ## 8-byte Spill
	movapd	%xmm1, %xmm0
	jbe	LBB0_6
## %bb.5:
	addsd	LCPI0_1(%rip), %xmm0
	divsd	%xmm3, %xmm0
	subsd	%xmm5, %xmm0
	movsd	%xmm0, -32(%rbp)                ## 8-byte Spill
	movapd	%xmm4, %xmm0
	movsd	-72(%rbp), %xmm3                ## 8-byte Reload
                                        ## xmm3 = mem[0],zero
	callq	_factor
	movapd	%xmm0, %xmm1
	mulsd	-32(%rbp), %xmm1                ## 8-byte Folded Reload
	addsd	-48(%rbp), %xmm1                ## 8-byte Folded Reload
	movapd	-96(%rbp), %xmm2                ## 16-byte Reload
	jmp	LBB0_15
LBB0_11:
	movsd	%xmm1, -104(%rbp)               ## 8-byte Spill
	movapd	%xmm4, %xmm0
	movsd	-16(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	divsd	%xmm1, %xmm0
	subsd	%xmm1, %xmm0
	movsd	%xmm4, -56(%rbp)                ## 8-byte Spill
	callq	_exp
	movapd	-96(%rbp), %xmm1                ## 16-byte Reload
	movsd	%xmm0, -64(%rbp)                ## 8-byte Spill
	movsd	-32(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	ucomisd	-104(%rbp), %xmm0               ## 8-byte Folded Reload
	jbe	LBB0_13
## %bb.12:
	movapd	%xmm1, %xmm0
	callq	_FFSIGN
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	movsd	-56(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	addsd	LCPI0_1(%rip), %xmm0
	movsd	-16(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	divsd	%xmm1, %xmm0
	subsd	%xmm1, %xmm0
	callq	_exp
	subsd	-64(%rbp), %xmm0                ## 8-byte Folded Reload
	movsd	%xmm0, -16(%rbp)                ## 8-byte Spill
	movsd	-32(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movsd	-56(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	movsd	-80(%rbp), %xmm2                ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	movsd	-72(%rbp), %xmm3                ## 8-byte Reload
                                        ## xmm3 = mem[0],zero
	callq	_factor
	movapd	-96(%rbp), %xmm2                ## 16-byte Reload
	movapd	%xmm0, %xmm1
	mulsd	-16(%rbp), %xmm1                ## 8-byte Folded Reload
	addsd	-64(%rbp), %xmm1                ## 8-byte Folded Reload
	jmp	LBB0_14
LBB0_6:
	addsd	LCPI0_0(%rip), %xmm0
	divsd	%xmm3, %xmm0
	movapd	%xmm5, %xmm3
	subsd	%xmm0, %xmm3
	movsd	%xmm3, -32(%rbp)                ## 8-byte Spill
	movapd	%xmm4, %xmm0
	movsd	-72(%rbp), %xmm3                ## 8-byte Reload
                                        ## xmm3 = mem[0],zero
	callq	_factor
	mulsd	-32(%rbp), %xmm0                ## 8-byte Folded Reload
	movsd	-48(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	subsd	%xmm0, %xmm1
	movapd	-96(%rbp), %xmm2                ## 16-byte Reload
	jmp	LBB0_15
LBB0_13:
	divsd	-48(%rbp), %xmm1                ## 16-byte Folded Reload
	movapd	%xmm1, -48(%rbp)                ## 16-byte Spill
	movsd	-56(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	addsd	LCPI0_0(%rip), %xmm0
	movsd	-16(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	divsd	%xmm1, %xmm0
	subsd	%xmm1, %xmm0
	callq	_exp
	movsd	-64(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	subsd	%xmm0, %xmm1
	movsd	%xmm1, -16(%rbp)                ## 8-byte Spill
	movsd	-32(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movsd	-56(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	movsd	-80(%rbp), %xmm2                ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	movsd	-72(%rbp), %xmm3                ## 8-byte Reload
                                        ## xmm3 = mem[0],zero
	callq	_factor
	movapd	-96(%rbp), %xmm2                ## 16-byte Reload
	mulsd	-16(%rbp), %xmm0                ## 8-byte Folded Reload
	movsd	-64(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	subsd	%xmm0, %xmm1
LBB0_14:
	mulsd	-48(%rbp), %xmm1                ## 24-byte Folded Reload
LBB0_15:
	subsd	%xmm1, %xmm2
	mulsd	40(%rbx), %xmm2
	addsd	%xmm1, %xmm2
	movl	48(%rbx), %esi
	movl	52(%rbx), %edi
	movapd	%xmm2, %xmm0
	addq	$104, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_remove_dc                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_bitreduction
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bitreduction
_bitreduction:                          ; @bitreduction
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	d15, d14, [sp, #16]             ; 16-byte Folded Spill
	stp	d13, d12, [sp, #32]             ; 16-byte Folded Spill
	stp	d11, d10, [sp, #48]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #64]               ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset b8, -40
	.cfi_offset b9, -48
	.cfi_offset b10, -56
	.cfi_offset b11, -64
	.cfi_offset b12, -72
	.cfi_offset b13, -80
	.cfi_offset b14, -88
	.cfi_offset b15, -96
	mov	x19, x0
	ldp	d15, d12, [x0]
	ldp	d9, d10, [x0, #16]
	ldr	w0, [x0, #52]
	ldr	w1, [x19, #48]
	bl	_add_dc
	fmov	d8, d0
	ldr	w8, [x19, #32]
	cmp	w8, #1
	b.ne	LBB0_5
; %bb.1:
	fabs	d14, d8
	fmov	d0, d14
	bl	_log
	fmul	d1, d15, d15
	fmadd	d11, d15, d0, d1
	fmov	d0, d11
	bl	_roundf
	fcmp	d8, #0.0
	b.eq	LBB0_9
; %bb.2:
	fmov	d12, d0
	fsub	d0, d0, d10
	fadd	d13, d10, d12
	fcmp	d0, d11
	fccmp	d11, d13, #2, ls
	b.ls	LBB0_10
; %bb.3:
	fdiv	d0, d12, d15
	fsub	d0, d0, d15
	bl	_exp
	str	d0, [sp, #8]                    ; 8-byte Folded Spill
	fcmp	d11, d13
	b.le	LBB0_12
; %bb.4:
	fmov	d0, d8
	bl	_FFSIGN
	fmov	d14, d0
	fmov	d0, #1.00000000
	fadd	d0, d12, d0
	fdiv	d0, d0, d15
	fsub	d0, d0, d15
	bl	_exp
	ldr	d15, [sp, #8]                   ; 8-byte Folded Reload
	fsub	d13, d0, d15
	fmov	d0, d11
	fmov	d1, d12
	fmov	d2, d10
	fmov	d3, d9
	bl	_factor
	fmadd	d0, d13, d0, d15
	fmul	d0, d14, d0
	b	LBB0_13
LBB0_5:
	fmul	d11, d12, d8
	fmov	d0, d11
	bl	_roundf
	fmov	d1, d0
	fsub	d2, d0, d10
	fadd	d0, d10, d0
	fcmp	d2, d11
	fccmp	d11, d0, #2, ls
	b.ls	LBB0_8
; %bb.6:
	fcmp	d11, d0
	fdiv	d13, d1, d12
	b.le	LBB0_11
; %bb.7:
	fmov	d0, #1.00000000
	fadd	d0, d1, d0
	fdiv	d0, d0, d12
	fsub	d12, d0, d13
	fmov	d0, d11
	fmov	d2, d10
	fmov	d3, d9
	bl	_factor
	fmadd	d0, d12, d0, d13
	b	LBB0_13
LBB0_8:
	fdiv	d0, d1, d12
	b	LBB0_13
LBB0_9:
	movi	d0, #0000000000000000
	b	LBB0_13
LBB0_10:
	fdiv	d9, d8, d14
	fdiv	d0, d12, d15
	fsub	d0, d0, d15
	bl	_exp
	fmul	d0, d9, d0
	b	LBB0_13
LBB0_11:
	fmov	d0, #-1.00000000
	fadd	d0, d1, d0
	fdiv	d0, d0, d12
	fsub	d12, d13, d0
	fmov	d0, d11
	fmov	d2, d10
	fmov	d3, d9
	bl	_factor
	fmsub	d0, d12, d0, d13
	b	LBB0_13
LBB0_12:
	fdiv	d13, d8, d14
	fmov	d0, #-1.00000000
	fadd	d0, d12, d0
	fdiv	d0, d0, d15
	fsub	d0, d0, d15
	bl	_exp
	ldr	d15, [sp, #8]                   ; 8-byte Folded Reload
	fsub	d14, d15, d0
	fmov	d0, d11
	fmov	d1, d12
	fmov	d2, d10
	fmov	d3, d9
	bl	_factor
	fmsub	d0, d14, d0, d15
	fmul	d0, d13, d0
LBB0_13:
	fsub	d1, d8, d0
	ldr	d2, [x19, #40]
	fmadd	d0, d1, d2, d0
	ldp	w1, w0, [x19, #48]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #64]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #48]             ; 16-byte Folded Reload
	ldp	d13, d12, [sp, #32]             ; 16-byte Folded Reload
	ldp	d15, d14, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_remove_dc
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_bitreduction
.subsections_via_symbols
