	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function chap_ChallengeInit
_chap_ChallengeInit:                    ## @chap_ChallengeInit
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_auth2chap
	movq	%rax, %r13
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_strlen
	movl	%eax, %r14d
	movq	(%r13), %rax
	cmpb	$0, (%rax)
	je	LBB0_1
## %bb.13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	xorl	%eax, %eax
	callq	_randinit
	movq	(%r13), %r12
	movq	(%r15), %rax
	movq	(%rax), %rcx
	movq	(%rcx), %rcx
	movq	8(%rcx), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_3
## %bb.2:
	movb	$16, (%r12)
	xorl	%eax, %eax
	callq	_random
	cltq
	imulq	$1717986919, %rax, %rcx         ## imm = 0x66666667
	movq	%rcx, %rdx
	shrq	$63, %rdx
	shrq	$34, %rcx
	addl	%edx, %ecx
	addl	%ecx, %ecx
	leal	(%rcx,%rcx,4), %ecx
	subl	%ecx, %eax
	addb	$48, %al
	movb	%al, 1(%r12)
	xorl	%eax, %eax
	callq	_random
	cltq
	imulq	$1717986919, %rax, %rcx         ## imm = 0x66666667
	movq	%rcx, %rdx
	shrq	$63, %rdx
	shrq	$34, %rcx
	addl	%edx, %ecx
	addl	%ecx, %ecx
	leal	(%rcx,%rcx,4), %ecx
	subl	%ecx, %eax
	addb	$48, %al
	movb	%al, 2(%r12)
	xorl	%eax, %eax
	callq	_random
	cltq
	imulq	$1717986919, %rax, %rcx         ## imm = 0x66666667
	movq	%rcx, %rdx
	shrq	$63, %rdx
	shrq	$34, %rcx
	addl	%edx, %ecx
	addl	%ecx, %ecx
	leal	(%rcx,%rcx,4), %ecx
	subl	%ecx, %eax
	addb	$48, %al
	movb	%al, 3(%r12)
	xorl	%eax, %eax
	callq	_random
	cltq
	imulq	$1717986919, %rax, %rcx         ## imm = 0x66666667
	movq	%rcx, %rdx
	shrq	$63, %rdx
	shrq	$34, %rcx
	addl	%edx, %ecx
	addl	%ecx, %ecx
	leal	(%rcx,%rcx,4), %ecx
	subl	%ecx, %eax
	addb	$48, %al
	movb	%al, 4(%r12)
	xorl	%eax, %eax
	callq	_random
	cltq
	imulq	$1717986919, %rax, %rcx         ## imm = 0x66666667
	movq	%rcx, %rdx
	shrq	$63, %rdx
	shrq	$34, %rcx
	addl	%edx, %ecx
	addl	%ecx, %ecx
	leal	(%rcx,%rcx,4), %ecx
	subl	%ecx, %eax
	addb	$48, %al
	movb	%al, 5(%r12)
	xorl	%eax, %eax
	callq	_random
	cltq
	imulq	$1717986919, %rax, %rcx         ## imm = 0x66666667
	movq	%rcx, %rdx
	shrq	$63, %rdx
	shrq	$34, %rcx
	addl	%edx, %ecx
	addl	%ecx, %ecx
	leal	(%rcx,%rcx,4), %ecx
	subl	%ecx, %eax
	addb	$48, %al
	movb	%al, 6(%r12)
	xorl	%eax, %eax
	callq	_random
	cltq
	imulq	$1717986919, %rax, %rcx         ## imm = 0x66666667
	movq	%rcx, %rdx
	shrq	$63, %rdx
	shrq	$34, %rcx
	addl	%edx, %ecx
	addl	%ecx, %ecx
	leal	(%rcx,%rcx,4), %ecx
	subl	%ecx, %eax
	addb	$48, %al
	movb	%al, 7(%r12)
	xorl	%eax, %eax
	callq	_random
	cltq
	imulq	$1717986919, %rax, %rcx         ## imm = 0x66666667
	movq	%rcx, %rdx
	shrq	$63, %rdx
	shrq	$34, %rcx
	addl	%edx, %ecx
	addl	%ecx, %ecx
	leal	(%rcx,%rcx,4), %ecx
	subl	%ecx, %eax
	addb	$48, %al
	movb	%al, 8(%r12)
	xorl	%eax, %eax
	callq	_random
	cltq
	imulq	$1717986919, %rax, %rcx         ## imm = 0x66666667
	movq	%rcx, %rdx
	shrq	$63, %rdx
	shrq	$34, %rcx
	addl	%edx, %ecx
	addl	%ecx, %ecx
	leal	(%rcx,%rcx,4), %ecx
	subl	%ecx, %eax
	addb	$48, %al
	movb	%al, 9(%r12)
	xorl	%eax, %eax
	callq	_random
	cltq
	imulq	$1717986919, %rax, %rcx         ## imm = 0x66666667
	movq	%rcx, %rdx
	shrq	$63, %rdx
	shrq	$34, %rcx
	addl	%edx, %ecx
	addl	%ecx, %ecx
	leal	(%rcx,%rcx,4), %ecx
	subl	%ecx, %eax
	addb	$48, %al
	movb	%al, 10(%r12)
	xorl	%eax, %eax
	callq	_random
	cltq
	imulq	$1717986919, %rax, %rcx         ## imm = 0x66666667
	movq	%rcx, %rdx
	shrq	$63, %rdx
	shrq	$34, %rcx
	addl	%edx, %ecx
	addl	%ecx, %ecx
	leal	(%rcx,%rcx,4), %ecx
	subl	%ecx, %eax
	addb	$48, %al
	movb	%al, 11(%r12)
	xorl	%eax, %eax
	callq	_random
	cltq
	imulq	$1717986919, %rax, %rcx         ## imm = 0x66666667
	movq	%rcx, %rdx
	shrq	$63, %rdx
	shrq	$34, %rcx
	addl	%edx, %ecx
	addl	%ecx, %ecx
	leal	(%rcx,%rcx,4), %ecx
	subl	%ecx, %eax
	addb	$48, %al
	movb	%al, 12(%r12)
	xorl	%eax, %eax
	callq	_random
	cltq
	imulq	$1717986919, %rax, %rcx         ## imm = 0x66666667
	movq	%rcx, %rdx
	shrq	$63, %rdx
	shrq	$34, %rcx
	addl	%edx, %ecx
	addl	%ecx, %ecx
	leal	(%rcx,%rcx,4), %ecx
	subl	%ecx, %eax
	addb	$48, %al
	movb	%al, 13(%r12)
	xorl	%eax, %eax
	callq	_random
	cltq
	imulq	$1717986919, %rax, %rcx         ## imm = 0x66666667
	movq	%rcx, %rdx
	shrq	$63, %rdx
	shrq	$34, %rcx
	addl	%edx, %ecx
	addl	%ecx, %ecx
	leal	(%rcx,%rcx,4), %ecx
	subl	%ecx, %eax
	addb	$48, %al
	movb	%al, 14(%r12)
	xorl	%eax, %eax
	callq	_random
	cltq
	imulq	$1717986919, %rax, %rcx         ## imm = 0x66666667
	movq	%rcx, %rdx
	shrq	$63, %rdx
	shrq	$34, %rcx
	addl	%edx, %ecx
	addl	%ecx, %ecx
	leal	(%rcx,%rcx,4), %ecx
	subl	%ecx, %eax
	addb	$48, %al
	movb	%al, 15(%r12)
	xorl	%eax, %eax
	callq	_random
	cltq
	imulq	$1717986919, %rax, %rcx         ## imm = 0x66666667
	movq	%rcx, %rdx
	shrq	$63, %rdx
	shrq	$34, %rcx
	addl	%edx, %ecx
	addl	%ecx, %ecx
	leal	(%rcx,%rcx,4), %ecx
	subl	%ecx, %eax
	addb	$48, %al
	movb	%al, 16(%r12)
	addq	$17, %r12
	jmp	LBB0_12
LBB0_3:
	movl	8(%rax), %eax
	cmpl	$128, %eax
	je	LBB0_4
## %bb.5:
	cmpl	$129, %eax
	jne	LBB0_7
## %bb.6:
	movb	$16, %dl
	jmp	LBB0_8
LBB0_4:
	movb	$8, %dl
	jmp	LBB0_8
LBB0_7:
	xorl	%eax, %eax
	callq	_random
	movq	_CHAPCHALLENGELEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	$-16, %ecx
	cltd
	idivl	%ecx
	addb	$16, %dl
LBB0_8:
	movb	%dl, (%r12)
	incq	%r12
	movq	(%r13), %rax
	cmpb	$0, (%rax)
	jle	LBB0_12
## %bb.9:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_random
	movb	%al, (%r12,%rbx)
	movq	(%r13), %rax
	movsbl	(%rax), %eax
	incq	%rbx
	cmpl	%eax, %ebx
	jl	LBB0_10
## %bb.11:
	addq	%rbx, %r12
LBB0_12:
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memcpy                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CHAPCHALLENGELEN,4,2           ## @CHAPCHALLENGELEN
	.no_dead_strip	_chap_ChallengeInit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function chap_ChallengeInit
_chap_ChallengeInit:                    ; @chap_ChallengeInit
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	bl	_auth2chap
	mov	x22, x0
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w0, [x8]
	bl	_strlen
	ldr	x8, [x22]
	ldrb	w8, [x8]
	cbz	w8, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x20, x0
	bl	_randinit
	ldr	x21, [x22]
	ldr	x8, [x19]
	ldr	x9, [x8]
	ldr	x9, [x9]
	ldr	x9, [x9, #8]
	ldr	x9, [x9]
	cbz	x9, LBB0_4
; %bb.3:
	mov	w8, #16
	strb	w8, [x21]
	bl	_random
	mov	w22, #26215
	movk	w22, #26214, lsl #16
	smull	x8, w0, w22
	lsr	x9, x8, #63
	lsr	x8, x8, #34
	add	w8, w8, w9
	mov	w23, #10
	msub	w8, w8, w23, w0
	add	w8, w8, #48
	strb	w8, [x21, #1]
	bl	_random
	smull	x8, w0, w22
	lsr	x9, x8, #63
	lsr	x8, x8, #34
	add	w8, w8, w9
	msub	w8, w8, w23, w0
	add	w8, w8, #48
	strb	w8, [x21, #2]
	bl	_random
	smull	x8, w0, w22
	lsr	x9, x8, #63
	lsr	x8, x8, #34
	add	w8, w8, w9
	msub	w8, w8, w23, w0
	add	w8, w8, #48
	strb	w8, [x21, #3]
	bl	_random
	smull	x8, w0, w22
	lsr	x9, x8, #63
	lsr	x8, x8, #34
	add	w8, w8, w9
	msub	w8, w8, w23, w0
	add	w8, w8, #48
	strb	w8, [x21, #4]
	bl	_random
	smull	x8, w0, w22
	lsr	x9, x8, #63
	lsr	x8, x8, #34
	add	w8, w8, w9
	msub	w8, w8, w23, w0
	add	w8, w8, #48
	strb	w8, [x21, #5]
	bl	_random
	smull	x8, w0, w22
	lsr	x9, x8, #63
	lsr	x8, x8, #34
	add	w8, w8, w9
	msub	w8, w8, w23, w0
	add	w8, w8, #48
	strb	w8, [x21, #6]
	bl	_random
	smull	x8, w0, w22
	lsr	x9, x8, #63
	lsr	x8, x8, #34
	add	w8, w8, w9
	msub	w8, w8, w23, w0
	add	w8, w8, #48
	strb	w8, [x21, #7]
	bl	_random
	smull	x8, w0, w22
	lsr	x9, x8, #63
	lsr	x8, x8, #34
	add	w8, w8, w9
	msub	w8, w8, w23, w0
	add	w8, w8, #48
	strb	w8, [x21, #8]
	bl	_random
	smull	x8, w0, w22
	lsr	x9, x8, #63
	lsr	x8, x8, #34
	add	w8, w8, w9
	msub	w8, w8, w23, w0
	add	w8, w8, #48
	strb	w8, [x21, #9]
	bl	_random
	smull	x8, w0, w22
	lsr	x9, x8, #63
	lsr	x8, x8, #34
	add	w8, w8, w9
	msub	w8, w8, w23, w0
	add	w8, w8, #48
	strb	w8, [x21, #10]
	bl	_random
	smull	x8, w0, w22
	lsr	x9, x8, #63
	lsr	x8, x8, #34
	add	w8, w8, w9
	msub	w8, w8, w23, w0
	add	w8, w8, #48
	strb	w8, [x21, #11]
	bl	_random
	smull	x8, w0, w22
	lsr	x9, x8, #63
	lsr	x8, x8, #34
	add	w8, w8, w9
	msub	w8, w8, w23, w0
	add	w8, w8, #48
	strb	w8, [x21, #12]
	bl	_random
	smull	x8, w0, w22
	lsr	x9, x8, #63
	lsr	x8, x8, #34
	add	w8, w8, w9
	msub	w8, w8, w23, w0
	add	w8, w8, #48
	strb	w8, [x21, #13]
	bl	_random
	smull	x8, w0, w22
	lsr	x9, x8, #63
	lsr	x8, x8, #34
	add	w8, w8, w9
	msub	w8, w8, w23, w0
	add	w8, w8, #48
	strb	w8, [x21, #14]
	bl	_random
	smull	x8, w0, w22
	lsr	x9, x8, #63
	lsr	x8, x8, #34
	add	w8, w8, w9
	msub	w8, w8, w23, w0
	add	w8, w8, #48
	strb	w8, [x21, #15]
	bl	_random
	smull	x8, w0, w22
	lsr	x9, x8, #63
	lsr	x8, x8, #34
	add	w8, w8, w9
	msub	w8, w8, w23, w0
	add	w8, w8, #48
	strb	w8, [x21, #16]
	add	x21, x21, #17
	b	LBB0_13
LBB0_4:
	ldr	w8, [x8, #8]
	cmp	w8, #128
	b.eq	LBB0_7
; %bb.5:
	cmp	w8, #129
	b.ne	LBB0_8
; %bb.6:
	mov	w8, #16
	b	LBB0_9
LBB0_7:
	mov	w8, #8
	b	LBB0_9
LBB0_8:
	bl	_random
Lloh0:
	adrp	x8, _CHAPCHALLENGELEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CHAPCHALLENGELEN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sub	w8, w8, #16
	sdiv	w9, w0, w8
	msub	w8, w9, w8, w0
	add	w8, w8, #16
LBB0_9:
	strb	w8, [x21], #1
	ldr	x8, [x22]
	ldrsb	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.10:
	mov	x23, #0
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	bl	_random
	strb	w0, [x21, x23]
	ldr	x8, [x22]
	ldrsb	w8, [x8]
	add	x23, x23, #1
	cmp	w23, w8
	b.lt	LBB0_11
; %bb.12:
	add	x21, x21, x23
LBB0_13:
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_memcpy
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CHAPCHALLENGELEN,4,2           ; @CHAPCHALLENGELEN
	.no_dead_strip	_chap_ChallengeInit
.subsections_via_symbols
