	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ctr_rfc3686_aes_encrypt        ## -- Begin function ctr_rfc3686_aes_encrypt
	.p2align	4, 0x90
_ctr_rfc3686_aes_encrypt:               ## @ctr_rfc3686_aes_encrypt
	.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, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	(%rdi), %edi
	callq	_crypto_blkcipher_ctx
	movq	%rax, %r15
	leaq	-128(%rbp), %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movl	%r13d, %ecx
	callq	_blkcipher_walk_init
	movq	%r12, -136(%rbp)                ## 8-byte Spill
	movq	%r12, %rdi
	leaq	-128(%rbp), %rsi
	callq	_blkcipher_walk_virt
	movl	%eax, %r12d
	movl	(%r15), %esi
	movq	_CTR_RFC3686_NONCE_SIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	leaq	-112(%rbp), %rdi
	callq	_memcpy
	movslq	(%rbx), %rax
	leaq	-112(,%rax,4), %rdi
	addq	%rbp, %rdi
	movl	-116(%rbp), %esi
	movq	_CTR_RFC3686_IV_SIZE@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	callq	_memcpy
	movl	$1, %edi
	callq	_cpu_to_be32
	movslq	(%rbx), %rcx
	leaq	-112(,%rcx,4), %rcx
	addq	%rbp, %rcx
	movslq	(%r14), %rdx
	movl	%eax, (%rcx,%rdx,4)
	movl	-128(%rbp), %ebx
	cmpl	%r13d, %ebx
	jne	LBB0_1
## %bb.11:
	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	%r15, %rdi
	movl	%r13d, %r8d
	callq	_ifx_deu_aes_ctr
	subl	-128(%rbp), %r13d
	leaq	-128(%rbp), %rsi
	movq	-136(%rbp), %rdi                ## 8-byte Reload
	movl	%r13d, %edx
	jmp	LBB0_8
LBB0_1:
	movq	-136(%rbp), %r13                ## 8-byte Reload
	testl	%ebx, %ebx
	setne	%al
	je	LBB0_6
## %bb.2:
	movq	_AES_BLOCK_SIZE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	jb	LBB0_6
## %bb.3:
	leaq	-128(%rbp), %r14
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	-124(%rbp), %edx
	movl	-120(%rbp), %esi
	movq	_CRYPTO_DIR_ENCRYPT@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	$0, (%rsp)
	movq	%r15, %rdi
	leaq	-112(%rbp), %rcx
	movl	%ebx, %r8d
	callq	_ifx_deu_aes_ctr
	subl	-128(%rbp), %ebx
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_blkcipher_walk_done
	movl	%eax, %r12d
	movl	-128(%rbp), %ebx
	testl	%ebx, %ebx
	setne	%al
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_AES_BLOCK_SIZE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	jae	LBB0_4
LBB0_6:
	testb	%al, %al
	je	LBB0_9
## %bb.7:
	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	%r15, %rdi
	movl	%ebx, %r8d
	callq	_ifx_deu_aes_ctr
	leaq	-128(%rbp), %rsi
	movq	%r13, %rdi
	xorl	%edx, %edx
LBB0_8:
	callq	_blkcipher_walk_done
	movl	%eax, %r12d
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.10:
	movl	%r12d, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ctr_rfc3686_aes_encrypt        ; -- Begin function ctr_rfc3686_aes_encrypt
	.p2align	2
_ctr_rfc3686_aes_encrypt:               ; @ctr_rfc3686_aes_encrypt
	.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	x23, x3
	mov	x21, x2
	mov	x22, 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	x20, x0
	add	x0, sp, #8
	mov	x1, x22
	mov	x2, x21
	mov	x3, x23
	bl	_blkcipher_walk_init
	add	x1, sp, #8
	mov	x0, x19
	bl	_blkcipher_walk_virt
	mov	x21, x0
	ldr	w1, [x20]
Lloh3:
	adrp	x22, _CTR_RFC3686_NONCE_SIZE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _CTR_RFC3686_NONCE_SIZE@GOTPAGEOFF]
	ldr	w2, [x22]
	add	x24, sp, #24
	add	x0, sp, #24
	bl	_memcpy
	ldrsw	x8, [x22]
	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, [x22]
	add	x8, x24, x8, lsl #2
	ldrsw	x9, [x25]
	str	w0, [x8, x9, lsl #2]
	ldr	w22, [sp, #8]
	cmp	w22, w23
	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, x20
	mov	x4, x23
	mov	w6, #0
	bl	_ifx_deu_aes_ctr
	ldr	w8, [sp, #8]
	sub	w2, w23, w8
	add	x1, sp, #8
	mov	x0, x19
	b	LBB0_9
LBB0_2:
	cmp	w22, #0
	cset	w8, ne
	cbz	w22, LBB0_7
; %bb.3:
Lloh10:
	adrp	x23, _AES_BLOCK_SIZE@GOTPAGE
Lloh11:
	ldr	x23, [x23, _AES_BLOCK_SIZE@GOTPAGEOFF]
	ldr	w9, [x23]
	cmp	w22, w9
	b.lo	LBB0_7
; %bb.4:
Lloh12:
	adrp	x24, _CRYPTO_DIR_ENCRYPT@GOTPAGE
Lloh13:
	ldr	x24, [x24, _CRYPTO_DIR_ENCRYPT@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w2, w1, [sp, #12]
	ldr	w5, [x24]
	add	x3, sp, #24
	mov	x0, x20
	mov	x4, x22
	mov	w6, #0
	bl	_ifx_deu_aes_ctr
	ldr	w8, [sp, #8]
	sub	w2, w22, w8
	add	x1, sp, #8
	mov	x0, x19
	bl	_blkcipher_walk_done
	ldr	w22, [sp, #8]
	cmp	w22, #0
	cset	w8, ne
	ldr	w9, [x23]
	ccmp	w22, w9, #0, ne
	b.hs	LBB0_5
; %bb.6:
	mov	x21, x0
LBB0_7:
	cbz	w8, LBB0_10
; %bb.8:
	ldp	w2, w1, [sp, #12]
Lloh14:
	adrp	x8, _CRYPTO_DIR_ENCRYPT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CRYPTO_DIR_ENCRYPT@GOTPAGEOFF]
Lloh16:
	ldr	w5, [x8]
	add	x3, sp, #24
	mov	x0, x20
	mov	x4, x22
	mov	w6, #0
	bl	_ifx_deu_aes_ctr
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #0
LBB0_9:
	bl	_blkcipher_walk_done
	mov	x21, x0
LBB0_10:
	ldur	x8, [x29, #-72]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	mov	x0, x21
	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_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.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
.subsections_via_symbols
