	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update
_update:                                ## @update
	.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
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	(%rdi), %eax
	cmpl	$1, %eax
	je	LBB0_4
## %bb.1:
	testl	%eax, %eax
	jne	LBB0_11
## %bb.2:
	leal	2(%r12), %eax
	cltq
	imulq	$1431655766, %rax, %rbx         ## imm = 0x55555556
	movq	%rbx, %rax
	shrq	$63, %rax
	shrq	$32, %rbx
	addl	%eax, %ebx
	leal	1(,%rbx,4), %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_15
## %bb.3:
	movq	%rax, %r13
	shll	$2, %ebx
	movq	%rax, %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	callq	_r_base64_encode
	testl	%ebx, %ebx
	jg	LBB0_10
	jmp	LBB0_12
LBB0_4:
	leal	3(%r12), %eax
	testl	%r12d, %r12d
	cmovnsl	%r12d, %eax
	sarl	$2, %eax
	leal	(%rax,%rax,2), %edi
	addl	$4, %edi
	testl	%r12d, %r12d
	jle	LBB0_8
## %bb.5:
	leal	-1(%r12), %ecx
	xorl	%eax, %eax
	cmpb	$61, (%r15,%rcx)
	jne	LBB0_7
## %bb.6:
	movslq	%r12d, %rcx
	xorl	%eax, %eax
	cmpb	$61, -2(%rcx,%r15)
	sete	%al
	notl	%eax
LBB0_7:
	addl	%eax, %edi
LBB0_8:
	addl	$4, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_15
## %bb.9:
	movq	%rax, %r13
	movq	%rax, %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	callq	_r_base64_decode
	movl	%eax, %ebx
	testl	%ebx, %ebx
	jle	LBB0_12
LBB0_10:
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	%ebx, %edx
	callq	_r_crypto_append
	jmp	LBB0_12
LBB0_11:
	xorl	%r13d, %r13d
LBB0_12:
	movq	%r13, %rdi
	callq	_free
	movl	$1, %eax
	jmp	LBB0_13
LBB0_15:
	xorl	%eax, %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update
_update:                                ; @update
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.eq	LBB0_4
; %bb.1:
	cbnz	w8, LBB0_7
; %bb.2:
	add	w8, w20, #2
	mov	w9, #21846
	movk	w9, #21845, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	lsr	x8, x8, #32
	add	w23, w8, w9
	mov	w0, #1
	bfi	w0, w23, #2, #30
	bl	_malloc
	cbz	x0, LBB0_14
; %bb.3:
	mov	x22, x0
	lsl	w23, w23, #2
	mov	x1, x21
	mov	x2, x20
	bl	_r_base64_encode
	cmp	w23, #1
	b.ge	LBB0_12
	b	LBB0_13
LBB0_4:
	add	w8, w20, #3
	cmp	w20, #0
	csel	w8, w8, w20, lt
	asr	w8, w8, #2
	add	w8, w8, w8, lsl #1
	add	w8, w8, #4
	subs	w9, w20, #1
	b.lt	LBB0_10
; %bb.5:
	ldrb	w9, [x21, w9, uxtw]
	cmp	w9, #61
	b.ne	LBB0_8
; %bb.6:
	add	x9, x21, w20, sxtw
	ldurb	w9, [x9, #-2]
	cmp	w9, #61
	mov	w9, #-2
	cinc	w9, w9, ne
	b	LBB0_9
LBB0_7:
	mov	x22, #0
	b	LBB0_13
LBB0_8:
	mov	w9, #0
LBB0_9:
	add	w8, w9, w8
LBB0_10:
	add	w0, w8, #4
	bl	_malloc
	cbz	x0, LBB0_14
; %bb.11:
	mov	x22, x0
	mov	x1, x21
	mov	x2, x20
	bl	_r_base64_decode
	mov	x23, x0
	cmp	w23, #1
	b.lt	LBB0_13
LBB0_12:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	bl	_r_crypto_append
LBB0_13:
	mov	x0, x22
	bl	_free
	mov	w0, #1
LBB0_14:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_update
.subsections_via_symbols
