	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mdc_finish
_mdc_finish:                            ## @mdc_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	%r12
	pushq	%rbx
	subq	$192, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	cmpq	$0, 16(%rdi)
	je	LBB0_2
## %bb.1:
	movq	_PXE_BUG@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_2:
	cmpl	$20, %edx
	jne	LBB0_11
## %bb.3:
	movq	%rdi, %r14
	movl	$1, (%rdi)
	leaq	-216(%rbp), %rdx
	leaq	-208(%rbp), %rcx
	movq	%rsi, %rdi
	movl	$20, %esi
	callq	_pullf_read_max
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_13
## %bb.4:
	cmpl	$20, %ebx
	je	LBB0_7
## %bb.5:
	testl	%ebx, %ebx
	jne	LBB0_10
## %bb.6:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_9
LBB0_7:
	movl	8(%r14), %edi
	leaq	-128(%rbp), %r15
	movq	%r15, %rsi
	callq	_px_md_finish
	movq	-216(%rbp), %rsi
	movq	%r15, %rdi
	movl	$20, %edx
	callq	_memcmp
	movl	%eax, %r12d
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$20, %edx
	callq	_px_memset
	leaq	-208(%rbp), %rdi
	xorl	%esi, %esi
	movl	$80, %edx
	callq	_px_memset
	testl	%r12d, %r12d
	je	LBB0_15
## %bb.8:
	leaq	L_.str.2(%rip), %rdi
LBB0_9:
	xorl	%eax, %eax
	callq	_px_debug
	jmp	LBB0_11
LBB0_10:
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_px_debug
LBB0_11:
	movq	_PXE_PGP_CORRUPT_DATA@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %ebx
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_16
## %bb.14:
	movl	%ebx, %eax
	addq	$192, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movl	$1, 4(%r14)
	jmp	LBB0_13
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PXE_BUG,4,2                    ## @PXE_BUG
	.comm	_PXE_PGP_CORRUPT_DATA,4,2       ## @PXE_PGP_CORRUPT_DATA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no mdc"

L_.str.1:                               ## @.str.1
	.asciz	"mdc_finish: read failed, res=%d"

L_.str.2:                               ## @.str.2
	.asciz	"mdc_finish: mdc failed"

	.no_dead_strip	_mdc_finish
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mdc_finish
_mdc_finish:                            ; @mdc_finish
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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]
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _PXE_BUG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PXE_BUG@GOTPAGEOFF]
	b	LBB0_12
LBB0_2:
	cmp	w2, #20
	b.ne	LBB0_11
; %bb.3:
	mov	x19, x0
	mov	w8, #1
	str	w8, [x0]
	add	x2, sp, #16
	add	x3, sp, #24
	mov	x0, x1
	mov	w1, #20
	bl	_pullf_read_max
                                        ; kill: def $w0 killed $w0 def $x0
	tbnz	w0, #31, LBB0_13
; %bb.4:
	cmp	w0, #20
	b.eq	LBB0_7
; %bb.5:
	cbnz	w0, LBB0_9
; %bb.6:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_10
LBB0_7:
	ldr	w0, [x19, #8]
	add	x1, sp, #104
	bl	_px_md_finish
	ldr	x1, [sp, #16]
	add	x0, sp, #104
	mov	w2, #20
	bl	_memcmp
	mov	x20, x0
	add	x0, sp, #104
	mov	w1, #0
	mov	w2, #20
	bl	_px_memset
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #80
	bl	_px_memset
	cbz	w20, LBB0_15
; %bb.8:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_10
LBB0_9:
	str	x0, [sp]
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_10:
	bl	_px_debug
LBB0_11:
Lloh11:
	adrp	x8, _PXE_PGP_CORRUPT_DATA@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PXE_PGP_CORRUPT_DATA@GOTPAGEOFF]
LBB0_12:
	ldr	w0, [x8]
LBB0_13:
	ldur	x8, [x29, #-24]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.14:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
LBB0_15:
	mov	w0, #0
	mov	w8, #1
	str	w8, [x19, #4]
	b	LBB0_13
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_PXE_BUG,4,2                    ; @PXE_BUG
	.comm	_PXE_PGP_CORRUPT_DATA,4,2       ; @PXE_PGP_CORRUPT_DATA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no mdc"

l_.str.1:                               ; @.str.1
	.asciz	"mdc_finish: read failed, res=%d"

l_.str.2:                               ; @.str.2
	.asciz	"mdc_finish: mdc failed"

	.no_dead_strip	_mdc_finish
.subsections_via_symbols
