	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %r14
	movl	$1, %edi
	movl	%edx, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	_flag@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$1, %eax
	je	LBB0_5
## %bb.3:
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	movq	_rot_key@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	movl	%r15d, %ecx
	callq	_rot_crypt
	jmp	LBB0_6
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_5:
	movq	_rot_key@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	movl	%r15d, %ecx
	callq	_rot_decrypt
LBB0_6:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_r_crypto_append
	movq	%rbx, %rdi
	callq	_free
	movl	$1, %eax
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_flag,4,2                       ## @flag
	.comm	_rot_key,4,2                    ## @rot_key
	.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	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x2
	mov	x22, x1
	mov	x20, x0
	mov	w0, #1
	mov	x1, x2
	bl	_calloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x8, _flag@GOTPAGE
Lloh1:
	ldr	x8, [x8, _flag@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.eq	LBB0_4
; %bb.2:
	cbnz	w8, LBB0_5
; %bb.3:
Lloh3:
	adrp	x8, _rot_key@GOTPAGE
Lloh4:
	ldr	x8, [x8, _rot_key@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x22
	mov	x2, x21
	mov	x3, x19
	bl	_rot_crypt
	b	LBB0_5
LBB0_4:
Lloh6:
	adrp	x8, _rot_key@GOTPAGE
Lloh7:
	ldr	x8, [x8, _rot_key@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x22
	mov	x2, x21
	mov	x3, x19
	bl	_rot_decrypt
LBB0_5:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_r_crypto_append
	mov	x0, x21
	bl	_free
	mov	w0, #1
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_flag,4,2                       ; @flag
	.comm	_rot_key,4,2                    ; @rot_key
	.no_dead_strip	_update
.subsections_via_symbols
