	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_least_conn
_test_least_conn:                       ## @test_least_conn
	.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	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$10, %edi
	callq	_gen_targets
	movq	%rax, -80(%rbp)
	movq	%rdx, -72(%rbp)
	movw	$0, -56(%rbp)
	movq	$0, -64(%rbp)
	xorl	%eax, %eax
	callq	_h2o_balancer_create_lc
	movq	%rax, %r14
	movl	$10000, %r13d                   ## imm = 0x2710
	leaq	-80(%rbp), %r12
	leaq	-64(%rbp), %r15
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_selector
	movq	%rax, %rbx
	cmpq	$11, %rax
	jae	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_check_if_acceptable
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-72(%rbp), %rcx
	movq	(%rcx,%rbx,8), %rcx
	incl	(%rcx)
	decq	%r13
	jne	LBB0_1
## %bb.6:
	testl	%eax, %eax
	sete	%al
	jmp	LBB0_7
LBB0_2:
	cmpq	-80(%rbp), %rbx
	setb	%al
	jmp	LBB0_7
LBB0_4:
	xorl	%eax, %eax
LBB0_7:
	movzbl	%al, %edi
	callq	_ok
	leaq	-80(%rbp), %rdi
	callq	_free_targets
	movq	%r14, %rdi
	callq	_destroy
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_test_least_conn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_least_conn
_test_least_conn:                       ; @test_least_conn
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	mov	w0, #10
	bl	_gen_targets
	stp	x0, x1, [sp, #8]
	strh	wzr, [sp, #32]
	str	xzr, [sp, #24]
	mov	w21, #10000
	bl	_h2o_balancer_create_lc
	mov	x19, x0
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #8
	add	x2, sp, #24
	mov	x0, x19
	bl	_selector
	mov	x20, x0
	cmp	x0, #11
	b.hs	LBB0_5
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x0, sp, #8
	mov	x1, x20
	bl	_check_if_acceptable
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [sp, #16]
	ldr	x8, [x8, x20, lsl #3]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	subs	x21, x21, #1
	b.ne	LBB0_1
; %bb.4:
	cmp	w0, #0
	cset	w0, eq
	b	LBB0_7
LBB0_5:
	ldr	x8, [sp, #8]
	cmp	x20, x8
	cset	w0, lo
	b	LBB0_7
LBB0_6:
	mov	w0, #0
LBB0_7:
	bl	_ok
	add	x0, sp, #8
	bl	_free_targets
	mov	x0, x19
	bl	_destroy
	ldr	x8, [sp, #40]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_test_least_conn
.subsections_via_symbols
