	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zhack_do_feature_enable
_zhack_do_feature_enable:               ## @zhack_do_feature_enable
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movl	%edi, %ebx
	movq	_SPA_FEATURE_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	leaq	L_.str(%rip), %rcx
	movq	%rcx, -104(%rbp)
	movq	$0, -80(%rbp)
	leaq	-52(%rbp), %rcx
	movq	%rcx, -64(%rbp)
	movl	%eax, -72(%rbp)
	movq	_optind@GOTPCREL(%rip), %r12
	movl	$1, (%r12)
	leaq	L_.str.1(%rip), %rdx
	callq	_getopt
	cmpb	$-1, %al
	je	LBB0_9
## %bb.1:
	leaq	L_.str.1(%rip), %r12
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_usage
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_getopt
	cmpb	$-1, %al
	je	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	%al, %eax
	cmpl	$100, %eax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$114, %eax
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_ZFEATURE_FLAG_READONLY_COMPAT@GOTPCREL(%rip), %rax
	orq	(%rax), %r13
	movq	%r13, -80(%rbp)
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_optarg@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_strdup
	movq	%rax, %r14
	jmp	LBB0_7
LBB0_8:
	testq	%r14, %r14
	movq	_optind@GOTPCREL(%rip), %r12
	jne	LBB0_10
LBB0_9:
	leaq	L_.str.2(%rip), %rdi
	callq	_strdup
	movq	%rax, %r14
LBB0_10:
	movq	%r14, -96(%rbp)
	movslq	(%r12), %r13
	subl	%r13d, %ebx
	cmpl	$1, %ebx
	jg	LBB0_12
## %bb.11:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_fprintf
	xorl	%eax, %eax
	callq	_usage
LBB0_12:
	movq	(%r15,%r13,8), %r12
	movq	8(%r15,%r13,8), %rbx
	movq	%rbx, -88(%rbp)
	movq	%rbx, %rdi
	callq	_zfeature_is_valid_guid
	testl	%eax, %eax
	jne	LBB0_14
## %bb.13:
	movq	_FTAG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	xorl	%edi, %edi
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_fatal
LBB0_14:
	movq	_B_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FTAG@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	leaq	-48(%rbp), %rcx
	movq	%r12, %rdi
	callq	_zhack_spa_open
	movq	-48(%rbp), %rax
	movq	8(%rax), %r15
	movq	%rbx, %rdi
	callq	_zfeature_is_supported
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	-48(%rbp), %rdi
	movl	(%r13), %esi
	leaq	L_.str.5(%rip), %rdx
	xorl	%eax, %eax
	callq	_fatal
LBB0_16:
	movq	-48(%rbp), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_zap_contains
	testq	%rax, %rax
	jne	LBB0_18
## %bb.17:
	movq	-48(%rbp), %rdi
	movl	(%r13), %esi
	leaq	L_.str.6(%rip), %rdx
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_fatal
LBB0_18:
	movq	-48(%rbp), %rdi
	callq	_spa_name
	movq	_zhack_feature_enable_sync@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_ZFS_SPACE_CHECK_NORMAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	leaq	-104(%rbp), %rcx
	movl	%eax, %edi
	xorl	%esi, %esi
	movl	$5, %r8d
	callq	_dsl_sync_task
	movl	%eax, %edi
	callq	_VERIFY0
	movq	-48(%rbp), %rdi
	movl	(%r13), %esi
	callq	_spa_close
	movq	%r14, %rdi
	callq	_free
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SPA_FEATURE_NONE,4,2           ## @SPA_FEATURE_NONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"zhack"

	.comm	_optind,4,2                     ## @optind
L_.str.1:                               ## @.str.1
	.asciz	"rmd:"

	.comm	_ZFEATURE_FLAG_READONLY_COMPAT,8,3 ## @ZFEATURE_FLAG_READONLY_COMPAT
	.comm	_optarg,8,3                     ## @optarg
L_.str.2:                               ## @.str.2
	.asciz	"zhack injected"

	.comm	_stderr,4,2                     ## @stderr
L_.str.3:                               ## @.str.3
	.asciz	"error: missing feature or pool name\n"

	.comm	_FTAG,4,2                       ## @FTAG
L_.str.4:                               ## @.str.4
	.asciz	"invalid feature guid: %s"

	.comm	_B_FALSE,4,2                    ## @B_FALSE
L_.str.5:                               ## @.str.5
	.asciz	"'%s' is a real feature, will not enable"

L_.str.6:                               ## @.str.6
	.asciz	"feature already enabled: %s"

	.comm	_zhack_feature_enable_sync,4,2  ## @zhack_feature_enable_sync
	.comm	_ZFS_SPACE_CHECK_NORMAL,4,2     ## @ZFS_SPACE_CHECK_NORMAL
	.no_dead_strip	_zhack_do_feature_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zhack_do_feature_enable
_zhack_do_feature_enable:               ; @zhack_do_feature_enable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _SPA_FEATURE_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SPA_FEATURE_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #20]
Lloh3:
	adrp	x9, l_.str@PAGE
Lloh4:
	add	x9, x9, l_.str@PAGEOFF
	str	x9, [sp, #24]
	str	xzr, [sp, #48]
	add	x9, sp, #20
	str	x9, [sp, #64]
	str	w8, [sp, #56]
Lloh5:
	adrp	x23, _optind@GOTPAGE
Lloh6:
	ldr	x23, [x23, _optind@GOTPAGEOFF]
	mov	w8, #1
	str	w8, [x23]
Lloh7:
	adrp	x2, l_.str.1@PAGE
Lloh8:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_getopt
	cmn	w0, #1
	b.eq	LBB0_9
; %bb.1:
	mov	x24, #0
	mov	x19, #0
Lloh9:
	adrp	x25, _optarg@GOTPAGE
Lloh10:
	ldr	x25, [x25, _optarg@GOTPAGEOFF]
Lloh11:
	adrp	x26, _ZFEATURE_FLAG_READONLY_COMPAT@GOTPAGE
Lloh12:
	ldr	x26, [x26, _ZFEATURE_FLAG_READONLY_COMPAT@GOTPAGEOFF]
Lloh13:
	adrp	x22, l_.str.1@PAGE
Lloh14:
	add	x22, x22, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_usage
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_getopt
	cmn	w0, #1
	b.eq	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	and	w8, w0, #0xff
	cmp	w8, #100
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	sxtb	w8, w0
	cmp	w8, #114
	b.ne	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x26]
	orr	x24, x24, x8
	str	x24, [sp, #48]
	b	LBB0_3
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x25]
	bl	_strdup
	mov	x19, x0
	b	LBB0_3
LBB0_8:
	cbnz	x19, LBB0_10
LBB0_9:
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_strdup
	mov	x19, x0
LBB0_10:
	str	x19, [sp, #32]
	ldrsw	x8, [x23]
	sub	w9, w21, w8
	add	x20, x20, x8, lsl #3
	cmp	w9, #1
	b.gt	LBB0_12
; %bb.11:
Lloh17:
	adrp	x8, _stderr@GOTPAGE
Lloh18:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fprintf
	bl	_usage
LBB0_12:
	ldp	x21, x20, [x20]
	str	x20, [sp, #40]
	mov	x0, x20
	bl	_zfeature_is_valid_guid
Lloh22:
	adrp	x22, _FTAG@GOTPAGE
Lloh23:
	ldr	x22, [x22, _FTAG@GOTPAGEOFF]
	cbnz	w0, LBB0_14
; %bb.13:
	ldr	w1, [x22]
	str	x20, [sp]
Lloh24:
	adrp	x2, l_.str.4@PAGE
Lloh25:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, #0
	bl	_fatal
LBB0_14:
Lloh26:
	adrp	x8, _B_FALSE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _B_FALSE@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	ldr	w2, [x22]
	add	x3, sp, #72
	mov	x0, x21
	bl	_zhack_spa_open
	ldr	x8, [sp, #72]
	ldr	x21, [x8, #8]
	mov	x0, x20
	bl	_zfeature_is_supported
	cbz	x0, LBB0_16
; %bb.15:
	ldr	x0, [sp, #72]
	ldr	w1, [x22]
Lloh29:
	adrp	x2, l_.str.5@PAGE
Lloh30:
	add	x2, x2, l_.str.5@PAGEOFF
	bl	_fatal
LBB0_16:
	ldr	x8, [sp, #72]
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x20
	bl	_zap_contains
	cbnz	x0, LBB0_18
; %bb.17:
	ldr	x0, [sp, #72]
	ldr	w1, [x22]
	str	x20, [sp]
Lloh31:
	adrp	x2, l_.str.6@PAGE
Lloh32:
	add	x2, x2, l_.str.6@PAGEOFF
	bl	_fatal
LBB0_18:
	ldr	x0, [sp, #72]
	bl	_spa_name
Lloh33:
	adrp	x8, _zhack_feature_enable_sync@GOTPAGE
Lloh34:
	ldr	x8, [x8, _zhack_feature_enable_sync@GOTPAGEOFF]
Lloh35:
	ldr	w2, [x8]
Lloh36:
	adrp	x8, _ZFS_SPACE_CHECK_NORMAL@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ZFS_SPACE_CHECK_NORMAL@GOTPAGEOFF]
Lloh38:
	ldr	w5, [x8]
	add	x3, sp, #24
	mov	x1, #0
	mov	w4, #5
	bl	_dsl_sync_task
	bl	_VERIFY0
	ldr	x0, [sp, #72]
	ldr	w1, [x22]
	bl	_spa_close
	mov	x0, x19
	bl	_free
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_SPA_FEATURE_NONE,4,2           ; @SPA_FEATURE_NONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"zhack"

	.comm	_optind,4,2                     ; @optind
l_.str.1:                               ; @.str.1
	.asciz	"rmd:"

	.comm	_ZFEATURE_FLAG_READONLY_COMPAT,8,3 ; @ZFEATURE_FLAG_READONLY_COMPAT
	.comm	_optarg,8,3                     ; @optarg
l_.str.2:                               ; @.str.2
	.asciz	"zhack injected"

	.comm	_stderr,4,2                     ; @stderr
l_.str.3:                               ; @.str.3
	.asciz	"error: missing feature or pool name\n"

	.comm	_FTAG,4,2                       ; @FTAG
l_.str.4:                               ; @.str.4
	.asciz	"invalid feature guid: %s"

	.comm	_B_FALSE,4,2                    ; @B_FALSE
l_.str.5:                               ; @.str.5
	.asciz	"'%s' is a real feature, will not enable"

l_.str.6:                               ; @.str.6
	.asciz	"feature already enabled: %s"

	.comm	_zhack_feature_enable_sync,4,2  ; @zhack_feature_enable_sync
	.comm	_ZFS_SPACE_CHECK_NORMAL,4,2     ; @ZFS_SPACE_CHECK_NORMAL
	.no_dead_strip	_zhack_do_feature_enable
.subsections_via_symbols
