	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_aes_setkey_dec         ## -- Begin function mbedtls_aes_setkey_dec
	.p2align	4, 0x90
_mbedtls_aes_setkey_dec:                ## @mbedtls_aes_setkey_dec
	.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
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %r13
	leaq	-64(%rbp), %r12
	movq	%r12, %rdi
	callq	_mbedtls_aes_init
	movq	8(%r13), %rbx
	movq	%rbx, (%r13)
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_mbedtls_aes_setkey_enc
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movslq	-48(%rbp), %rdx
	movl	%edx, 16(%r13)
	movq	-64(%rbp), %rsi
	shlq	$4, %rdx
	movl	(%rsi,%rdx), %eax
	movl	%eax, (%rbx)
	movl	4(%rsi,%rdx), %eax
	movl	%eax, 4(%rbx)
	movl	8(%rsi,%rdx), %eax
	movl	%eax, 8(%rbx)
	movl	12(%rsi,%rdx), %eax
	movl	%eax, 12(%rbx)
	addq	$16, %rbx
	movl	16(%r13), %r15d
	leaq	(%rsi,%rdx), %rax
	addq	$-16, %rax
	cmpl	$2, %r15d
	jl	LBB0_2
## %bb.3:
	movq	_RT0@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r8
	movq	_FSb@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	movq	_RT1@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r9
	movq	_RT2@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r10
	movq	_RT3@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r11
	incl	%r15d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rax), %edx
	movzbl	%dl, %edi
	movq	(%rsi,%rdi,8), %rdi
	movzbl	%dh, %ecx
	movq	(%rsi,%rcx,8), %rcx
	movl	(%r9,%rcx,4), %ecx
	xorl	(%r8,%rdi,4), %ecx
	movq	%rdx, %rdi
	shrq	$13, %rdi
	andl	$2040, %edi                     ## imm = 0x7F8
	movq	(%rsi,%rdi), %rdi
	xorl	(%r10,%rdi,4), %ecx
	shrq	$24, %rdx
	movq	(%rsi,%rdx,8), %rdx
	xorl	(%r11,%rdx,4), %ecx
	movl	%ecx, (%rbx)
	movl	4(%rax), %edx
	movzbl	%dl, %ecx
	movq	(%rsi,%rcx,8), %rcx
	movzbl	%dh, %edi
	movq	(%rsi,%rdi,8), %rdi
	movl	(%r9,%rdi,4), %edi
	xorl	(%r8,%rcx,4), %edi
	movq	%rdx, %rcx
	shrq	$13, %rcx
	andl	$2040, %ecx                     ## imm = 0x7F8
	movq	(%rsi,%rcx), %rcx
	xorl	(%r10,%rcx,4), %edi
	shrq	$24, %rdx
	movq	(%rsi,%rdx,8), %rcx
	xorl	(%r11,%rcx,4), %edi
	movl	%edi, 4(%rbx)
	movl	8(%rax), %edx
	movzbl	%dl, %ecx
	movq	(%rsi,%rcx,8), %rcx
	movzbl	%dh, %edi
	movq	(%rsi,%rdi,8), %rdi
	movl	(%r9,%rdi,4), %edi
	xorl	(%r8,%rcx,4), %edi
	movq	%rdx, %rcx
	shrq	$13, %rcx
	andl	$2040, %ecx                     ## imm = 0x7F8
	movq	(%rsi,%rcx), %rcx
	xorl	(%r10,%rcx,4), %edi
	shrq	$24, %rdx
	movq	(%rsi,%rdx,8), %rcx
	xorl	(%r11,%rcx,4), %edi
	movl	%edi, 8(%rbx)
	movl	12(%rax), %edx
	movzbl	%dl, %ecx
	movq	(%rsi,%rcx,8), %rcx
	movzbl	%dh, %edi
	movq	(%rsi,%rdi,8), %rdi
	movl	(%r9,%rdi,4), %edi
	xorl	(%r8,%rcx,4), %edi
	movq	%rdx, %rcx
	shrq	$13, %rcx
	andl	$2040, %ecx                     ## imm = 0x7F8
	movq	(%rsi,%rcx), %rcx
	xorl	(%r10,%rcx,4), %edi
	shrq	$24, %rdx
	movq	(%rsi,%rdx,8), %rcx
	xorl	(%r11,%rcx,4), %edi
	movl	%edi, 12(%rbx)
	addq	$16, %rbx
	addq	$-16, %rax
	decl	%r15d
	cmpl	$2, %r15d
	ja	LBB0_4
## %bb.5:
	movq	%rax, %rcx
	addq	$32, %rcx
	jmp	LBB0_6
LBB0_2:
	leaq	(%rsi,%rdx), %rcx
	addq	$16, %rcx
LBB0_6:
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movl	-28(%rcx), %eax
	movl	%eax, 4(%rbx)
	movl	-24(%rcx), %eax
	movl	%eax, 8(%rbx)
	movl	-20(%rcx), %eax
	movl	%eax, 12(%rbx)
LBB0_7:
	leaq	-64(%rbp), %rdi
	callq	_mbedtls_aes_free
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RT0,8,3                        ## @RT0
	.comm	_FSb,8,3                        ## @FSb
	.comm	_RT1,8,3                        ## @RT1
	.comm	_RT2,8,3                        ## @RT2
	.comm	_RT3,8,3                        ## @RT3
	.comm	_MBEDTLS_AESNI_AES,4,2          ## @MBEDTLS_AESNI_AES
	.comm	_MBEDTLS_PADLOCK_ACE,4,2        ## @MBEDTLS_PADLOCK_ACE
	.comm	_aes_padlock_ace,4,2            ## @aes_padlock_ace
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_aes_setkey_dec         ; -- Begin function mbedtls_aes_setkey_dec
	.p2align	2
_mbedtls_aes_setkey_dec:                ; @mbedtls_aes_setkey_dec
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x1
	mov	x20, x0
	add	x0, sp, #8
	bl	_mbedtls_aes_init
	ldr	x22, [x20, #8]
	str	x22, [x20]
	add	x0, sp, #8
	mov	x1, x21
	mov	x2, x19
	bl	_mbedtls_aes_setkey_enc
	mov	x19, x0
	cbnz	w0, LBB0_7
; %bb.1:
	ldrsw	x8, [sp, #24]
	str	w8, [x20, #16]
	ldr	x9, [sp, #8]
	add	x10, x9, x8, lsl #4
	ldr	w8, [x10]
	str	w8, [x22]
	ldr	w8, [x10, #4]
	str	w8, [x22, #4]
	ldr	w8, [x10, #8]
	str	w8, [x22, #8]
	ldr	w8, [x10, #12]
	add	x9, x22, #16
	str	w8, [x22, #12]
	ldr	w15, [x20, #16]
	sub	x8, x10, #16
	cmp	w15, #2
	b.lt	LBB0_5
; %bb.2:
Lloh0:
	adrp	x10, _RT0@GOTPAGE
Lloh1:
	ldr	x10, [x10, _RT0@GOTPAGEOFF]
Lloh2:
	adrp	x11, _FSb@GOTPAGE
Lloh3:
	ldr	x11, [x11, _FSb@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
Lloh5:
	ldr	x11, [x11]
Lloh6:
	adrp	x12, _RT1@GOTPAGE
Lloh7:
	ldr	x12, [x12, _RT1@GOTPAGEOFF]
Lloh8:
	adrp	x13, _RT2@GOTPAGE
Lloh9:
	ldr	x13, [x13, _RT2@GOTPAGEOFF]
Lloh10:
	ldr	x12, [x12]
Lloh11:
	ldr	x13, [x13]
Lloh12:
	adrp	x14, _RT3@GOTPAGE
Lloh13:
	ldr	x14, [x14, _RT3@GOTPAGEOFF]
Lloh14:
	ldr	x14, [x14]
	add	w15, w15, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w16, [x8]
	and	x17, x16, #0xff
	ldr	x17, [x11, x17, lsl #3]
	ldr	w17, [x10, x17, lsl #2]
	ubfx	x0, x16, #8, #8
	ldr	x0, [x11, x0, lsl #3]
	ldr	w0, [x12, x0, lsl #2]
	ubfx	x1, x16, #16, #8
	ldr	x1, [x11, x1, lsl #3]
	eor	w17, w0, w17
	ldr	w0, [x13, x1, lsl #2]
	eor	w17, w17, w0
	lsr	x16, x16, #21
	and	x16, x16, #0x7f8
	ldr	x16, [x11, x16]
	ldr	w16, [x14, x16, lsl #2]
	eor	w16, w17, w16
	str	w16, [x9]
	ldr	w16, [x8, #4]
	and	x17, x16, #0xff
	ldr	x17, [x11, x17, lsl #3]
	ldr	w17, [x10, x17, lsl #2]
	ubfx	x0, x16, #8, #8
	ldr	x0, [x11, x0, lsl #3]
	ldr	w0, [x12, x0, lsl #2]
	eor	w17, w0, w17
	ubfx	x0, x16, #16, #8
	ldr	x0, [x11, x0, lsl #3]
	ldr	w0, [x13, x0, lsl #2]
	eor	w17, w17, w0
	lsr	x16, x16, #21
	and	x16, x16, #0x7f8
	ldr	x16, [x11, x16]
	ldr	w16, [x14, x16, lsl #2]
	eor	w16, w17, w16
	str	w16, [x9, #4]
	ldr	w16, [x8, #8]
	and	x17, x16, #0xff
	ldr	x17, [x11, x17, lsl #3]
	ldr	w17, [x10, x17, lsl #2]
	ubfx	x0, x16, #8, #8
	ldr	x0, [x11, x0, lsl #3]
	ldr	w0, [x12, x0, lsl #2]
	eor	w17, w0, w17
	ubfx	x0, x16, #16, #8
	ldr	x0, [x11, x0, lsl #3]
	ldr	w0, [x13, x0, lsl #2]
	lsr	x16, x16, #21
	and	x16, x16, #0x7f8
	ldr	x16, [x11, x16]
	eor	w17, w17, w0
	ldr	w16, [x14, x16, lsl #2]
	eor	w16, w17, w16
	str	w16, [x9, #8]
	ldr	w16, [x8, #12]
	and	x17, x16, #0xff
	ldr	x17, [x11, x17, lsl #3]
	ldr	w17, [x10, x17, lsl #2]
	ubfx	x0, x16, #8, #8
	ldr	x0, [x11, x0, lsl #3]
	ldr	w0, [x12, x0, lsl #2]
	eor	w17, w0, w17
	ubfx	x0, x16, #16, #8
	ldr	x0, [x11, x0, lsl #3]
	ldr	w0, [x13, x0, lsl #2]
	eor	w17, w17, w0
	lsr	x16, x16, #21
	and	x16, x16, #0x7f8
	ldr	x16, [x11, x16]
	ldr	w16, [x14, x16, lsl #2]
	eor	w17, w17, w16
	add	x16, x9, #16
	str	w17, [x9, #12]
	sub	x8, x8, #16
	sub	w15, w15, #1
	mov	x9, x16
	cmp	w15, #2
	b.hi	LBB0_3
; %bb.4:
	add	x10, x8, #32
	mov	x9, x16
	b	LBB0_6
LBB0_5:
	add	x10, x10, #16
LBB0_6:
	ldr	w8, [x8]
	str	w8, [x9]
	ldur	w8, [x10, #-28]
	str	w8, [x9, #4]
	ldur	w8, [x10, #-24]
	str	w8, [x9, #8]
	ldur	w8, [x10, #-20]
	str	w8, [x9, #12]
LBB0_7:
	add	x0, sp, #8
	bl	_mbedtls_aes_free
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_RT0,8,3                        ; @RT0
	.comm	_FSb,8,3                        ; @FSb
	.comm	_RT1,8,3                        ; @RT1
	.comm	_RT2,8,3                        ; @RT2
	.comm	_RT3,8,3                        ; @RT3
	.comm	_MBEDTLS_AESNI_AES,4,2          ; @MBEDTLS_AESNI_AES
	.comm	_MBEDTLS_PADLOCK_ACE,4,2        ; @MBEDTLS_PADLOCK_ACE
	.comm	_aes_padlock_ace,4,2            ; @aes_padlock_ace
.subsections_via_symbols
