	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sec_read_msg                   ## -- Begin function sec_read_msg
	.p2align	4, 0x90
_sec_read_msg:                          ## @sec_read_msg
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	callq	_strlen
	movl	%eax, %edi
	callq	_malloc
	movq	%rax, %rbx
	leaq	4(%r14), %rdi
	movq	%rax, %rsi
	callq	_base64_decode
	movq	_mech@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r8
	movq	_app_data@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	%rbx, %rsi
	movl	%eax, %edx
	movl	%r15d, %ecx
	callq	*(%r8)
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	%eax, %r15d
	movl	%eax, %eax
	movb	$0, (%rbx,%rax)
	cmpb	$45, 3(%rbx)
	jne	LBB0_4
## %bb.3:
	movl	$0, -28(%rbp)
	jmp	LBB0_5
LBB0_1:
	movl	$-1, %eax
	jmp	LBB0_8
LBB0_4:
	leaq	L_.str(%rip), %rsi
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_sscanf
LBB0_5:
	movslq	%r15d, %rax
	cmpb	$10, -1(%rax,%rbx)
	jne	LBB0_7
## %bb.6:
	movb	$0, -1(%rbx,%rax)
LBB0_7:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_strcpy
	movq	%rbx, %rdi
	callq	_free
	movl	-28(%rbp), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mech,8,3                       ## @mech
	.comm	_app_data,4,2                   ## @app_data
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sec_read_msg                   ; -- Begin function sec_read_msg
	.p2align	2
_sec_read_msg:                          ; @sec_read_msg
	.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	x21, x1
	mov	x19, x0
	bl	_strlen
	bl	_malloc
	mov	x20, x0
	add	x0, x19, #4
	mov	x1, x20
	bl	_base64_decode
	mov	x2, x0
Lloh0:
	adrp	x8, _mech@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mech@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _app_data@GOTPAGE
Lloh4:
	ldr	x9, [x9, _app_data@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x9]
	mov	x1, x20
	mov	x3, x21
	blr	x8
	tbnz	w0, #31, LBB0_3
; %bb.1:
	mov	x21, x0
	strb	wzr, [x20, w0, uxtw]
	ldrb	w8, [x20, #3]
	cmp	w8, #45
	b.ne	LBB0_4
; %bb.2:
	str	wzr, [sp, #12]
	b	LBB0_5
LBB0_3:
	mov	w0, #-1
	b	LBB0_8
LBB0_4:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	mov	x0, x20
	bl	_sscanf
LBB0_5:
	sxtw	x8, w21
	sub	x8, x8, #1
	ldrb	w9, [x20, x8]
	cmp	w9, #10
	b.ne	LBB0_7
; %bb.6:
	strb	wzr, [x20, x8]
LBB0_7:
	mov	x0, x19
	mov	x1, x20
	bl	_strcpy
	mov	x0, x20
	bl	_free
	ldr	w0, [sp, #12]
LBB0_8:
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_mech,8,3                       ; @mech
	.comm	_app_data,4,2                   ; @app_data
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d"

.subsections_via_symbols
