	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lrw_crypt                      ## -- Begin function lrw_crypt
	.p2align	4, 0x90
_lrw_crypt:                             ## @lrw_crypt
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	_LRW_BLOCK_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	(%r8), %ecx
	xorl	%r12d, %r12d
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%ebx
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	24(%r8), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%r8, -160(%rbp)                 ## 8-byte Spill
	movq	16(%r8), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%edi, %edi
	cmpl	%ecx, %ebx
	seta	%dil
	callq	_BUG_ON
	leaq	-128(%rbp), %r15
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_blkcipher_walk_init
	movq	%r14, -152(%rbp)                ## 8-byte Spill
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_blkcipher_walk_virt
	movl	-128(%rbp), %ecx
	testl	%ecx, %ecx
	je	LBB0_15
## %bb.1:
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%ebx
	movl	%eax, %edi
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	callq	_min
	movl	%eax, %r15d
	movq	-120(%rbp), %r13
	movq	-112(%rbp), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	-104(%rbp), %rax
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	movl	(%rax), %eax
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, (%rdi)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %esi
	callq	_gf128mul_64k_bbe
	movq	%r13, %rcx
	movl	%ebx, %r13d
	movl	%ebx, -72(%rbp)                 ## 4-byte Spill
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_6
LBB0_2:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	%eax, %r15d
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx,4), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rcx,4), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movslq	%r12d, %rax
	leaq	(%rdx,%rax,4), %r13
	movq	(%rcx), %rbx
	movq	-136(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %rdi
	callq	_get_index128
	leaq	(%rbx,%rax,4), %rdx
	movq	%r13, %rdi
	movq	-144(%rbp), %rsi                ## 8-byte Reload
	callq	_be128_xor
	movq	%r14, %rdi
	callq	_inc
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	-72(%rbp), %r13d                ## 4-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
                                        ##       Child Loop BB0_11 Depth 3
	movslq	%r12d, %r12
	leaq	(%rax,%r12,4), %rsi
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	leaq	(%rcx,%r12,4), %rdi
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r12,4), %rdx
	movq	%rsi, -144(%rbp)                ## 8-byte Spill
	callq	_be128_xor
	incl	%r12d
	cmpl	%r15d, %r12d
	jb	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_11 Depth 3
	movq	-160(%rbp), %rax                ## 8-byte Reload
	movl	4(%rax), %edi
	movl	%r15d, %r12d
	imull	%r13d, %r12d
	movq	%rbx, %rsi
	movl	%r12d, %edx
	callq	*8(%rax)
	testl	%r15d, %r15d
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=2
	movl	%r15d, %r14d
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_6 Depth=1
                                        ##     Parent Loop BB0_8 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_be128_xor
	addq	$4, %r15
	addq	$4, %rbx
	decq	%r14
	jne	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=2
	movl	-72(%rbp), %r13d                ## 4-byte Reload
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_8 Depth=2
	xorl	%eax, %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=2
	movl	-68(%rbp), %r14d                ## 4-byte Reload
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	subl	%r12d, %ebx
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%r13d
	movl	%eax, %edi
	movl	%r14d, %esi
	callq	_min
	testl	%eax, %eax
	jne	LBB0_2
## %bb.14:                              ##   in Loop: Header=BB0_8 Depth=2
	movq	-152(%rbp), %rdi                ## 8-byte Reload
	leaq	-128(%rbp), %rsi
	movl	%ebx, %edx
	callq	_blkcipher_walk_done
	movl	-128(%rbp), %ecx
	testl	%ecx, %ecx
	je	LBB0_15
## %bb.3:                               ##   in Loop: Header=BB0_8 Depth=2
	xorl	%r15d, %r15d
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%r13d
	movl	%eax, %edi
	movl	%r14d, %esi
	callq	_min
	movq	-120(%rbp), %rbx
	movq	-112(%rbp), %rcx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	testl	%eax, %eax
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	movl	%eax, %r15d
	jmp	LBB0_5
LBB0_15:
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LRW_BLOCK_SIZE,4,2             ## @LRW_BLOCK_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lrw_crypt                      ; -- Begin function lrw_crypt
	.p2align	2
_lrw_crypt:                             ; @lrw_crypt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	ldr	w20, [x4]
Lloh0:
	adrp	x8, _LRW_BLOCK_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LRW_BLOCK_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w26, [x8]
	ldp	x24, x28, [x4, #16]
	str	x4, [sp, #40]                   ; 8-byte Folded Spill
	cmp	w26, w20
	cset	w0, hi
	bl	_BUG_ON
	add	x0, sp, #48
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	bl	_blkcipher_walk_init
	add	x1, sp, #48
	str	x19, [sp, #32]                  ; 8-byte Folded Spill
	mov	x0, x19
	bl	_blkcipher_walk_virt
	ldr	w23, [sp, #48]
	cbz	w23, LBB0_14
; %bb.1:
	udiv	w22, w20, w26
	udiv	w0, w23, w26
	mov	x1, x22
	bl	_min
	mov	x27, x0
	ldp	x25, x20, [sp, #56]
	ldr	x8, [sp, #72]
	stp	x8, x28, [sp]                   ; 16-byte Folded Spill
	ldr	w8, [x8]
	str	w8, [x24]
	ldr	w1, [x28, #8]
	mov	x0, x24
	bl	_gf128mul_64k_bbe
	mov	w28, #0
	mov	x21, x24
	str	x24, [sp, #24]                  ; 8-byte Folded Spill
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x27, x0
	mov	w28, #0
	lsl	x8, x19, #2
	add	x20, x20, x8
	add	x25, x25, x8
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	add	x21, x8, w28, sxtw #2
	ldp	x24, x8, [sp]                   ; 16-byte Folded Reload
	ldr	x19, [x8]
	mov	x0, x24
	bl	_get_index128
	add	x2, x19, x0, lsl #2
	mov	x0, x21
	ldp	x1, x21, [sp, #16]              ; 16-byte Folded Reload
	bl	_be128_xor
	mov	x0, x24
	bl	_inc
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
                                        ;       Child Loop BB0_7 Depth 3
	sbfiz	x8, x28, #2, #32
	add	x1, x21, x8
	add	x0, x25, x8
	add	x2, x20, x8
	str	x1, [sp, #16]                   ; 8-byte Folded Spill
	bl	_be128_xor
	add	w28, w28, #1
	cmp	w28, w27
	b.lo	LBB0_3
LBB0_5:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_7 Depth 3
	ldr	x9, [sp, #40]                   ; 8-byte Folded Reload
	ldr	x8, [x9, #8]
	ldr	w0, [x9, #4]
	mul	w28, w27, w26
	mov	x1, x25
	mov	x2, x28
	blr	x8
	cbz	w27, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	mov	w19, w27
	mov	x24, x19
	mov	x27, x25
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_5 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	mov	x0, x27
	mov	x1, x27
	mov	x2, x21
	bl	_be128_xor
	add	x21, x21, #4
	add	x27, x27, #4
	subs	x24, x24, #1
	b.ne	LBB0_7
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	x21, [sp, #24]                  ; 8-byte Folded Reload
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=2
	mov	x19, #0
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=2
	sub	w23, w23, w28
	udiv	w0, w23, w26
	mov	x1, x22
	bl	_min
	cbnz	w0, LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=2
	add	x1, sp, #48
	ldr	x0, [sp, #32]                   ; 8-byte Folded Reload
	mov	x2, x23
	bl	_blkcipher_walk_done
	ldr	w23, [sp, #48]
	cbz	w23, LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=2
	udiv	w0, w23, w26
	mov	x1, x22
	bl	_min
	mov	w27, #0
	ldp	x25, x20, [sp, #56]
	cbz	w0, LBB0_5
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w28, #0
	mov	x27, x0
	b	LBB0_3
LBB0_14:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LRW_BLOCK_SIZE,4,2             ; @LRW_BLOCK_SIZE
.subsections_via_symbols
