	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function make_vdev_file
_make_vdev_file:                        ## @make_vdev_file
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rbx
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAXPATHLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r12, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rsi
	testq	%r14, %r14
	je	LBB0_1
## %bb.2:
	testq	%r15, %r15
	jne	LBB0_10
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
	movq	%rbx, %r14
	movq	%rsi, %rbx
	callq	_ztest_get_ashift
	movq	%rbx, %rsi
	movq	%r14, %rbx
	movq	%rax, %r14
	testq	%r15, %r15
	jne	LBB0_10
LBB0_3:
	movq	_ztest_shared@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%r13, %r13
	je	LBB0_7
## %bb.4:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	(%rax), %r10
	movq	_ztest_aux_template@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	_ztest_opts@GOTPCREL(%rip), %rax
	movl	8(%rax), %ecx
	testq	%rbx, %rbx
	jne	LBB0_6
## %bb.5:
	movq	(%rax), %rbx
LBB0_6:
	subq	$8, %rsp
	movq	%rsi, %r15
	movq	%rsi, %rdi
	movl	%r12d, %esi
	movq	%rbx, %r8
	movq	%r13, %r9
	xorl	%eax, %eax
	pushq	%r10
	callq	_snprintf
	addq	$16, %rsp
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_10
LBB0_7:
	movslq	8(%rax), %r9
	leal	1(%r9), %ecx
	movl	%ecx, 8(%rax)
	movq	_ztest_dev_template@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	_ztest_opts@GOTPCREL(%rip), %rax
	movl	8(%rax), %ecx
	testq	%rbx, %rbx
	jne	LBB0_9
## %bb.8:
	movq	(%rax), %rbx
LBB0_9:
	movq	%rsi, %r15
	movq	%rsi, %rdi
	movl	%r12d, %esi
	movq	%rbx, %r8
	xorl	%eax, %eax
	callq	_snprintf
LBB0_10:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_16
## %bb.11:
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	movq	_O_CREAT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_O_TRUNC@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%r15, %rdi
	movl	$438, %edx                      ## imm = 0x1B6
	callq	_open
	movl	%eax, %r12d
	cmpl	$-1, %eax
	jne	LBB0_13
## %bb.12:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movq	%r15, %rdx
	callq	_fatal
LBB0_13:
	movl	%r12d, %edi
	movq	%rbx, %rsi
	callq	_ftruncate
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	movq	%r15, %rdx
	callq	_fatal
LBB0_15:
	movl	%r12d, %edi
	callq	_close
LBB0_16:
	movq	_NV_UNIQUE_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdi
	xorl	%edx, %edx
	callq	_nvlist_alloc
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_VERIFY
	movq	-56(%rbp), %rdi
	movq	_ZPOOL_CONFIG_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_VDEV_TYPE_FILE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	callq	_nvlist_add_string
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_VERIFY
	movq	-56(%rbp), %rdi
	movq	_ZPOOL_CONFIG_PATH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdx
	callq	_nvlist_add_string
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_VERIFY
	movq	-56(%rbp), %rdi
	movq	_ZPOOL_CONFIG_ASHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdx
	callq	_nvlist_add_uint64
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_VERIFY
	movq	-56(%rbp), %rax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_18
## %bb.17:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXPATHLEN,4,2                 ## @MAXPATHLEN
	.comm	_ztest_shared,8,3               ## @ztest_shared
	.comm	_ztest_aux_template,8,3         ## @ztest_aux_template
	.comm	_ztest_opts,16,3                ## @ztest_opts
	.comm	_ztest_dev_template,8,3         ## @ztest_dev_template
	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_O_TRUNC,4,2                    ## @O_TRUNC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't open %s"

L_.str.1:                               ## @.str.1
	.asciz	"can't ftruncate %s"

	.comm	_NV_UNIQUE_NAME,4,2             ## @NV_UNIQUE_NAME
	.comm	_ZPOOL_CONFIG_TYPE,4,2          ## @ZPOOL_CONFIG_TYPE
	.comm	_VDEV_TYPE_FILE,8,3             ## @VDEV_TYPE_FILE
	.comm	_ZPOOL_CONFIG_PATH,4,2          ## @ZPOOL_CONFIG_PATH
	.comm	_ZPOOL_CONFIG_ASHIFT,4,2        ## @ZPOOL_CONFIG_ASHIFT
	.no_dead_strip	_make_vdev_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function make_vdev_file
_make_vdev_file:                        ; @make_vdev_file
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	sub	sp, sp, #16
	mov	x19, x4
	mov	x21, x3
	mov	x24, x2
	mov	x25, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _MAXPATHLEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAXPATHLEN@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	mov	x9, x23
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x23, #15
	and	x9, x9, #0x1fffffff0
	sub	x22, x8, x9
	mov	sp, x22
	cbz	x4, LBB0_3
; %bb.1:
	cbz	x20, LBB0_4
LBB0_2:
	cbnz	x21, LBB0_8
	b	LBB0_13
LBB0_3:
	bl	_ztest_get_ashift
	mov	x19, x0
	cbnz	x20, LBB0_2
LBB0_4:
Lloh8:
	adrp	x8, _ztest_shared@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ztest_shared@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cbz	x25, LBB0_6
; %bb.5:
	ldr	x8, [x8]
Lloh11:
	adrp	x9, _ztest_aux_template@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ztest_aux_template@GOTPAGEOFF]
Lloh13:
	ldr	x2, [x9]
Lloh14:
	adrp	x9, _ztest_opts@GOTPAGE
Lloh15:
	ldr	x9, [x9, _ztest_opts@GOTPAGEOFF]
	ldr	w3, [x9, #8]
	ldr	x9, [x9]
	cmp	x24, #0
	csel	x4, x9, x24, eq
	str	x8, [sp, #-16]!
	mov	x0, x22
	mov	x1, x23
	mov	x5, x25
	bl	_snprintf
	add	sp, sp, #16
	b	LBB0_7
LBB0_6:
	ldrsw	x5, [x8, #8]
	add	w9, w5, #1
	str	w9, [x8, #8]
Lloh16:
	adrp	x8, _ztest_dev_template@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ztest_dev_template@GOTPAGEOFF]
Lloh18:
	ldr	x2, [x8]
Lloh19:
	adrp	x8, _ztest_opts@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ztest_opts@GOTPAGEOFF]
	ldr	w3, [x8, #8]
	ldr	x8, [x8]
	cmp	x24, #0
	csel	x4, x8, x24, eq
	mov	x0, x22
	mov	x1, x23
	bl	_snprintf
LBB0_7:
	mov	x20, x22
	cbz	x21, LBB0_13
LBB0_8:
Lloh21:
	adrp	x8, _O_RDWR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _O_RDWR@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _O_CREAT@GOTPAGE
Lloh25:
	ldr	x9, [x9, _O_CREAT@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh27:
	adrp	x9, _O_TRUNC@GOTPAGE
Lloh28:
	ldr	x9, [x9, _O_TRUNC@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x0, x20
	mov	w2, #438
	bl	_open
	mov	x22, x0
	cmn	w0, #1
	b.ne	LBB0_10
; %bb.9:
Lloh30:
	adrp	x1, l_.str@PAGE
Lloh31:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x20
	bl	_fatal
LBB0_10:
	mov	x0, x22
	mov	x1, x21
	bl	_ftruncate
	cbz	x0, LBB0_12
; %bb.11:
Lloh32:
	adrp	x1, l_.str.1@PAGE
Lloh33:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	mov	x2, x20
	bl	_fatal
LBB0_12:
	mov	x0, x22
	bl	_close
LBB0_13:
Lloh34:
	adrp	x8, _NV_UNIQUE_NAME@GOTPAGE
Lloh35:
	ldr	x8, [x8, _NV_UNIQUE_NAME@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	sub	x0, x29, #80
	mov	w2, #0
	bl	_nvlist_alloc
	cmp	x0, #0
	cset	w0, eq
	bl	_VERIFY
	ldur	x0, [x29, #-80]
Lloh37:
	adrp	x8, _ZPOOL_CONFIG_TYPE@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ZPOOL_CONFIG_TYPE@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
Lloh40:
	adrp	x8, _VDEV_TYPE_FILE@GOTPAGE
Lloh41:
	ldr	x8, [x8, _VDEV_TYPE_FILE@GOTPAGEOFF]
Lloh42:
	ldr	x2, [x8]
	bl	_nvlist_add_string
	cmp	x0, #0
	cset	w0, eq
	bl	_VERIFY
	ldur	x0, [x29, #-80]
Lloh43:
	adrp	x8, _ZPOOL_CONFIG_PATH@GOTPAGE
Lloh44:
	ldr	x8, [x8, _ZPOOL_CONFIG_PATH@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_nvlist_add_string
	cmp	x0, #0
	cset	w0, eq
	bl	_VERIFY
	ldur	x0, [x29, #-80]
Lloh46:
	adrp	x8, _ZPOOL_CONFIG_ASHIFT@GOTPAGE
Lloh47:
	ldr	x8, [x8, _ZPOOL_CONFIG_ASHIFT@GOTPAGEOFF]
Lloh48:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_nvlist_add_uint64
	cmp	x0, #0
	cset	w0, eq
	bl	_VERIFY
	ldur	x0, [x29, #-80]
	ldur	x8, [x29, #-72]
Lloh49:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh50:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh51:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXPATHLEN,4,2                 ; @MAXPATHLEN
	.comm	_ztest_shared,8,3               ; @ztest_shared
	.comm	_ztest_aux_template,8,3         ; @ztest_aux_template
	.comm	_ztest_opts,16,3                ; @ztest_opts
	.comm	_ztest_dev_template,8,3         ; @ztest_dev_template
	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_O_TRUNC,4,2                    ; @O_TRUNC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't open %s"

l_.str.1:                               ; @.str.1
	.asciz	"can't ftruncate %s"

	.comm	_NV_UNIQUE_NAME,4,2             ; @NV_UNIQUE_NAME
	.comm	_ZPOOL_CONFIG_TYPE,4,2          ; @ZPOOL_CONFIG_TYPE
	.comm	_VDEV_TYPE_FILE,8,3             ; @VDEV_TYPE_FILE
	.comm	_ZPOOL_CONFIG_PATH,4,2          ; @ZPOOL_CONFIG_PATH
	.comm	_ZPOOL_CONFIG_ASHIFT,4,2        ; @ZPOOL_CONFIG_ASHIFT
	.no_dead_strip	_make_vdev_file
.subsections_via_symbols
