	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_internal_aes_encrypt   ## -- Begin function mbedtls_internal_aes_encrypt
	.p2align	4, 0x90
_mbedtls_internal_aes_encrypt:          ## @mbedtls_internal_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	(%rdi), %r13
	xorl	%edx, %edx
	callq	_GET_UINT32_LE
	movq	%rbx, %rsi
	movl	$4, %edx
	callq	_GET_UINT32_LE
	movq	%rbx, %rsi
	movl	$8, %edx
	callq	_GET_UINT32_LE
	movq	%rbx, %rsi
	movl	$12, %edx
	callq	_GET_UINT32_LE
	movl	8(%r15), %ebx
	cmpl	$4, %ebx
	jl	LBB0_3
## %bb.1:
	shrl	%ebx
	incl	%ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	callq	_AES_FROUND
	callq	_AES_FROUND
	decl	%ebx
	cmpl	$2, %ebx
	ja	LBB0_2
LBB0_3:
	callq	_AES_FROUND
	movq	_FSb@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	movl	%edi, %eax
	shll	$8, %eax
	movl	%edi, %ecx
	shll	$16, %ecx
	movl	%edi, %ebx
	shll	$24, %ebx
	xorl	%eax, %ebx
	movl	16(%r13), %eax
	xorl	%ebx, %eax
	xorl	%edi, %ebx
	xorl	%ecx, %edi
	xorl	%eax, %edi
	movl	20(%r13), %r15d
	xorl	%ebx, %r15d
	xorl	%ecx, %r15d
	xorl	%ecx, %ebx
	movl	24(%r13), %r12d
	xorl	%ebx, %r12d
	xorl	28(%r13), %ebx
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_PUT_UINT32_LE
	movl	%r15d, %edi
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_PUT_UINT32_LE
	movl	%r12d, %edi
	movq	%r14, %rsi
	movl	$8, %edx
	callq	_PUT_UINT32_LE
	movl	%ebx, %edi
	movq	%r14, %rsi
	movl	$12, %edx
	callq	_PUT_UINT32_LE
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FSb,8,3                        ## @FSb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_internal_aes_encrypt   ; -- Begin function mbedtls_internal_aes_encrypt
	.p2align	2
_mbedtls_internal_aes_encrypt:          ; @mbedtls_internal_aes_encrypt
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x22, [x0]
	mov	w2, #0
	bl	_GET_UINT32_LE
	mov	x1, x20
	mov	w2, #4
	bl	_GET_UINT32_LE
	mov	x1, x20
	mov	w2, #8
	bl	_GET_UINT32_LE
	mov	x1, x20
	mov	w2, #12
	bl	_GET_UINT32_LE
	ldr	w8, [x21, #8]
	cmp	w8, #4
	b.lt	LBB0_3
; %bb.1:
	lsr	w8, w8, #1
	add	w20, w8, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	bl	_AES_FROUND
	bl	_AES_FROUND
	sub	w20, w20, #1
	cmp	w20, #2
	b.hi	LBB0_2
LBB0_3:
	bl	_AES_FROUND
Lloh0:
	adrp	x8, _FSb@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FSb@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w8, [x8]
	lsl	w9, w8, #8
	lsl	w10, w8, #16
	eor	w9, w9, w8, lsl #24
	ldp	w11, w12, [x22, #16]
	eor	w11, w9, w11
	eor	w11, w11, w8
	eor	w0, w11, w10
	eor	w8, w9, w8
	eor	w9, w8, w12
	eor	w20, w9, w10
	eor	w8, w8, w10
	ldp	w9, w10, [x22, #24]
	eor	w21, w8, w9
	eor	w22, w8, w10
	mov	x1, x19
	mov	w2, #0
	bl	_PUT_UINT32_LE
	mov	x0, x20
	mov	x1, x19
	mov	w2, #4
	bl	_PUT_UINT32_LE
	mov	x0, x21
	mov	x1, x19
	mov	w2, #8
	bl	_PUT_UINT32_LE
	mov	x0, x22
	mov	x1, x19
	mov	w2, #12
	bl	_PUT_UINT32_LE
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_FSb,8,3                        ; @FSb
.subsections_via_symbols
