	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ctr_rfc3686_aes_decrypt        ## -- Begin function ctr_rfc3686_aes_decrypt
	.p2align	4, 0x90
_ctr_rfc3686_aes_decrypt:               ## @ctr_rfc3686_aes_decrypt
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r13d
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	(%rdi), %edi
	callq	_crypto_blkcipher_ctx
	movq	%rax, %rbx
	leaq	-128(%rbp), %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movl	%r13d, %ecx
	callq	_blkcipher_walk_init
	movq	%r14, -136(%rbp)                ## 8-byte Spill
	movq	%r14, %rdi
	leaq	-128(%rbp), %rsi
	callq	_blkcipher_walk_virt
	movl	%eax, %r12d
	movl	(%rbx), %esi
	movq	_CTR_RFC3686_NONCE_SIZE@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	leaq	-112(%rbp), %rdi
	callq	_memcpy
	movslq	(%r14), %rax
	leaq	-112(,%rax,4), %rdi
	addq	%rbp, %rdi
	movl	-116(%rbp), %esi
	movq	_CTR_RFC3686_IV_SIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	callq	_memcpy
	movl	$1, %edi
	callq	_cpu_to_be32
	movslq	(%r14), %rcx
	leaq	-112(,%rcx,4), %rcx
	addq	%rbp, %rcx
	movslq	(%r15), %rdx
	movl	%eax, (%rcx,%rdx,4)
	movl	-128(%rbp), %r8d
	cmpl	%r13d, %r8d
	jne	LBB0_2
## %bb.1:
	movl	-124(%rbp), %edx
	movl	-120(%rbp), %esi
	movq	_CRYPTO_DIR_ENCRYPT@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	$0, (%rsp)
	leaq	-112(%rbp), %rcx
	movq	%rbx, %rdi
	movl	%r13d, %r8d
	callq	_ifx_deu_aes_ctr
	subl	-128(%rbp), %r13d
	jmp	LBB0_4
LBB0_2:
	testl	%r8d, %r8d
	je	LBB0_5
## %bb.3:
	movl	-124(%rbp), %edx
	movl	-120(%rbp), %esi
	movq	_CRYPTO_DIR_ENCRYPT@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	$0, (%rsp)
	leaq	-112(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_ifx_deu_aes_ctr
	xorl	%r13d, %r13d
LBB0_4:
	leaq	-128(%rbp), %rsi
	movq	-136(%rbp), %rdi                ## 8-byte Reload
	movl	%r13d, %edx
	callq	_blkcipher_walk_done
	movl	%eax, %r12d
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	movl	%r12d, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CTR_RFC3686_NONCE_SIZE,4,2     ## @CTR_RFC3686_NONCE_SIZE
	.comm	_CTR_RFC3686_IV_SIZE,4,2        ## @CTR_RFC3686_IV_SIZE
	.comm	_CRYPTO_DIR_ENCRYPT,4,2         ## @CRYPTO_DIR_ENCRYPT
	.comm	_AES_BLOCK_SIZE,4,2             ## @AES_BLOCK_SIZE
	.comm	_CRYPTO_DIR_DECRYPT,4,2         ## @CRYPTO_DIR_DECRYPT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ctr_rfc3686_aes_decrypt        ; -- Begin function ctr_rfc3686_aes_decrypt
	.p2align	2
_ctr_rfc3686_aes_decrypt:               ; @ctr_rfc3686_aes_decrypt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	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
	mov	x20, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	ldr	w0, [x0]
	bl	_crypto_blkcipher_ctx
	mov	x21, x0
	add	x0, sp, #8
	mov	x1, x23
	mov	x2, x22
	mov	x3, x20
	bl	_blkcipher_walk_init
	add	x1, sp, #8
	mov	x0, x19
	bl	_blkcipher_walk_virt
	mov	x22, x0
	ldr	w1, [x21]
Lloh3:
	adrp	x23, _CTR_RFC3686_NONCE_SIZE@GOTPAGE
Lloh4:
	ldr	x23, [x23, _CTR_RFC3686_NONCE_SIZE@GOTPAGEOFF]
	ldr	w2, [x23]
	add	x24, sp, #24
	add	x0, sp, #24
	bl	_memcpy
	ldrsw	x8, [x23]
	add	x0, x24, x8, lsl #2
	ldr	w1, [sp, #20]
Lloh5:
	adrp	x25, _CTR_RFC3686_IV_SIZE@GOTPAGE
Lloh6:
	ldr	x25, [x25, _CTR_RFC3686_IV_SIZE@GOTPAGEOFF]
	ldr	w2, [x25]
	bl	_memcpy
	mov	w0, #1
	bl	_cpu_to_be32
	ldrsw	x8, [x23]
	add	x8, x24, x8, lsl #2
	ldrsw	x9, [x25]
	str	w0, [x8, x9, lsl #2]
	ldr	w4, [sp, #8]
	cmp	w4, w20
	b.ne	LBB0_2
; %bb.1:
	ldp	w2, w1, [sp, #12]
Lloh7:
	adrp	x8, _CRYPTO_DIR_ENCRYPT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CRYPTO_DIR_ENCRYPT@GOTPAGEOFF]
Lloh9:
	ldr	w5, [x8]
	add	x3, sp, #24
	mov	x0, x21
	mov	x4, x20
	mov	w6, #0
	bl	_ifx_deu_aes_ctr
	ldr	w8, [sp, #8]
	sub	w2, w20, w8
	b	LBB0_4
LBB0_2:
	cbz	w4, LBB0_5
; %bb.3:
	ldp	w2, w1, [sp, #12]
Lloh10:
	adrp	x8, _CRYPTO_DIR_ENCRYPT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CRYPTO_DIR_ENCRYPT@GOTPAGEOFF]
Lloh12:
	ldr	w5, [x8]
	add	x3, sp, #24
	mov	x0, x21
	mov	w6, #0
	bl	_ifx_deu_aes_ctr
	mov	w2, #0
LBB0_4:
	add	x1, sp, #8
	mov	x0, x19
	bl	_blkcipher_walk_done
	mov	x22, x0
LBB0_5:
	ldur	x8, [x29, #-72]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x22
	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
	add	sp, sp, #176
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_CTR_RFC3686_NONCE_SIZE,4,2     ; @CTR_RFC3686_NONCE_SIZE
	.comm	_CTR_RFC3686_IV_SIZE,4,2        ; @CTR_RFC3686_IV_SIZE
	.comm	_CRYPTO_DIR_ENCRYPT,4,2         ; @CRYPTO_DIR_ENCRYPT
	.comm	_AES_BLOCK_SIZE,4,2             ; @AES_BLOCK_SIZE
	.comm	_CRYPTO_DIR_DECRYPT,4,2         ; @CRYPTO_DIR_DECRYPT
.subsections_via_symbols
