	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function compute_ad_info
LCPI0_0:
	.quad	0x41cdcd6500000000              ## double 1.0E+9
LCPI0_3:
	.quad	0x412e848000000000              ## double 1.0E+6
LCPI0_4:
	.quad	0x3fe0000000000000              ## double 0.5
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
LCPI0_1:
	.quad	0x41cdcd6500000000              ## double 1.0E+9
	.quad	0x41cdcd6500000000              ## double 1.0E+9
LCPI0_2:
	.quad	0x3fe0000000000000              ## double 0.5
	.quad	0x3fe0000000000000              ## double 0.5
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_compute_ad_info
	.p2align	4, 0x90
_compute_ad_info:                       ## @compute_ad_info
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	callq	_get_ad_f
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	%rax, (%r14)
	movq	8(%rbx), %rax
	movq	%rax, 8(%r14)
	movq	16(%rbx), %rax
	movq	%rax, 16(%r14)
	movq	24(%rbx), %rax
	movq	%rax, 24(%r14)
	movq	32(%rbx), %rax
	movq	%rax, 32(%r14)
	movq	40(%rbx), %rax
	movq	%rax, 40(%r14)
	movq	48(%rbx), %rax
	movq	%rax, 48(%r14)
	movq	56(%rbx), %rax
	movq	%rax, 56(%r14)
	movq	64(%rbx), %rax
	movq	%rax, 64(%r14)
	movq	72(%rbx), %rax
	movq	%rax, 72(%r14)
	movq	80(%rbx), %rax
	movq	%rax, 80(%r14)
	cvtsi2sdl	88(%rbx), %xmm0
	mulsd	LCPI0_0(%rip), %xmm0
	cvttsd2si	%xmm0, %rax
	movq	%rax, 88(%r14)
	movq	96(%rbx), %rax
	movq	%rax, 96(%r14)
	movq	104(%rbx), %rax
	movq	%rax, 104(%r14)
	cvtdq2pd	112(%rbx), %xmm0
	movapd	LCPI0_1(%rip), %xmm1            ## xmm1 = [1.0E+9,1.0E+9]
	mulpd	%xmm1, %xmm0
	movapd	LCPI0_2(%rip), %xmm2            ## xmm2 = [5.0E-1,5.0E-1]
	addpd	%xmm2, %xmm0
	cvttsd2si	%xmm0, %rax
	movq	%rax, %xmm3
	unpckhpd	%xmm0, %xmm0                    ## xmm0 = xmm0[1,1]
	cvttsd2si	%xmm0, %rax
	movq	%rax, %xmm0
	punpcklqdq	%xmm0, %xmm3            ## xmm3 = xmm3[0],xmm0[0]
	movdqu	%xmm3, 112(%r14)
	cvtdq2pd	120(%rbx), %xmm0
	mulpd	%xmm1, %xmm0
	addpd	%xmm2, %xmm0
	cvttsd2si	%xmm0, %rax
	unpckhpd	%xmm0, %xmm0                    ## xmm0 = xmm0[1,1]
	cvttsd2si	%xmm0, %rcx
	movq	%rax, %xmm0
	movq	%rcx, %xmm3
	punpcklqdq	%xmm3, %xmm0            ## xmm0 = xmm0[0],xmm3[0]
	movdqu	%xmm0, 128(%r14)
	cvtdq2pd	128(%rbx), %xmm0
	mulpd	%xmm1, %xmm0
	addpd	%xmm2, %xmm0
	cvttsd2si	%xmm0, %rax
	movq	%rax, %xmm1
	unpckhpd	%xmm0, %xmm0                    ## xmm0 = xmm0[1,1]
	cvttsd2si	%xmm0, %rax
	movq	%rax, %xmm0
	punpcklqdq	%xmm0, %xmm1            ## xmm1 = xmm1[0],xmm0[0]
	movdqu	%xmm1, 144(%r14)
	movq	16(%rbx), %rcx
	testq	%rcx, %rcx
	jle	LBB0_9
## %bb.2:
	movslq	136(%rbx), %rax
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_3
## %bb.4:
	cqto
	idivq	%rcx
	jmp	LBB0_5
LBB0_9:
	movq	$0, 160(%r14)
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_3:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_5:
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rax, %xmm0
	mulsd	LCPI0_0(%rip), %xmm0
	cvttsd2si	%xmm0, %rax
	movq	%rax, 160(%r14)
	movslq	140(%rbx), %rax
	movq	16(%rbx), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_6
## %bb.7:
	cqto
	idivq	%rcx
	jmp	LBB0_8
LBB0_6:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_8:
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rax, %xmm0
	movsd	%xmm0, -32(%rbp)                ## 8-byte Spill
	movl	$3, %edi
	callq	_sqrt
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	divsd	%xmm0, %xmm1
	mulsd	-32(%rbp), %xmm1                ## 8-byte Folded Reload
	cvttsd2si	%xmm1, %rax
LBB0_10:
	movq	%rax, 168(%r14)
	movq	144(%rbx), %rax
	movq	%rax, 176(%r14)
	movq	152(%rbx), %rax
	movq	%rax, 184(%r14)
	xorps	%xmm0, %xmm0
	cvtsi2sdl	160(%rbx), %xmm0
	mulsd	LCPI0_3(%rip), %xmm0
	addsd	LCPI0_4(%rip), %xmm0
	cvttsd2si	%xmm0, %rax
	movq	%rax, 192(%r14)
	movq	168(%rbx), %rax
	movq	%rax, 200(%r14)
	movq	176(%rbx), %rax
	movq	%rax, 208(%r14)
	movq	184(%rbx), %rax
	movq	%rax, 216(%r14)
	movq	192(%rbx), %rax
	movq	%rax, 224(%r14)
	movl	$29, %r15d
LBB0_11:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_compute_ad_info                ; -- Begin function compute_ad_info
	.p2align	2
_compute_ad_info:                       ; @compute_ad_info
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-48]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	w1, #0
	bl	_get_ad_f
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	ldr	s0, [x0, #88]
	sshll.2d	v0, v0, #0
	scvtf	d0, d0
	mov	x8, #225833675390976
	movk	x8, #16845, lsl #48
	dup.2d	v1, x8
	fmov	d2, x8
	fmul	d0, d0, d2
	fcvtzs	x8, d0
	ldp	d0, d2, [x0, #112]
	sshll.2d	v0, v0, #0
	scvtf.2d	v0, v0
	fmov.2d	v3, #0.50000000
	mov.16b	v4, v3
	fmla.2d	v4, v1, v0
	sshll.2d	v0, v2, #0
	scvtf.2d	v0, v0
	mov.16b	v2, v3
	fmla.2d	v2, v1, v0
	ldr	x9, [x0]
	str	x9, [x19]
	ldr	x9, [x0, #8]
	str	x9, [x19, #8]
	ldr	x9, [x0, #16]
	str	x9, [x19, #16]
	ldr	x9, [x0, #24]
	str	x9, [x19, #24]
	ldr	x9, [x0, #32]
	str	x9, [x19, #32]
	ldr	x9, [x0, #40]
	str	x9, [x19, #40]
	ldr	x9, [x0, #48]
	str	x9, [x19, #48]
	ldr	x9, [x0, #56]
	str	x9, [x19, #56]
	ldr	x9, [x0, #64]
	str	x9, [x19, #64]
	ldr	x9, [x0, #72]
	str	x9, [x19, #72]
	ldr	x9, [x0, #80]
	stp	x9, x8, [x19, #80]
	ldr	x8, [x0, #96]
	str	x8, [x19, #96]
	ldr	x8, [x0, #104]
	str	x8, [x19, #104]
	fcvtzs.2d	v0, v4
	fcvtzs.2d	v2, v2
	stp	q0, q2, [x19, #112]
	ldr	d0, [x0, #128]
	sshll.2d	v0, v0, #0
	scvtf.2d	v0, v0
	fmla.2d	v3, v1, v0
	fcvtzs.2d	v0, v3
	str	q0, [x19, #144]
	ldr	x8, [x0, #16]
	cmp	x8, #1
	b.lt	LBB0_3
; %bb.2:
	ldpsw	x9, x10, [x20, #136]
	sdiv	x8, x9, x8
	scvtf	d0, x8
	mov	x8, #225833675390976
	movk	x8, #16845, lsl #48
	fmov	d8, x8
	fmul	d0, d0, d8
	fcvtzs	x8, d0
	str	x8, [x19, #160]
	ldr	x8, [x20, #16]
	sdiv	x8, x10, x8
	scvtf	d9, x8
	mov	w0, #3
	bl	_sqrt
	scvtf	d0, w0
	fdiv	d0, d8, d0
	fmul	d0, d0, d9
	fcvtzs	x8, d0
	b	LBB0_4
LBB0_3:
	mov	x8, #0
	str	xzr, [x19, #160]
LBB0_4:
	str	x8, [x19, #168]
	ldr	x8, [x20, #144]
	str	x8, [x19, #176]
	ldr	s0, [x20, #160]
	sshll.2d	v0, v0, #0
	scvtf	d0, d0
	mov	x8, #145685290680320
	movk	x8, #16686, lsl #48
	fmov	d1, x8
	fmov	d2, #0.50000000
	fmadd	d0, d0, d1, d2
	fcvtzs	x8, d0
	ldr	x9, [x20, #152]
	stp	x9, x8, [x19, #184]
	ldr	x8, [x20, #168]
	str	x8, [x19, #200]
	ldr	x8, [x20, #176]
	str	x8, [x19, #208]
	ldr	x8, [x20, #184]
	str	x8, [x19, #216]
	ldr	x8, [x20, #192]
	str	x8, [x19, #224]
	mov	w0, #29
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #48               ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
