	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function volume_name
_volume_name:                           ## @volume_name
	.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
	cmpl	$3, %edi
	jne	LBB0_3
## %bb.1:
	movq	%rsi, %r15
	movq	16(%rsi), %rdi
	callq	_strlen
	cmpl	$8, %eax
	jb	LBB0_6
## %bb.2:
	leaq	L_.str.1(%rip), %rdi
	callq	_warnx
	movq	_ENOSPC@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	leaq	L_.str(%rip), %rdi
	callq	_warnx
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_mpt_unit@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_mpt_open
	testl	%eax, %eax
	js	LBB0_9
## %bb.7:
	movl	%eax, %r14d
	movq	8(%r15), %rsi
	leaq	-48(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	movl	%eax, %edi
	callq	_mpt_lookup_volume
	testl	%eax, %eax
	je	LBB0_10
## %bb.8:
	movl	%eax, %ebx
	movq	8(%r15), %rdx
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edi
	callq	_warnc
	jmp	LBB0_5
LBB0_9:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.2(%rip), %rdi
	callq	_warn
	jmp	LBB0_5
LBB0_10:
	movl	-48(%rbp), %esi
	movl	-44(%rbp), %edx
	movl	%r14d, %edi
	xorl	%ecx, %ecx
	callq	_mpt_vol_names
	testq	%rax, %rax
	je	LBB0_15
## %bb.11:
	movq	%rax, %r12
	movq	8(%rax), %rax
	movq	_MPI_CONFIG_PAGEATTR_CHANGEABLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.12:
	movl	(%r13), %ebx
	movl	-48(%rbp), %edi
	movl	-44(%rbp), %esi
	callq	_mpt_volume_name
	movq	(%r12), %rcx
	movq	16(%r15), %r8
	leaq	L_.str.6(%rip), %rdi
	movl	%ebx, %esi
	movq	%rax, %rdx
	callq	_printf
	movq	(%r12), %rdi
	movl	$8, %esi
	callq	_bzero
	movq	(%r12), %rdi
	movq	16(%r15), %rsi
	callq	_strcpy
	xorl	%ebx, %ebx
	movl	%r14d, %edi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_mpt_write_config_page
	testq	%rax, %rax
	jns	LBB0_14
## %bb.13:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.7(%rip), %rdi
	callq	_warn
LBB0_14:
	movq	%r12, %rdi
	callq	_free
	jmp	LBB0_16
LBB0_15:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.4(%rip), %rdi
	callq	_warn
LBB0_16:
	movl	%r14d, %edi
	callq	_close
	jmp	LBB0_5
LBB0_17:
	leaq	L_.str.5(%rip), %rdi
	callq	_warnx
	movq	%r12, %rdi
	callq	_free
	movl	%r14d, %edi
	callq	_close
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"name: volume and name required"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"name: new name is too long"

	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.comm	_mpt_unit,4,2                   ## @mpt_unit
	.comm	_errno,4,2                      ## @errno
L_.str.2:                               ## @.str.2
	.asciz	"mpt_open"

L_.str.3:                               ## @.str.3
	.asciz	"Invalid volume: %s"

L_.str.4:                               ## @.str.4
	.asciz	"Failed to fetch volume names"

	.comm	_MPI_CONFIG_PAGEATTR_CHANGEABLE,8,3 ## @MPI_CONFIG_PAGEATTR_CHANGEABLE
L_.str.5:                               ## @.str.5
	.asciz	"Volume name is read only"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
L_.str.6:                               ## @.str.6
	.asciz	"mpt%u changing volume %s name from \"%s\" to \"%s\"\n"

L_.str.7:                               ## @.str.7
	.asciz	"Failed to set volume name"

	.no_dead_strip	_volume_name
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function volume_name
_volume_name:                           ; @volume_name
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	cmp	w0, #3
	b.ne	LBB0_3
; %bb.1:
	mov	x20, x1
	ldr	x0, [x1, #16]
	bl	_strlen
	cmp	w0, #8
	b.lo	LBB0_6
; %bb.2:
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_warnx
Lloh2:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warnx
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_4:
	ldr	w22, [x8]
LBB0_5:
	mov	x0, x22
	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
	add	sp, sp, #80
	ret
LBB0_6:
Lloh8:
	adrp	x23, _mpt_unit@GOTPAGE
Lloh9:
	ldr	x23, [x23, _mpt_unit@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_mpt_open
	tbnz	w0, #31, LBB0_9
; %bb.7:
	mov	x19, x0
	ldr	x1, [x20, #8]
	add	x2, sp, #12
	add	x3, sp, #8
	bl	_mpt_lookup_volume
	cbz	w0, LBB0_10
; %bb.8:
	mov	x22, x0
	ldr	x2, [x20, #8]
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_warnc
	b	LBB0_5
LBB0_9:
Lloh12:
	adrp	x8, _errno@GOTPAGE
Lloh13:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh14:
	ldr	w22, [x8]
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_warn
	b	LBB0_5
LBB0_10:
	ldp	w2, w1, [sp, #8]
	mov	x0, x19
	mov	x3, #0
	bl	_mpt_vol_names
	cbz	x0, LBB0_14
; %bb.11:
	mov	x21, x0
	ldr	x8, [x0, #8]
Lloh17:
	adrp	x9, _MPI_CONFIG_PAGEATTR_CHANGEABLE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _MPI_CONFIG_PAGEATTR_CHANGEABLE@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.12:
	ldr	w22, [x23]
	ldp	w1, w0, [sp, #8]
	bl	_mpt_volume_name
	mov	x2, x0
	ldr	x3, [x21]
	ldr	x4, [x20, #16]
Lloh20:
	adrp	x0, l_.str.6@PAGE
Lloh21:
	add	x0, x0, l_.str.6@PAGEOFF
	mov	x1, x22
	bl	_printf
	ldr	x0, [x21]
	mov	w1, #8
	bl	_bzero
	ldr	x0, [x21]
	ldr	x1, [x20, #16]
	bl	_strcpy
	mov	x0, x19
	mov	x1, x21
	mov	x2, #0
	bl	_mpt_write_config_page
	tbnz	x0, #63, LBB0_16
; %bb.13:
	mov	x0, x21
	bl	_free
	mov	x0, x19
	bl	_close
	mov	w22, #0
	b	LBB0_5
LBB0_14:
Lloh22:
	adrp	x8, _errno@GOTPAGE
Lloh23:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh24:
	ldr	w22, [x8]
Lloh25:
	adrp	x0, l_.str.4@PAGE
Lloh26:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_warn
	b	LBB0_17
LBB0_15:
Lloh27:
	adrp	x0, l_.str.5@PAGE
Lloh28:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_warnx
	mov	x0, x21
	bl	_free
	mov	x0, x19
	bl	_close
Lloh29:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_4
LBB0_16:
Lloh31:
	adrp	x8, _errno@GOTPAGE
Lloh32:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh33:
	ldr	w22, [x8]
Lloh34:
	adrp	x0, l_.str.7@PAGE
Lloh35:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_warn
	mov	x0, x21
	bl	_free
LBB0_17:
	mov	x0, x19
	bl	_close
	b	LBB0_5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"name: volume and name required"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"name: new name is too long"

	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.comm	_mpt_unit,4,2                   ; @mpt_unit
	.comm	_errno,4,2                      ; @errno
l_.str.2:                               ; @.str.2
	.asciz	"mpt_open"

l_.str.3:                               ; @.str.3
	.asciz	"Invalid volume: %s"

l_.str.4:                               ; @.str.4
	.asciz	"Failed to fetch volume names"

	.comm	_MPI_CONFIG_PAGEATTR_CHANGEABLE,8,3 ; @MPI_CONFIG_PAGEATTR_CHANGEABLE
l_.str.5:                               ; @.str.5
	.asciz	"Volume name is read only"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
l_.str.6:                               ; @.str.6
	.asciz	"mpt%u changing volume %s name from \"%s\" to \"%s\"\n"

l_.str.7:                               ; @.str.7
	.asciz	"Failed to set volume name"

	.no_dead_strip	_volume_name
.subsections_via_symbols
