	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssl3_finish_mac                ## -- Begin function ssl3_finish_mac
	.p2align	4, 0x90
_ssl3_finish_mac:                       ## @ssl3_finish_mac
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %rbx
	movq	%rdi, %r14
	movq	(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.5:
	movq	%rbx, %rdx
	callq	_EVP_DigestUpdate
	movl	%eax, %ecx
	movl	$1, %eax
	testl	%ecx, %ecx
	jne	LBB0_8
## %bb.6:
	movq	_ERR_R_INTERNAL_ERROR@GOTPCREL(%rip), %rdi
	jmp	LBB0_7
LBB0_1:
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jae	LBB0_3
## %bb.2:
	movq	_SSL_R_OVERFLOW_ERROR@GOTPCREL(%rip), %rdi
LBB0_7:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_SSL3_FINISH_MAC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%rdi), %ecx
	movq	%r14, %rdi
	callq	_SSLfatal
	xorl	%eax, %eax
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movl	8(%r14), %edi
	movl	%ebx, %edx
	callq	_BIO_write
	movq	_ERR_R_INTERNAL_ERROR@GOTPCREL(%rip), %rdi
	testl	%eax, %eax
	jle	LBB0_7
## %bb.4:
	movl	%eax, %ecx
	movl	$1, %eax
	cmpl	%ebx, %ecx
	je	LBB0_8
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MAX,8,3                    ## @INT_MAX
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ## @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_F_SSL3_FINISH_MAC,4,2      ## @SSL_F_SSL3_FINISH_MAC
	.comm	_SSL_R_OVERFLOW_ERROR,4,2       ## @SSL_R_OVERFLOW_ERROR
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ## @ERR_R_INTERNAL_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssl3_finish_mac                ; -- Begin function ssl3_finish_mac
	.p2align	2
_ssl3_finish_mac:                       ; @ssl3_finish_mac
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x2
	mov	x19, x0
	ldr	x0, [x0]
	cbz	x0, LBB0_3
; %bb.1:
	mov	x2, x20
	bl	_EVP_DigestUpdate
	cbz	w0, LBB0_6
LBB0_2:
	mov	w0, #1
	b	LBB0_8
LBB0_3:
Lloh0:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x20
	b.hs	LBB0_5
; %bb.4:
Lloh3:
	adrp	x8, _SSL_R_OVERFLOW_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SSL_R_OVERFLOW_ERROR@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
	ldr	w0, [x19, #8]
	mov	x2, x20
	bl	_BIO_write
	cmp	w0, #1
	ccmp	w0, w20, #0, ge
	b.eq	LBB0_2
LBB0_6:
Lloh5:
	adrp	x8, _ERR_R_INTERNAL_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERR_R_INTERNAL_ERROR@GOTPAGEOFF]
LBB0_7:
Lloh7:
	adrp	x9, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh8:
	ldr	x9, [x9, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x9]
Lloh10:
	adrp	x9, _SSL_F_SSL3_FINISH_MAC@GOTPAGE
Lloh11:
	ldr	x9, [x9, _SSL_F_SSL3_FINISH_MAC@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x9]
	ldr	w3, [x8]
	mov	x0, x19
	bl	_SSLfatal
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MAX,8,3                    ; @INT_MAX
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ; @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_F_SSL3_FINISH_MAC,4,2      ; @SSL_F_SSL3_FINISH_MAC
	.comm	_SSL_R_OVERFLOW_ERROR,4,2       ; @SSL_R_OVERFLOW_ERROR
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ; @ERR_R_INTERNAL_ERROR
.subsections_via_symbols
