	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function chap_Respond
_chap_Respond:                          ## @chap_Respond
	.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
	movl	%r8d, %r14d
	movl	%ecx, %r8d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	20(%rdi), %ecx
	movl	16(%rdi), %r9d
	movl	4(%rdi), %eax
	movl	12(%rdi), %r10d
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	movl	%eax, %edx
	pushq	%r14
	pushq	%r10
	callq	_chap_BuildAnswer
	addq	$16, %rsp
	movl	8(%rbx), %r13d
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %r12
	movq	_CHAP_RESPONSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	4(%rbx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movsbl	(%r12), %r14d
	movq	%r15, %rdi
	callq	_strlen
	movsbl	%al, %eax
	leal	(%r14,%rax), %r8d
	incl	%r8d
	movl	%r13d, %edi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	%r12, %rcx
	movq	%r15, %r9
	callq	_ChapOutput
	xorl	%eax, %eax
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	sete	%al
	movl	%eax, (%rbx)
	movq	_MPPE_IsServer@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	%r12, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free                           ## TAILCALL
LBB0_2:
	movq	_CHAP_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%rbx), %edx
	leaq	L_.str(%rip), %rcx
	movl	%r13d, %edi
	movl	$14, %r8d
	xorl	%r9d, %r9d
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ChapOutput                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CHAP_RESPONSE,4,2              ## @CHAP_RESPONSE
	.comm	_MPPE_IsServer,8,3              ## @MPPE_IsServer
	.comm	_CHAP_FAILURE,4,2               ## @CHAP_FAILURE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Out of memory!"

	.no_dead_strip	_chap_Respond
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function chap_Respond
_chap_Respond:                          ; @chap_Respond
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x4
	mov	x4, x3
	mov	x8, x2
	mov	x21, x1
	mov	x19, x0
	ldr	w2, [x0, #4]
	ldp	w5, w3, [x0, #16]
	ldr	w6, [x0, #12]
	mov	x0, x1
	mov	x1, x8
	mov	x7, x20
	bl	_chap_BuildAnswer
	ldr	w23, [x19, #8]
	cbz	x0, LBB0_2
; %bb.1:
	mov	x22, x0
Lloh0:
	adrp	x8, _CHAP_RESPONSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CHAP_RESPONSE@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
	ldr	w25, [x19, #4]
	ldrsb	w26, [x0]
	mov	x0, x21
	bl	_strlen
	add	w8, w26, w0
	add	w4, w8, #1
	mov	x0, x23
	mov	x1, x24
	mov	x2, x25
	mov	x3, x22
	mov	x5, x21
	bl	_ChapOutput
	cmp	w20, #0
	cset	w8, eq
	str	w8, [x19]
Lloh3:
	adrp	x8, _MPPE_IsServer@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MPPE_IsServer@GOTPAGEOFF]
Lloh5:
	str	xzr, [x8]
	mov	x0, x22
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_free
LBB0_2:
Lloh6:
	adrp	x8, _CHAP_FAILURE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CHAP_FAILURE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	w2, [x19, #4]
Lloh9:
	adrp	x3, l_.str@PAGE
Lloh10:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x23
	mov	w4, #14
	mov	x5, #0
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_ChapOutput
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_CHAP_RESPONSE,4,2              ; @CHAP_RESPONSE
	.comm	_MPPE_IsServer,8,3              ; @MPPE_IsServer
	.comm	_CHAP_FAILURE,4,2               ; @CHAP_FAILURE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Out of memory!"

	.no_dead_strip	_chap_Respond
.subsections_via_symbols
