	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_move
_do_move:                               ## @do_move
	.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
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	cmpl	$5, %esi
	jge	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_2
LBB0_3:
	movl	%esi, %ebx
	cmpl	$6, %esi
	jbe	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
LBB0_2:
	movq	%r14, %rsi
	callq	_warnx
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_getprogname
	leaq	L_.str.5(%rip), %rsi
	movl	%ebx, %edi
	movq	%rax, %rdx
	movq	%r14, %rcx
	callq	_fprintf
	movl	$1, %ebx
LBB0_16:
	movl	%ebx, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%rdx, %r15
	leaq	-72(%rbp), %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	8(%r15), %rdi
	callq	_parse_element_type
	movq	%rax, -72(%rbp)
	movq	_CHET_VT@GOTPCREL(%rip), %r12
	movq	16(%r15), %rdi
	cmpq	%rax, (%r12)
	jne	LBB0_7
## %bb.6:
	leaq	-40(%rbp), %rdx
	leaq	-72(%rbp), %rsi
	callq	_find_element
	jmp	LBB0_8
LBB0_7:
	callq	_parse_element_unit
	movq	%rax, -40(%rbp)
LBB0_8:
	movq	24(%r15), %rdi
	callq	_parse_element_type
	movq	%rax, -64(%rbp)
	cmpq	%rax, (%r12)
	jne	LBB0_10
## %bb.9:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_errx
LBB0_10:
	movq	32(%r15), %rdi
	callq	_parse_element_unit
	movq	%rax, -48(%rbp)
	cmpl	$5, %ebx
	je	LBB0_14
## %bb.11:
	movq	40(%r15), %rdi
	callq	_parse_special
	cmpl	$128, %eax
	jne	LBB0_13
## %bb.12:
	movq	_CM_INVERT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -56(%rbp)
	jmp	LBB0_14
LBB0_13:
	movq	40(%r15), %rcx
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_errx
LBB0_14:
	movq	_changer_fd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CHIOMOVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-72(%rbp), %rdx
	callq	_ioctl
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	_changer_name@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.4(%rip), %rsi
	movl	$1, %edi
	callq	_err
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: too few arguments"

L_.str.1:                               ## @.str.1
	.asciz	"%s: too many arguments"

	.comm	_CHET_VT,8,3                    ## @CHET_VT
L_.str.2:                               ## @.str.2
	.asciz	"%s: voltag only makes sense as an element source"

	.comm	_CM_INVERT,4,2                  ## @CM_INVERT
L_.str.3:                               ## @.str.3
	.asciz	"%s: inappropriate modifier `%s'"

	.comm	_changer_fd,4,2                 ## @changer_fd
	.comm	_CHIOMOVE,4,2                   ## @CHIOMOVE
L_.str.4:                               ## @.str.4
	.asciz	"%s: CHIOMOVE"

	.comm	_changer_name,4,2               ## @changer_name
	.comm	_stderr,4,2                     ## @stderr
L_.str.5:                               ## @.str.5
	.asciz	"usage: %s %s <from ET> <from EU> <to ET> <to EU> [inv]\n"

	.no_dead_strip	_do_move
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_move
_do_move:                               ; @do_move
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x0
	cmp	w1, #5
	b.ge	LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
	mov	x21, x1
	cmp	w1, #6
	b.ls	LBB0_6
; %bb.3:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_4:
	mov	x1, x19
	bl	_warnx
Lloh4:
	adrp	x8, _stderr@GOTPAGE
Lloh5:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh6:
	ldr	w20, [x8]
	bl	_getprogname
	mov	x2, x0
Lloh7:
	adrp	x1, l_.str.5@PAGE
Lloh8:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	mov	x3, x19
	bl	_fprintf
	mov	w0, #1
LBB0_5:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_6:
	mov	x20, x2
	add	x23, sp, #8
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	ldr	x0, [x20, #8]
	bl	_parse_element_type
	mov	x8, x0
	str	x0, [sp, #8]
Lloh9:
	adrp	x22, _CHET_VT@GOTPAGE
Lloh10:
	ldr	x22, [x22, _CHET_VT@GOTPAGEOFF]
	ldr	x9, [x22]
	ldr	x0, [x20, #16]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	add	x2, x23, #32
	add	x1, sp, #8
	bl	_find_element
	b	LBB0_9
LBB0_8:
	bl	_parse_element_unit
	str	x0, [sp, #40]
LBB0_9:
	ldr	x0, [x20, #24]
	bl	_parse_element_type
	str	x0, [sp, #16]
	ldr	x8, [x22]
	cmp	x8, x0
	b.ne	LBB0_11
; %bb.10:
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_errx
LBB0_11:
	ldr	x0, [x20, #32]
	bl	_parse_element_unit
	str	x0, [sp, #32]
	cmp	w21, #5
	b.eq	LBB0_15
; %bb.12:
	ldr	x0, [x20, #40]
	bl	_parse_special
	cmp	w0, #128
	b.ne	LBB0_14
; %bb.13:
Lloh13:
	adrp	x8, _CM_INVERT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CM_INVERT@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ldr	w9, [sp, #24]
	orr	w8, w9, w8
	str	w8, [sp, #24]
	b	LBB0_15
LBB0_14:
	ldr	x8, [x20, #40]
	str	x8, [sp]
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_errx
LBB0_15:
Lloh18:
	adrp	x8, _changer_fd@GOTPAGE
Lloh19:
	ldr	x8, [x8, _changer_fd@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x8, _CHIOMOVE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CHIOMOVE@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_ioctl
	cbz	x0, LBB0_5
; %bb.16:
Lloh24:
	adrp	x8, _changer_name@GOTPAGE
Lloh25:
	ldr	x8, [x8, _changer_name@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
Lloh27:
	adrp	x1, l_.str.4@PAGE
Lloh28:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #1
	bl	_err
	mov	w0, #0
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: too few arguments"

l_.str.1:                               ; @.str.1
	.asciz	"%s: too many arguments"

	.comm	_CHET_VT,8,3                    ; @CHET_VT
l_.str.2:                               ; @.str.2
	.asciz	"%s: voltag only makes sense as an element source"

	.comm	_CM_INVERT,4,2                  ; @CM_INVERT
l_.str.3:                               ; @.str.3
	.asciz	"%s: inappropriate modifier `%s'"

	.comm	_changer_fd,4,2                 ; @changer_fd
	.comm	_CHIOMOVE,4,2                   ; @CHIOMOVE
l_.str.4:                               ; @.str.4
	.asciz	"%s: CHIOMOVE"

	.comm	_changer_name,4,2               ; @changer_name
	.comm	_stderr,4,2                     ; @stderr
l_.str.5:                               ; @.str.5
	.asciz	"usage: %s %s <from ET> <from EU> <to ET> <to EU> [inv]\n"

	.no_dead_strip	_do_move
.subsections_via_symbols
