	.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	0x3f800000                      ## float 1
LCPI0_1:
	.long	0xbf800000                      ## float -1
LCPI0_2:
	.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	$40, %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
	movss	%xmm1, -44(%rbp)                ## 4-byte Spill
	movss	%xmm0, -48(%rbp)                ## 4-byte Spill
	addss	LCPI0_0(%rip), %xmm1
	movss	%xmm1, -52(%rbp)                ## 4-byte Spill
	callq	_hypotf
	movss	%xmm0, -64(%rbp)                ## 4-byte Spill
	movss	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	addss	-44(%rbp), %xmm1                ## 4-byte Folded Reload
	movss	-48(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm1, -56(%rbp)                ## 4-byte Spill
	callq	_hypotf
	movss	-64(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	movss	%xmm0, -72(%rbp)                ## 4-byte Spill
	addss	%xmm0, %xmm1
	mulss	LCPI0_2(%rip), %xmm1
	movss	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	maxss	%xmm1, %xmm2
	movq	_A_crossover@GOTPCREL(%rip), %rax
	movss	(%rax), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	ucomiss	%xmm2, %xmm0
	movss	%xmm2, -60(%rbp)                ## 4-byte Spill
	jbe	LBB0_11
## %bb.1:
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, %rbx
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	ucomiss	LCPI0_0(%rip), %xmm0
	movq	_FLT_EPSILON@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movss	-48(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	jne	LBB0_4
	jp	LBB0_4
## %bb.2:
	movl	%r14d, %eax
	imull	%r14d, %eax
	shrl	$7, %eax
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	ucomiss	%xmm1, %xmm0
	jbe	LBB0_4
## %bb.3:
	cvttss2si	%xmm1, %edi
	callq	_sqrtf
	jmp	LBB0_10
LBB0_11:
	movaps	%xmm2, %xmm0
	mulss	%xmm2, %xmm0
	addss	LCPI0_1(%rip), %xmm0
	cvttss2si	%xmm0, %edi
	callq	_sqrtf
	addss	-60(%rbp), %xmm0                ## 4-byte Folded Reload
	callq	_logf
	movss	-44(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	jmp	LBB0_12
LBB0_4:
	movss	-56(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	callq	_fabsf
	imull	%r14d, %eax
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	movss	-48(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	ucomiss	%xmm0, %xmm1
	jae	LBB0_5
## %bb.6:
	movss	-44(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	movss	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	ucomiss	%xmm1, %xmm2
	jbe	LBB0_8
## %bb.7:
	subss	%xmm1, %xmm2
	mulss	-52(%rbp), %xmm2                ## 4-byte Folded Reload
	cvttss2si	%xmm2, %edi
	callq	_sqrtf
	movaps	%xmm0, %xmm1
	movss	-48(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	divss	%xmm1, %xmm0
	jmp	LBB0_10
LBB0_5:
	movaps	%xmm1, %xmm0
	movss	-52(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	movss	-64(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	callq	_f
	movss	%xmm0, -68(%rbp)                ## 4-byte Spill
	movss	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	subss	-44(%rbp), %xmm1                ## 4-byte Folded Reload
	movss	-48(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movss	-72(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	callq	_f
	addss	-68(%rbp), %xmm0                ## 4-byte Folded Reload
	movss	%xmm0, -68(%rbp)                ## 4-byte Spill
	movss	-60(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	addss	LCPI0_0(%rip), %xmm1
	mulss	%xmm0, %xmm1
	cvttss2si	%xmm1, %edi
	callq	_sqrtf
	addss	-68(%rbp), %xmm0                ## 4-byte Folded Reload
	jmp	LBB0_9
LBB0_8:
	movss	-56(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	mulss	-52(%rbp), %xmm0                ## 4-byte Folded Reload
	cvttss2si	%xmm0, %edi
	callq	_sqrtf
	addss	-56(%rbp), %xmm0                ## 4-byte Folded Reload
LBB0_9:
	callq	_log1pf
LBB0_10:
	movss	-44(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	movq	%rbx, %r14
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
LBB0_12:
	movss	%xmm0, (%r13)
	movss	%xmm1, (%r15)
	movq	_FOUR_SQRT_MIN@GOTPCREL(%rip), %rax
	movss	(%rax), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	ucomiss	%xmm1, %xmm0
	jbe	LBB0_14
## %bb.13:
	movl	$0, (%r12)
	movq	_FLT_EPSILON@GOTPCREL(%rip), %rcx
	movl	$2, %eax
	xorl	%edx, %edx
	idivl	(%rcx)
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	movss	-60(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm2
	movss	%xmm2, (%r14)
	mulss	%xmm0, %xmm1
	movss	%xmm1, (%r15)
	jmp	LBB0_25
LBB0_14:
	movaps	%xmm1, %xmm0
	movss	-60(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	divss	%xmm2, %xmm0
	movss	%xmm0, (%rbx)
	movl	$1, (%r12)
	movq	_B_crossover@GOTPCREL(%rip), %rax
	ucomiss	(%rax), %xmm0
	jbe	LBB0_25
## %bb.15:
	ucomiss	LCPI0_0(%rip), %xmm1
	movl	$0, (%r12)
	movq	_FLT_EPSILON@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	movss	-48(%rbp), %xmm3                ## 4-byte Reload
                                        ## xmm3 = mem[0],zero,zero,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
	cvtsi2ss	%eax, %xmm0
	ucomiss	%xmm3, %xmm0
	jbe	LBB0_18
## %bb.17:
	cvttss2si	%xmm3, %edi
	callq	_sqrtf
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	movss	-60(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	addss	LCPI0_0(%rip), %xmm0
	mulss	LCPI0_2(%rip), %xmm0
	cvttss2si	%xmm0, %edi
	callq	_sqrtf
	mulss	-44(%rbp), %xmm0                ## 4-byte Folded Reload
	jmp	LBB0_24
LBB0_18:
	movss	-56(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	callq	_fabsf
	imull	%ebx, %eax
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	movss	-48(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	ucomiss	%xmm0, %xmm1
	movaps	%xmm1, %xmm0
	jae	LBB0_19
## %bb.20:
	movss	-44(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	ucomiss	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
	cvtsi2ss	%eax, %xmm1
	mulss	%xmm0, %xmm1
	mulss	%xmm2, %xmm1
	movss	%xmm1, -48(%rbp)                ## 4-byte Spill
	movss	-52(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	mulss	-56(%rbp), %xmm1                ## 4-byte Folded Reload
	cvttss2si	%xmm1, %edi
	callq	_sqrtf
	movss	-48(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	divss	%xmm0, %xmm1
	movss	%xmm1, (%r14)
	movl	(%r12), %ecx
	movl	$4, %eax
	xorl	%edx, %edx
	idivl	%ecx
	cltd
	idivl	%ecx
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	mulss	-44(%rbp), %xmm0                ## 4-byte Folded Reload
	movss	%xmm0, (%r15)
	jmp	LBB0_25
LBB0_19:
	movss	-52(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	movss	-64(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	callq	_f
	movss	%xmm0, -64(%rbp)                ## 4-byte Spill
	movss	-48(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movss	-56(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	movss	-72(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	callq	_f
	addss	-64(%rbp), %xmm0                ## 4-byte Folded Reload
	movss	-60(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	addss	-44(%rbp), %xmm1                ## 4-byte Folded Reload
	mulss	%xmm0, %xmm1
	cvttss2si	%xmm1, %edi
	jmp	LBB0_23
LBB0_22:
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	subss	%xmm2, %xmm0
	mulss	-52(%rbp), %xmm0                ## 4-byte Folded Reload
	cvttss2si	%xmm0, %edi
LBB0_23:
	callq	_sqrtf
LBB0_24:
	movss	%xmm0, (%r14)
LBB0_25:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_A_crossover,4,2                ## @A_crossover
	.comm	_FLT_EPSILON,4,2                ## @FLT_EPSILON
	.comm	_FOUR_SQRT_MIN,4,2              ## @FOUR_SQRT_MIN
	.comm	_B_crossover,4,2                ## @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	s8, s1
	fmov	s9, s0
	fmov	s14, #1.00000000
	fadd	s10, s1, s14
	fmov	s1, s10
	bl	_hypotf
	fmov	s15, s0
	fmov	s12, #-1.00000000
	fadd	s11, s8, s12
	fmov	s0, s9
	fmov	s1, s11
	bl	_hypotf
	fmov	s13, s0
	str	s15, [sp, #12]                  ; 4-byte Folded Spill
	fadd	s0, s15, s0
	fmov	s1, #0.50000000
	fmul	s0, s0, s1
	fmax	s15, s0, s14
Lloh0:
	adrp	x8, _A_crossover@GOTPAGE
Lloh1:
	ldr	x8, [x8, _A_crossover@GOTPAGEOFF]
Lloh2:
	ldr	s0, [x8]
	fcmp	s15, s0
	b.pl	LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _FLT_EPSILON@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FLT_EPSILON@GOTPAGEOFF]
Lloh5:
	ldr	w24, [x8]
	fcmp	s8, s14
	b.ne	LBB0_5
; %bb.2:
	mul	w8, w24, w24
	lsr	w8, w8, #7
	scvtf	s0, w8
	fcmp	s0, s9
	b.le	LBB0_5
; %bb.3:
	fcvtzs	w0, s9
	bl	_sqrtf
	b	LBB0_11
LBB0_4:
	fmadd	s0, s15, s15, s12
	fcvtzs	w0, s0
	bl	_sqrtf
	fadd	s0, s15, s0
	bl	_logf
	b	LBB0_11
LBB0_5:
	fmov	s0, s11
	bl	_fabsf
	mul	w8, w0, w24
	scvtf	s0, w8
	fcmp	s0, s9
	b.ls	LBB0_8
; %bb.6:
	fmov	s0, #1.00000000
	fcmp	s8, s0
	b.pl	LBB0_9
; %bb.7:
	fsub	s0, s0, s8
	fmul	s0, s0, s10
	fcvtzs	w0, s0
	bl	_sqrtf
	fdiv	s0, s9, s0
	b	LBB0_11
LBB0_8:
	fmov	s0, s9
	fmov	s1, s10
	ldr	s2, [sp, #12]                   ; 4-byte Folded Reload
	bl	_f
	fmov	s14, s0
	fmov	s12, #1.00000000
	fsub	s1, s12, s8
	fmov	s0, s9
	fmov	s2, s13
	bl	_f
	fadd	s14, s14, s0
	fadd	s0, s15, s12
	fmul	s0, s0, s14
	fcvtzs	w0, s0
	bl	_sqrtf
	fadd	s0, s14, s0
	b	LBB0_10
LBB0_9:
	fmul	s0, s11, s10
	fcvtzs	w0, s0
	bl	_sqrtf
	fadd	s0, s11, s0
LBB0_10:
	bl	_log1pf
LBB0_11:
	str	s0, [x23]
	str	s8, [x20]
Lloh6:
	adrp	x8, _FOUR_SQRT_MIN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FOUR_SQRT_MIN@GOTPAGEOFF]
Lloh8:
	ldr	s0, [x8]
	fcmp	s0, s8
	b.le	LBB0_14
; %bb.12:
	str	wzr, [x21]
Lloh9:
	adrp	x8, _FLT_EPSILON@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FLT_EPSILON@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	mov	w9, #2
	sdiv	w8, w9, w8
	scvtf	s0, w8
	fmul	s1, s15, s0
	str	s1, [x19]
LBB0_13:
	fmul	s0, s0, s8
	str	s0, [x20]
	b	LBB0_25
LBB0_14:
	fdiv	s0, s8, s15
	str	s0, [x22]
	mov	w8, #1
	str	w8, [x21]
Lloh12:
	adrp	x8, _B_crossover@GOTPAGE
Lloh13:
	ldr	x8, [x8, _B_crossover@GOTPAGEOFF]
Lloh14:
	ldr	s1, [x8]
	fcmp	s0, s1
	b.le	LBB0_25
; %bb.15:
	str	wzr, [x21]
Lloh15:
	adrp	x21, _FLT_EPSILON@GOTPAGE
Lloh16:
	ldr	x21, [x21, _FLT_EPSILON@GOTPAGEOFF]
	ldr	w22, [x21]
	fmov	s0, #1.00000000
	fcmp	s8, s0
	b.ne	LBB0_18
; %bb.16:
	add	w8, w22, #127
	cmp	w22, #0
	csel	w8, w8, w22, lt
	asr	w8, w8, #7
	scvtf	s0, w8
	fcmp	s0, s9
	b.le	LBB0_18
; %bb.17:
	fcvtzs	w0, s9
	bl	_sqrtf
	fmov	s8, s0
	fmov	s0, #1.00000000
	fadd	s0, s15, s0
	fmov	s1, #0.50000000
	fmul	s0, s0, s1
	fcvtzs	w0, s0
	bl	_sqrtf
	fmul	s0, s8, s0
	b	LBB0_24
LBB0_18:
	fmov	s0, s11
	bl	_fabsf
	mul	w8, w0, w22
	scvtf	s0, w8
	fcmp	s0, s9
	b.ls	LBB0_21
; %bb.19:
	fmov	s0, #1.00000000
	fcmp	s8, s0
	b.le	LBB0_22
; %bb.20:
	ldr	w8, [x21]
	mov	w22, #4
	sdiv	w9, w22, w8
	sdiv	w8, w9, w8
	scvtf	s0, w8
	fmul	s0, s0, s9
	fmul	s9, s0, s8
	fmul	s0, s10, s11
	fcvtzs	w0, s0
	bl	_sqrtf
	fdiv	s0, s9, s0
	str	s0, [x19]
	ldr	w8, [x21]
	sdiv	w9, w22, w8
	sdiv	w8, w9, w8
	scvtf	s0, w8
	b	LBB0_13
LBB0_21:
	fmov	s0, s9
	fmov	s1, s10
	ldr	s2, [sp, #12]                   ; 4-byte Folded Reload
	bl	_f
	fmov	s10, s0
	fmov	s0, s9
	fmov	s1, s11
	fmov	s2, s13
	bl	_f
	fadd	s0, s10, s0
	fadd	s1, s15, s8
	fmul	s0, s1, s0
	b	LBB0_23
LBB0_22:
	fsub	s0, s0, s8
	fmul	s0, s0, s10
LBB0_23:
	fcvtzs	w0, s0
	bl	_sqrtf
LBB0_24:
	str	s0, [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,4,2                ; @A_crossover
	.comm	_FLT_EPSILON,4,2                ; @FLT_EPSILON
	.comm	_FOUR_SQRT_MIN,4,2              ; @FOUR_SQRT_MIN
	.comm	_B_crossover,4,2                ; @B_crossover
	.no_dead_strip	_do_hard_work
.subsections_via_symbols
