	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ws_compute_answer
_ws_compute_answer:                     ## @ws_compute_answer
	.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	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.1:
	movq	%rdi, %rbx
	callq	_strlen
	movl	%eax, %r14d
	leaq	L_.str(%rip), %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	addl	%r14d, %eax
	incl	%eax
	movslq	%eax, %r15
	movq	%r15, %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	%rax, %r14
	leaq	L_.str.1(%rip), %rsi
	leaq	L_.str(%rip), %rcx
	movq	%rax, %rdi
	movq	%rbx, %rdx
	callq	_sprintf
	leaq	-76(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_sha1_starts
	decq	%r15
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_sha1_update
	leaq	-64(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_sha1_finish
	movq	%r14, %rdi
	callq	_free
	movq	$0, -72(%rbp)
	xorl	%ebx, %ebx
	leaq	-72(%rbp), %rsi
	xorl	%edi, %edi
	xorl	%edx, %edx
	movl	$20, %ecx
	callq	_base64_encode
	movq	-72(%rbp), %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	%rax, %r14
	leaq	-72(%rbp), %rsi
	leaq	-64(%rbp), %rdx
	movq	%rax, %rdi
	movl	$20, %ecx
	callq	_base64_encode
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%r14, %rdi
	callq	_free
LBB0_6:
	xorl	%ebx, %ebx
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	movq	%rbx, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r14, %rbx
	jmp	LBB0_7
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"258EAFA5-E914-47DA-95CA-C5AB0DC85B11"

L_.str.1:                               ## @.str.1
	.asciz	"%s%s"

	.no_dead_strip	_ws_compute_answer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ws_compute_answer
_ws_compute_answer:                     ; @ws_compute_answer
	.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, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	cbz	x0, LBB0_6
; %bb.1:
	mov	x0, x19
	bl	_strlen
	mov	x20, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_strlen
	add	w8, w20, w0
	add	w8, w8, #1
	sxtw	x21, w8
	mov	x0, x21
	bl	_malloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x20, x0
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
Lloh7:
	adrp	x3, l_.str@PAGE
Lloh8:
	add	x3, x3, l_.str@PAGEOFF
	mov	x2, x19
	bl	_sprintf
	add	x0, sp, #16
	bl	_sha1_starts
	sub	x2, x21, #1
	add	x0, sp, #16
	mov	x1, x20
	bl	_sha1_update
	add	x0, sp, #16
	add	x1, sp, #20
	bl	_sha1_finish
	mov	x0, x20
	bl	_free
	str	xzr, [sp, #8]
	add	x1, sp, #8
	mov	x0, #0
	mov	x2, #0
	mov	w3, #20
	bl	_base64_encode
	ldr	x0, [sp, #8]
	bl	_malloc
	mov	x19, x0
	cbz	x0, LBB0_6
; %bb.3:
	add	x1, sp, #8
	add	x2, sp, #20
	mov	x0, x19
	mov	w3, #20
	bl	_base64_encode
	cbz	x0, LBB0_6
; %bb.4:
	mov	x0, x19
	bl	_free
LBB0_5:
	mov	x19, #0
LBB0_6:
	ldr	x8, [sp, #40]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	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:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"258EAFA5-E914-47DA-95CA-C5AB0DC85B11"

l_.str.1:                               ; @.str.1
	.asciz	"%s%s"

	.no_dead_strip	_ws_compute_answer
.subsections_via_symbols
