	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MDXFdChunk                     ## -- Begin function MDXFdChunk
	.p2align	4, 0x90
_MDXFdChunk:                            ## @MDXFdChunk
	.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
	pushq	%rax
	movl	$16408, %eax                    ## imm = 0x4018
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, -16436(%rbp)              ## 4-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testq	%rcx, %rcx
	js	LBB0_1
## %bb.2:
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %rbx
	leaq	-16440(%rbp), %rdi
	callq	_MDXInit
	testq	%r12, %r12
	je	LBB0_6
## %bb.3:
	movq	_errno@GOTPCREL(%rip), %r14
	movq	$0, (%r14)
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	-16436(%rbp), %edi              ## 4-byte Reload
	movq	%r12, %rsi
	callq	_lseek
	cmpq	%r12, %rax
	jne	LBB0_12
## %bb.4:
	cmpq	$-1, %r12
	jne	LBB0_6
## %bb.5:
	cmpq	$0, (%r14)
	jne	LBB0_12
LBB0_6:
	movq	%rbx, -16448(%rbp)              ## 8-byte Spill
	movl	$16384, %r13d                   ## imm = 0x4000
	leaq	-16432(%rbp), %r12
	movq	%r15, %rbx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$16385, %rbx                    ## imm = 0x4001
	movq	%rbx, %rdx
	cmovaeq	%r13, %rdx
	testq	%r15, %r15
	cmoveq	%r13, %rdx
	movl	-16436(%rbp), %edi              ## 4-byte Reload
	movq	%r12, %rsi
	callq	_read
	testl	%eax, %eax
	jle	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	%eax, %r14d
	leaq	-16440(%rbp), %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_MDXUpdate
	movl	%r14d, %eax
	subq	%rax, %rbx
	testq	%r15, %r15
	je	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	testq	%rbx, %rbx
	jg	LBB0_7
	jmp	LBB0_10
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_errno@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
LBB0_12:
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_11:
	js	LBB0_12
LBB0_10:
	leaq	-16440(%rbp), %rdi
	movq	-16448(%rbp), %rsi              ## 8-byte Reload
	callq	_MDXEnd
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_15
## %bb.14:
	addq	$16408, %rsp                    ## imm = 0x4018
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_errno,8,3                      ## @errno
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MDXFdChunk                     ; -- Begin function MDXFdChunk
	.p2align	2
_MDXFdChunk:                            ; @MDXFdChunk
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [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 w27, -72
	.cfi_offset w28, -80
	mov	w9, #16400
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #4, lsl #12             ; =16384
	sub	sp, sp, #16
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	tbnz	x3, #63, LBB0_9
; %bb.1:
	mov	x20, x3
	mov	x22, x2
	mov	x19, x1
	mov	x21, x0
	add	x0, sp, #4
	bl	_MDXInit
	cbz	x22, LBB0_5
; %bb.2:
Lloh5:
	adrp	x23, _errno@GOTPAGE
Lloh6:
	ldr	x23, [x23, _errno@GOTPAGEOFF]
	str	xzr, [x23]
Lloh7:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x22
	bl	_lseek
	mov	x8, x0
	mov	x0, #0
	cmp	x8, x22
	b.ne	LBB0_13
; %bb.3:
	cmn	x22, #1
	b.ne	LBB0_5
; %bb.4:
	ldr	x8, [x23]
	cbnz	x8, LBB0_12
LBB0_5:
	mov	w23, #16384
	mov	x24, x20
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x24, #4, lsl #12                ; =16384
	ccmp	x20, #0, #4, ls
	csel	x2, x23, x24, eq
	add	x1, sp, #8
	mov	x0, x21
	bl	_read
	mov	x22, x0
	cmp	w0, #1
	b.lt	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x0, sp, #4
	add	x1, sp, #8
	mov	x2, x22
	bl	_MDXUpdate
	sub	x24, x24, w22, uxtw
	cbz	x20, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	x24, #0
	b.gt	LBB0_6
	b	LBB0_11
LBB0_9:
	mov	x0, #0
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
Lloh13:
	adrp	x9, _errno@GOTPAGE
Lloh14:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh15:
	str	x8, [x9]
	b	LBB0_13
LBB0_10:
	tbnz	w22, #31, LBB0_12
LBB0_11:
	add	x0, sp, #4
	mov	x1, x19
	bl	_MDXEnd
	b	LBB0_13
LBB0_12:
	mov	x0, #0
LBB0_13:
	ldur	x8, [x29, #-72]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	add	sp, sp, #4, lsl #12             ; =16384
	add	sp, sp, #16
	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	x28, x27, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotStr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_errno,8,3                      ; @errno
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
.subsections_via_symbols
