	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mdcbuf_finish
_mdcbuf_finish:                         ## @mdcbuf_finish
	.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	%rbx
	subq	$88, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movl	$1, (%rdi)
	movq	8(%rdi), %rsi
	cmpl	$211, (%rsi)
	jne	LBB0_2
## %bb.1:
	cmpl	$20, 4(%rsi)
	jne	LBB0_2
## %bb.3:
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movl	(%rax), %edi
	movl	$2, %edx
	callq	_px_md_update
	movq	16(%rbx), %rax
	movl	(%rax), %edi
	leaq	-112(%rbp), %r14
	movq	%r14, %rsi
	callq	_px_md_finish
	movq	8(%rbx), %rsi
	addq	$8, %rsi
	movq	%r14, %rdi
	movl	$20, %edx
	callq	_memcmp
	movl	%eax, %r15d
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$20, %edx
	callq	_px_memset
	testl	%r15d, %r15d
	je	LBB0_6
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_5
LBB0_2:
	leaq	L_.str(%rip), %rdi
LBB0_5:
	callq	_px_debug
	movq	_PXE_PGP_CORRUPT_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	movl	%ebx, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mdcbuf_finish: bad MDC pkt hdr"

	.comm	_PXE_PGP_CORRUPT_DATA,4,2       ## @PXE_PGP_CORRUPT_DATA
L_.str.1:                               ## @.str.1
	.asciz	"mdcbuf_finish: MDC does not match"

	.no_dead_strip	_mdcbuf_finish
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mdcbuf_finish
_mdcbuf_finish:                         ; @mdcbuf_finish
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	mov	w8, #1
	str	w8, [x0]
	ldr	x1, [x0, #8]
	ldr	w8, [x1]
	cmp	w8, #211
	b.ne	LBB0_4
; %bb.1:
	ldr	w8, [x1, #4]
	cmp	w8, #20
	b.ne	LBB0_4
; %bb.2:
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	w0, [x8]
	mov	w2, #2
	bl	_px_md_update
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	add	x1, sp, #8
	bl	_px_md_finish
	ldr	x8, [x19, #8]
	add	x1, x8, #8
	add	x0, sp, #8
	mov	w2, #20
	bl	_memcmp
	mov	x19, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #20
	bl	_px_memset
	cbz	w19, LBB0_8
; %bb.3:
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_4:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
LBB0_5:
	bl	_px_debug
Lloh7:
	adrp	x8, _PXE_PGP_CORRUPT_DATA@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PXE_PGP_CORRUPT_DATA@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
LBB0_6:
	ldur	x8, [x29, #-24]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.7:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_8:
	mov	w0, #0
	b	LBB0_6
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mdcbuf_finish: bad MDC pkt hdr"

	.comm	_PXE_PGP_CORRUPT_DATA,4,2       ; @PXE_PGP_CORRUPT_DATA
l_.str.1:                               ; @.str.1
	.asciz	"mdcbuf_finish: MDC does not match"

	.no_dead_strip	_mdcbuf_finish
.subsections_via_symbols
