	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function do_hard_work
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
LCPI0_1:
	.quad	0xbff0000000000000              ## double -1
LCPI0_2:
	.quad	0x3fe0000000000000              ## double 0.5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_do_hard_work:                          ## @do_hard_work
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movq	%rcx, %r14
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r13
	movsd	%xmm1, -48(%rbp)                ## 8-byte Spill
	movsd	%xmm0, -56(%rbp)                ## 8-byte Spill
	addsd	LCPI0_0(%rip), %xmm1
	movsd	%xmm1, -64(%rbp)                ## 8-byte Spill
	callq	_hypot
	movsd	%xmm0, -88(%rbp)                ## 8-byte Spill
	movsd	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero
	addsd	-48(%rbp), %xmm1                ## 8-byte Folded Reload
	movsd	-56(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movsd	%xmm1, -72(%rbp)                ## 8-byte Spill
	callq	_hypot
	movsd	-88(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	movsd	%xmm0, -112(%rbp)               ## 8-byte Spill
	addsd	%xmm0, %xmm1
	mulsd	LCPI0_2(%rip), %xmm1
	movsd	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero
	maxsd	%xmm1, %xmm2
	movq	_A_crossover@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	ucomisd	%xmm2, %xmm0
	movsd	%xmm2, -80(%rbp)                ## 8-byte Spill
	jbe	LBB0_11
## %bb.1:
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movq	%r14, %rbx
	movsd	-48(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	ucomisd	LCPI0_0(%rip), %xmm0
	movq	_DBL_EPSILON@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movsd	-56(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	jne	LBB0_4
	jp	LBB0_4
## %bb.2:
	movl	%r14d, %eax
	imull	%r14d, %eax
	shrl	$7, %eax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	ucomisd	%xmm1, %xmm0
	jbe	LBB0_4
## %bb.3:
	cvttsd2si	%xmm1, %edi
	callq	_sqrt
	jmp	LBB0_10
LBB0_11:
	movapd	%xmm2, %xmm0
	mulsd	%xmm2, %xmm0
	addsd	LCPI0_1(%rip), %xmm0
	cvttsd2si	%xmm0, %edi
	callq	_sqrt
	addsd	-80(%rbp), %xmm0                ## 8-byte Folded Reload
	callq	_log
	movsd	-48(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	jmp	LBB0_12
LBB0_4:
	movsd	-72(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	callq	_fabs
	imull	%r14d, %eax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	movsd	-56(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	jae	LBB0_5
## %bb.6:
	movsd	-48(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	movsd	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero
	ucomisd	%xmm1, %xmm2
	jbe	LBB0_8
## %bb.7:
	subsd	%xmm1, %xmm2
	mulsd	-64(%rbp), %xmm2                ## 8-byte Folded Reload
	cvttsd2si	%xmm2, %edi
	callq	_sqrt
	movapd	%xmm0, %xmm1
	movsd	-56(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	divsd	%xmm1, %xmm0
	jmp	LBB0_10
LBB0_5:
	movapd	%xmm1, %xmm0
	movsd	-64(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	movsd	-88(%rbp), %xmm2                ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	callq	_f
	movsd	%xmm0, -104(%rbp)               ## 8-byte Spill
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	subsd	-48(%rbp), %xmm1                ## 8-byte Folded Reload
	movsd	-56(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movsd	-112(%rbp), %xmm2               ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	callq	_f
	addsd	-104(%rbp), %xmm0               ## 8-byte Folded Reload
	movsd	%xmm0, -104(%rbp)               ## 8-byte Spill
	movsd	-80(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	addsd	LCPI0_0(%rip), %xmm1
	mulsd	%xmm0, %xmm1
	cvttsd2si	%xmm1, %edi
	callq	_sqrt
	addsd	-104(%rbp), %xmm0               ## 8-byte Folded Reload
	jmp	LBB0_9
LBB0_8:
	movsd	-72(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	mulsd	-64(%rbp), %xmm0                ## 8-byte Folded Reload
	cvttsd2si	%xmm0, %edi
	callq	_sqrt
	addsd	-72(%rbp), %xmm0                ## 8-byte Folded Reload
LBB0_9:
	callq	_log1p
LBB0_10:
	movsd	-48(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	movq	%rbx, %r14
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
LBB0_12:
	movsd	%xmm0, (%r13)
	movsd	%xmm1, (%r15)
	movq	_FOUR_SQRT_MIN@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	ucomisd	%xmm1, %xmm0
	jbe	LBB0_14
## %bb.13:
	movl	$0, (%r12)
	movq	_DBL_EPSILON@GOTPCREL(%rip), %rcx
	movl	$2, %eax
	xorl	%edx, %edx
	idivl	(%rcx)
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	movsd	-80(%rbp), %xmm2                ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	mulsd	%xmm0, %xmm2
	movsd	%xmm2, (%r14)
	mulsd	%xmm0, %xmm1
	movsd	%xmm1, (%r15)
	jmp	LBB0_25
LBB0_14:
	movapd	%xmm1, %xmm0
	movsd	-80(%rbp), %xmm2                ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	divsd	%xmm2, %xmm0
	movsd	%xmm0, (%rbx)
	movl	$1, (%r12)
	movq	_B_crossover@GOTPCREL(%rip), %rax
	ucomisd	(%rax), %xmm0
	jbe	LBB0_25
## %bb.15:
	ucomisd	LCPI0_0(%rip), %xmm1
	movl	$0, (%r12)
	movq	_DBL_EPSILON@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	movsd	-56(%rbp), %xmm3                ## 8-byte Reload
                                        ## xmm3 = mem[0],zero
	jne	LBB0_18
	jp	LBB0_18
## %bb.16:
	leal	127(%rbx), %eax
	testl	%ebx, %ebx
	cmovnsl	%ebx, %eax
	sarl	$7, %eax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	ucomisd	%xmm3, %xmm0
	jbe	LBB0_18
## %bb.17:
	cvttsd2si	%xmm3, %edi
	callq	_sqrt
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	movsd	-80(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	addsd	LCPI0_0(%rip), %xmm0
	mulsd	LCPI0_2(%rip), %xmm0
	cvttsd2si	%xmm0, %edi
	callq	_sqrt
	mulsd	-48(%rbp), %xmm0                ## 8-byte Folded Reload
	jmp	LBB0_24
LBB0_18:
	movsd	-72(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	callq	_fabs
	imull	%ebx, %eax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	movsd	-56(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	movapd	%xmm1, %xmm0
	jae	LBB0_19
## %bb.20:
	movsd	-48(%rbp), %xmm2                ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	ucomisd	LCPI0_0(%rip), %xmm2
	jbe	LBB0_22
## %bb.21:
	movl	(%r12), %ecx
	movl	$4, %eax
	xorl	%edx, %edx
	idivl	%ecx
	cltd
	idivl	%ecx
	xorps	%xmm1, %xmm1
	cvtsi2sd	%eax, %xmm1
	mulsd	%xmm0, %xmm1
	mulsd	%xmm2, %xmm1
	movsd	%xmm1, -56(%rbp)                ## 8-byte Spill
	movsd	-64(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	mulsd	-72(%rbp), %xmm1                ## 8-byte Folded Reload
	cvttsd2si	%xmm1, %edi
	callq	_sqrt
	movsd	-56(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	divsd	%xmm0, %xmm1
	movsd	%xmm1, (%r14)
	movl	(%r12), %ecx
	movl	$4, %eax
	xorl	%edx, %edx
	idivl	%ecx
	cltd
	idivl	%ecx
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	mulsd	-48(%rbp), %xmm0                ## 8-byte Folded Reload
	movsd	%xmm0, (%r15)
	jmp	LBB0_25
LBB0_19:
	movsd	-64(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	movsd	-88(%rbp), %xmm2                ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	callq	_f
	movsd	%xmm0, -88(%rbp)                ## 8-byte Spill
	movsd	-56(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movsd	-72(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	movsd	-112(%rbp), %xmm2               ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	callq	_f
	addsd	-88(%rbp), %xmm0                ## 8-byte Folded Reload
	movsd	-80(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	addsd	-48(%rbp), %xmm1                ## 8-byte Folded Reload
	mulsd	%xmm0, %xmm1
	cvttsd2si	%xmm1, %edi
	jmp	LBB0_23
LBB0_22:
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	subsd	%xmm2, %xmm0
	mulsd	-64(%rbp), %xmm0                ## 8-byte Folded Reload
	cvttsd2si	%xmm0, %edi
LBB0_23:
	callq	_sqrt
LBB0_24:
	movsd	%xmm0, (%r14)
LBB0_25:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_A_crossover,8,3                ## @A_crossover
	.comm	_DBL_EPSILON,4,2                ## @DBL_EPSILON
	.comm	_FOUR_SQRT_MIN,8,3              ## @FOUR_SQRT_MIN
	.comm	_B_crossover,8,3                ## @B_crossover
	.no_dead_strip	_do_hard_work
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_hard_work
_do_hard_work:                          ; @do_hard_work
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	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	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset b8, -72
	.cfi_offset b9, -80
	.cfi_offset b10, -88
	.cfi_offset b11, -96
	.cfi_offset b12, -104
	.cfi_offset b13, -112
	.cfi_offset b14, -120
	.cfi_offset b15, -128
	mov	x20, x4
	mov	x19, x3
	mov	x22, x2
	mov	x21, x1
	mov	x23, x0
	fmov	d8, d1
	fmov	d9, d0
	fmov	d14, #1.00000000
	fadd	d10, d1, d14
	fmov	d1, d10
	bl	_hypot
	fmov	d15, d0
	fmov	d12, #-1.00000000
	fadd	d11, d8, d12
	fmov	d0, d9
	fmov	d1, d11
	bl	_hypot
	fmov	d13, d0
	str	d15, [sp, #8]                   ; 8-byte Folded Spill
	fadd	d0, d15, d0
	fmov	d1, #0.50000000
	fmul	d0, d0, d1
	fmax	d15, d0, d14
Lloh0:
	adrp	x8, _A_crossover@GOTPAGE
Lloh1:
	ldr	x8, [x8, _A_crossover@GOTPAGEOFF]
Lloh2:
	ldr	d0, [x8]
	fcmp	d15, d0
	b.pl	LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _DBL_EPSILON@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DBL_EPSILON@GOTPAGEOFF]
Lloh5:
	ldr	w24, [x8]
	fcmp	d8, d14
	b.ne	LBB0_5
; %bb.2:
	mul	w8, w24, w24
	lsr	w8, w8, #7
	scvtf	d0, w8
	fcmp	d0, d9
	b.le	LBB0_5
; %bb.3:
	fcvtzs	w0, d9
	bl	_sqrt
	b	LBB0_11
LBB0_4:
	fmadd	d0, d15, d15, d12
	fcvtzs	w0, d0
	bl	_sqrt
	fadd	d0, d15, d0
	bl	_log
	b	LBB0_11
LBB0_5:
	fmov	d0, d11
	bl	_fabs
	mul	w8, w0, w24
	scvtf	d0, w8
	fcmp	d0, d9
	b.ls	LBB0_8
; %bb.6:
	fmov	d0, #1.00000000
	fcmp	d8, d0
	b.pl	LBB0_9
; %bb.7:
	fsub	d0, d0, d8
	fmul	d0, d0, d10
	fcvtzs	w0, d0
	bl	_sqrt
	fdiv	d0, d9, d0
	b	LBB0_11
LBB0_8:
	fmov	d0, d9
	fmov	d1, d10
	ldr	d2, [sp, #8]                    ; 8-byte Folded Reload
	bl	_f
	fmov	d14, d0
	fmov	d12, #1.00000000
	fsub	d1, d12, d8
	fmov	d0, d9
	fmov	d2, d13
	bl	_f
	fadd	d14, d14, d0
	fadd	d0, d15, d12
	fmul	d0, d0, d14
	fcvtzs	w0, d0
	bl	_sqrt
	fadd	d0, d14, d0
	b	LBB0_10
LBB0_9:
	fmul	d0, d11, d10
	fcvtzs	w0, d0
	bl	_sqrt
	fadd	d0, d11, d0
LBB0_10:
	bl	_log1p
LBB0_11:
	str	d0, [x23]
	str	d8, [x20]
Lloh6:
	adrp	x8, _FOUR_SQRT_MIN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FOUR_SQRT_MIN@GOTPAGEOFF]
Lloh8:
	ldr	d0, [x8]
	fcmp	d0, d8
	b.le	LBB0_14
; %bb.12:
	str	wzr, [x21]
Lloh9:
	adrp	x8, _DBL_EPSILON@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DBL_EPSILON@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	mov	w9, #2
	sdiv	w8, w9, w8
	scvtf	d0, w8
	fmul	d1, d15, d0
	str	d1, [x19]
LBB0_13:
	fmul	d0, d0, d8
	str	d0, [x20]
	b	LBB0_25
LBB0_14:
	fdiv	d0, d8, d15
	str	d0, [x22]
	mov	w8, #1
	str	w8, [x21]
Lloh12:
	adrp	x8, _B_crossover@GOTPAGE
Lloh13:
	ldr	x8, [x8, _B_crossover@GOTPAGEOFF]
Lloh14:
	ldr	d1, [x8]
	fcmp	d0, d1
	b.le	LBB0_25
; %bb.15:
	str	wzr, [x21]
Lloh15:
	adrp	x21, _DBL_EPSILON@GOTPAGE
Lloh16:
	ldr	x21, [x21, _DBL_EPSILON@GOTPAGEOFF]
	ldr	w22, [x21]
	fmov	d0, #1.00000000
	fcmp	d8, d0
	b.ne	LBB0_18
; %bb.16:
	add	w8, w22, #127
	cmp	w22, #0
	csel	w8, w8, w22, lt
	asr	w8, w8, #7
	scvtf	d0, w8
	fcmp	d0, d9
	b.le	LBB0_18
; %bb.17:
	fcvtzs	w0, d9
	bl	_sqrt
	fmov	d8, d0
	fmov	d0, #1.00000000
	fadd	d0, d15, d0
	fmov	d1, #0.50000000
	fmul	d0, d0, d1
	fcvtzs	w0, d0
	bl	_sqrt
	fmul	d0, d8, d0
	b	LBB0_24
LBB0_18:
	fmov	d0, d11
	bl	_fabs
	mul	w8, w0, w22
	scvtf	d0, w8
	fcmp	d0, d9
	b.ls	LBB0_21
; %bb.19:
	fmov	d0, #1.00000000
	fcmp	d8, d0
	b.le	LBB0_22
; %bb.20:
	ldr	w8, [x21]
	mov	w22, #4
	sdiv	w9, w22, w8
	sdiv	w8, w9, w8
	scvtf	d0, w8
	fmul	d0, d0, d9
	fmul	d9, d0, d8
	fmul	d0, d10, d11
	fcvtzs	w0, d0
	bl	_sqrt
	fdiv	d0, d9, d0
	str	d0, [x19]
	ldr	w8, [x21]
	sdiv	w9, w22, w8
	sdiv	w8, w9, w8
	scvtf	d0, w8
	b	LBB0_13
LBB0_21:
	fmov	d0, d9
	fmov	d1, d10
	ldr	d2, [sp, #8]                    ; 8-byte Folded Reload
	bl	_f
	fmov	d10, d0
	fmov	d0, d9
	fmov	d1, d11
	fmov	d2, d13
	bl	_f
	fadd	d0, d10, d0
	fadd	d1, d15, d8
	fmul	d0, d1, d0
	b	LBB0_23
LBB0_22:
	fsub	d0, d0, d8
	fmul	d0, d0, d10
LBB0_23:
	fcvtzs	w0, d0
	bl	_sqrt
LBB0_24:
	str	d0, [x19]
LBB0_25:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [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, #144
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_A_crossover,8,3                ; @A_crossover
	.comm	_DBL_EPSILON,4,2                ; @DBL_EPSILON
	.comm	_FOUR_SQRT_MIN,8,3              ; @FOUR_SQRT_MIN
	.comm	_B_crossover,8,3                ; @B_crossover
	.no_dead_strip	_do_hard_work
.subsections_via_symbols
