	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eli_trash_metadata
_eli_trash_metadata:                    ## @eli_trash_metadata
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movl	%edx, %r13d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	$4, -44(%rbp)
	leaq	L_.str(%rip), %rdi
	leaq	-48(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_sysctlbyname
	cmpl	$-1, %eax
	je	LBB0_2
## %bb.1:
	cmpl	$0, -48(%rbp)
	jne	LBB0_3
LBB0_2:
	movq	_G_ELI_OVERWRITES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
LBB0_3:
	movl	%r13d, %edi
	callq	_g_sectorsize
	movl	%eax, -44(%rbp)
	testl	%eax, %eax
	jle	LBB0_4
## %bb.5:
	movl	%eax, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_16
## %bb.6:
	movq	%rax, %r14
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	_errno@GOTPCREL(%rip), %r15
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	cmpl	-44(%rbp), %eax
	cmovnel	%ecx, %ebx
	movl	%r13d, %edi
	callq	_g_flush
	decl	-48(%rbp)
	je	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	-44(%rbp), %esi
	movq	%r14, %rdi
	callq	_arc4random_buf
	movl	-44(%rbp), %edx
	movl	%r13d, %edi
	movq	%r14, %rsi
	movl	%r12d, %ecx
	callq	_pwrite
	movl	%ebx, %ecx
	testl	%ebx, %ebx
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	(%r15), %ecx
	jmp	LBB0_9
LBB0_10:
	movq	%r14, %rdi
	callq	_free
	testl	%ebx, %ebx
	je	LBB0_11
## %bb.12:
	movl	%ebx, %edi
	callq	_strerror
	leaq	L_.str.3(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_13
LBB0_4:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r15, %rdx
LBB0_13:
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_gctl_error
	jmp	LBB0_14
LBB0_16:
	movl	-44(%rbp), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_gctl_error
LBB0_14:
	movl	$-1, %eax
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	xorl	%eax, %eax
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"kern.geom.eli.overwrites"

	.comm	_G_ELI_OVERWRITES,4,2           ## @G_ELI_OVERWRITES
L_.str.1:                               ## @.str.1
	.asciz	"Cannot obtain provider sector size %s: %s."

	.comm	_errno,4,2                      ## @errno
L_.str.2:                               ## @.str.2
	.asciz	"Cannot allocate %zd bytes of memory."

L_.str.3:                               ## @.str.3
	.asciz	"Cannot trash metadata on provider %s: %s."

	.no_dead_strip	_eli_trash_metadata
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eli_trash_metadata
_eli_trash_metadata:                    ; @eli_trash_metadata
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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 w25, -72
	.cfi_offset w26, -80
	mov	x21, x3
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	mov	w8, #4
	str	w8, [sp, #24]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	add	x1, sp, #28
	add	x2, sp, #24
	mov	x3, #0
	mov	w4, #0
	bl	_sysctlbyname
	ldr	w8, [sp, #28]
	cmn	w0, #1
	ccmp	w8, #0, #4, ne
	b.ne	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _G_ELI_OVERWRITES@GOTPAGE
Lloh3:
	ldr	x8, [x8, _G_ELI_OVERWRITES@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [sp, #28]
LBB0_2:
	mov	x0, x22
	bl	_g_sectorsize
	str	w0, [sp, #24]
	cmp	w0, #0
	b.le	LBB0_8
; %bb.3:
	bl	_malloc
	cbz	x0, LBB0_9
; %bb.4:
	mov	x24, x0
	mov	w23, #0
Lloh5:
	adrp	x25, _errno@GOTPAGE
Lloh6:
	ldr	x25, [x25, _errno@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [sp, #24]
	mov	x0, x24
	bl	_arc4random_buf
	ldr	w2, [sp, #24]
	mov	x0, x22
	mov	x1, x24
	mov	x3, x21
	bl	_pwrite
	ldr	w8, [sp, #24]
	cmp	w23, #0
	ccmp	w0, w8, #4, eq
	ldr	w8, [x25]
	csel	w23, w8, w23, ne
	mov	x0, x22
	bl	_g_flush
	ldr	w8, [sp, #28]
	subs	w8, w8, #1
	str	w8, [sp, #28]
	b.ne	LBB0_5
; %bb.6:
	mov	x0, x24
	bl	_free
	cbz	w23, LBB0_12
; %bb.7:
	mov	x0, x23
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x20, x0, [sp]
Lloh7:
	adrp	x1, l_.str.3@PAGE
Lloh8:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_10
LBB0_8:
Lloh9:
	adrp	x8, _errno@GOTPAGE
Lloh10:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x20, x0, [sp]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_9:
	ldr	w8, [sp, #24]
	str	x8, [sp]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_10:
	mov	x0, x19
	bl	_gctl_error
	mov	w0, #-1
LBB0_11:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_12:
	mov	w0, #0
	b	LBB0_11
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"kern.geom.eli.overwrites"

	.comm	_G_ELI_OVERWRITES,4,2           ; @G_ELI_OVERWRITES
l_.str.1:                               ; @.str.1
	.asciz	"Cannot obtain provider sector size %s: %s."

	.comm	_errno,4,2                      ; @errno
l_.str.2:                               ; @.str.2
	.asciz	"Cannot allocate %zd bytes of memory."

l_.str.3:                               ; @.str.3
	.asciz	"Cannot trash metadata on provider %s: %s."

	.no_dead_strip	_eli_trash_metadata
.subsections_via_symbols
