	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zcmd_ioctl                     ## -- Begin function zcmd_ioctl
	.p2align	4, 0x90
_zcmd_ioctl:                            ## @zcmd_ioctl
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movl	%esi, %r14d
	movl	%edi, %r15d
	movq	_ZFS_CMD_COMPAT_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_zfs_ioctl_version@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	movq	_ZFS_IOCVER_UNDEF@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_1
## %bb.2:
	cmpl	$133, %eax
	jl	LBB0_5
LBB0_3:
	jne	LBB0_8
## %bb.4:
	movq	_ZFS_CMD_COMPAT_DEADMAN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_8
LBB0_1:
	xorl	%eax, %eax
	callq	_get_zfs_ioctl_version
	movl	%eax, (%r13)
	cmpl	$133, %eax
	jge	LBB0_3
LBB0_5:
	movq	_ZFS_CMD_COMPAT_V28@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_zfs_spa_version@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	testq	%rax, %rax
	jns	LBB0_7
## %bb.6:
	xorl	%eax, %eax
	callq	_get_zfs_spa_version
	movq	%rax, (%r13)
LBB0_7:
	movq	_SPA_VERSION_15@GOTPCREL(%rip), %rcx
	movq	_SPA_VERSION_14@GOTPCREL(%rip), %rdx
	movq	_SPA_VERSION_13@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rax
	movq	_ZFS_CMD_COMPAT_V15@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	cmovel	%esi, %ebx
	cmpq	(%rdx), %rax
	cmovel	%esi, %ebx
	cmpq	(%rcx), %rax
	cmovel	%esi, %ebx
LBB0_8:
	movq	(%r12), %r13
	movl	%r15d, %edi
	movl	%r14d, %esi
	movq	%r12, %rdx
	movl	%ebx, %ecx
	callq	_zcmd_ioctl_compat
	testl	%eax, %eax
	jne	LBB0_11
## %bb.9:
	xorl	%eax, %eax
	cmpq	(%r12), %r13
	jae	LBB0_11
## %bb.10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$-1, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ZFS_CMD_COMPAT_NONE,4,2        ## @ZFS_CMD_COMPAT_NONE
	.comm	_zfs_ioctl_version,4,2          ## @zfs_ioctl_version
	.comm	_ZFS_IOCVER_UNDEF,4,2           ## @ZFS_IOCVER_UNDEF
	.comm	_ZFS_CMD_COMPAT_INLANES,4,2     ## @ZFS_CMD_COMPAT_INLANES
	.comm	_ZFS_CMD_COMPAT_RESUME,4,2      ## @ZFS_CMD_COMPAT_RESUME
	.comm	_ZFS_CMD_COMPAT_EDBP,4,2        ## @ZFS_CMD_COMPAT_EDBP
	.comm	_ZFS_CMD_COMPAT_ZCMD,4,2        ## @ZFS_CMD_COMPAT_ZCMD
	.comm	_ZFS_CMD_COMPAT_LZC,4,2         ## @ZFS_CMD_COMPAT_LZC
	.comm	_ZFS_CMD_COMPAT_DEADMAN,4,2     ## @ZFS_CMD_COMPAT_DEADMAN
	.comm	_ZFS_CMD_COMPAT_V28,4,2         ## @ZFS_CMD_COMPAT_V28
	.comm	_zfs_spa_version,8,3            ## @zfs_spa_version
	.comm	_SPA_VERSION_15,8,3             ## @SPA_VERSION_15
	.comm	_SPA_VERSION_14,8,3             ## @SPA_VERSION_14
	.comm	_SPA_VERSION_13,8,3             ## @SPA_VERSION_13
	.comm	_ZFS_CMD_COMPAT_V15,4,2         ## @ZFS_CMD_COMPAT_V15
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zcmd_ioctl                     ; -- Begin function zcmd_ioctl
	.p2align	2
_zcmd_ioctl:                            ; @zcmd_ioctl
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _ZFS_CMD_COMPAT_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ZFS_CMD_COMPAT_NONE@GOTPAGEOFF]
Lloh2:
	adrp	x23, _zfs_ioctl_version@GOTPAGE
Lloh3:
	ldr	x23, [x23, _zfs_ioctl_version@GOTPAGEOFF]
Lloh4:
	ldr	w22, [x8]
	ldr	w0, [x23]
Lloh5:
	adrp	x8, _ZFS_IOCVER_UNDEF@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ZFS_IOCVER_UNDEF@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_3
; %bb.1:
	cmp	w0, #133
	b.lt	LBB0_4
LBB0_2:
Lloh8:
	adrp	x8, _ZFS_CMD_COMPAT_DEADMAN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ZFS_CMD_COMPAT_DEADMAN@GOTPAGEOFF]
	b	LBB0_7
LBB0_3:
	bl	_get_zfs_ioctl_version
	str	w0, [x23]
	cmp	w0, #133
	b.ge	LBB0_2
LBB0_4:
Lloh10:
	adrp	x8, _ZFS_CMD_COMPAT_V28@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ZFS_CMD_COMPAT_V28@GOTPAGEOFF]
Lloh12:
	ldr	w22, [x8]
Lloh13:
	adrp	x23, _zfs_spa_version@GOTPAGE
Lloh14:
	ldr	x23, [x23, _zfs_spa_version@GOTPAGEOFF]
	ldr	x0, [x23]
	tbz	x0, #63, LBB0_6
; %bb.5:
	bl	_get_zfs_spa_version
	str	x0, [x23]
LBB0_6:
Lloh15:
	adrp	x8, _SPA_VERSION_15@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SPA_VERSION_15@GOTPAGEOFF]
Lloh17:
	adrp	x9, _SPA_VERSION_14@GOTPAGE
Lloh18:
	ldr	x9, [x9, _SPA_VERSION_14@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
Lloh20:
	ldr	x9, [x9]
Lloh21:
	adrp	x10, _SPA_VERSION_13@GOTPAGE
Lloh22:
	ldr	x10, [x10, _SPA_VERSION_13@GOTPAGEOFF]
Lloh23:
	ldr	x10, [x10]
	cmp	x0, x10
	ccmp	x0, x9, #4, ne
	ccmp	x0, x8, #4, ne
Lloh24:
	adrp	x8, _ZFS_CMD_COMPAT_V15@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ZFS_CMD_COMPAT_V15@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	csel	w3, w8, w22, eq
	ldr	x22, [x19]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_zcmd_ioctl_compat
	cbnz	w0, LBB0_11
; %bb.8:
	ldr	x8, [x19]
	cmp	x22, x8
	b.hs	LBB0_10
; %bb.9:
Lloh26:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
Lloh29:
	adrp	x9, _errno@GOTPAGE
Lloh30:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh31:
	str	w8, [x9]
	mov	w0, #-1
	b	LBB0_11
LBB0_10:
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh19
	.loh AdrpLdrGotStr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_ZFS_CMD_COMPAT_NONE,4,2        ; @ZFS_CMD_COMPAT_NONE
	.comm	_zfs_ioctl_version,4,2          ; @zfs_ioctl_version
	.comm	_ZFS_IOCVER_UNDEF,4,2           ; @ZFS_IOCVER_UNDEF
	.comm	_ZFS_CMD_COMPAT_INLANES,4,2     ; @ZFS_CMD_COMPAT_INLANES
	.comm	_ZFS_CMD_COMPAT_RESUME,4,2      ; @ZFS_CMD_COMPAT_RESUME
	.comm	_ZFS_CMD_COMPAT_EDBP,4,2        ; @ZFS_CMD_COMPAT_EDBP
	.comm	_ZFS_CMD_COMPAT_ZCMD,4,2        ; @ZFS_CMD_COMPAT_ZCMD
	.comm	_ZFS_CMD_COMPAT_LZC,4,2         ; @ZFS_CMD_COMPAT_LZC
	.comm	_ZFS_CMD_COMPAT_DEADMAN,4,2     ; @ZFS_CMD_COMPAT_DEADMAN
	.comm	_ZFS_CMD_COMPAT_V28,4,2         ; @ZFS_CMD_COMPAT_V28
	.comm	_zfs_spa_version,8,3            ; @zfs_spa_version
	.comm	_SPA_VERSION_15,8,3             ; @SPA_VERSION_15
	.comm	_SPA_VERSION_14,8,3             ; @SPA_VERSION_14
	.comm	_SPA_VERSION_13,8,3             ; @SPA_VERSION_13
	.comm	_ZFS_CMD_COMPAT_V15,4,2         ; @ZFS_CMD_COMPAT_V15
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
