	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lb_simple_accept_loop
_lb_simple_accept_loop:                 ## @lb_simple_accept_loop
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $r8d killed $r8d def $r8
	movq	%rcx, %r13
	movq	%rdx, %r12
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movslq	%r8d, %rax
	movq	%rax, %rcx
	orq	%r13, %rcx
	shrq	$32, %rcx
	je	LBB0_1
## %bb.2:
	xorl	%edx, %edx
	divq	%r13
	jmp	LBB0_3
LBB0_1:
	movl	%r8d, %eax
	xorl	%edx, %edx
	divl	%r13d
                                        ## kill: def $eax killed $eax def $rax
LBB0_3:
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r8, %rbx
	movq	%r13, %rdi
	movl	$4, %esi
	callq	_calloc
	xorl	%r15d, %r15d
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	setne	%r15b
	movq	_errno@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_strerror
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_ATF_REQUIRE_MSG
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	testl	%ebx, %ebx
	jg	LBB0_8
LBB0_4:
	testq	%r13, %r13
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_7
## %bb.5:
	shrq	$3, %r14
	leaq	L_.str.5(%rip), %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	cmpl	%r14d, (%r12,%rbx,4)
	setg	%dil
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_ATF_REQUIRE_MSG
	incq	%rbx
	cmpq	%rbx, %r13
	jne	LBB0_6
LBB0_7:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	leal	-1(%r14), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_close
	xorl	%ebx, %ebx
	testl	%eax, %eax
	sete	%bl
	movq	(%r15), %rdi
	callq	_strerror
	movl	%ebx, %edi
	leaq	L_.str.4(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_ATF_REQUIRE_MSG
	cmpl	$1, %r14d
	movq	%r15, %r14
	movl	-48(%rbp), %eax                 ## 4-byte Reload
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	jle	LBB0_4
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
                                        ##       Child Loop BB0_10 Depth 3
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	xorl	%edx, %edx
	callq	_socket
	movl	%eax, %r15d
	movl	%eax, %ebx
	notl	%ebx
	shrl	$31, %ebx
	movq	(%r14), %rdi
	callq	_strerror
	movl	%ebx, %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_ATF_REQUIRE_MSG
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movl	(%rsi), %edx
	movl	%r15d, -52(%rbp)                ## 4-byte Spill
	movl	%r15d, %edi
	callq	_connect
	xorl	%ebx, %ebx
	testl	%eax, %eax
	sete	%bl
	movq	%r14, %r15
	movq	(%r14), %rdi
	callq	_strerror
	movl	%ebx, %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_ATF_REQUIRE_MSG
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=2
	movl	%eax, %edi
	callq	_close
	xorl	%ebx, %ebx
	testl	%eax, %eax
	sete	%bl
	movq	(%r15), %rdi
	callq	_strerror
	movl	%ebx, %edi
	leaq	L_.str.4(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_ATF_REQUIRE_MSG
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	incl	(%rax,%r14,4)
LBB0_14:                                ##   in Loop: Header=BB0_9 Depth=2
	cmpq	%r13, %r14
	jne	LBB0_15
LBB0_9:                                 ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_10 Depth 3
	xorl	%r14d, %r14d
	testq	%r13, %r13
	je	LBB0_14
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_8 Depth=1
                                        ##     Parent Loop BB0_9 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	(%r12,%r14,4), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_accept
	testl	%eax, %eax
	jns	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=3
	movq	(%r15), %rdi
	movq	_EWOULDBLOCK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	sete	%al
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdi
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %ebx
	callq	_strerror
	movl	%ebx, %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_ATF_REQUIRE_MSG
	incq	%r14
	cmpq	%r14, %r13
	jne	LBB0_10
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	%r13, %r14
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"calloc() failed: %s"

	.comm	_errno,8,3                      ## @errno
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
L_.str.1:                               ## @.str.1
	.asciz	"socket() failed: %s"

L_.str.2:                               ## @.str.2
	.asciz	"connect() failed: %s"

	.comm	_EWOULDBLOCK,8,3                ## @EWOULDBLOCK
	.comm	_EAGAIN,8,3                     ## @EAGAIN
L_.str.3:                               ## @.str.3
	.asciz	"accept() failed: %s"

L_.str.4:                               ## @.str.4
	.asciz	"close() failed: %s"

L_.str.5:                               ## @.str.5
	.asciz	"uneven balancing"

	.no_dead_strip	_lb_simple_accept_loop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lb_simple_accept_loop
_lb_simple_accept_loop:                 ; @lb_simple_accept_loop
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [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 w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x4
	mov	x27, x3
	mov	x22, x2
	str	x1, [sp, #32]                   ; 8-byte Folded Spill
	str	w0, [sp, #28]                   ; 4-byte Folded Spill
	mov	x0, x3
	mov	w1, #4
	bl	_calloc
	mov	x20, x0
	cmp	x0, #0
	cset	w21, ne
Lloh0:
	adrp	x26, _errno@GOTPAGE
Lloh1:
	ldr	x26, [x26, _errno@GOTPAGEOFF]
	ldr	x0, [x26]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_ATF_REQUIRE_MSG
	str	x19, [sp, #16]                  ; 8-byte Folded Spill
	cmp	w19, #1
	b.lt	LBB0_10
; %bb.1:
Lloh4:
	adrp	x24, _EWOULDBLOCK@GOTPAGE
Lloh5:
	ldr	x24, [x24, _EWOULDBLOCK@GOTPAGEOFF]
Lloh6:
	adrp	x23, _EAGAIN@GOTPAGE
Lloh7:
	ldr	x23, [x23, _EAGAIN@GOTPAGEOFF]
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
                                        ; kill: def $w8 killed $w8 killed $x8
Lloh8:
	adrp	x28, l_.str.3@PAGE
Lloh9:
	add	x28, x28, l_.str.3@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_close
	cmp	w0, #0
	cset	w21, eq
	ldr	x0, [x26]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	mov	x0, x21
Lloh10:
	adrp	x1, l_.str.4@PAGE
Lloh11:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_ATF_REQUIRE_MSG
	ldr	w8, [sp, #44]                   ; 4-byte Folded Reload
	subs	w8, w8, #1
	b.le	LBB0_10
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
                                        ;       Child Loop BB0_7 Depth 3
	str	w8, [sp, #44]                   ; 4-byte Folded Spill
Lloh12:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldr	w0, [sp, #28]                   ; 4-byte Folded Reload
	mov	w2, #0
	bl	_socket
	mov	x21, x0
	mvn	w8, w0
	lsr	w25, w8, #31
	ldr	x0, [x26]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	mov	x0, x25
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_ATF_REQUIRE_MSG
	ldr	x1, [sp, #32]                   ; 8-byte Folded Reload
	ldr	w2, [x1]
	mov	x0, x21
	bl	_connect
	cmp	w0, #0
	cset	w25, eq
	ldr	x0, [x26]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	mov	x0, x25
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_ATF_REQUIRE_MSG
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=2
	bl	_close
	cmp	w0, #0
	cset	w25, eq
	ldr	x0, [x26]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	mov	x0, x25
Lloh19:
	adrp	x1, l_.str.4@PAGE
Lloh20:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_ATF_REQUIRE_MSG
	lsl	x8, x19, #2
	ldr	w9, [x20, x8]
	add	w9, w9, #1
	str	w9, [x20, x8]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	cmp	x19, x27
	b.ne	LBB0_2
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_7 Depth 3
	mov	x19, #0
	cbz	x27, LBB0_5
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_6 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w0, [x22, x19, lsl #2]
	mov	x1, #0
	mov	x2, #0
	bl	_accept
	tbz	w0, #31, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=3
	ldr	x0, [x26]
	ldr	x8, [x24]
	cmp	x0, x8
	ldr	x8, [x23]
	ccmp	x0, x8, #4, ne
	cset	w25, eq
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	mov	x0, x25
	mov	x1, x28
	bl	_ATF_REQUIRE_MSG
	add	x19, x19, #1
	cmp	x27, x19
	b.ne	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x19, x27
	b	LBB0_5
LBB0_10:
	cbz	x27, LBB0_13
; %bb.11:
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	sxtw	x8, w8
	udiv	x8, x8, x27
	lsr	x19, x8, #3
Lloh21:
	adrp	x21, l_.str.5@PAGE
Lloh22:
	add	x21, x21, l_.str.5@PAGEOFF
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20], #4
	cmp	w8, w19
	cset	w0, gt
	mov	x1, x21
	bl	_ATF_REQUIRE_MSG
	subs	x27, x27, #1
	b.ne	LBB0_12
LBB0_13:
	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	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"calloc() failed: %s"

	.comm	_errno,8,3                      ; @errno
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
l_.str.1:                               ; @.str.1
	.asciz	"socket() failed: %s"

l_.str.2:                               ; @.str.2
	.asciz	"connect() failed: %s"

	.comm	_EWOULDBLOCK,8,3                ; @EWOULDBLOCK
	.comm	_EAGAIN,8,3                     ; @EAGAIN
l_.str.3:                               ; @.str.3
	.asciz	"accept() failed: %s"

l_.str.4:                               ; @.str.4
	.asciz	"close() failed: %s"

l_.str.5:                               ; @.str.5
	.asciz	"uneven balancing"

	.no_dead_strip	_lb_simple_accept_loop
.subsections_via_symbols
