	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parseWorkerResponse
_parseWorkerResponse:                   ## @parseWorkerResponse
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	$0, -28(%rbp)
	leaq	L_.str(%rip), %rsi
	movq	%rdx, %rdi
	callq	_messageStartsWith
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	leaq	-48(%rbp), %rdx
	leaq	-28(%rbp), %rcx
	leaq	-32(%rbp), %r8
	leaq	-36(%rbp), %r9
	movq	%rbx, %rdi
	callq	_sscanf
	movq	-48(%rbp), %rax
	xorl	%edi, %edi
	cmpq	(%r15), %rax
	sete	%dil
	callq	_Assert
	movl	-36(%rbp), %r15d
	movq	%rbx, %rdi
	callq	_strlen
	xorl	%edi, %edi
	cmpl	%eax, %r15d
	sete	%dil
	callq	_Assert
	movl	-32(%rbp), %eax
	addl	%eax, (%r14)
	movl	-28(%rbp), %eax
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str.2(%rip), %rdi
	movq	%rbx, %rsi
	callq	_fatal
	xorl	%eax, %eax
LBB0_3:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"OK "

L_.str.1:                               ## @.str.1
	.asciz	"OK %d %d %d%n"

L_.str.2:                               ## @.str.2
	.asciz	"invalid message received from worker: \"%s\""

	.no_dead_strip	_parseWorkerResponse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parseWorkerResponse
_parseWorkerResponse:                   ; @parseWorkerResponse
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	str	wzr, [sp, #12]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x2
	bl	_messageStartsWith
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #24
	add	x3, sp, #12
	add	x4, sp, #16
	add	x5, sp, #20
	mov	x0, x20
	bl	_sscanf
	ldr	x8, [sp, #24]
	ldr	x9, [x21]
	cmp	x8, x9
	cset	w0, eq
	bl	_Assert
	ldr	w21, [sp, #20]
	mov	x0, x20
	bl	_strlen
	cmp	w21, w0
	cset	w0, eq
	bl	_Assert
	ldp	w0, w8, [sp, #12]
	ldr	w9, [x19]
	add	w8, w9, w8
	str	w8, [x19]
	b	LBB0_3
LBB0_2:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	bl	_fatal
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"OK "

l_.str.1:                               ; @.str.1
	.asciz	"OK %d %d %d%n"

l_.str.2:                               ; @.str.2
	.asciz	"invalid message received from worker: \"%s\""

	.no_dead_strip	_parseWorkerResponse
.subsections_via_symbols
