	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aes_ocb_block_final
_aes_ocb_block_final:                   ## @aes_ocb_block_final
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r14d, %r14d
	cmpl	$0, 48(%rdi)
	je	LBB0_14
## %bb.1:
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	callq	_update_iv
	testl	%eax, %eax
	je	LBB0_14
## %bb.2:
	movq	$0, (%r15)
	movq	(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.3:
	movl	44(%rbx), %esi
	movq	%rbx, %rdi
	movq	%r12, %rdx
	callq	_aes_generic_ocb_cipher
	testl	%eax, %eax
	je	LBB0_14
## %bb.4:
	movq	(%rbx), %rax
	movq	%rax, (%r15)
	movq	$0, (%rbx)
LBB0_5:
	movq	8(%rbx), %rdx
	testq	%rdx, %rdx
	jle	LBB0_8
## %bb.6:
	movl	40(%rbx), %esi
	movq	%rbx, %rdi
	callq	_aes_generic_ocb_setaad
	testl	%eax, %eax
	je	LBB0_14
## %bb.7:
	movq	$0, 8(%rbx)
LBB0_8:
	cmpq	$0, 32(%rbx)
	je	LBB0_10
## %bb.9:
	movl	28(%rbx), %esi
	movq	16(%rbx), %rdx
	movq	%rbx, %rdi
	callq	_aes_generic_ocb_gettag
	testl	%eax, %eax
	jne	LBB0_13
	jmp	LBB0_14
LBB0_10:
	cmpq	$0, 16(%rbx)
	je	LBB0_14
## %bb.11:
	movq	%rbx, %rdi
	callq	_aes_generic_ocb_final
	testl	%eax, %eax
	je	LBB0_14
LBB0_13:
	movq	_IV_STATE_FINISHED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movl	$1, %r14d
LBB0_14:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IV_STATE_FINISHED,4,2          ## @IV_STATE_FINISHED
	.no_dead_strip	_aes_ocb_block_final
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aes_ocb_block_final
_aes_ocb_block_final:                   ; @aes_ocb_block_final
	.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
	ldr	w8, [x0, #48]
	cbz	w8, LBB0_13
; %bb.1:
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_update_iv
	cbz	w0, LBB0_14
; %bb.2:
	str	xzr, [x20]
	ldr	x3, [x19]
	cbz	x3, LBB0_5
; %bb.3:
	ldr	w1, [x19, #44]
	mov	x0, x19
	mov	x2, x21
	bl	_aes_generic_ocb_cipher
	cbz	w0, LBB0_14
; %bb.4:
	ldr	x8, [x19]
	str	x8, [x20]
	str	xzr, [x19]
LBB0_5:
	ldr	x2, [x19, #8]
	cmp	x2, #1
	b.lt	LBB0_8
; %bb.6:
	ldr	w1, [x19, #40]
	mov	x0, x19
	bl	_aes_generic_ocb_setaad
	cbz	w0, LBB0_14
; %bb.7:
	str	xzr, [x19, #8]
LBB0_8:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_10
; %bb.9:
	ldr	w1, [x19, #28]
	ldr	x2, [x19, #16]
	mov	x0, x19
	bl	_aes_generic_ocb_gettag
	cbnz	w0, LBB0_12
	b	LBB0_14
LBB0_10:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_13
; %bb.11:
	mov	x0, x19
	bl	_aes_generic_ocb_final
	cbz	w0, LBB0_14
LBB0_12:
Lloh0:
	adrp	x8, _IV_STATE_FINISHED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IV_STATE_FINISHED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	mov	w0, #1
	b	LBB0_14
LBB0_13:
	mov	w0, #0
LBB0_14:
	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	_IV_STATE_FINISHED,4,2          ; @IV_STATE_FINISHED
	.no_dead_strip	_aes_ocb_block_final
.subsections_via_symbols
