	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function update
LCPI0_0:
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
LCPI0_1:
	.byte	1                               ## 0x1
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	5                               ## 0x5
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	9                               ## 0x9
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	13                              ## 0xd
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
LCPI0_2:
	.byte	2                               ## 0x2
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	6                               ## 0x6
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	10                              ## 0xa
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	14                              ## 0xe
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_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, %ecx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_BLOCK_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edx, %eax
	cltd
	idivl	%edi
	movl	%edi, %eax
	subl	%edx, %eax
	cltd
	idivl	%edi
	movl	%edx, %esi
	leal	(%rsi,%rcx), %ebx
	movl	%ebx, %eax
	cltd
	idivl	%edi
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leal	(%rsi,%rcx), %r13d
	addl	$3, %r13d
	testl	%ebx, %ebx
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	cmovnsl	%ebx, %r13d
	sarl	$2, %r13d
	movl	$4, %edi
	movl	%r13d, %esi
	callq	_calloc
	xorl	%r12d, %r12d
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_23
## %bb.1:
	movl	$4, %edi
	movl	%r13d, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %rbx
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movl	$4, %edi
	movl	%r13d, %esi
	callq	_calloc
	movl	%r13d, %ecx
	movq	%rax, %r13
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r12d
	cmpl	$4, -48(%rbp)                   ## 4-byte Folded Reload
	jl	LBB0_6
## %bb.4:
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_r_read_le32
	movl	%eax, (%rbx,%r15,4)
	incq	%r15
	addq	$16, %r14
	cmpq	%r15, %r12
	jne	LBB0_5
LBB0_6:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	je	LBB0_7
## %bb.10:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	_BLOCK_SIZE@GOTPCREL(%rip), %r15
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	jle	LBB0_14
## %bb.11:
	testl	%eax, %eax
	jle	LBB0_14
## %bb.12:
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %eax
	imull	%r14d, %eax
	leal	3(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$2, %ecx
	movslq	%ecx, %rax
	leaq	(%rbx,%rax,4), %rsi
	leaq	(,%rax,4), %rdx
	addq	%r13, %rdx
	movq	_st@GOTPCREL(%rip), %rdi
	callq	_serpent_decrypt
	incl	%r14d
	cmpl	%r14d, -44(%rbp)                ## 4-byte Folded Reload
	jne	LBB0_13
	jmp	LBB0_14
LBB0_2:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
	jmp	LBB0_23
LBB0_7:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	_BLOCK_SIZE@GOTPCREL(%rip), %r15
	jle	LBB0_14
## %bb.8:
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %eax
	imull	%r14d, %eax
	leal	3(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$2, %ecx
	movslq	%ecx, %rax
	leaq	(%rbx,%rax,4), %rsi
	leaq	(,%rax,4), %rdx
	addq	%r13, %rdx
	movq	_st@GOTPCREL(%rip), %rdi
	callq	_serpent_encrypt
	incl	%r14d
	cmpl	%r14d, -44(%rbp)                ## 4-byte Folded Reload
	jne	LBB0_9
LBB0_14:
	cmpl	$4, -48(%rbp)                   ## 4-byte Folded Reload
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	jl	LBB0_22
## %bb.15:
	cmpl	$4, -60(%rbp)                   ## 4-byte Folded Reload
	jae	LBB0_17
## %bb.16:
	xorl	%eax, %eax
	jmp	LBB0_20
LBB0_17:
	movl	%edi, %eax
	andl	$-4, %eax
	leaq	(,%rdi,4), %rcx
	andq	$-16, %rcx
	xorl	%edx, %edx
	movdqa	LCPI0_0(%rip), %xmm8            ## xmm8 = [255,0,0,0,255,0,0,0,255,0,0,0,255,0,0,0]
	movdqa	LCPI0_1(%rip), %xmm9            ## xmm9 = [1,128,128,128,5,128,128,128,9,128,128,128,13,128,128,128]
	movdqa	LCPI0_2(%rip), %xmm2            ## xmm2 = [2,128,128,128,6,128,128,128,10,128,128,128,14,128,128,128]
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movdqu	(%r13,%rdx), %xmm3
	movdqa	%xmm3, %xmm4
	pand	%xmm8, %xmm4
	movdqa	%xmm3, %xmm5
	pshufb	%xmm9, %xmm5
	movdqa	%xmm3, %xmm6
	pshufb	%xmm2, %xmm6
	pmovzxbd	%xmm3, %xmm7                    ## xmm7 = xmm3[0],zero,zero,zero,xmm3[1],zero,zero,zero,xmm3[2],zero,zero,zero,xmm3[3],zero,zero,zero
	psrld	$24, %xmm3
	movdqa	%xmm6, %xmm0
	punpckldq	%xmm3, %xmm0            ## xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1]
	pshufd	$85, %xmm4, %xmm1               ## xmm1 = xmm4[1,1,1,1]
	pblendw	$12, %xmm5, %xmm1               ## xmm1 = xmm1[0,1],xmm5[2,3],xmm1[4,5,6,7]
	pblendw	$240, %xmm0, %xmm1              ## xmm1 = xmm1[0,1,2,3],xmm0[4,5,6,7]
	punpckhdq	%xmm5, %xmm4            ## xmm4 = xmm4[2],xmm5[2],xmm4[3],xmm5[3]
	pshufd	$170, %xmm3, %xmm0              ## xmm0 = xmm3[2,2,2,2]
	pblendw	$63, %xmm6, %xmm0               ## xmm0 = xmm6[0,1,2,3,4,5],xmm0[6,7]
	pblendw	$15, %xmm4, %xmm0               ## xmm0 = xmm4[0,1,2,3],xmm0[4,5,6,7]
	punpckhdq	%xmm3, %xmm6            ## xmm6 = xmm6[2],xmm3[2],xmm6[3],xmm3[3]
	punpckhqdq	%xmm6, %xmm4            ## xmm4 = xmm4[1],xmm6[1]
	movdqu	%xmm7, (%r12,%rdx,4)
	movdqu	%xmm4, 48(%r12,%rdx,4)
	movdqu	%xmm0, 32(%r12,%rdx,4)
	movdqu	%xmm1, 16(%r12,%rdx,4)
	addq	$16, %rdx
	cmpq	%rdx, %rcx
	jne	LBB0_18
## %bb.19:
	cmpq	%rdi, %rax
	je	LBB0_22
LBB0_20:
	movq	%rax, %rcx
	shlq	$4, %rcx
	addq	%r12, %rcx
	addq	$12, %rcx
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13,%rax,4), %edx
	movzbl	%dl, %esi
	movl	%esi, -12(%rcx)
	movzbl	%dh, %esi
	movl	%esi, -8(%rcx)
	movl	%edx, %esi
	shrl	$16, %esi
	movzbl	%sil, %esi
	movl	%esi, -4(%rcx)
	shrl	$24, %edx
	movl	%edx, (%rcx)
	incq	%rax
	addq	$16, %rcx
	cmpq	%rax, %rdi
	jne	LBB0_21
LBB0_22:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_r_crypto_append
	movq	%r12, %rdi
	callq	_free
	movq	%rbx, %rdi
	callq	_free
	movq	%r13, %rdi
	callq	_free
	movl	$1, %r12d
LBB0_23:
	movl	%r12d, %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
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function update
lCPI0_0:
	.long	4294967288                      ; 0xfffffff8
	.long	4294967280                      ; 0xfffffff0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_update:                                ; @update
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x25, x1
	mov	x22, x0
Lloh0:
	adrp	x26, _BLOCK_SIZE@GOTPAGE
Lloh1:
	ldr	x26, [x26, _BLOCK_SIZE@GOTPAGEOFF]
	ldr	w27, [x26]
	sdiv	w8, w2, w27
	neg	w9, w2
	madd	w8, w8, w27, w9
	add	w8, w27, w8
	sdiv	w9, w8, w27
	msub	w8, w9, w27, w8
	add	w20, w8, w2
	add	w8, w20, #3
	cmp	w20, #0
	csel	w8, w8, w20, lt
	asr	w24, w8, #2
	mov	w0, #4
	mov	x1, x24
	bl	_calloc
	cbz	x0, LBB0_22
; %bb.1:
	mov	x21, x0
	mov	w0, #4
	mov	x1, x24
	bl	_calloc
	cbz	x0, LBB0_9
; %bb.2:
	mov	x19, x0
	str	x21, [sp, #8]                   ; 8-byte Folded Spill
	mov	x21, x22
	mov	w0, #4
	mov	x1, x24
	bl	_calloc
	mov	x23, x0
	cmp	w20, #4
	b.lt	LBB0_5
; %bb.3:
	mov	x28, x24
	mov	x22, x19
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x25
	bl	_r_read_le32
	str	w0, [x22], #4
	add	x25, x25, #16
	subs	x28, x28, #1
	b.ne	LBB0_4
LBB0_5:
	mov	x22, x21
	ldr	x8, [x21]
	sdiv	w27, w20, w27
	cbz	x8, LBB0_10
; %bb.6:
	cmp	x8, #1
	ccmp	w27, #1, #8, ge
	ldr	x21, [sp, #8]                   ; 8-byte Folded Reload
	b.lt	LBB0_13
; %bb.7:
	mov	w28, #0
Lloh2:
	adrp	x25, _st@GOTPAGE
Lloh3:
	ldr	x25, [x25, _st@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x26]
	mul	w8, w8, w28
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #2
	sbfiz	x8, x8, #2, #32
	add	x1, x19, x8
	add	x2, x23, x8
	mov	x0, x25
	bl	_serpent_decrypt
	add	w28, w28, #1
	cmp	w27, w28
	b.ne	LBB0_8
	b	LBB0_13
LBB0_9:
	mov	x0, x21
	bl	_free
	mov	w0, #0
	b	LBB0_22
LBB0_10:
	cmp	w27, #1
	ldr	x21, [sp, #8]                   ; 8-byte Folded Reload
	b.lt	LBB0_13
; %bb.11:
	mov	w28, #0
Lloh4:
	adrp	x25, _st@GOTPAGE
Lloh5:
	ldr	x25, [x25, _st@GOTPAGEOFF]
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x26]
	mul	w8, w8, w28
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #2
	sbfiz	x8, x8, #2, #32
	add	x1, x19, x8
	add	x2, x23, x8
	mov	x0, x25
	bl	_serpent_encrypt
	add	w28, w28, #1
	cmp	w27, w28
	b.ne	LBB0_12
LBB0_13:
	cmp	w20, #4
	b.lt	LBB0_21
; %bb.14:
	cmp	w24, #16
	b.hs	LBB0_16
; %bb.15:
	mov	x8, #0
	b	LBB0_19
LBB0_16:
	and	x8, x24, #0xfffffff0
	add	x9, x23, #32
	add	x11, x21, #128
	movi.2d	v0, #0x0000ff000000ff
	mov	x10, x8
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldp	q1, q2, [x9, #-32]
	and.16b	v3, v1, v0
	ushr.4s	v7, v1, #8
	and.16b	v4, v7, v0
	ushr.4s	v7, v1, #16
	and.16b	v5, v7, v0
	ushr.4s	v6, v1, #24
	ldp	q1, q7, [x9], #64
	and.16b	v16, v2, v0
	ushr.4s	v20, v2, #8
	and.16b	v17, v20, v0
	ushr.4s	v20, v2, #16
	and.16b	v18, v20, v0
	ushr.4s	v19, v2, #24
	and.16b	v20, v1, v0
	ushr.4s	v2, v1, #8
	and.16b	v21, v2, v0
	ushr.4s	v2, v1, #16
	and.16b	v22, v2, v0
	ushr.4s	v23, v1, #24
	and.16b	v24, v7, v0
	ushr.4s	v1, v7, #8
	sub	x12, x11, #128
	sub	x13, x11, #64
	st4.4s	{ v3, v4, v5, v6 }, [x12]
	st4.4s	{ v16, v17, v18, v19 }, [x13]
	and.16b	v25, v1, v0
	ushr.4s	v1, v7, #16
	and.16b	v26, v1, v0
	ushr.4s	v27, v7, #24
	add	x12, x11, #256
	st4.4s	{ v20, v21, v22, v23 }, [x11], #64
	st4.4s	{ v24, v25, v26, v27 }, [x11]
	mov	x11, x12
	subs	x10, x10, #16
	b.ne	LBB0_17
; %bb.18:
	cmp	x8, x24
	b.eq	LBB0_21
LBB0_19:
	add	x9, x21, x8, lsl #4
	sub	x10, x24, x8
Lloh6:
	adrp	x11, lCPI0_0@PAGE
Lloh7:
	ldr	d0, [x11, lCPI0_0@PAGEOFF]
	movi	d1, #0x0000ff000000ff
	add	x8, x23, x8, lsl #2
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x8], #4
	and	w12, w11, #0xff
	str	w12, [x9]
	dup.2s	v2, w11
	ushl.2s	v2, v2, v0
	and.8b	v2, v2, v1
	stur	d2, [x9, #4]
	lsr	w11, w11, #24
	str	w11, [x9, #12]
	add	x9, x9, #16
	subs	x10, x10, #1
	b.ne	LBB0_20
LBB0_21:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_r_crypto_append
	mov	x0, x21
	bl	_free
	mov	x0, x19
	bl	_free
	mov	x0, x23
	bl	_free
	mov	w0, #1
LBB0_22:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdr	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_BLOCK_SIZE,4,2                 ; @BLOCK_SIZE
	.comm	_st,4,2                         ; @st
	.no_dead_strip	_update
.subsections_via_symbols
