	.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_ctr
LCPI0_0:
	.quad	0x3fe0000000000000              ## double 0.5
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_compute_ad_ctr
	.p2align	4, 0x90
_compute_ad_ctr:                        ## @compute_ad_ctr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_get_ad_f
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	(%rax), %rcx
	movq	%rcx, (%r14)
	movq	8(%rax), %rcx
	movq	%rcx, 8(%r14)
	movq	16(%rax), %rcx
	shlq	$32, %rcx
	cvtsi2sd	%rcx, %xmm0
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	addsd	%xmm1, %xmm0
	cvttsd2si	%xmm0, %rcx
	movq	%rcx, 16(%r14)
	movq	24(%rax), %rcx
	shlq	$32, %rcx
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rcx, %xmm0
	addsd	%xmm1, %xmm0
	cvttsd2si	%xmm0, %rcx
	movq	%rcx, 24(%r14)
	movq	32(%rax), %rax
	shlq	$32, %rax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rax, %xmm0
	addsd	%xmm1, %xmm0
	cvttsd2si	%xmm0, %rax
	movq	%rax, 32(%r14)
	movl	$5, %ebx
LBB0_2:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	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_ctr                 ; -- Begin function compute_ad_ctr
	.p2align	2
_compute_ad_ctr:                        ; @compute_ad_ctr
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	w1, #0
	bl	_get_ad_f
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x0]
	str	x8, [x19]
	ldr	x8, [x0, #8]
	str	x8, [x19, #8]
	ldr	x8, [x0, #16]
	lsl	x8, x8, #32
	scvtf	d0, x8
	fmov	d1, #0.50000000
	fadd	d0, d0, d1
	fcvtzs	x8, d0
	str	x8, [x19, #16]
	ldr	x8, [x0, #24]
	lsl	x8, x8, #32
	scvtf	d0, x8
	fadd	d0, d0, d1
	fcvtzs	x8, d0
	str	x8, [x19, #24]
	ldr	x8, [x0, #32]
	lsl	x8, x8, #32
	scvtf	d0, x8
	fadd	d0, d0, d1
	fcvtzs	x8, d0
	str	x8, [x19, #32]
	mov	w0, #5
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
