	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r12
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	_BLOCK_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	cltd
	idivl	%ecx
	movl	%ecx, %eax
	subl	%edx, %eax
	cltd
	idivl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	leal	(%rdx,%r14), %ebx
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	movl	%eax, %r13d
	movl	$1, %edi
	movl	%ebx, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movl	$1, %edi
	movl	%ebx, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r12
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edx
	callq	_memset
	movq	%r12, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%r14d, %edx
	callq	_memcpy
	cmpl	$0, -72(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_6
## %bb.5:
	movslq	%r14d, %rax
	movl	$8, (%r12,%rax,4)
LBB0_6:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.10:
	movq	_BLOCK_SIZE@GOTPCREL(%rip), %r14
	jle	LBB0_14
## %bb.11:
	testl	%r13d, %r13d
	jle	LBB0_14
## %bb.12:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movslq	(%r14), %rax
	movslq	%ebx, %rbx
	imulq	%rbx, %rax
	leaq	(%r12,%rax,4), %rsi
	leaq	(%r15,%rax,4), %rdx
	movq	_st@GOTPCREL(%rip), %rdi
	callq	_aes_decrypt
	incl	%ebx
	cmpl	%ebx, %r13d
	jne	LBB0_13
	jmp	LBB0_14
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_16
LBB0_3:
	xorl	%r14d, %r14d
	movq	%r15, %r12
	jmp	LBB0_15
LBB0_7:
	testl	%r13d, %r13d
	movq	_BLOCK_SIZE@GOTPCREL(%rip), %r14
	jle	LBB0_14
## %bb.8:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movslq	(%r14), %rax
	movslq	%ebx, %rbx
	imulq	%rbx, %rax
	leaq	(%r12,%rax,4), %rsi
	leaq	(%r15,%rax,4), %rdx
	movq	_st@GOTPCREL(%rip), %rdi
	callq	_aes_encrypt
	incl	%ebx
	cmpl	%ebx, %r13d
	jne	LBB0_9
LBB0_14:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_r_crypto_append
	movq	%r15, %rdi
	callq	_free
	movl	$1, %r14d
LBB0_15:
	movq	%r12, %rdi
	callq	_free
LBB0_16:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BLOCK_SIZE,4,2                 ## @BLOCK_SIZE
	.comm	_st,4,2                         ## @st
	.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	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x2
	mov	x24, x1
	mov	x19, x0
Lloh0:
	adrp	x25, _BLOCK_SIZE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _BLOCK_SIZE@GOTPAGEOFF]
	ldr	w26, [x25]
	sdiv	w8, w2, w26
	neg	w9, w2
	madd	w8, w8, w26, w9
	add	w8, w26, w8
	sdiv	w9, w8, w26
	msub	w27, w9, w26, w8
	add	w21, w27, w2
	mov	w0, #1
	mov	x1, x21
	bl	_calloc
	cbz	x0, LBB0_9
; %bb.1:
	mov	x20, x0
	mov	w0, #1
	mov	x1, x21
	bl	_calloc
	cbz	x0, LBB0_10
; %bb.2:
	mov	x22, x0
	mov	w1, #0
	mov	x2, x21
	bl	_memset
	mov	x0, x22
	mov	x1, x24
	mov	x2, x23
	bl	_memcpy
	cbz	w27, LBB0_4
; %bb.3:
	mov	w8, #8
	str	w8, [x22, w23, sxtw #2]
LBB0_4:
	ldr	x8, [x19]
	sdiv	w24, w21, w26
	cbz	x8, LBB0_11
; %bb.5:
	cmp	x8, #1
	b.lt	LBB0_14
; %bb.6:
	cmp	w24, #1
	b.lt	LBB0_14
; %bb.7:
	mov	w26, #0
Lloh2:
	adrp	x23, _st@GOTPAGE
Lloh3:
	ldr	x23, [x23, _st@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x25]
	mul	w8, w8, w26
	sbfiz	x8, x8, #2, #32
	add	x1, x22, x8
	add	x2, x20, x8
	mov	x0, x23
	bl	_aes_decrypt
	add	w26, w26, #1
	cmp	w24, w26
	b.ne	LBB0_8
	b	LBB0_14
LBB0_9:
	mov	w19, #0
	b	LBB0_16
LBB0_10:
	mov	w19, #0
	mov	x22, x20
	b	LBB0_15
LBB0_11:
	cmp	w24, #1
	b.lt	LBB0_14
; %bb.12:
	mov	w26, #0
Lloh4:
	adrp	x23, _st@GOTPAGE
Lloh5:
	ldr	x23, [x23, _st@GOTPAGEOFF]
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x25]
	mul	w8, w8, w26
	sbfiz	x8, x8, #2, #32
	add	x1, x22, x8
	add	x2, x20, x8
	mov	x0, x23
	bl	_aes_encrypt
	add	w26, w26, #1
	cmp	w24, w26
	b.ne	LBB0_13
LBB0_14:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_r_crypto_append
	mov	x0, x20
	bl	_free
	mov	w19, #1
LBB0_15:
	mov	x0, x22
	bl	_free
LBB0_16:
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_BLOCK_SIZE,4,2                 ; @BLOCK_SIZE
	.comm	_st,4,2                         ; @st
	.no_dead_strip	_update
.subsections_via_symbols
