	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handleTgtResp
_handleTgtResp:                         ## @handleTgtResp
	.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	%rsi, %rbx
	movq	(%rdi), %r12
	leaq	L_.str(%rip), %rdi
	callq	_getkeyval
	movl	$-1, %r13d
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	movq	%rax, %r15
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	callq	_getkeyval
	testq	%rax, %rax
	je	LBB0_12
## %bb.2:
	movq	%rax, %r14
	movq	16(%r12), %rsi
	testq	%rsi, %rsi
	jne	LBB0_4
## %bb.3:
	movq	8(%r12), %rsi
LBB0_4:
	movq	%r15, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdx
	callq	_fprintf
	jmp	LBB0_12
LBB0_6:
	movq	(%r12), %rdi
	leaq	-56(%rbp), %rsi
	callq	_str2bin
	movl	%eax, %ebx
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_str2bin
	movl	%eax, %r15d
	movq	(%r12), %rcx
	leaq	L_.str.3(%rip), %rsi
	movl	$3, %edi
	movl	%ebx, %edx
	movl	%eax, %r8d
	movq	%r14, %r9
	xorl	%eax, %eax
	callq	_debug
	movl	$-1, %r13d
	cmpl	%r15d, %ebx
	jne	LBB0_8
## %bb.7:
	movq	-56(%rbp), %rdi
	movq	-48(%rbp), %rsi
	movl	%ebx, %edx
	callq	_memcmp
	negq	%rax
	movl	$0, %r13d
	sbbl	%r13d, %r13d
LBB0_8:
	testl	%ebx, %ebx
	je	LBB0_10
## %bb.9:
	movq	-56(%rbp), %rdi
	callq	_free
LBB0_10:
	testl	%r15d, %r15d
	je	LBB0_12
## %bb.11:
	movq	-48(%rbp), %rdi
	callq	_free
LBB0_12:
	movq	(%r12), %rdi
	callq	_free
	movq	$0, (%r12)
	leaq	L_.str.4(%rip), %rsi
	movl	$3, %edi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_debug
	movl	%r13d, %eax
	addq	$24, %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	"CHAP_N="

L_.str.1:                               ## @.str.1
	.asciz	"CHAP_R="

	.comm	_stderr,4,2                     ## @stderr
L_.str.2:                               ## @.str.2
	.asciz	"%s does not match\n"

L_.str.3:                               ## @.str.3
	.asciz	"l1=%d '%s' l2=%d '%s'"

L_.str.4:                               ## @.str.4
	.asciz	"res=%d"

	.no_dead_strip	_handleTgtResp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handleTgtResp
_handleTgtResp:                         ; @handleTgtResp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x1
	ldr	x22, [x0]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getkeyval
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_getkeyval
	cbz	x0, LBB0_6
; %bb.2:
	mov	x19, x0
	ldr	x1, [x22, #16]
	cbnz	x1, LBB0_4
; %bb.3:
	ldr	x1, [x22, #8]
LBB0_4:
	mov	x0, x20
	bl	_strcmp
	cbz	x0, LBB0_8
; %bb.5:
Lloh4:
	adrp	x8, _stderr@GOTPAGE
Lloh5:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x20
	bl	_fprintf
LBB0_6:
	mov	w19, #-1
LBB0_7:
	ldr	x0, [x22]
	bl	_free
	str	xzr, [x22]
Lloh9:
	adrp	x1, l_.str.4@PAGE
Lloh10:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #3
	mov	x2, x19
	bl	_debug
	mov	x0, x19
	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
	add	sp, sp, #96
	ret
LBB0_8:
	ldr	x0, [x22]
	add	x1, sp, #40
	bl	_str2bin
	mov	x21, x0
	add	x1, sp, #32
	mov	x0, x19
	bl	_str2bin
	mov	x20, x0
	ldr	x8, [x22]
	stp	x20, x19, [sp, #8]
	str	x8, [sp]
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #3
	mov	x2, x21
	bl	_debug
	cmp	w21, w20
	b.ne	LBB0_10
; %bb.9:
	ldp	x1, x0, [sp, #32]
	mov	x2, x21
	bl	_memcmp
	cmp	x0, #0
	csetm	w19, ne
	cbnz	w21, LBB0_11
	b	LBB0_12
LBB0_10:
	mov	w19, #-1
	cbz	w21, LBB0_12
LBB0_11:
	ldr	x0, [sp, #40]
	bl	_free
LBB0_12:
	cbz	w20, LBB0_7
; %bb.13:
	ldr	x0, [sp, #32]
	bl	_free
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CHAP_N="

l_.str.1:                               ; @.str.1
	.asciz	"CHAP_R="

	.comm	_stderr,4,2                     ; @stderr
l_.str.2:                               ; @.str.2
	.asciz	"%s does not match\n"

l_.str.3:                               ; @.str.3
	.asciz	"l1=%d '%s' l2=%d '%s'"

l_.str.4:                               ; @.str.4
	.asciz	"res=%d"

	.no_dead_strip	_handleTgtResp
.subsections_via_symbols
