	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CL_CDKeyValidate               ## -- Begin function CL_CDKeyValidate
	.p2align	4, 0x90
_CL_CDKeyValidate:                      ## @CL_CDKeyValidate
	.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	%rsi, %r14
	movq	%rdi, %r13
	callq	_strlen
	movl	%eax, %r15d
	movq	_CDKEY_LEN@GOTPCREL(%rip), %rax
	movq	_qfalse@GOTPCREL(%rip), %r12
	cmpl	(%rax), %r15d
	jne	LBB0_14
## %bb.1:
	testq	%r14, %r14
	je	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	_strlen
	movq	_CDCHKSUM_LEN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_14
LBB0_3:
	testl	%r15d, %r15d
	jle	LBB0_8
## %bb.4:
	movl	%r15d, %eax
	xorl	%ecx, %ecx
	movabsq	$168668135459, %r8              ## imm = 0x2745678023
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r13,%rcx), %esi
	leal	-97(%rsi), %edi
	leal	-32(%rsi), %ebx
	cmpb	$26, %dil
	movzbl	%bl, %edi
	cmovael	%esi, %edi
	movsbl	%dil, %edi
	leal	-50(%rdi), %esi
	cmpl	$37, %esi
	ja	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	btq	%rsi, %r8
	jae	LBB0_14
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	addl	%edi, %edx
	incq	%rcx
	cmpl	%ecx, %eax
	jne	LBB0_5
	jmp	LBB0_9
LBB0_8:
	xorl	%edx, %edx
LBB0_9:
	leaq	L_.str(%rip), %rsi
	leaq	-43(%rbp), %rdi
	callq	_sprintf
	testq	%r14, %r14
	je	LBB0_13
## %bb.10:
	leaq	-43(%rbp), %rdi
	movq	%r14, %rsi
	callq	_Q_stricmp
	testl	%eax, %eax
	je	LBB0_13
## %bb.11:
	movq	_qfalse@GOTPCREL(%rip), %r12
	jmp	LBB0_14
LBB0_13:
	movq	_qtrue@GOTPCREL(%rip), %r12
LBB0_14:
	movl	(%r12), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CDKEY_LEN,4,2                  ## @CDKEY_LEN
	.comm	_qfalse,4,2                     ## @qfalse
	.comm	_CDCHKSUM_LEN,4,2               ## @CDCHKSUM_LEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%02x"

	.comm	_qtrue,4,2                      ## @qtrue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CL_CDKeyValidate               ; -- Begin function CL_CDKeyValidate
	.p2align	2
_CL_CDKeyValidate:                      ; @CL_CDKeyValidate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_strlen
Lloh0:
	adrp	x8, _CDKEY_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CDKEY_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_10
; %bb.1:
	mov	x21, x0
	cbz	x19, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_strlen
Lloh3:
	adrp	x8, _CDCHKSUM_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CDCHKSUM_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_10
LBB0_3:
	cmp	w21, #1
	b.lt	LBB0_7
; %bb.4:
	mov	w2, #0
	mov	w8, #1
	mov	x9, #32803
	movk	x9, #17767, lsl #16
	movk	x9, #39, lsl #32
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x20]
	sub	w11, w10, #97
	sub	w12, w10, #32
	cmp	w11, #26
	csel	w10, w12, w10, lo
	sxtb	w10, w10
	sub	w11, w10, #50
	cmp	w11, #37
	lsl	x11, x8, x11
	and	x11, x11, x9
	ccmp	x11, #0, #4, ls
	b.eq	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x20, x20, #1
	add	w2, w2, w10
	subs	w21, w21, #1
	b.ne	LBB0_5
	b	LBB0_8
LBB0_7:
	mov	w2, #0
LBB0_8:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #13
	bl	_sprintf
	cbz	x19, LBB0_12
; %bb.9:
	add	x0, sp, #13
	mov	x1, x19
	bl	_Q_stricmp
	cbz	w0, LBB0_12
LBB0_10:
Lloh8:
	adrp	x8, _qfalse@GOTPAGE
Lloh9:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
	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
	add	sp, sp, #64
	ret
LBB0_12:
Lloh10:
	adrp	x8, _qtrue@GOTPAGE
Lloh11:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_CDKEY_LEN,4,2                  ; @CDKEY_LEN
	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_CDCHKSUM_LEN,4,2               ; @CDCHKSUM_LEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%02x"

	.comm	_qtrue,4,2                      ; @qtrue
.subsections_via_symbols
