	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_close_midx                     ## -- Begin function close_midx
	.p2align	4, 0x90
_close_midx:                            ## @close_midx
	.cfi_startproc
## %bb.0:
	testq	%rdi, %rdi
	je	LBB0_20
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	40(%rdi), %rdi
	movl	32(%rbx), %esi
	callq	_munmap
	movl	(%rbx), %edi
	callq	_close
	movl	$-1, (%rbx)
	movq	8(%rbx), %rcx
	movq	24(%rbx), %rdi
	testq	%rcx, %rcx
	je	LBB0_19
## %bb.2:
	leaq	-1(%rcx), %rdx
	movl	%ecx, %eax
	andl	$3, %eax
	cmpq	$3, %rdx
	jae	LBB0_4
## %bb.3:
	xorl	%edx, %edx
LBB0_14:
	testq	%rax, %rax
	je	LBB0_19
## %bb.15:
	leaq	(%rdi,%rdx,8), %rcx
	xorl	%edx, %edx
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_16 Depth=1
	incq	%rdx
	cmpq	%rdx, %rax
	je	LBB0_19
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rdx,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	$0, (%rsi)
	jmp	LBB0_18
LBB0_19:
	callq	_FREE_AND_NULL
	movq	16(%rbx), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_FREE_AND_NULL                  ## TAILCALL
LBB0_20:
	retq
LBB0_4:
	andq	$-4, %rcx
	xorl	%edx, %edx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	addq	$4, %rdx
	cmpq	%rdx, %rcx
	je	LBB0_14
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdi,%rdx,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	$0, (%rsi)
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%rdi,%rdx,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	$0, (%rsi)
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	16(%rdi,%rdx,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	$0, (%rsi)
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	24(%rdi,%rdx,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	$0, (%rsi)
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_close_midx                     ; -- Begin function close_midx
	.p2align	2
_close_midx:                            ; @close_midx
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_7
; %bb.1:
	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	x19, x0
	ldr	x0, [x0, #40]
	ldr	w1, [x19, #32]
	bl	_munmap
	ldr	w0, [x19]
	bl	_close
	mov	w8, #-1
	str	w8, [x19]
	ldr	x8, [x19, #8]
	ldr	x0, [x19, #24]
	cbz	x8, LBB0_6
; %bb.2:
	mov	x9, x0
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, #8
	subs	x8, x8, #1
	b.eq	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9]
	cbz	x10, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	str	xzr, [x10]
	b	LBB0_3
LBB0_6:
	bl	_FREE_AND_NULL
	ldr	x0, [x19, #16]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_FREE_AND_NULL
LBB0_7:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
