	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_aes_crypt_ctr          ## -- Begin function mbedtls_aes_crypt_ctr
	.p2align	4, 0x90
_mbedtls_aes_crypt_ctr:                 ## @mbedtls_aes_crypt_ctr
	.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
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	(%rdx), %r14
	testq	%rsi, %rsi
	je	LBB0_20
## %bb.1:
	movq	%r9, %r13
	movq	%r8, %r12
	movq	%rcx, %rbx
	movq	16(%rbp), %rdx
	xorl	%r15d, %r15d
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	movzbl	(%r12,%r14), %eax
	xorb	(%r13,%r15), %al
	movb	%al, (%rdx,%r15)
	incl	%r14d
	andl	$15, %r14d
	incq	%r15
	cmpq	%r15, %rsi
	je	LBB0_20
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	testq	%r14, %r14
	jne	LBB0_19
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_MBEDTLS_AES_ENCRYPT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rdx
	movq	%r12, %rcx
	callq	_mbedtls_aes_crypt_ecb
	movq	16(%rbp), %rdx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	incb	15(%rbx)
	jne	LBB0_19
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incb	14(%rbx)
	jne	LBB0_19
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	incb	13(%rbx)
	jne	LBB0_19
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	incb	12(%rbx)
	jne	LBB0_19
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	incb	11(%rbx)
	jne	LBB0_19
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	incb	10(%rbx)
	jne	LBB0_19
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	incb	9(%rbx)
	jne	LBB0_19
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	incb	8(%rbx)
	jne	LBB0_19
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	incb	7(%rbx)
	jne	LBB0_19
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	incb	6(%rbx)
	jne	LBB0_19
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	incb	5(%rbx)
	jne	LBB0_19
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	incb	4(%rbx)
	jne	LBB0_19
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	incb	3(%rbx)
	jne	LBB0_19
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	incb	2(%rbx)
	jne	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_2 Depth=1
	incb	1(%rbx)
	jne	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	incb	(%rbx)
	jmp	LBB0_19
LBB0_20:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%r14, (%rax)
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_AES_ENCRYPT,4,2        ## @MBEDTLS_AES_ENCRYPT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_aes_crypt_ctr          ; -- Begin function mbedtls_aes_crypt_ctr
	.p2align	2
_mbedtls_aes_crypt_ctr:                 ; @mbedtls_aes_crypt_ctr
	.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
	mov	x19, x2
	ldr	x26, [x2]
	cbz	x1, LBB0_20
; %bb.1:
	mov	x20, x6
	mov	x21, x5
	mov	x22, x4
	mov	x23, x3
	mov	x24, x1
	mov	x25, x0
Lloh0:
	adrp	x27, _MBEDTLS_AES_ENCRYPT@GOTPAGE
Lloh1:
	ldr	x27, [x27, _MBEDTLS_AES_ENCRYPT@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w8, [x21], #1
	ldrb	w9, [x22, x26]
	eor	w8, w9, w8
	strb	w8, [x20], #1
	add	w8, w26, #1
	and	x26, x8, #0xf
	cbz	x24, LBB0_20
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	sub	x24, x24, #1
	cbnz	x26, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x27]
	mov	x0, x25
	mov	x2, x23
	mov	x3, x22
	bl	_mbedtls_aes_crypt_ecb
	ldrb	w8, [x23, #15]
	add	w8, w8, #1
	strb	w8, [x23, #15]
	tbz	w8, #8, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w8, [x23, #14]
	add	w8, w8, #1
	strb	w8, [x23, #14]
	tbz	w8, #8, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w8, [x23, #13]
	add	w8, w8, #1
	strb	w8, [x23, #13]
	tbz	w8, #8, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w8, [x23, #12]
	add	w8, w8, #1
	strb	w8, [x23, #12]
	tbz	w8, #8, LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w8, [x23, #11]
	add	w8, w8, #1
	strb	w8, [x23, #11]
	tbz	w8, #8, LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w8, [x23, #10]
	add	w8, w8, #1
	strb	w8, [x23, #10]
	tbz	w8, #8, LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w8, [x23, #9]
	add	w8, w8, #1
	strb	w8, [x23, #9]
	tbz	w8, #8, LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w8, [x23, #8]
	add	w8, w8, #1
	strb	w8, [x23, #8]
	tbz	w8, #8, LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w8, [x23, #7]
	add	w8, w8, #1
	strb	w8, [x23, #7]
	tbz	w8, #8, LBB0_2
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w8, [x23, #6]
	add	w8, w8, #1
	strb	w8, [x23, #6]
	tbz	w8, #8, LBB0_2
; %bb.14:                               ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w8, [x23, #5]
	add	w8, w8, #1
	strb	w8, [x23, #5]
	tbz	w8, #8, LBB0_2
; %bb.15:                               ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w8, [x23, #4]
	add	w8, w8, #1
	strb	w8, [x23, #4]
	tbz	w8, #8, LBB0_2
; %bb.16:                               ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w8, [x23, #3]
	add	w8, w8, #1
	strb	w8, [x23, #3]
	tbz	w8, #8, LBB0_2
; %bb.17:                               ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w8, [x23, #2]
	add	w8, w8, #1
	strb	w8, [x23, #2]
	tbz	w8, #8, LBB0_2
; %bb.18:                               ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w8, [x23, #1]
	add	w8, w8, #1
	strb	w8, [x23, #1]
	tbz	w8, #8, LBB0_2
; %bb.19:                               ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w8, [x23]
	add	w8, w8, #1
	strb	w8, [x23]
	b	LBB0_2
LBB0_20:
	str	x26, [x19]
	mov	w0, #0
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_AES_ENCRYPT,4,2        ; @MBEDTLS_AES_ENCRYPT
.subsections_via_symbols
