	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function ComputeIoConcurrency
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_ComputeIoConcurrency
	.p2align	4, 0x90
_ComputeIoConcurrency:                  ## @ComputeIoConcurrency
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	xorl	%esi, %esi
	callq	_Max
	movq	_MAX_IO_CONCURRENCY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_Min
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	cvtsi2sd	%eax, %xmm1
	cmpl	$1, %eax
	jne	LBB0_4
## %bb.3:
	xorpd	%xmm0, %xmm0
	movsd	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero
	testb	$1, %al
	jne	LBB0_8
	jmp	LBB0_9
LBB0_1:
	xorpd	%xmm0, %xmm0
	jmp	LBB0_9
LBB0_4:
	movl	%eax, %ecx
	andl	$-2, %ecx
	xorpd	%xmm0, %xmm0
	movl	$1, %edx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	xorps	%xmm2, %xmm2
	cvtsi2sd	%edx, %xmm2
	movapd	%xmm1, %xmm3
	divsd	%xmm2, %xmm3
	addsd	%xmm0, %xmm3
	leal	1(%rdx), %esi
	xorps	%xmm2, %xmm2
	cvtsi2sd	%esi, %xmm2
	movapd	%xmm1, %xmm0
	divsd	%xmm2, %xmm0
	addsd	%xmm3, %xmm0
	addl	$2, %edx
	cmpl	%ecx, %esi
	jne	LBB0_5
## %bb.6:
	xorps	%xmm2, %xmm2
	cvtsi2sd	%edx, %xmm2
	testb	$1, %al
	je	LBB0_9
LBB0_8:
	divsd	%xmm2, %xmm1
	addsd	%xmm1, %xmm0
LBB0_9:
	movsd	%xmm0, (%rbx)
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	xorps	%xmm1, %xmm1
	cvtsi2sdq	(%rax), %xmm1
	xorpd	%xmm2, %xmm2
	cmplepd	%xmm0, %xmm2
	cmpltpd	%xmm1, %xmm0
	andpd	%xmm2, %xmm0
	movd	%xmm0, %eax
	andl	$1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_IO_CONCURRENCY,4,2         ## @MAX_IO_CONCURRENCY
	.comm	_INT_MAX,8,3                    ## @INT_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ComputeIoConcurrency           ; -- Begin function ComputeIoConcurrency
	.p2align	2
_ComputeIoConcurrency:                  ; @ComputeIoConcurrency
	.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	_Max
Lloh0:
	adrp	x8, _MAX_IO_CONCURRENCY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_IO_CONCURRENCY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_Min
	cmp	w0, #1
	b.lt	LBB0_3
; %bb.1:
	scvtf	d1, w0
	cmp	w0, #4
	b.hs	LBB0_4
; %bb.2:
	movi	d0, #0000000000000000
	mov	w8, #1
	b	LBB0_7
LBB0_3:
	movi	d0, #0000000000000000
	b	LBB0_9
LBB0_4:
	mov	w10, #0
	and	w9, w0, #0xfffffffc
	orr	w8, w9, #0x1
	movi	d0, #0000000000000000
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	w11, w10, #1
	add	w12, w10, #2
	add	w13, w10, #3
	scvtf	d2, w11
	scvtf	d3, w12
	scvtf	d4, w13
	add	w10, w10, #4
	scvtf	d5, w10
	fdiv	d2, d1, d2
	fdiv	d3, d1, d3
	fdiv	d4, d1, d4
	fdiv	d5, d1, d5
	fadd	d0, d0, d2
	fadd	d0, d0, d3
	fadd	d0, d0, d4
	fadd	d0, d0, d5
	cmp	w9, w10
	b.ne	LBB0_5
; %bb.6:
	cmp	w0, w9
	b.eq	LBB0_9
LBB0_7:
	add	w9, w0, #1
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	scvtf	d2, w8
	fdiv	d2, d1, d2
	fadd	d0, d0, d2
	add	w8, w8, #1
	cmp	w9, w8
	b.ne	LBB0_8
LBB0_9:
	str	d0, [x19]
	fcmp	d0, #0.0
	cset	w8, ge
Lloh3:
	adrp	x9, _INT_MAX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _INT_MAX@GOTPAGEOFF]
Lloh5:
	ldr	d1, [x9]
	scvtf	d1, d1
	fcmp	d0, d1
	cset	w9, mi
	and	w0, w8, w9
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_IO_CONCURRENCY,4,2         ; @MAX_IO_CONCURRENCY
	.comm	_INT_MAX,8,3                    ; @INT_MAX
.subsections_via_symbols
