	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ioctl_with_dstnv
_ioctl_with_dstnv:                      ## @ioctl_with_dstnv
	.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	%rsi, %r13
	movl	%edi, %r12d
	movl	$2048, %edi                     ## imm = 0x800
	callq	_malloc
	movq	%rax, %r15
	movl	$2048, (%r13)                   ## imm = 0x800
	movq	%rax, 8(%r13)
	movq	_zfsdevfd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r12d, %esi
	movq	%r13, %rdx
	callq	_ioctl
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	_ENOMEM@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	(%r14), %rax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_free
	movl	(%r13), %ebx
	movl	%ebx, %edi
	callq	_malloc
	movq	%rax, %r15
	movl	%ebx, (%r13)
	movq	%rax, 8(%r13)
	movq	_zfsdevfd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r12d, %esi
	movq	%r13, %rdx
	callq	_ioctl
	testq	%rax, %rax
	jne	LBB0_2
LBB0_5:
	movl	(%r13), %esi
	leaq	-48(%rbp), %rdx
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_nvlist_unpack
	movq	_errno@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movq	-48(%rbp), %rdi
	callq	_nvl2py
	movq	%rax, %rbx
	movq	-48(%rbp), %rdi
	callq	_nvlist_free
	jmp	LBB0_7
LBB0_3:
	xorl	%ebx, %ebx
LBB0_7:
	movq	%r15, %rdi
	callq	_free
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_zfsdevfd,4,2                   ## @zfsdevfd
	.comm	_errno,8,3                      ## @errno
	.comm	_ENOMEM,8,3                     ## @ENOMEM
	.no_dead_strip	_ioctl_with_dstnv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ioctl_with_dstnv
_ioctl_with_dstnv:                      ; @ioctl_with_dstnv
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	w22, #2048
	mov	w0, #2048
	bl	_malloc
	mov	x19, x0
	str	w22, [x20]
	str	x0, [x20, #8]
Lloh0:
	adrp	x23, _zfsdevfd@GOTPAGE
Lloh1:
	ldr	x23, [x23, _zfsdevfd@GOTPAGEOFF]
	ldr	w0, [x23]
	mov	x1, x21
	mov	x2, x20
	bl	_ioctl
	cbz	x0, LBB0_4
; %bb.1:
Lloh2:
	adrp	x24, _errno@GOTPAGE
Lloh3:
	ldr	x24, [x24, _errno@GOTPAGEOFF]
Lloh4:
	adrp	x25, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x25, [x25, _ENOMEM@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_free
	ldr	w22, [x20]
	mov	x0, x22
	bl	_malloc
	mov	x19, x0
	str	w22, [x20]
	str	x0, [x20, #8]
	ldr	w0, [x23]
	mov	x1, x21
	mov	x2, x20
	bl	_ioctl
	cbnz	x0, LBB0_2
LBB0_4:
	ldr	w1, [x20]
	add	x2, sp, #8
	mov	x0, x19
	mov	w3, #0
	bl	_nvlist_unpack
Lloh6:
	adrp	x8, _errno@GOTPAGE
Lloh7:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh8:
	str	x0, [x8]
	cbz	x0, LBB0_6
LBB0_5:
	mov	x20, #0
	b	LBB0_7
LBB0_6:
	ldr	x0, [sp, #8]
	bl	_nvl2py
	mov	x20, x0
	ldr	x0, [sp, #8]
	bl	_nvlist_free
LBB0_7:
	mov	x0, x19
	bl	_free
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_zfsdevfd,4,2                   ; @zfsdevfd
	.comm	_errno,8,3                      ; @errno
	.comm	_ENOMEM,8,3                     ; @ENOMEM
	.no_dead_strip	_ioctl_with_dstnv
.subsections_via_symbols
