	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	_BLOCK_SIZE@GOTPCREL(%rip), %rcx
	movl	%edx, %eax
	cltd
	idivl	(%rcx)
	testl	%edx, %edx
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_eprintf
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_2:
	movq	%rsi, %r12
	movq	%rdi, %r14
	movl	%eax, %r13d
	movl	$1, %edi
	movl	%ebx, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r15
	movq	_flag@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_9
## %bb.5:
	testl	%r13d, %r13d
	movq	_BLOCK_SIZE@GOTPCREL(%rip), %rbx
	jle	LBB0_13
## %bb.6:
	movq	_st@GOTPCREL(%rip), %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_rc6_decrypt
	cmpl	$1, %r13d
	je	LBB0_13
## %bb.7:
	movl	$1, %r14d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movslq	(%rbx), %rax
	movslq	%r14d, %r14
	imulq	%r14, %rax
	leaq	(%r12,%rax,4), %rsi
	leaq	(%r15,%rax,4), %rdx
	movq	_st@GOTPCREL(%rip), %rdi
	callq	_rc6_decrypt
	incl	%r14d
	cmpl	%r14d, %r13d
	jne	LBB0_8
	jmp	LBB0_13
LBB0_3:
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_9:
	testl	%r13d, %r13d
	movq	_BLOCK_SIZE@GOTPCREL(%rip), %r14
	jle	LBB0_13
## %bb.10:
	movq	_st@GOTPCREL(%rip), %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_rc6_encrypt
	cmpl	$1, %r13d
	je	LBB0_13
## %bb.11:
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_12:                                ## =>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	_rc6_encrypt
	incl	%ebx
	cmpl	%ebx, %r13d
	jne	LBB0_12
LBB0_13:
	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, %eax
LBB0_14:
	addq	$24, %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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Input should be multiple of 128bit.\n"

	.comm	_flag,8,3                       ## @flag
	.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	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x24, _BLOCK_SIZE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _BLOCK_SIZE@GOTPAGEOFF]
	ldr	w8, [x24]
	sdiv	w25, w2, w8
	msub	w8, w25, w8, w2
	cbz	w8, LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_eprintf
	mov	w0, #0
	b	LBB0_13
LBB0_2:
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	mov	w0, #1
	mov	x1, x2
	bl	_calloc
	cbz	x0, LBB0_13
; %bb.3:
	mov	x22, x0
Lloh4:
	adrp	x8, _flag@GOTPAGE
Lloh5:
	ldr	x8, [x8, _flag@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.4:
	cmp	w25, #1
	b.lt	LBB0_12
; %bb.5:
Lloh7:
	adrp	x0, _st@GOTPAGE
Lloh8:
	ldr	x0, [x0, _st@GOTPAGEOFF]
	mov	x1, x21
	mov	x2, x22
	bl	_rc6_decrypt
	cmp	w25, #1
	b.eq	LBB0_12
; %bb.6:
	mov	w26, #1
Lloh9:
	adrp	x23, _st@GOTPAGE
Lloh10:
	ldr	x23, [x23, _st@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x24]
	mul	w8, w8, w26
	sbfiz	x8, x8, #2, #32
	add	x1, x21, x8
	add	x2, x22, x8
	mov	x0, x23
	bl	_rc6_decrypt
	add	w26, w26, #1
	cmp	w25, w26
	b.ne	LBB0_7
	b	LBB0_12
LBB0_8:
	cmp	w25, #1
	b.lt	LBB0_12
; %bb.9:
Lloh11:
	adrp	x0, _st@GOTPAGE
Lloh12:
	ldr	x0, [x0, _st@GOTPAGEOFF]
	mov	x1, x21
	mov	x2, x22
	bl	_rc6_encrypt
	cmp	w25, #1
	b.eq	LBB0_12
; %bb.10:
	mov	w26, #1
Lloh13:
	adrp	x23, _st@GOTPAGE
Lloh14:
	ldr	x23, [x23, _st@GOTPAGEOFF]
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x24]
	mul	w8, w8, w26
	sbfiz	x8, x8, #2, #32
	add	x1, x21, x8
	add	x2, x22, x8
	mov	x0, x23
	bl	_rc6_encrypt
	add	w26, w26, #1
	cmp	w25, w26
	b.ne	LBB0_11
LBB0_12:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x19
	bl	_r_crypto_append
	mov	x0, x22
	bl	_free
	mov	w0, #1
LBB0_13:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_BLOCK_SIZE,4,2                 ; @BLOCK_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Input should be multiple of 128bit.\n"

	.comm	_flag,8,3                       ; @flag
	.comm	_st,4,2                         ; @st
	.no_dead_strip	_update
.subsections_via_symbols
