	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_ccm_auth_decrypt       ## -- Begin function mbedtls_ccm_auth_decrypt
	.p2align	4, 0x90
_mbedtls_ccm_auth_decrypt:              ## @mbedtls_ccm_auth_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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %rax
	movq	%r8, %r9
	movq	%rcx, %r8
	movq	%rdx, %rcx
	movq	%rsi, %r15
	movq	40(%rbp), %r12
	movq	24(%rbp), %r14
	movq	16(%rbp), %r10
	movq	___stack_chk_guard@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, -40(%rbp)
	movq	_CCM_DECRYPT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	subq	$8, %rsp
	leaq	-64(%rbp), %rbx
	movq	%r15, %rdx
	pushq	%r12
	pushq	%rbx
	pushq	%r14
	pushq	%r10
	pushq	%rax
	callq	_ccm_auth_crypt
	addq	$48, %rsp
	testl	%eax, %eax
	jne	LBB0_1
## %bb.3:
	testq	%r12, %r12
	je	LBB0_11
## %bb.4:
	movq	32(%rbp), %rax
	cmpq	$8, %r12
	jae	LBB0_12
## %bb.5:
	xorl	%ecx, %ecx
LBB0_6:
	xorl	%edx, %edx
LBB0_7:
	incq	%rcx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	-65(%rbp,%rcx), %ebx
	xorb	-1(%rax,%rcx), %bl
	movzbl	%bl, %esi
	orl	%esi, %edx
	movzbl	%cl, %esi
	incq	%rcx
	cmpq	%r12, %rsi
	jb	LBB0_8
LBB0_9:
	testl	%edx, %edx
	je	LBB0_11
## %bb.10:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_mbedtls_zeroize
	movq	_MBEDTLS_ERR_CCM_AUTH_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_1
LBB0_11:
	xorl	%eax, %eax
LBB0_1:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_23
## %bb.2:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	leaq	-1(%r12), %rsi
	xorl	%ecx, %ecx
	cmpb	$-1, %sil
	je	LBB0_6
## %bb.13:
	movl	$0, %edx
	cmpq	$255, %rsi
	ja	LBB0_7
## %bb.14:
	movq	%r12, %rcx
	andq	$-8, %rcx
	leaq	-8(%rcx), %rsi
	movq	%rsi, %r8
	shrq	$3, %r8
	incq	%r8
	testq	%rsi, %rsi
	je	LBB0_22
## %bb.15:
	movq	%r8, %rdi
	andq	$-2, %rdi
	pxor	%xmm0, %xmm0
	xorl	%esi, %esi
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movd	(%rax,%rsi), %xmm2              ## xmm2 = mem[0],zero,zero,zero
	pxor	-64(%rbp,%rsi), %xmm2
	movl	-60(%rbp,%rsi), %ebx
	movl	-52(%rbp,%rsi), %edx
	xorl	4(%rax,%rsi), %ebx
	movd	%ebx, %xmm3
	pmovzxbd	%xmm2, %xmm2                    ## xmm2 = xmm2[0],zero,zero,zero,xmm2[1],zero,zero,zero,xmm2[2],zero,zero,zero,xmm2[3],zero,zero,zero
	por	%xmm0, %xmm2
	pmovzxbd	%xmm3, %xmm3                    ## xmm3 = xmm3[0],zero,zero,zero,xmm3[1],zero,zero,zero,xmm3[2],zero,zero,zero,xmm3[3],zero,zero,zero
	por	%xmm1, %xmm3
	movd	8(%rax,%rsi), %xmm0             ## xmm0 = mem[0],zero,zero,zero
	movq	-56(%rbp,%rsi), %xmm1           ## xmm1 = mem[0],zero
	xorl	12(%rax,%rsi), %edx
	pxor	%xmm0, %xmm1
	movd	%edx, %xmm4
	pmovzxbd	%xmm1, %xmm0                    ## xmm0 = xmm1[0],zero,zero,zero,xmm1[1],zero,zero,zero,xmm1[2],zero,zero,zero,xmm1[3],zero,zero,zero
	por	%xmm2, %xmm0
	pmovzxbd	%xmm4, %xmm1                    ## xmm1 = xmm4[0],zero,zero,zero,xmm4[1],zero,zero,zero,xmm4[2],zero,zero,zero,xmm4[3],zero,zero,zero
	por	%xmm3, %xmm1
	addq	$16, %rsi
	addq	$-2, %rdi
	jne	LBB0_16
## %bb.17:
	testb	$1, %r8b
	je	LBB0_19
LBB0_18:
	movd	(%rax,%rsi), %xmm2              ## xmm2 = mem[0],zero,zero,zero
	movq	-64(%rbp,%rsi), %xmm3           ## xmm3 = mem[0],zero
	pxor	%xmm2, %xmm3
	movl	-60(%rbp,%rsi), %edx
	xorl	4(%rax,%rsi), %edx
	movd	%edx, %xmm2
	pmovzxbd	%xmm3, %xmm3                    ## xmm3 = xmm3[0],zero,zero,zero,xmm3[1],zero,zero,zero,xmm3[2],zero,zero,zero,xmm3[3],zero,zero,zero
	por	%xmm3, %xmm0
	pmovzxbd	%xmm2, %xmm2                    ## xmm2 = xmm2[0],zero,zero,zero,xmm2[1],zero,zero,zero,xmm2[2],zero,zero,zero,xmm2[3],zero,zero,zero
	por	%xmm2, %xmm1
LBB0_19:
	por	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	por	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	por	%xmm1, %xmm0
	movd	%xmm0, %edx
	cmpq	%r12, %rcx
	jne	LBB0_7
	jmp	LBB0_9
LBB0_22:
	pxor	%xmm0, %xmm0
	xorl	%esi, %esi
	pxor	%xmm1, %xmm1
	testb	$1, %r8b
	jne	LBB0_18
	jmp	LBB0_19
LBB0_23:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CCM_DECRYPT,4,2                ## @CCM_DECRYPT
	.comm	_MBEDTLS_ERR_CCM_AUTH_FAILED,4,2 ## @MBEDTLS_ERR_CCM_AUTH_FAILED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function mbedtls_ccm_auth_decrypt
lCPI0_0:
	.byte	0                               ; 0x0
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	1                               ; 0x1
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	2                               ; 0x2
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	3                               ; 0x3
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
lCPI0_1:
	.byte	4                               ; 0x4
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	5                               ; 0x5
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	6                               ; 0x6
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	7                               ; 0x7
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_mbedtls_ccm_auth_decrypt
	.p2align	2
_mbedtls_ccm_auth_decrypt:              ; @mbedtls_ccm_auth_decrypt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x7
	mov	x7, x6
	mov	x6, x5
	mov	x5, x4
	mov	x4, x3
	mov	x3, x2
	mov	x20, x1
	ldr	x21, [x29, #24]
Lloh0:
	adrp	x8, _CCM_DECRYPT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CCM_DECRYPT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x8, sp, #32
	stp	x8, x21, [sp, #8]
	str	x19, [sp]
	mov	x2, x20
	bl	_ccm_auth_crypt
	cbnz	w0, LBB0_26
; %bb.1:
	cbz	x21, LBB0_25
; %bb.2:
	ldr	x8, [x29, #16]
	cmp	x21, #8
	b.hs	LBB0_4
; %bb.3:
	mov	x9, #0
	mov	w10, #0
	b	LBB0_21
LBB0_4:
	mov	w10, #0
	mov	x9, #0
	sub	x11, x21, #1
	mvn	w12, w11
	tst	w12, #0xff
	b.eq	LBB0_21
; %bb.5:
	cmp	x11, #255
	b.hi	LBB0_21
; %bb.6:
	cmp	x21, #32
	b.hs	LBB0_8
; %bb.7:
	mov	w10, #0
	mov	x9, #0
	b	LBB0_18
LBB0_8:
	and	x9, x21, #0xffffffffffffffe0
	ldp	q0, q1, [x8]
	ldp	q2, q3, [sp, #32]
	eor.16b	v0, v2, v0
	eor.16b	v1, v3, v1
	cmp	x9, #32
	b.eq	LBB0_16
; %bb.9:
	ldp	q2, q3, [x8, #32]
	ldp	q4, q5, [sp, #64]
	eor.16b	v2, v4, v2
	eor.16b	v3, v5, v3
	orr.16b	v0, v0, v2
	orr.16b	v1, v1, v3
	cmp	x9, #64
	b.eq	LBB0_16
; %bb.10:
	ldp	q2, q3, [x8, #64]
	ldp	q4, q5, [sp, #96]
	eor.16b	v2, v4, v2
	eor.16b	v3, v5, v3
	orr.16b	v0, v0, v2
	orr.16b	v1, v1, v3
	cmp	x9, #96
	b.eq	LBB0_16
; %bb.11:
	ldp	q2, q3, [x8, #96]
	ldp	q4, q5, [sp, #128]
	eor.16b	v2, v4, v2
	eor.16b	v3, v5, v3
	orr.16b	v0, v0, v2
	orr.16b	v1, v1, v3
	cmp	x9, #128
	b.eq	LBB0_16
; %bb.12:
	ldp	q2, q3, [x8, #128]
	ldp	q4, q5, [sp, #160]
	eor.16b	v2, v4, v2
	eor.16b	v3, v5, v3
	orr.16b	v0, v0, v2
	orr.16b	v1, v1, v3
	cmp	x9, #160
	b.eq	LBB0_16
; %bb.13:
	ldp	q2, q3, [x8, #160]
	ldp	q4, q5, [sp, #192]
	eor.16b	v2, v4, v2
	eor.16b	v3, v5, v3
	orr.16b	v0, v0, v2
	orr.16b	v1, v1, v3
	cmp	x9, #192
	b.eq	LBB0_16
; %bb.14:
	ldp	q2, q3, [x8, #192]
	ldp	q4, q5, [sp, #224]
	eor.16b	v2, v4, v2
	eor.16b	v3, v5, v3
	orr.16b	v0, v0, v2
	orr.16b	v1, v1, v3
	cmp	x9, #224
	b.eq	LBB0_16
; %bb.15:
	ldp	q2, q3, [x8, #224]
	ldp	q4, q5, [sp, #256]
	eor.16b	v2, v4, v2
	eor.16b	v3, v5, v3
	orr.16b	v0, v0, v2
	orr.16b	v1, v1, v3
LBB0_16:
	orr.16b	v0, v1, v0
	ushll2.8h	v1, v0, #0
	ext.16b	v2, v1, v1, #8
	ushll.8h	v0, v0, #0
	ext.16b	v3, v0, v0, #8
	orr.8b	v0, v0, v1
	orr.8b	v1, v3, v2
	orr.8b	v0, v0, v1
	ushll.4s	v0, v0, #0
	ext.16b	v1, v0, v0, #8
	orr.8b	v0, v0, v1
	mov.s	w10, v0[1]
	fmov	w11, s0
	orr	w10, w11, w10
	cmp	x9, x21
	b.eq	LBB0_23
; %bb.17:
	tst	x21, #0x18
	b.eq	LBB0_21
LBB0_18:
	mov	x12, x9
	and	x9, x21, #0xfffffffffffffff8
	movi.2d	v0, #0000000000000000
	movi.2d	v1, #0000000000000000
	mov.s	v1[0], w10
	add	x10, sp, #32
	add	x10, x10, x12
	add	x11, x8, x12
	sub	x12, x12, x9
Lloh3:
	adrp	x13, lCPI0_0@PAGE
Lloh4:
	ldr	q2, [x13, lCPI0_0@PAGEOFF]
Lloh5:
	adrp	x13, lCPI0_1@PAGE
Lloh6:
	ldr	q3, [x13, lCPI0_1@PAGEOFF]
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	d4, [x11], #8
	ldr	d5, [x10], #8
	eor.8b	v4, v5, v4
	tbl.16b	v5, { v4 }, v2
	tbl.16b	v4, { v4 }, v3
	orr.16b	v0, v0, v4
	orr.16b	v1, v1, v5
	adds	x12, x12, #8
	b.ne	LBB0_19
; %bb.20:
	orr.16b	v0, v1, v0
	ext.16b	v1, v0, v0, #8
	orr.8b	v0, v0, v1
	mov.s	w10, v0[1]
	fmov	w11, s0
	orr	w10, w11, w10
	cmp	x9, x21
	b.eq	LBB0_23
LBB0_21:
	add	x11, sp, #32
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w12, [x8, x9]
	ldrb	w13, [x11, x9]
	eor	w12, w13, w12
	orr	w10, w10, w12
	add	x9, x9, #1
	cmp	x21, w9, uxtb
	b.hi	LBB0_22
LBB0_23:
	cbz	w10, LBB0_25
; %bb.24:
	mov	x0, x19
	mov	x1, x20
	bl	_mbedtls_zeroize
Lloh7:
	adrp	x8, _MBEDTLS_ERR_CCM_AUTH_FAILED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MBEDTLS_ERR_CCM_AUTH_FAILED@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	b	LBB0_26
LBB0_25:
	mov	w0, #0
LBB0_26:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpAdrp	Lloh3, Lloh5
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_CCM_DECRYPT,4,2                ; @CCM_DECRYPT
	.comm	_MBEDTLS_ERR_CCM_AUTH_FAILED,4,2 ; @MBEDTLS_ERR_CCM_AUTH_FAILED
.subsections_via_symbols
