	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ccm_decrypt
_ccm_decrypt:                           ## @ccm_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%edx, -80(%rbp)                 ## 4-byte Spill
	movl	%esi, %r13d
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	8(%rcx), %r15
	movq	%r8, -88(%rbp)                  ## 8-byte Spill
	movq	(%r8), %r12
	movslq	(%rdi), %rax
	subq	%rax, %r12
	addq	$-8, %r12
	movq	8(%rdi), %rsi
	leaq	-60(%rbp), %rdi
	movl	$8, %edx
	callq	_memcpy
	leaq	-56(%rbp), %rdi
	movq	%r14, %rsi
	movl	$8, %edx
	callq	_memcpy
	movl	20(%rbx), %esi
	leal	1(%rsi), %eax
	movl	%eax, 20(%rbx)
	leaq	-73(%rbp), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_br_enc64be
	movb	%r13b, -65(%rbp)
	leaq	-64(%rbp), %rdi
	movl	-80(%rbp), %esi                 ## 4-byte Reload
	callq	_br_enc16be
	leaq	-62(%rbp), %rdi
	movq	%r12, %rsi
	callq	_br_enc16be
	leaq	16(%rbx), %rsi
	leaq	-92(%rbp), %r14
	movq	%r14, %rdi
	callq	_br_ccm_init
	movl	(%rbx), %r9d
	movq	%r14, %rdi
	leaq	-60(%rbp), %rsi
	movl	$12, %edx
	movl	$13, %ecx
	movq	%r12, %r8
	callq	_br_ccm_reset
	movq	%r14, %rdi
	leaq	-73(%rbp), %rsi
	movl	$13, %edx
	callq	_br_ccm_aad_inject
	movq	%r14, %rdi
	callq	_br_ccm_flip
	movq	%r14, %rdi
	xorl	%esi, %esi
	movq	%r15, %rdx
	movq	%r12, %rcx
	callq	_br_ccm_run
	leaq	(%r15,%r12), %rsi
	movq	%r14, %rdi
	callq	_br_ccm_check_tag
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	%r12, (%rax)
	jmp	LBB0_3
LBB0_1:
	xorl	%r15d, %r15d
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	movq	%r15, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ccm_decrypt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ccm_decrypt
_ccm_decrypt:                           ; @ccm_decrypt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x20, x4
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	x25, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	add	x19, x3, #8
	ldr	x8, [x4]
	ldrsw	x9, [x0]
	sub	x8, x8, x9
	sub	x21, x8, #8
	ldr	x1, [x0, #8]
	add	x26, sp, #28
	add	x0, sp, #28
	mov	w2, #8
	bl	_memcpy
	add	x0, x26, #4
	mov	x1, x22
	mov	w2, #8
	bl	_memcpy
	ldr	w1, [x25, #20]
	add	w8, w1, #1
	str	w8, [x25, #20]
	add	x22, sp, #15
	add	x0, sp, #15
	bl	_br_enc64be
	strb	w24, [sp, #23]
	add	x0, x22, #9
	mov	w1, w23
	bl	_br_enc16be
	add	x0, x22, #11
	mov	x1, x21
	bl	_br_enc16be
	add	x1, x25, #16
	add	x0, sp, #8
	bl	_br_ccm_init
	ldr	w5, [x25]
	add	x0, sp, #8
	add	x1, sp, #28
	mov	w2, #12
	mov	w3, #13
	mov	x4, x21
	bl	_br_ccm_reset
	add	x0, sp, #8
	add	x1, sp, #15
	mov	w2, #13
	bl	_br_ccm_aad_inject
	add	x0, sp, #8
	bl	_br_ccm_flip
	add	x0, sp, #8
	mov	w1, #0
	mov	x2, x19
	mov	x3, x21
	bl	_br_ccm_run
	add	x1, x19, x21
	add	x0, sp, #8
	bl	_br_ccm_check_tag
	cbz	w0, LBB0_2
; %bb.1:
	str	x21, [x20]
	b	LBB0_3
LBB0_2:
	mov	x19, #0
LBB0_3:
	ldr	x8, [sp, #40]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ccm_decrypt
.subsections_via_symbols
