	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AES_CBC_MAC_Reinit             ## -- Begin function AES_CBC_MAC_Reinit
	.p2align	4, 0x90
_AES_CBC_MAC_Reinit:                    ## @AES_CBC_MAC_Reinit
	.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, %r15d
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_CCM_CBC_BLOCK_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	(,%rax,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movl	(%r13), %ebx
	leal	-7(%r15), %eax
	xorl	%edi, %edi
	cmpl	$7, %eax
	setb	%dil
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	movq	%r12, 8(%r13)
	movl	%r15d, 16(%r13)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%r13)
	movq	40(%r13), %rdi
	movl	$8, %esi
	callq	_explicit_bzero
	xorl	%eax, %eax
	cmpl	$0, 48(%r13)
	setg	%al
	shll	$6, %eax
	movq	_AES_CBC_MAC_HASH_LEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %edx
	addl	$-2, %edx
	shrl	$31, %edx
	addl	%edx, %ecx
	addl	$-2, %ecx
	andl	$-2, %ecx
	subl	%r15d, %eax
	leal	(%rax,%rcx,4), %eax
	addl	$14, %eax
	movl	%eax, (%r14)
	leaq	4(%r14), %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_memcpy
	movslq	%r15d, %rax
	leaq	(%r14,%rax,4), %rax
	addq	$4, %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	shlq	$4, %rcx
	addq	%r14, %rcx
	addq	$-4, %rcx
	cmpq	%rax, %rcx
	jb	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, (%rcx)
	sarl	$8, %ebx
	addq	$-4, %rcx
	cmpq	%rax, %rcx
	jae	LBB0_9
LBB0_2:
	movl	60(%r13), %edi
	movl	52(%r13), %ecx
	movl	56(%r13), %esi
	movq	%r14, %rdx
	callq	_rijndaelEncrypt
	movl	48(%r13), %edi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.3:
	cmpl	$65279, %edi                    ## imm = 0xFEFF
	jg	LBB0_5
## %bb.4:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_htobe16
	movq	40(%r13), %rcx
	movl	%eax, (%rcx)
	movl	$4, %eax
	jmp	LBB0_6
LBB0_5:
	callq	_htobe32
	movq	40(%r13), %rcx
	movabsq	$1090921693439, %rdx            ## imm = 0xFE000000FF
	movq	%rdx, (%rcx)
	movl	%eax, 8(%rcx)
	movl	$6, %eax
LBB0_6:
	movq	%rax, 32(%r13)
	addl	%eax, 48(%r13)
	movq	%rax, 24(%r13)
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.8:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CCM_CBC_BLOCK_LEN,4,2          ## @CCM_CBC_BLOCK_LEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nonceLen must be between 7 and 13 bytes"

	.comm	_AES_CBC_MAC_HASH_LEN,4,2       ## @AES_CBC_MAC_HASH_LEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function AES_CBC_MAC_Reinit
lCPI0_0:
	.long	255                             ; 0xff
	.long	254                             ; 0xfe
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_AES_CBC_MAC_Reinit
	.p2align	2
_AES_CBC_MAC_Reinit:                    ; @AES_CBC_MAC_Reinit
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #16
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _CCM_CBC_BLOCK_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CCM_CBC_BLOCK_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w25, [x8]
	lsl	x8, x25, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	ldr	w24, [x0]
	sub	w8, w2, #7
	cmp	w8, #7
	cset	w0, lo
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
	str	x22, [x19, #8]
	str	w21, [x19, #16]
	stp	xzr, xzr, [x19, #24]
	ldr	x0, [x19, #40]
	mov	w1, #8
	bl	_explicit_bzero
	ldr	w8, [x19, #48]
	cmp	w8, #0
	cset	w8, gt
	lsl	w8, w8, #6
Lloh10:
	adrp	x9, _AES_CBC_MAC_HASH_LEN@GOTPAGE
Lloh11:
	ldr	x9, [x9, _AES_CBC_MAC_HASH_LEN@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	sub	w10, w9, #2
	sub	w9, w9, #1
	cmp	w10, #0
	csel	w9, w9, w10, lt
	lsl	w9, w9, #2
	and	w9, w9, #0xfffffff8
	sub	w8, w8, w21
	add	w8, w8, w9
	add	w8, w8, #14
	mov	x23, x20
	str	w8, [x23], #4
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	bl	_memcpy
	add	x8, x23, w21, sxtw #2
	add	x9, x20, x25, lsl #4
	sub	x9, x9, #4
	cmp	x9, x8
	b.lo	LBB0_2
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	str	w24, [x9], #-4
	asr	w24, w24, #8
	cmp	x9, x8
	b.hs	LBB0_1
LBB0_2:
	ldp	w1, w0, [x19, #56]
	ldr	w3, [x19, #52]
	mov	x2, x20
	bl	_rijndaelEncrypt
	ldr	w0, [x19, #48]
	cbz	w0, LBB0_7
; %bb.3:
	mov	w8, #65279
	cmp	w0, w8
	b.gt	LBB0_5
; %bb.4:
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_htobe16
	ldr	x8, [x19, #40]
	str	w0, [x8]
	mov	w8, #4
	b	LBB0_6
LBB0_5:
	bl	_htobe32
	ldr	x8, [x19, #40]
Lloh13:
	adrp	x9, lCPI0_0@PAGE
Lloh14:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	str	d0, [x8]
	str	w0, [x8, #8]
	mov	w8, #6
LBB0_6:
	ldr	w9, [x19, #48]
	add	w9, w9, w8
	str	w9, [x19, #48]
	stp	x8, x8, [x19, #24]
LBB0_7:
	ldur	x8, [x29, #-72]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	sub	sp, x29, #64
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_CCM_CBC_BLOCK_LEN,4,2          ; @CCM_CBC_BLOCK_LEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nonceLen must be between 7 and 13 bytes"

	.comm	_AES_CBC_MAC_HASH_LEN,4,2       ; @AES_CBC_MAC_HASH_LEN
.subsections_via_symbols
