	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_response
_parse_response:                        ## @parse_response
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	cmpl	$128, (%rdi)
	jne	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movl	4(%rdi), %edi
	callq	_strlen
	cmpl	$2, %eax
	jg	LBB0_5
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_WARN
	jmp	LBB0_4
LBB0_1:
	movq	_S_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_5:
	movl	4(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	$3, %edx
	callq	_memcmp
	testl	%eax, %eax
	je	LBB0_6
LBB0_4:
	movq	_STATE_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_S_FALSE@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movl	4(%rbx), %eax
	addl	$3, %eax
	movl	%eax, 8(%rbx)
	movq	_STATE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_S_OK@GOTPCREL(%rip), %rax
LBB0_7:
	movl	%ecx, (%rbx)
LBB0_8:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"parse error\n"

	.comm	_STATE_DONE,8,3                 ## @STATE_DONE
	.comm	_S_FALSE,4,2                    ## @S_FALSE
L_.str.1:                               ## @.str.1
	.asciz	"+OK"

	.comm	_STATE_OK,4,2                   ## @STATE_OK
	.comm	_S_OK,4,2                       ## @S_OK
	.no_dead_strip	_parse_response
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_response
_parse_response:                        ; @parse_response
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x0]
	cmp	w8, #128
	b.ne	LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	w0, [x0, #4]
	bl	_strlen
	cmp	w0, #2
	b.gt	LBB0_4
; %bb.2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_WARN
	b	LBB0_5
LBB0_3:
Lloh2:
	adrp	x8, _S_OK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
	b	LBB0_8
LBB0_4:
	ldr	w0, [x19, #4]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #3
	bl	_memcmp
	cbz	w0, LBB0_6
LBB0_5:
Lloh6:
	adrp	x8, _STATE_DONE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _STATE_DONE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x8]
Lloh9:
	adrp	x8, _S_FALSE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _S_FALSE@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
	ldr	w8, [x19, #4]
	add	w8, w8, #3
	str	w8, [x19, #8]
Lloh11:
	adrp	x8, _STATE_OK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _STATE_OK@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x8]
Lloh14:
	adrp	x8, _S_OK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
LBB0_7:
	str	w9, [x19]
LBB0_8:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"parse error\n"

	.comm	_STATE_DONE,8,3                 ; @STATE_DONE
	.comm	_S_FALSE,4,2                    ; @S_FALSE
l_.str.1:                               ; @.str.1
	.asciz	"+OK"

	.comm	_STATE_OK,4,2                   ; @STATE_OK
	.comm	_S_OK,4,2                       ; @S_OK
	.no_dead_strip	_parse_response
.subsections_via_symbols
