	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_grow_vdev                      ## -- Begin function grow_vdev
	.p2align	4, 0x90
_grow_vdev:                             ## @grow_vdev
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	16(%rdi), %rdi
	movq	_SCL_STATE@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	movq	_RW_READER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_spa_config_held
	xorl	%edi, %edi
	cmpq	(%r15), %rax
	sete	%dil
	callq	_ASSERT
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	callq	_ASSERT
	movq	(%rbx), %rdi
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_open
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.1:
	movl	%eax, %r15d
	movq	_SEEK_END@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %edi
	xorl	%esi, %esi
	callq	_lseek
	movq	%rax, %r12
	movq	(%r14), %rsi
	movl	%r15d, %edi
	callq	_ftruncate
	movq	_ztest_opts@GOTPCREL(%rip), %rax
	cmpl	$6, (%rax)
	jl	LBB0_3
## %bb.2:
	movq	(%rbx), %rsi
	movl	(%r14), %ecx
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %edx
	callq	_printf
LBB0_3:
	movl	%r15d, %edi
	callq	_close
	xorl	%ebx, %ebx
LBB0_4:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SCL_STATE,8,3                  ## @SCL_STATE
	.comm	_RW_READER,4,2                  ## @RW_READER
	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_SEEK_END,4,2                   ## @SEEK_END
	.comm	_ztest_opts,4,2                 ## @ztest_opts
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s grew from %lu to %lu bytes\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_grow_vdev                      ; -- Begin function grow_vdev
	.p2align	2
_grow_vdev:                             ; @grow_vdev
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x0, [x0, #16]
Lloh0:
	adrp	x21, _SCL_STATE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _SCL_STATE@GOTPAGEOFF]
	ldr	x1, [x21]
Lloh2:
	adrp	x8, _RW_READER@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RW_READER@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	bl	_spa_config_held
	ldr	x8, [x21]
	cmp	x0, x8
	cset	w0, eq
	bl	_ASSERT
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	bl	_ASSERT
	ldr	x0, [x19]
Lloh5:
	adrp	x8, _O_RDWR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _O_RDWR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_open
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.1:
	mov	x21, x0
Lloh8:
	adrp	x8, _SEEK_END@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SEEK_END@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_lseek
	mov	x22, x0
	ldr	x1, [x20]
	mov	x0, x21
	bl	_ftruncate
Lloh11:
	adrp	x8, _ztest_opts@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ztest_opts@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w8, #6
	b.lt	LBB0_3
; %bb.2:
	ldr	x1, [x19]
	ldr	w3, [x20]
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x22
	bl	_printf
LBB0_3:
	mov	x0, x21
	bl	_close
	mov	x19, #0
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_SCL_STATE,8,3                  ; @SCL_STATE
	.comm	_RW_READER,4,2                  ; @RW_READER
	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_SEEK_END,4,2                   ; @SEEK_END
	.comm	_ztest_opts,4,2                 ; @ztest_opts
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s grew from %lu to %lu bytes\n"

.subsections_via_symbols
