	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_digest_client_request          ## -- Begin function digest_client_request
	.p2align	4, 0x90
_digest_client_request:                 ## @digest_client_request
	.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, %r15
	cmpq	$0, 40(%rdi)
	je	LBB0_1
## %bb.2:
	cmpq	$0, (%r15)
	je	LBB0_3
LBB0_4:
	cmpq	$0, 48(%r15)
	jne	LBB0_6
LBB0_5:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_6:
	movq	40(%r15), %r14
	movq	%r14, %rdi
	callq	_strlen
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_malloc
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	callq	_errx
	movq	40(%r15), %r14
LBB0_8:
	movq	%r14, %rdi
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rsi
	movl	%r12d, %edx
	callq	_hex_decode
	movq	%rax, %rbx
	testq	%rax, %rax
	jg	LBB0_10
## %bb.9:
	leaq	L_.str.4(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_10:
	movq	16(%r15), %r14
	testq	%r14, %r14
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_11
## %bb.12:
	movq	%r14, %rdi
	callq	_strlen
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_malloc
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_14
## %bb.13:
	leaq	L_.str.5(%rip), %rsi
	movl	$1, %edi
	callq	_errx
	movq	16(%r15), %r14
LBB0_14:
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%r13d, %edx
	callq	_hex_decode
	movq	%rax, %r13
	testq	%rax, %rax
	jg	LBB0_16
## %bb.15:
	leaq	L_.str.6(%rip), %rsi
	movl	$1, %edi
	callq	_errx
	jmp	LBB0_16
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_errx
	cmpq	$0, (%r15)
	jne	LBB0_4
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_errx
	cmpq	$0, 48(%r15)
	jne	LBB0_6
	jmp	LBB0_5
LBB0_11:
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
LBB0_16:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	32(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.17:
	leaq	-41(%rbp), %rsi
	movl	$1, %edx
	callq	_hex_decode
	cmpl	$1, %eax
	je	LBB0_19
## %bb.18:
	leaq	L_.str.7(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_19:
	movl	24(%r15), %edi
	leaq	L_.str.8(%rip), %rsi
	callq	_strcasecmp
	testq	%rax, %rax
	je	LBB0_20
## %bb.23:
	movl	24(%r15), %edi
	leaq	L_.str.10(%rip), %rsi
	callq	_strcasecmp
	testq	%rax, %rax
	jne	LBB0_29
## %bb.24:
	cmpq	$0, 16(%r15)
	jne	LBB0_26
## %bb.25:
	leaq	L_.str.11(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_26:
	movq	8(%r15), %r8
	testq	%r8, %r8
	jne	LBB0_28
## %bb.27:
	leaq	L_.str.11(%rip), %rsi
	movl	$1, %edi
	callq	_errx
	movq	8(%r15), %r8
LBB0_28:
	movq	(%r15), %r9
	movq	%rbx, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	_client_mschapv2
	jmp	LBB0_29
LBB0_20:
	cmpq	$0, 32(%r15)
	jne	LBB0_22
## %bb.21:
	leaq	L_.str.9(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_22:
	movsbl	-41(%rbp), %edx
	movq	(%r15), %rcx
	movq	%rbx, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_client_chap
LBB0_29:
	testq	%r12, %r12
	je	LBB0_31
## %bb.30:
	movq	%r12, %rdi
	callq	_free
LBB0_31:
	movq	%rbx, %rdi
	callq	_free
	xorl	%eax, %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	"server nonce missing"

L_.str.1:                               ## @.str.1
	.asciz	"password missing"

L_.str.2:                               ## @.str.2
	.asciz	"opaque missing"

L_.str.3:                               ## @.str.3
	.asciz	"server_nonce"

L_.str.4:                               ## @.str.4
	.asciz	"server nonce wrong"

L_.str.5:                               ## @.str.5
	.asciz	"client_nonce"

L_.str.6:                               ## @.str.6
	.asciz	"client nonce wrong"

L_.str.7:                               ## @.str.7
	.asciz	"server identifier wrong length"

L_.str.8:                               ## @.str.8
	.asciz	"CHAP"

L_.str.9:                               ## @.str.9
	.asciz	"server identifier missing"

L_.str.10:                              ## @.str.10
	.asciz	"MS-CHAP-V2"

L_.str.11:                              ## @.str.11
	.asciz	"client nonce missing"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_digest_client_request          ; -- Begin function digest_client_request
	.p2align	2
_digest_client_request:                 ; @digest_client_request
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x0
	ldr	x8, [x0, #40]
	cbz	x8, LBB0_14
; %bb.1:
	ldr	x8, [x19]
	cbz	x8, LBB0_15
LBB0_2:
	ldr	x8, [x19, #48]
	cbnz	x8, LBB0_4
LBB0_3:
Lloh0:
	adrp	x1, l_.str.2@PAGE
Lloh1:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_4:
	ldr	x22, [x19, #40]
	mov	x0, x22
	bl	_strlen
	mov	x21, x0
	bl	_malloc
	mov	x20, x0
	cbnz	x0, LBB0_6
; %bb.5:
Lloh2:
	adrp	x1, l_.str.3@PAGE
Lloh3:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_errx
	ldr	x22, [x19, #40]
LBB0_6:
	mov	x0, x22
	mov	x1, x20
	mov	x2, x21
	bl	_hex_decode
	mov	x21, x0
	cmp	x0, #0
	b.gt	LBB0_8
; %bb.7:
Lloh4:
	adrp	x1, l_.str.4@PAGE
Lloh5:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_8:
	ldr	x24, [x19, #16]
	cbz	x24, LBB0_16
; %bb.9:
	mov	x0, x24
	bl	_strlen
	mov	x23, x0
	bl	_malloc
	mov	x22, x0
	cbnz	x0, LBB0_11
; %bb.10:
Lloh6:
	adrp	x1, l_.str.5@PAGE
Lloh7:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w0, #1
	bl	_errx
	ldr	x24, [x19, #16]
LBB0_11:
	mov	x0, x24
	mov	x1, x22
	mov	x2, x23
	bl	_hex_decode
	mov	x23, x0
	cmp	x0, #0
	b.gt	LBB0_13
; %bb.12:
Lloh8:
	adrp	x1, l_.str.6@PAGE
Lloh9:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_13:
	ldr	x0, [x19, #32]
	cbnz	x0, LBB0_17
	b	LBB0_19
LBB0_14:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_errx
	ldr	x8, [x19]
	cbnz	x8, LBB0_2
LBB0_15:
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_errx
	ldr	x8, [x19, #48]
	cbnz	x8, LBB0_4
	b	LBB0_3
LBB0_16:
	mov	x23, #0
	mov	x22, #0
	ldr	x0, [x19, #32]
	cbz	x0, LBB0_19
LBB0_17:
	add	x1, sp, #15
	mov	w2, #1
	bl	_hex_decode
	cmp	w0, #1
	b.eq	LBB0_19
; %bb.18:
Lloh14:
	adrp	x1, l_.str.7@PAGE
Lloh15:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_19:
	ldr	w0, [x19, #24]
Lloh16:
	adrp	x1, l_.str.8@PAGE
Lloh17:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_strcasecmp
	cbz	x0, LBB0_24
; %bb.20:
	ldr	w0, [x19, #24]
Lloh18:
	adrp	x1, l_.str.10@PAGE
Lloh19:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_strcasecmp
	cbnz	x0, LBB0_27
; %bb.21:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_30
; %bb.22:
	ldr	x4, [x19, #8]
	cbz	x4, LBB0_31
LBB0_23:
	ldr	x5, [x19]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	mov	x3, x23
	bl	_client_mschapv2
	b	LBB0_27
LBB0_24:
	ldr	x8, [x19, #32]
	cbnz	x8, LBB0_26
; %bb.25:
Lloh20:
	adrp	x1, l_.str.9@PAGE
Lloh21:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_26:
	ldrsb	w2, [sp, #15]
	ldr	x3, [x19]
	mov	x0, x20
	mov	x1, x21
	bl	_client_chap
LBB0_27:
	cbz	x22, LBB0_29
; %bb.28:
	mov	x0, x22
	bl	_free
LBB0_29:
	mov	x0, x20
	bl	_free
	mov	w0, #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
	add	sp, sp, #80
	ret
LBB0_30:
Lloh22:
	adrp	x1, l_.str.11@PAGE
Lloh23:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	w0, #1
	bl	_errx
	ldr	x4, [x19, #8]
	cbnz	x4, LBB0_23
LBB0_31:
Lloh24:
	adrp	x1, l_.str.11@PAGE
Lloh25:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	w0, #1
	bl	_errx
	ldr	x4, [x19, #8]
	b	LBB0_23
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"server nonce missing"

l_.str.1:                               ; @.str.1
	.asciz	"password missing"

l_.str.2:                               ; @.str.2
	.asciz	"opaque missing"

l_.str.3:                               ; @.str.3
	.asciz	"server_nonce"

l_.str.4:                               ; @.str.4
	.asciz	"server nonce wrong"

l_.str.5:                               ; @.str.5
	.asciz	"client_nonce"

l_.str.6:                               ; @.str.6
	.asciz	"client nonce wrong"

l_.str.7:                               ; @.str.7
	.asciz	"server identifier wrong length"

l_.str.8:                               ; @.str.8
	.asciz	"CHAP"

l_.str.9:                               ; @.str.9
	.asciz	"server identifier missing"

l_.str.10:                              ; @.str.10
	.asciz	"MS-CHAP-V2"

l_.str.11:                              ; @.str.11
	.asciz	"client nonce missing"

.subsections_via_symbols
