	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function do_hard_work
LCPI0_0:
	.long	0x3f000000                      ## float 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	$248, %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
	fldt	32(%rbp)
	fld	%st(0)
	fstpt	-52(%rbp)                       ## 10-byte Folded Spill
	fldt	16(%rbp)
	fld	%st(0)
	fstpt	-76(%rbp)                       ## 10-byte Folded Spill
	fld1
	fld	%st(0)
	fstpt	-64(%rbp)                       ## 10-byte Folded Spill
	faddp	%st, %st(2)
	fld	%st(1)
	fstpt	-100(%rbp)                      ## 10-byte Folded Spill
	fxch	%st(1)
	fstpt	16(%rsp)
	fstpt	(%rsp)
	callq	_hypotl
	fstpt	-216(%rbp)                      ## 10-byte Folded Spill
	fldt	-64(%rbp)                       ## 10-byte Folded Reload
	fchs
	fldt	-52(%rbp)                       ## 10-byte Folded Reload
	fld	%st(1)
	fstpt	-88(%rbp)                       ## 10-byte Folded Spill
	faddp	%st, %st(1)
	fld	%st(0)
	fstpt	-112(%rbp)                      ## 10-byte Folded Spill
	fstpt	16(%rsp)
	fldt	-76(%rbp)                       ## 10-byte Folded Reload
	fstpt	(%rsp)
	callq	_hypotl
	fldt	-64(%rbp)                       ## 10-byte Folded Reload
	fldt	-216(%rbp)                      ## 10-byte Folded Reload
	fld	%st(2)
	fstpt	-228(%rbp)                      ## 10-byte Folded Spill
	faddp	%st, %st(2)
	fxch	%st(1)
	fmuls	LCPI0_0(%rip)
	fxch	%st(1)
	fucomi	%st(1), %st
	fxch	%st(1)
	fcmovnbe	%st(1), %st
	movq	_A_crossover@GOTPCREL(%rip), %rax
	fldt	(%rax)
	fucompi	%st(1), %st
	fld	%st(0)
	fstpt	-124(%rbp)                      ## 10-byte Folded Spill
	jbe	LBB0_12
## %bb.1:
	fstp	%st(0)
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	%r14, %rbx
	fldt	-52(%rbp)                       ## 10-byte Folded Reload
	fucompi	%st(1), %st
	fstp	%st(0)
	movq	_LDBL_EPSILON@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	fldt	-76(%rbp)                       ## 10-byte Folded Reload
	jne	LBB0_4
	jp	LBB0_4
## %bb.2:
	movl	%r14d, %eax
	imull	%r14d, %eax
	shrl	$7, %eax
	movl	%eax, -188(%rbp)
	fildl	-188(%rbp)
	fucompi	%st(1), %st
	jbe	LBB0_4
## %bb.3:
	fisttpl	-168(%rbp)
	movl	-168(%rbp), %edi
	callq	_sqrtl
	jmp	LBB0_10
LBB0_12:
	fstp	%st(1)
	fmul	%st, %st(0)
	fldt	-88(%rbp)                       ## 10-byte Folded Reload
	faddp	%st, %st(1)
	fisttpl	-192(%rbp)
	movl	-192(%rbp), %edi
	callq	_sqrtl
	fldt	-124(%rbp)                      ## 10-byte Folded Reload
	faddp	%st, %st(1)
	fstpt	(%rsp)
	callq	_logl
	fldt	-52(%rbp)                       ## 10-byte Folded Reload
	jmp	LBB0_13
LBB0_4:
	fstp	%st(0)
	fldt	-112(%rbp)                      ## 10-byte Folded Reload
	fstpt	(%rsp)
	callq	_fabsl
	imull	%r14d, %eax
	movl	%eax, -184(%rbp)
	fildl	-184(%rbp)
	fldt	-76(%rbp)                       ## 10-byte Folded Reload
	fucomi	%st(1), %st
	fstp	%st(1)
	jae	LBB0_5
## %bb.6:
	fstp	%st(0)
	fldt	-52(%rbp)                       ## 10-byte Folded Reload
	fldt	-64(%rbp)                       ## 10-byte Folded Reload
	fucomi	%st(1), %st
	jbe	LBB0_8
## %bb.7:
	fsubp	%st, %st(1)
	fldt	-100(%rbp)                      ## 10-byte Folded Reload
	fmulp	%st, %st(1)
	fisttpl	-172(%rbp)
	movl	-172(%rbp), %edi
	callq	_sqrtl
	fldt	-52(%rbp)                       ## 10-byte Folded Reload
	fldt	-76(%rbp)                       ## 10-byte Folded Reload
	fdivp	%st, %st(2)
	jmp	LBB0_11
LBB0_5:
	fldt	-216(%rbp)                      ## 10-byte Folded Reload
	fstpt	32(%rsp)
	fldt	-100(%rbp)                      ## 10-byte Folded Reload
	fstpt	16(%rsp)
	fstpt	(%rsp)
	callq	_f
	fstpt	-204(%rbp)                      ## 10-byte Folded Spill
	fldt	-52(%rbp)                       ## 10-byte Folded Reload
	fldt	-64(%rbp)                       ## 10-byte Folded Reload
	fsubp	%st, %st(1)
	fldt	-228(%rbp)                      ## 10-byte Folded Reload
	fstpt	32(%rsp)
	fstpt	16(%rsp)
	fldt	-76(%rbp)                       ## 10-byte Folded Reload
	fstpt	(%rsp)
	callq	_f
	fldt	-204(%rbp)                      ## 10-byte Folded Reload
	faddp	%st, %st(1)
	fld	%st(0)
	fstpt	-204(%rbp)                      ## 10-byte Folded Spill
	fldt	-124(%rbp)                      ## 10-byte Folded Reload
	fldt	-64(%rbp)                       ## 10-byte Folded Reload
	faddp	%st, %st(1)
	fmulp	%st, %st(1)
	fisttpl	-180(%rbp)
	movl	-180(%rbp), %edi
	callq	_sqrtl
	fldt	-204(%rbp)                      ## 10-byte Folded Reload
	jmp	LBB0_9
LBB0_8:
	fstp	%st(1)
	fstp	%st(0)
	fldt	-100(%rbp)                      ## 10-byte Folded Reload
	fldt	-112(%rbp)                      ## 10-byte Folded Reload
	fmulp	%st, %st(1)
	fisttpl	-176(%rbp)
	movl	-176(%rbp), %edi
	callq	_sqrtl
	fldt	-112(%rbp)                      ## 10-byte Folded Reload
LBB0_9:
	faddp	%st, %st(1)
	fstpt	(%rsp)
	callq	_log1pl
LBB0_10:
	fldt	-52(%rbp)                       ## 10-byte Folded Reload
LBB0_11:
	movq	%rbx, %r14
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
LBB0_13:
	fxch	%st(1)
	fstpt	(%r13)
	fld	%st(0)
	fstpt	(%r15)
	movq	_FOUR_SQRT_MIN@GOTPCREL(%rip), %rax
	fldt	(%rax)
	fucompi	%st(1), %st
	jbe	LBB0_16
## %bb.14:
	movl	$0, (%r12)
	movq	_LDBL_EPSILON@GOTPCREL(%rip), %rcx
	movl	$2, %eax
	xorl	%edx, %edx
	idivl	(%rcx)
	movl	%eax, -128(%rbp)
	fildl	-128(%rbp)
	fldt	-124(%rbp)                      ## 10-byte Folded Reload
	fmul	%st(1), %st
	fstpt	(%r14)
	fmulp	%st, %st(1)
	fstpt	(%r15)
	jmp	LBB0_27
LBB0_16:
	fldt	-124(%rbp)                      ## 10-byte Folded Reload
	fdivr	%st(1), %st
	fld	%st(0)
	fstpt	(%rbx)
	movl	$1, (%r12)
	movq	_B_crossover@GOTPCREL(%rip), %rax
	fldt	(%rax)
	fxch	%st(1)
	fucompi	%st(1), %st
	fstp	%st(0)
	jbe	LBB0_28
## %bb.17:
	movl	$0, (%r12)
	fldt	-64(%rbp)                       ## 10-byte Folded Reload
	fxch	%st(1)
	fucompi	%st(1), %st
	fstp	%st(0)
	movq	_LDBL_EPSILON@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	fldt	-76(%rbp)                       ## 10-byte Folded Reload
	jne	LBB0_20
	jp	LBB0_20
## %bb.18:
	leal	127(%rbx), %eax
	testl	%ebx, %ebx
	cmovnsl	%ebx, %eax
	sarl	$7, %eax
	movl	%eax, -164(%rbp)
	fildl	-164(%rbp)
	fucompi	%st(1), %st
	jbe	LBB0_20
## %bb.19:
	fisttpl	-132(%rbp)
	movl	-132(%rbp), %edi
	callq	_sqrtl
	fstpt	-52(%rbp)                       ## 10-byte Folded Spill
	fldt	-124(%rbp)                      ## 10-byte Folded Reload
	fldt	-64(%rbp)                       ## 10-byte Folded Reload
	faddp	%st, %st(1)
	fmuls	LCPI0_0(%rip)
	fisttpl	-136(%rbp)
	movl	-136(%rbp), %edi
	callq	_sqrtl
	fldt	-52(%rbp)                       ## 10-byte Folded Reload
	fmulp	%st, %st(1)
	jmp	LBB0_26
LBB0_20:
	fstp	%st(0)
	fldt	-112(%rbp)                      ## 10-byte Folded Reload
	fstpt	(%rsp)
	callq	_fabsl
	imull	%ebx, %eax
	movl	%eax, -160(%rbp)
	fildl	-160(%rbp)
	fldt	-76(%rbp)                       ## 10-byte Folded Reload
	fucomi	%st(1), %st
	fstp	%st(1)
	jae	LBB0_21
## %bb.22:
	fldt	-52(%rbp)                       ## 10-byte Folded Reload
	fldt	-64(%rbp)                       ## 10-byte Folded Reload
	fxch	%st(1)
	fucomi	%st(1), %st
	jbe	LBB0_24
## %bb.23:
	fstp	%st(1)
	movl	(%r12), %ecx
	movl	$4, %eax
	xorl	%edx, %edx
	idivl	%ecx
	cltd
	idivl	%ecx
	movl	%eax, -144(%rbp)
	fxch	%st(1)
	fimull	-144(%rbp)
	fmulp	%st, %st(1)
	fstpt	-64(%rbp)                       ## 10-byte Folded Spill
	fldt	-100(%rbp)                      ## 10-byte Folded Reload
	fldt	-112(%rbp)                      ## 10-byte Folded Reload
	fmulp	%st, %st(1)
	fisttpl	-140(%rbp)
	movl	-140(%rbp), %edi
	callq	_sqrtl
	fldt	-64(%rbp)                       ## 10-byte Folded Reload
	fdivp	%st, %st(1)
	fstpt	(%r14)
	movl	(%r12), %ecx
	movl	$4, %eax
	xorl	%edx, %edx
	idivl	%ecx
	cltd
	idivl	%ecx
	movl	%eax, -148(%rbp)
	fldt	-52(%rbp)                       ## 10-byte Folded Reload
	fimull	-148(%rbp)
	fstpt	(%r15)
	jmp	LBB0_27
LBB0_21:
	fldt	-216(%rbp)                      ## 10-byte Folded Reload
	fstpt	32(%rsp)
	fldt	-100(%rbp)                      ## 10-byte Folded Reload
	fstpt	16(%rsp)
	fstpt	(%rsp)
	callq	_f
	fstpt	-64(%rbp)                       ## 10-byte Folded Spill
	fldt	-228(%rbp)                      ## 10-byte Folded Reload
	fstpt	32(%rsp)
	fldt	-112(%rbp)                      ## 10-byte Folded Reload
	fstpt	16(%rsp)
	fldt	-76(%rbp)                       ## 10-byte Folded Reload
	fstpt	(%rsp)
	callq	_f
	fldt	-64(%rbp)                       ## 10-byte Folded Reload
	faddp	%st, %st(1)
	fldt	-52(%rbp)                       ## 10-byte Folded Reload
	fldt	-124(%rbp)                      ## 10-byte Folded Reload
	faddp	%st, %st(1)
	fmulp	%st, %st(1)
	fisttpl	-156(%rbp)
	movl	-156(%rbp), %edi
	jmp	LBB0_25
LBB0_24:
	fstp	%st(2)
	fsubp	%st, %st(1)
	fldt	-100(%rbp)                      ## 10-byte Folded Reload
	fmulp	%st, %st(1)
	fisttpl	-152(%rbp)
	movl	-152(%rbp), %edi
LBB0_25:
	callq	_sqrtl
LBB0_26:
	fstpt	(%r14)
LBB0_27:
	fldz
LBB0_28:
	fstp	%st(0)
	addq	$248, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_A_crossover,16,4               ## @A_crossover
	.comm	_LDBL_EPSILON,4,2               ## @LDBL_EPSILON
	.comm	_FOUR_SQRT_MIN,16,4             ## @FOUR_SQRT_MIN
	.comm	_B_crossover,16,4               ## @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	_hypotl
	fmov	d15, d0
	fmov	d12, #-1.00000000
	fadd	d11, d8, d12
	fmov	d0, d9
	fmov	d1, d11
	bl	_hypotl
	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, _LDBL_EPSILON@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LDBL_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	_sqrtl
	b	LBB0_11
LBB0_4:
	fmadd	d0, d15, d15, d12
	fcvtzs	w0, d0
	bl	_sqrtl
	fadd	d0, d15, d0
	bl	_log
	b	LBB0_11
LBB0_5:
	fmov	d0, d11
	bl	_fabsl
	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	_sqrtl
	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	_sqrtl
	fadd	d0, d14, d0
	b	LBB0_10
LBB0_9:
	fmul	d0, d11, d10
	fcvtzs	w0, d0
	bl	_sqrtl
	fadd	d0, d11, d0
LBB0_10:
	bl	_log1pl
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, _LDBL_EPSILON@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LDBL_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, _LDBL_EPSILON@GOTPAGE
Lloh16:
	ldr	x21, [x21, _LDBL_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	_sqrtl
	fmov	d8, d0
	fmov	d0, #1.00000000
	fadd	d0, d15, d0
	fmov	d1, #0.50000000
	fmul	d0, d0, d1
	fcvtzs	w0, d0
	bl	_sqrtl
	fmul	d0, d8, d0
	b	LBB0_24
LBB0_18:
	fmov	d0, d11
	bl	_fabsl
	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	_sqrtl
	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	_sqrtl
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	_LDBL_EPSILON,4,2               ; @LDBL_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
