	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tcpp_client_worker
_tcpp_client_worker:                    ## @tcpp_client_worker
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_setproctitle
	movq	_rflag@GOTPCREL(%rip), %rax
	movslq	%ebx, %rdi
	addq	(%rax), %rdi
	callq	_htons
	movq	_remoteip@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_mflag@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r14d
	shll	$2, %r14d
	movl	%r14d, %edi
	callq	_malloc
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movl	$-1, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_2:
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_bzero
	xorl	%eax, %eax
	callq	_kqueue
	movq	_kq@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	jns	LBB0_4
## %bb.3:
	leaq	L_.str.2(%rip), %rsi
	movl	$-1, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_4:
	movq	_finished@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	movq	_tflag@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	cmpq	%rax, %rcx
	jge	LBB0_18
## %bb.5:
	movq	_started@GOTPCREL(%rip), %r12
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r15), %rcx
	movq	(%r14), %rax
	cmpq	%rax, %rcx
	movq	_mflag@GOTPCREL(%rip), %rbx
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	jge	LBB0_18
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
                                        ##     Child Loop BB0_17 Depth 2
	movq	(%r12), %rdx
	movq	%rdx, %rsi
	subq	%rcx, %rsi
	movslq	(%rbx), %r8
	cmpq	%r8, %rsi
	jge	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpq	%rax, %rdx
	jge	LBB0_11
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	xorl	%eax, %eax
	callq	_tcpp_client_newconn
	movq	(%r12), %rax
	movq	%rax, %rcx
	subq	(%r15), %rcx
	movslq	(%rbx), %r8
	cmpq	%r8, %rcx
	jge	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	cmpq	(%r14), %rax
	jl	LBB0_9
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_kq@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	%r13, %rcx
                                        ## kill: def $r8d killed $r8d killed $r8
	xorl	%r9d, %r9d
	callq	_kevent
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpl	(%rbx), %r13d
	jg	LBB0_14
LBB0_15:                                ##   in Loop: Header=BB0_7 Depth=1
	testl	%r13d, %r13d
	jg	LBB0_16
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	$-1, %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_err
	cmpl	(%rbx), %r13d
	jle	LBB0_15
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	$-1, %edi
	leaq	L_.str.4(%rip), %rsi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_errx
	testl	%r13d, %r13d
	jle	LBB0_6
LBB0_16:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	%r13d, %r13d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	callq	_tcpp_client_handleconn
	addq	$4, %rbx
	decq	%r13
	jne	LBB0_17
	jmp	LBB0_6
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tcpp_client %d"

	.comm	_rflag,8,3                      ## @rflag
	.comm	_remoteip,4,2                   ## @remoteip
	.comm	_mflag,4,2                      ## @mflag
L_.str.1:                               ## @.str.1
	.asciz	"malloc"

	.comm	_kq,8,3                         ## @kq
L_.str.2:                               ## @.str.2
	.asciz	"kqueue"

	.comm	_finished,8,3                   ## @finished
	.comm	_tflag,8,3                      ## @tflag
	.comm	_started,8,3                    ## @started
L_.str.3:                               ## @.str.3
	.asciz	"kevent"

L_.str.4:                               ## @.str.4
	.asciz	"kevent: %d"

	.comm	_CPU_SETSIZE,4,2                ## @CPU_SETSIZE
	.comm	_Pflag,8,3                      ## @Pflag
	.comm	_SYSCTLNAME_CPUS,4,2            ## @SYSCTLNAME_CPUS
	.no_dead_strip	_tcpp_client_worker
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tcpp_client_worker
_tcpp_client_worker:                    ; @tcpp_client_worker
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.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, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_setproctitle
Lloh2:
	adrp	x8, _rflag@GOTPAGE
Lloh3:
	ldr	x8, [x8, _rflag@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	add	x0, x8, w19, sxtw
	bl	_htons
Lloh5:
	adrp	x8, _remoteip@GOTPAGE
Lloh6:
	ldr	x8, [x8, _remoteip@GOTPAGEOFF]
Lloh7:
	str	w0, [x8]
Lloh8:
	adrp	x23, _mflag@GOTPAGE
Lloh9:
	ldr	x23, [x23, _mflag@GOTPAGEOFF]
	ldr	w8, [x23]
	lsl	w20, w8, #2
	mov	x0, x20
	bl	_malloc
	mov	x19, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #-1
	bl	_err
LBB0_2:
	mov	x0, x19
	mov	x1, x20
	bl	_bzero
	bl	_kqueue
Lloh12:
	adrp	x24, _kq@GOTPAGE
Lloh13:
	ldr	x24, [x24, _kq@GOTPAGEOFF]
	str	x0, [x24]
	tbz	x0, #63, LBB0_4
; %bb.3:
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #-1
	bl	_err
LBB0_4:
Lloh16:
	adrp	x25, _finished@GOTPAGE
Lloh17:
	ldr	x25, [x25, _finished@GOTPAGEOFF]
	ldr	x8, [x25]
Lloh18:
	adrp	x26, _tflag@GOTPAGE
Lloh19:
	ldr	x26, [x26, _tflag@GOTPAGEOFF]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ge	LBB0_17
; %bb.5:
Lloh20:
	adrp	x27, _started@GOTPAGE
Lloh21:
	ldr	x27, [x27, _started@GOTPAGEOFF]
Lloh22:
	adrp	x20, l_.str.3@PAGE
Lloh23:
	add	x20, x20, l_.str.3@PAGEOFF
Lloh24:
	adrp	x21, l_.str.4@PAGE
Lloh25:
	add	x21, x21, l_.str.4@PAGEOFF
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x25]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ge	LBB0_17
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;     Child Loop BB0_16 Depth 2
	ldr	x10, [x27]
	ldrsw	x4, [x23]
	sub	x8, x10, x8
	cmp	x8, x4
	ccmp	x10, x9, #0, lt
	b.ge	LBB0_10
LBB0_8:                                 ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	bl	_tcpp_client_newconn
	ldr	x8, [x27]
	ldr	x9, [x25]
	ldrsw	x4, [x23]
	ldr	x10, [x26]
	sub	x9, x8, x9
	cmp	x9, x4
	ccmp	x8, x10, #0, lt
	b.lt	LBB0_8
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
                                        ; kill: def $w4 killed $w4 killed $x4 def $x4
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x0, [x24]
	mov	x1, #0
	mov	w2, #0
	mov	x3, x19
                                        ; kill: def $w4 killed $w4 killed $x4
	mov	x5, #0
	bl	_kevent
	mov	x22, x0
	tbz	w0, #31, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	w0, #-1
	mov	x1, x20
	bl	_err
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x23]
	cmp	w22, w8
	b.le	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	w0, #-1
	mov	x1, x21
	mov	x2, x22
	bl	_errx
LBB0_14:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	w22, #1
	b.lt	LBB0_6
; %bb.15:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	w28, w22
	mov	x22, x19
LBB0_16:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x22
	bl	_tcpp_client_handleconn
	add	x22, x22, #4
	subs	x28, x28, #1
	b.ne	LBB0_16
	b	LBB0_6
LBB0_17:
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tcpp_client %d"

	.comm	_rflag,8,3                      ; @rflag
	.comm	_remoteip,4,2                   ; @remoteip
	.comm	_mflag,4,2                      ; @mflag
l_.str.1:                               ; @.str.1
	.asciz	"malloc"

	.comm	_kq,8,3                         ; @kq
l_.str.2:                               ; @.str.2
	.asciz	"kqueue"

	.comm	_finished,8,3                   ; @finished
	.comm	_tflag,8,3                      ; @tflag
	.comm	_started,8,3                    ; @started
l_.str.3:                               ; @.str.3
	.asciz	"kevent"

l_.str.4:                               ; @.str.4
	.asciz	"kevent: %d"

	.comm	_CPU_SETSIZE,4,2                ; @CPU_SETSIZE
	.comm	_Pflag,8,3                      ; @Pflag
	.comm	_SYSCTLNAME_CPUS,4,2            ; @SYSCTLNAME_CPUS
	.no_dead_strip	_tcpp_client_worker
.subsections_via_symbols
