	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zhack_do_feature_ref
_zhack_do_feature_ref:                  ## @zhack_do_feature_ref
	.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, %r14
	movl	%edi, %ebx
	movq	_B_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_SPA_FEATURE_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	leaq	L_.str(%rip), %rcx
	movq	%rcx, -104(%rbp)
	movl	$0, -88(%rbp)
	movq	$0, -72(%rbp)
	leaq	-60(%rbp), %rcx
	movq	%rcx, -80(%rbp)
	movl	%eax, -84(%rbp)
	movq	_optind@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	leaq	L_.str.1(%rip), %rdx
	callq	_getopt
	cmpb	$-1, %al
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_8
## %bb.1:
	leaq	L_.str.1(%rip), %r15
	movq	_ZFEATURE_FLAG_MOS@GOTPCREL(%rip), %r12
	xorl	%r13d, %r13d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
	callq	_usage
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%ebx, %edi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_getopt
	cmpb	$-1, %al
	je	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	%al, %eax
	cmpl	$100, %eax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$109, %eax
	jne	LBB0_2
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	orl	(%r12), %r13d
	movl	%r13d, -88(%rbp)
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	_B_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
LBB0_8:
	xorl	%r13d, %r13d
LBB0_9:
	movq	_optind@GOTPCREL(%rip), %rax
	movslq	(%rax), %r12
	subl	%r12d, %ebx
	cmpl	$1, %ebx
	jg	LBB0_11
## %bb.10:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_fprintf
	xorl	%eax, %eax
	callq	_usage
LBB0_11:
	movq	(%r14,%r12,8), %r15
	movq	8(%r14,%r12,8), %rbx
	movq	%rbx, -96(%rbp)
	movq	%rbx, %rdi
	callq	_zfeature_is_valid_guid
	testl	%eax, %eax
	jne	LBB0_13
## %bb.12:
	movq	_FTAG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	xorl	%edi, %edi
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_fatal
LBB0_13:
	movq	_B_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_FTAG@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	leaq	-48(%rbp), %rcx
	movq	%r15, %rdi
	callq	_zhack_spa_open
	movq	-48(%rbp), %rax
	movq	8(%rax), %r14
	movq	%rbx, %rdi
	callq	_zfeature_is_supported
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	-48(%rbp), %rdi
	movl	(%r12), %esi
	leaq	L_.str.4(%rip), %rdx
	xorl	%eax, %eax
	callq	_fatal
LBB0_15:
	movq	-48(%rbp), %rax
	movl	4(%rax), %esi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_zap_contains
	testq	%rax, %rax
	je	LBB0_18
## %bb.16:
	movq	-48(%rbp), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_zap_contains
	testq	%rax, %rax
	je	LBB0_19
## %bb.17:
	movq	-48(%rbp), %rdi
	movl	(%r12), %esi
	leaq	L_.str.5(%rip), %rdx
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_fatal
	jmp	LBB0_21
LBB0_18:
	movq	_ZFEATURE_FLAG_READONLY_COMPAT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %r13d
	jmp	LBB0_20
LBB0_19:
	movq	_ZFEATURE_FLAG_READONLY_COMPAT@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
LBB0_20:
	movl	%r13d, -88(%rbp)
LBB0_21:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_25
## %bb.22:
	movq	-48(%rbp), %rdi
	leaq	-104(%rbp), %rsi
	leaq	-112(%rbp), %rdx
	callq	_feature_get_refcount_from_disk
	testq	%rax, %rax
	jne	LBB0_25
## %bb.23:
	cmpq	$0, -112(%rbp)
	je	LBB0_25
## %bb.24:
	movq	-48(%rbp), %rdi
	movl	(%r12), %esi
	movq	-96(%rbp), %rcx
	leaq	L_.str.6(%rip), %rdx
	xorl	%eax, %eax
	callq	_fatal
LBB0_25:
	movq	-48(%rbp), %rdi
	callq	_spa_name
	testq	%rbx, %rbx
	jne	LBB0_27
## %bb.26:
	movq	_feature_incr_sync@GOTPCREL(%rip), %rcx
	jmp	LBB0_28
LBB0_27:
	movq	_feature_decr_sync@GOTPCREL(%rip), %rcx
LBB0_28:
	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	(%r12), %esi
	callq	_spa_close
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_B_FALSE,8,3                    ## @B_FALSE
	.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	"md"

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

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

L_.str.4:                               ## @.str.4
	.asciz	"'%s' is a real feature, will not change refcount"

	.comm	_ZFEATURE_FLAG_READONLY_COMPAT,4,2 ## @ZFEATURE_FLAG_READONLY_COMPAT
L_.str.5:                               ## @.str.5
	.asciz	"feature is not enabled: %s"

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

	.comm	_feature_decr_sync,4,2          ## @feature_decr_sync
	.comm	_feature_incr_sync,4,2          ## @feature_incr_sync
	.comm	_ZFS_SPACE_CHECK_NORMAL,4,2     ## @ZFS_SPACE_CHECK_NORMAL
	.no_dead_strip	_zhack_do_feature_ref
.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_ref
_zhack_do_feature_ref:                  ; @zhack_do_feature_ref
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x24, _B_FALSE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _B_FALSE@GOTPAGEOFF]
	ldr	x22, [x24]
Lloh2:
	adrp	x8, _SPA_FEATURE_NONE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SPA_FEATURE_NONE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [sp, #28]
Lloh5:
	adrp	x9, l_.str@PAGE
Lloh6:
	add	x9, x9, l_.str@PAGEOFF
	str	x9, [sp, #32]
	add	x9, sp, #28
	stp	x9, xzr, [sp, #56]
	stp	wzr, w8, [sp, #48]
Lloh7:
	adrp	x25, _optind@GOTPAGE
Lloh8:
	ldr	x25, [x25, _optind@GOTPAGEOFF]
	mov	w8, #1
	str	w8, [x25]
Lloh9:
	adrp	x2, l_.str.1@PAGE
Lloh10:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_getopt
	cmn	w0, #1
	b.eq	LBB0_8
; %bb.1:
	mov	w23, #0
Lloh11:
	adrp	x26, _B_TRUE@GOTPAGE
Lloh12:
	ldr	x26, [x26, _B_TRUE@GOTPAGEOFF]
Lloh13:
	adrp	x27, _ZFEATURE_FLAG_MOS@GOTPAGE
Lloh14:
	ldr	x27, [x27, _ZFEATURE_FLAG_MOS@GOTPAGEOFF]
Lloh15:
	adrp	x21, l_.str.1@PAGE
Lloh16:
	add	x21, x21, 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, x20
	mov	x1, x19
	mov	x2, x21
	bl	_getopt
	cmn	w0, #1
	b.eq	LBB0_9
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, #109
	b.ne	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x27]
	orr	w23, w23, w8
	str	w23, [sp, #48]
	b	LBB0_3
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x22, [x26]
	b	LBB0_3
LBB0_8:
	mov	w23, #0
LBB0_9:
	ldrsw	x8, [x25]
	sub	w9, w20, w8
	add	x19, x19, x8, lsl #3
	cmp	w9, #1
	b.gt	LBB0_11
; %bb.10:
Lloh17:
	adrp	x8, _stderr@GOTPAGE
Lloh18:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
	bl	_usage
LBB0_11:
	ldp	x20, x19, [x19]
	str	x19, [sp, #40]
	mov	x0, x19
	bl	_zfeature_is_valid_guid
Lloh22:
	adrp	x21, _FTAG@GOTPAGE
Lloh23:
	ldr	x21, [x21, _FTAG@GOTPAGEOFF]
	cbnz	w0, LBB0_13
; %bb.12:
	ldr	w1, [x21]
	str	x19, [sp]
Lloh24:
	adrp	x2, l_.str.3@PAGE
Lloh25:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, #0
	bl	_fatal
LBB0_13:
	ldr	x1, [x24]
	ldr	w2, [x21]
	add	x3, sp, #72
	mov	x0, x20
	bl	_zhack_spa_open
	ldr	x8, [sp, #72]
	ldr	x20, [x8, #8]
	mov	x0, x19
	bl	_zfeature_is_supported
	cbz	x0, LBB0_15
; %bb.14:
	ldr	x0, [sp, #72]
	ldr	w1, [x21]
Lloh26:
	adrp	x2, l_.str.4@PAGE
Lloh27:
	add	x2, x2, l_.str.4@PAGEOFF
	bl	_fatal
LBB0_15:
	ldr	x8, [sp, #72]
	ldr	w1, [x8, #4]
	mov	x0, x20
	mov	x2, x19
	bl	_zap_contains
	cbz	x0, LBB0_18
; %bb.16:
	ldr	x8, [sp, #72]
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x19
	bl	_zap_contains
	cbz	x0, LBB0_19
; %bb.17:
	ldr	x0, [sp, #72]
	ldr	w1, [x21]
	str	x19, [sp]
Lloh28:
	adrp	x2, l_.str.5@PAGE
Lloh29:
	add	x2, x2, l_.str.5@PAGEOFF
	bl	_fatal
	cbnz	x22, LBB0_20
	b	LBB0_23
LBB0_18:
Lloh30:
	adrp	x8, _ZFEATURE_FLAG_READONLY_COMPAT@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ZFEATURE_FLAG_READONLY_COMPAT@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	bic	w8, w23, w8
	str	w8, [sp, #48]
	cbnz	x22, LBB0_20
	b	LBB0_23
LBB0_19:
Lloh33:
	adrp	x8, _ZFEATURE_FLAG_READONLY_COMPAT@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ZFEATURE_FLAG_READONLY_COMPAT@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	orr	w8, w23, w8
	str	w8, [sp, #48]
	cbz	x22, LBB0_23
LBB0_20:
	ldr	x0, [sp, #72]
	add	x1, sp, #32
	add	x2, sp, #16
	bl	_feature_get_refcount_from_disk
	cbnz	x0, LBB0_23
; %bb.21:
	ldr	x8, [sp, #16]
	cbz	x8, LBB0_23
; %bb.22:
	ldr	x0, [sp, #72]
	ldr	w1, [x21]
	ldr	x8, [sp, #40]
	str	x8, [sp]
Lloh36:
	adrp	x2, l_.str.6@PAGE
Lloh37:
	add	x2, x2, l_.str.6@PAGEOFF
	bl	_fatal
LBB0_23:
	ldr	x0, [sp, #72]
	bl	_spa_name
Lloh38:
	adrp	x8, _feature_decr_sync@GOTPAGE
Lloh39:
	ldr	x8, [x8, _feature_decr_sync@GOTPAGEOFF]
Lloh40:
	adrp	x9, _feature_incr_sync@GOTPAGE
Lloh41:
	ldr	x9, [x9, _feature_incr_sync@GOTPAGEOFF]
	cmp	x22, #0
	csel	x8, x9, x8, eq
	ldr	w2, [x8]
Lloh42:
	adrp	x8, _ZFS_SPACE_CHECK_NORMAL@GOTPAGE
Lloh43:
	ldr	x8, [x8, _ZFS_SPACE_CHECK_NORMAL@GOTPAGEOFF]
Lloh44:
	ldr	w5, [x8]
	add	x3, sp, #32
	mov	x1, #0
	mov	w4, #5
	bl	_dsl_sync_task
	bl	_VERIFY0
	ldr	x0, [sp, #72]
	ldr	w1, [x21]
	bl	_spa_close
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_B_FALSE,8,3                    ; @B_FALSE
	.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	"md"

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

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

l_.str.4:                               ; @.str.4
	.asciz	"'%s' is a real feature, will not change refcount"

	.comm	_ZFEATURE_FLAG_READONLY_COMPAT,4,2 ; @ZFEATURE_FLAG_READONLY_COMPAT
l_.str.5:                               ; @.str.5
	.asciz	"feature is not enabled: %s"

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

	.comm	_feature_decr_sync,4,2          ; @feature_decr_sync
	.comm	_feature_incr_sync,4,2          ; @feature_incr_sync
	.comm	_ZFS_SPACE_CHECK_NORMAL,4,2     ; @ZFS_SPACE_CHECK_NORMAL
	.no_dead_strip	_zhack_do_feature_ref
.subsections_via_symbols
