	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_voltag
_do_voltag:                             ## @do_voltag
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %r13d
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	leaq	-96(%rbp), %rdi
	movl	$40, %esi
	callq	_bzero
	movq	_optreset@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	_optind@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	xorl	%r14d, %r14d
	movb	$1, %al
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	leaq	L_.str(%rip), %r12
	xorl	%ebx, %ebx
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movl	%ebx, %ecx
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ecx, %ebx
	movl	%r13d, %edi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_getopt
	movl	$1, %ecx
	cmpl	$97, %eax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$102, %eax
	je	LBB0_1
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$99, %eax
	jne	LBB0_7
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, %r14d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_3
LBB0_7:
	cmpl	$-1, %eax
	jne	LBB0_27
## %bb.8:
	movq	_optind@GOTPCREL(%rip), %rax
	movslq	(%rax), %r12
	subl	%r12d, %r13d
	cmpl	$2, %r13d
	jge	LBB0_10
## %bb.9:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_28
LBB0_27:
	leaq	L_.str.1(%rip), %rdi
LBB0_28:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_warnx
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	xorl	%eax, %eax
	callq	_getprogname
	leaq	L_.str.7(%rip), %rsi
	movl	%r14d, %edi
	movq	%rax, %rdx
	movq	%rbx, %rcx
	callq	_fprintf
	movl	$1, %ebx
LBB0_29:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	(%r15,%r12,8), %rdi
	callq	_parse_element_type
	movl	%eax, -64(%rbp)
	movq	8(%r15,%r12,8), %rdi
	callq	_atol
	movq	%rax, -72(%rbp)
	testl	%r14d, %r14d
	je	LBB0_11
## %bb.20:
	cmpl	$2, %r13d
	jne	LBB0_21
## %bb.22:
	movq	_CSVR_MODE_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%r14d, -96(%rbp)
LBB0_23:
	testl	%ebx, %ebx
	je	LBB0_25
## %bb.24:
	movq	_CSVR_ALTERNATE@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movl	%r14d, -96(%rbp)
LBB0_25:
	movq	_changer_fd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CHIOSETVOLTAG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-96(%rbp), %rdx
	callq	_ioctl
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_29
## %bb.26:
	movq	_changer_name@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.6(%rip), %rsi
	movl	$1, %edi
	callq	_err
	jmp	LBB0_29
LBB0_11:
	leal	-5(%r13), %eax
	cmpl	$-2, %eax
	jae	LBB0_13
## %bb.12:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_28
LBB0_21:
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_28
LBB0_13:
	testb	$1, -52(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_14
## %bb.15:
	movq	_CSVR_MODE_SET@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_14:
	movq	_CSVR_MODE_REPLACE@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %r14d
	movl	%r14d, -96(%rbp)
	movq	16(%r15,%r12,8), %rdi
	callq	_strlen
	cmpl	$8, %eax
	jbe	LBB0_18
## %bb.17:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_28
LBB0_18:
	movq	-80(%rbp), %rdi
	movq	16(%r15,%r12,8), %rsi
	movl	$8, %edx
	callq	_strlcpy
	cmpl	$4, %r13d
	jne	LBB0_23
## %bb.19:
	movq	24(%r15,%r12,8), %rdi
	callq	_atol
	movq	%rax, -88(%rbp)
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_optreset,4,2                   ## @optreset
	.comm	_optind,4,2                     ## @optind
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fca"

L_.str.1:                               ## @.str.1
	.asciz	"%s: bad option"

L_.str.2:                               ## @.str.2
	.asciz	"%s: missing element specification"

L_.str.3:                               ## @.str.3
	.asciz	"%s: missing argument"

	.comm	_CSVR_MODE_REPLACE,4,2          ## @CSVR_MODE_REPLACE
	.comm	_CSVR_MODE_SET,4,2              ## @CSVR_MODE_SET
L_.str.4:                               ## @.str.4
	.asciz	"%s: volume label too long"

L_.str.5:                               ## @.str.5
	.asciz	"%s: unexpected argument"

	.comm	_CSVR_MODE_CLEAR,4,2            ## @CSVR_MODE_CLEAR
	.comm	_CSVR_ALTERNATE,4,2             ## @CSVR_ALTERNATE
	.comm	_changer_fd,4,2                 ## @changer_fd
	.comm	_CHIOSETVOLTAG,4,2              ## @CHIOSETVOLTAG
L_.str.6:                               ## @.str.6
	.asciz	"%s: CHIOSETVOLTAG"

	.comm	_changer_name,4,2               ## @changer_name
	.comm	_stderr,4,2                     ## @stderr
L_.str.7:                               ## @.str.7
	.asciz	"usage: %s %s [-fca] <element> [<voltag> [<vsn>] ]\n"

	.no_dead_strip	_do_voltag
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_voltag
_do_voltag:                             ; @do_voltag
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x2
	mov	x21, x1
	mov	x19, x0
	add	x0, sp, #8
	mov	w1, #40
	bl	_bzero
	mov	w25, #0
	mov	w23, #0
Lloh0:
	adrp	x8, _optreset@GOTPAGE
Lloh1:
	ldr	x8, [x8, _optreset@GOTPAGEOFF]
	mov	w24, #1
Lloh2:
	str	w24, [x8]
Lloh3:
	adrp	x26, _optind@GOTPAGE
Lloh4:
	ldr	x26, [x26, _optind@GOTPAGEOFF]
	str	w24, [x26]
Lloh5:
	adrp	x22, l_.str@PAGE
Lloh6:
	add	x22, x22, l_.str@PAGEOFF
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_2 Depth 2
	mov	x8, x23
LBB0_2:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x23, x8
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_getopt
	mov	w8, #1
	cmp	w0, #97
	b.eq	LBB0_2
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	cmp	w0, #102
	b.eq	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	cmp	w0, #99
	b.ne	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w25, #1
	b	LBB0_1
LBB0_6:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	w24, #0
	b	LBB0_1
LBB0_7:
	cmn	w0, #1
	b.ne	LBB0_10
; %bb.8:
	ldrsw	x8, [x26]
	sub	w21, w21, w8
	cmp	w21, #2
	b.ge	LBB0_13
; %bb.9:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_10:
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_11:
	mov	x1, x19
	bl	_warnx
Lloh11:
	adrp	x8, _stderr@GOTPAGE
Lloh12:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh13:
	ldr	w20, [x8]
	bl	_getprogname
	mov	x2, x0
Lloh14:
	adrp	x1, l_.str.7@PAGE
Lloh15:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x20
	mov	x3, x19
	bl	_fprintf
	mov	w0, #1
LBB0_12:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_13:
	add	x20, x20, x8, lsl #3
	ldr	x0, [x20]
	bl	_parse_element_type
	str	w0, [sp, #40]
	ldr	x0, [x20, #8]
	bl	_atol
	str	x0, [sp, #32]
	cbz	w25, LBB0_20
; %bb.14:
	cmp	w21, #2
	b.ne	LBB0_22
; %bb.15:
Lloh16:
	adrp	x8, _CSVR_MODE_CLEAR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CSVR_MODE_CLEAR@GOTPAGEOFF]
Lloh18:
	ldr	w22, [x8]
	str	w22, [sp, #8]
LBB0_16:
	cbz	w23, LBB0_18
; %bb.17:
Lloh19:
	adrp	x8, _CSVR_ALTERNATE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _CSVR_ALTERNATE@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	orr	w8, w22, w8
	str	w8, [sp, #8]
LBB0_18:
Lloh22:
	adrp	x8, _changer_fd@GOTPAGE
Lloh23:
	ldr	x8, [x8, _changer_fd@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
Lloh25:
	adrp	x8, _CHIOSETVOLTAG@GOTPAGE
Lloh26:
	ldr	x8, [x8, _CHIOSETVOLTAG@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_ioctl
	cbz	x0, LBB0_12
; %bb.19:
Lloh28:
	adrp	x8, _changer_name@GOTPAGE
Lloh29:
	ldr	x8, [x8, _changer_name@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
Lloh31:
	adrp	x1, l_.str.6@PAGE
Lloh32:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	w0, #1
	bl	_err
	mov	w0, #0
	b	LBB0_12
LBB0_20:
	sub	w8, w21, #5
	cmn	w8, #2
	b.hs	LBB0_23
; %bb.21:
Lloh33:
	adrp	x0, l_.str.3@PAGE
Lloh34:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_11
LBB0_22:
Lloh35:
	adrp	x0, l_.str.5@PAGE
Lloh36:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_11
LBB0_23:
Lloh37:
	adrp	x8, _CSVR_MODE_SET@GOTPAGE
Lloh38:
	ldr	x8, [x8, _CSVR_MODE_SET@GOTPAGEOFF]
Lloh39:
	adrp	x9, _CSVR_MODE_REPLACE@GOTPAGE
Lloh40:
	ldr	x9, [x9, _CSVR_MODE_REPLACE@GOTPAGEOFF]
	tst	w24, #0x1
	csel	x8, x8, x9, ne
	ldr	w22, [x8]
	str	w22, [sp, #8]
	ldr	x0, [x20, #16]
	bl	_strlen
	cmp	w0, #8
	b.ls	LBB0_25
; %bb.24:
Lloh41:
	adrp	x0, l_.str.4@PAGE
Lloh42:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_11
LBB0_25:
	ldr	x0, [sp, #24]
	ldr	x1, [x20, #16]
	mov	w2, #8
	bl	_strlcpy
	cmp	w21, #4
	b.ne	LBB0_16
; %bb.26:
	ldr	x0, [x20, #24]
	bl	_atol
	str	x0, [sp, #16]
	b	LBB0_16
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpAdd	Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_optreset,4,2                   ; @optreset
	.comm	_optind,4,2                     ; @optind
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fca"

l_.str.1:                               ; @.str.1
	.asciz	"%s: bad option"

l_.str.2:                               ; @.str.2
	.asciz	"%s: missing element specification"

l_.str.3:                               ; @.str.3
	.asciz	"%s: missing argument"

	.comm	_CSVR_MODE_REPLACE,4,2          ; @CSVR_MODE_REPLACE
	.comm	_CSVR_MODE_SET,4,2              ; @CSVR_MODE_SET
l_.str.4:                               ; @.str.4
	.asciz	"%s: volume label too long"

l_.str.5:                               ; @.str.5
	.asciz	"%s: unexpected argument"

	.comm	_CSVR_MODE_CLEAR,4,2            ; @CSVR_MODE_CLEAR
	.comm	_CSVR_ALTERNATE,4,2             ; @CSVR_ALTERNATE
	.comm	_changer_fd,4,2                 ; @changer_fd
	.comm	_CHIOSETVOLTAG,4,2              ; @CHIOSETVOLTAG
l_.str.6:                               ; @.str.6
	.asciz	"%s: CHIOSETVOLTAG"

	.comm	_changer_name,4,2               ; @changer_name
	.comm	_stderr,4,2                     ; @stderr
l_.str.7:                               ; @.str.7
	.asciz	"usage: %s %s [-fca] <element> [<voltag> [<vsn>] ]\n"

	.no_dead_strip	_do_voltag
.subsections_via_symbols
