	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function crypt_iv_tcw_whitening
_crypt_iv_tcw_whitening:                ## @crypt_iv_tcw_whitening
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	(%rsi), %edi
	callq	_cpu_to_le64
	movq	%rsp, -88(%rbp)                 ## 8-byte Spill
	movl	%eax, -68(%rbp)
	movq	_TCW_WHITENING_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r15, %rax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	_desc@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	movl	(%rbx), %esi
	callq	_SHASH_DESC_ON_STACK
	movq	8(%rbx), %rsi
	leaq	-68(%rbp), %r14
	movq	%r13, %rdi
	movq	%r14, %rdx
	movl	$8, %ecx
	callq	_crypto_xor_cpy
	leaq	32(%r13), %rdi
	movq	8(%rbx), %rsi
	addq	$8, %rsi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdx
	movq	%r12, %r14
	movl	$8, %ecx
	callq	_crypto_xor_cpy
	movl	(%rbx), %eax
	movq	(%r12), %rdi
	movl	%eax, (%rdi)
	callq	_crypto_shash_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.1:
	movq	(%r14), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	$4, %edx
	callq	_crypto_shash_update
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.2:
	movq	(%r14), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_crypto_shash_final
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.3:
	movq	(%r14), %rdi
	callq	_crypto_shash_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.4:
	movq	(%r14), %rdi
	leaq	16(%r13), %r12
	movq	%r12, %rsi
	movl	$4, %edx
	callq	_crypto_shash_update
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.5:
	movq	(%r14), %rdi
	movq	%r12, %rsi
	callq	_crypto_shash_final
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.6:
	movq	(%r14), %rdi
	callq	_crypto_shash_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.7:
	movq	(%r14), %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	$4, %edx
	callq	_crypto_shash_update
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.8:
	movq	(%r14), %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_crypto_shash_final
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.9:
	movq	(%r14), %rdi
	callq	_crypto_shash_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.10:
	movq	(%r14), %rdi
	addq	$48, %r13
	movq	%r13, %rsi
	movl	$4, %edx
	callq	_crypto_shash_update
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.11:
	movq	(%r14), %rdi
	movq	%r13, %rsi
	callq	_crypto_shash_final
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.12:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movl	$4, %edx
	callq	_crypto_xor
	movq	%r12, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	$4, %edx
	callq	_crypto_xor
	movq	_SECTOR_SHIFT@GOTPCREL(%rip), %r14
	movb	(%r14), %cl
	movl	$1, %eax
	shll	%cl, %eax
	xorl	%ebx, %ebx
	cmpl	$8, %eax
	jl	LBB0_15
## %bb.13:
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	movq	-80(%rbp), %r13                 ## 8-byte Reload
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	$8, %edx
	callq	_crypto_xor
	incq	%r12
	movzbl	(%r14), %ecx
	movl	$1, %eax
	shll	%cl, %eax
	leal	7(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$3, %ecx
	movslq	%ecx, %rax
	addq	$32, %r13
	cmpq	%rax, %r12
	jl	LBB0_14
LBB0_15:
	leal	(,%r15,4), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_memzero_explicit
	movq	-88(%rbp), %rsp                 ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_TCW_WHITENING_SIZE,4,2         ## @TCW_WHITENING_SIZE
	.comm	_desc,8,3                       ## @desc
	.comm	_SECTOR_SHIFT,4,2               ## @SECTOR_SHIFT
	.no_dead_strip	_crypt_iv_tcw_whitening
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function crypt_iv_tcw_whitening
_crypt_iv_tcw_whitening:                ; @crypt_iv_tcw_whitening
	.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
	sub	sp, sp, #16
	mov	x19, x2
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	w0, [x1]
	bl	_cpu_to_le64
	mov	x25, sp
	stur	w0, [x29, #-92]
Lloh3:
	adrp	x8, _TCW_WHITENING_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TCW_WHITENING_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w26, [x8]
	lsl	x8, x26, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x20, x9, x8
	mov	sp, x20
Lloh8:
	adrp	x27, _desc@GOTPAGE
Lloh9:
	ldr	x27, [x27, _desc@GOTPAGEOFF]
	ldr	x0, [x27]
	ldr	w1, [x22]
	bl	_SHASH_DESC_ON_STACK
	ldr	x1, [x22, #8]
	sub	x2, x29, #92
	mov	x0, x20
	mov	w3, #8
	bl	_crypto_xor_cpy
	add	x21, x20, #32
	ldr	x8, [x22, #8]
	add	x1, x8, #8
	sub	x2, x29, #92
	mov	x0, x21
	mov	w3, #8
	bl	_crypto_xor_cpy
	ldr	w8, [x22]
	ldr	x0, [x27]
	str	w8, [x0]
	bl	_crypto_shash_init
	mov	x23, x0
	cbnz	w0, LBB0_16
; %bb.1:
	ldr	x0, [x27]
	mov	x1, x20
	mov	w2, #4
	bl	_crypto_shash_update
	mov	x23, x0
	cbnz	w0, LBB0_16
; %bb.2:
	ldr	x0, [x27]
	mov	x1, x20
	bl	_crypto_shash_final
	mov	x23, x0
	cbnz	w0, LBB0_16
; %bb.3:
	ldr	x0, [x27]
	bl	_crypto_shash_init
	mov	x23, x0
	cbnz	w0, LBB0_16
; %bb.4:
	ldr	x0, [x27]
	add	x22, x20, #16
	mov	x1, x22
	mov	w2, #4
	bl	_crypto_shash_update
	mov	x23, x0
	cbnz	w0, LBB0_16
; %bb.5:
	ldr	x0, [x27]
	mov	x1, x22
	bl	_crypto_shash_final
	mov	x23, x0
	cbnz	w0, LBB0_16
; %bb.6:
	ldr	x0, [x27]
	bl	_crypto_shash_init
	mov	x23, x0
	cbnz	w0, LBB0_16
; %bb.7:
	ldr	x0, [x27]
	mov	x1, x21
	mov	w2, #4
	bl	_crypto_shash_update
	mov	x23, x0
	cbnz	w0, LBB0_16
; %bb.8:
	ldr	x0, [x27]
	mov	x1, x21
	bl	_crypto_shash_final
	mov	x23, x0
	cbnz	w0, LBB0_16
; %bb.9:
	ldr	x0, [x27]
	bl	_crypto_shash_init
	mov	x23, x0
	cbnz	w0, LBB0_16
; %bb.10:
	ldr	x0, [x27]
	add	x24, x20, #48
	mov	x1, x24
	mov	w2, #4
	bl	_crypto_shash_update
	mov	x23, x0
	cbnz	w0, LBB0_16
; %bb.11:
	ldr	x0, [x27]
	mov	x1, x24
	bl	_crypto_shash_final
	mov	x23, x0
	cbnz	w0, LBB0_16
; %bb.12:
	mov	x0, x20
	mov	x1, x24
	mov	w2, #4
	bl	_crypto_xor
	mov	x0, x22
	mov	x1, x21
	mov	w2, #4
	bl	_crypto_xor
Lloh10:
	adrp	x21, _SECTOR_SHIFT@GOTPAGE
Lloh11:
	ldr	x21, [x21, _SECTOR_SHIFT@GOTPAGEOFF]
	ldr	w8, [x21]
	mov	w22, #1
	lsl	w8, w22, w8
	cmp	w8, #8
	b.lt	LBB0_15
; %bb.13:
	mov	x24, #0
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	mov	w2, #8
	bl	_crypto_xor
	mov	w23, #0
	add	x24, x24, #1
	ldr	w8, [x21]
	lsl	w8, w22, w8
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #3
	add	x19, x19, #32
	cmp	x24, w8, sxtw
	b.lt	LBB0_14
	b	LBB0_16
LBB0_15:
	mov	w23, #0
LBB0_16:
	lsl	w1, w26, #2
	mov	x0, x20
	bl	_memzero_explicit
	mov	sp, x25
	ldur	x8, [x29, #-88]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	mov	x0, x23
	sub	sp, x29, #80
	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
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_TCW_WHITENING_SIZE,4,2         ; @TCW_WHITENING_SIZE
	.comm	_desc,8,3                       ; @desc
	.comm	_SECTOR_SHIFT,4,2               ; @SECTOR_SHIFT
	.no_dead_strip	_crypt_iv_tcw_whitening
.subsections_via_symbols
