	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_exchange
_do_exchange:                           ## @do_exchange
	.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	%rdi, %r15
	cmpl	$5, %esi
	jge	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_2
LBB0_3:
	movl	%esi, %r13d
	cmpl	$9, %esi
	jbe	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
LBB0_2:
	movq	%r15, %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	%r15, %rcx
	callq	_fprintf
	movl	$1, %ebx
LBB0_28:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%rdx, %rbx
	leaq	-96(%rbp), %rdi
	xorl	%esi, %esi
	movl	$56, %edx
	callq	_memset
	movq	8(%rbx), %rdi
	callq	_parse_element_type
	movq	%rax, -96(%rbp)
	movq	_CHET_VT@GOTPCREL(%rip), %r14
	movq	16(%rbx), %rdi
	cmpq	%rax, (%r14)
	jne	LBB0_7
## %bb.6:
	leaq	-56(%rbp), %rdx
	leaq	-96(%rbp), %rsi
	callq	_find_element
	jmp	LBB0_8
LBB0_7:
	callq	_parse_element_unit
	movq	%rax, -56(%rbp)
LBB0_8:
	movq	24(%rbx), %rdi
	callq	_parse_element_type
	movq	%rax, -88(%rbp)
	movq	32(%rbx), %rdi
	cmpq	%rax, (%r14)
	jne	LBB0_10
## %bb.9:
	leaq	-88(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	callq	_find_element
	jmp	LBB0_11
LBB0_10:
	callq	_parse_element_unit
	movq	%rax, -48(%rbp)
LBB0_11:
	leaq	40(%rbx), %r14
	movl	%r13d, %r12d
	addl	$-5, %r12d
	je	LBB0_13
## %bb.12:
	movq	(%r14), %rdi
	callq	_is_special
	testq	%rax, %rax
	je	LBB0_14
LBB0_13:
	movq	-96(%rbp), %rax
	movq	-56(%rbp), %rcx
	movq	%rax, -80(%rbp)
	movq	%rcx, -64(%rbp)
	testl	%r12d, %r12d
	jne	LBB0_18
	jmp	LBB0_26
LBB0_14:
	movq	40(%rbx), %rdi
	callq	_parse_element_type
	movq	%rax, -80(%rbp)
	movq	_CHET_VT@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jne	LBB0_16
## %bb.15:
	movq	48(%rbx), %rcx
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	movq	%r15, %rdx
	callq	_errx
LBB0_16:
	movq	48(%rbx), %rdi
	callq	_parse_element_unit
	movq	%rax, -64(%rbp)
	addq	$56, %rbx
	addl	$-7, %r13d
	movl	%r13d, %r12d
	movq	%rbx, %r14
	testl	%r12d, %r12d
	je	LBB0_26
LBB0_18:
	movl	%r12d, %r13d
	xorl	%ebx, %ebx
	leaq	L_.str.3(%rip), %r12
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_19 Depth=1
	movq	8(%r14,%rbx,8), %rcx
	movl	$1, %edi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_errx
LBB0_25:                                ##   in Loop: Header=BB0_19 Depth=1
	incq	%rbx
	cmpl	%ebx, %r13d
	je	LBB0_26
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14,%rbx,8), %rdi
	callq	_parse_special
	cmpl	$128, %eax
	je	LBB0_23
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	cmpl	$129, %eax
	jne	LBB0_24
## %bb.21:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	_CE_INVERT1@GOTPCREL(%rip), %rax
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_19 Depth=1
	movq	_CE_INVERT2@GOTPCREL(%rip), %rax
LBB0_22:                                ##   in Loop: Header=BB0_19 Depth=1
	movl	(%rax), %eax
	orl	%eax, -72(%rbp)
	jmp	LBB0_25
LBB0_26:
	movq	_changer_fd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CHIOEXCHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-96(%rbp), %rdx
	callq	_ioctl
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_28
## %bb.27:
	movq	_changer_name@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.4(%rip), %rsi
	movl	$1, %edi
	callq	_err
	jmp	LBB0_28
	.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 %s: voltag only makes sense as an element source"

	.comm	_CE_INVERT1,4,2                 ## @CE_INVERT1
	.comm	_CE_INVERT2,4,2                 ## @CE_INVERT2
L_.str.3:                               ## @.str.3
	.asciz	"%s: inappropriate modifier `%s'"

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

	.comm	_changer_name,4,2               ## @changer_name
	.comm	_stderr,4,2                     ## @stderr
L_.str.5:                               ## @.str.5
	.asciz	"usage: %s %s <src ET> <src EU> <dst1 ET> <dst1 EU>\n       [<dst2 ET> <dst2 EU>] [inv1] [inv2]\n"

	.no_dead_strip	_do_exchange
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_exchange
_do_exchange:                           ; @do_exchange
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	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
	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	x20, x1
	cmp	w1, #9
	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, #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
	add	sp, sp, #128
	ret
LBB0_6:
	mov	x21, x2
	add	x22, sp, #8
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #56
	bl	_memset
	ldr	x0, [x21, #8]
	bl	_parse_element_type
	mov	x8, x0
	str	x0, [sp, #8]
Lloh9:
	adrp	x23, _CHET_VT@GOTPAGE
Lloh10:
	ldr	x23, [x23, _CHET_VT@GOTPAGEOFF]
	ldr	x9, [x23]
	ldr	x0, [x21, #16]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	add	x2, x22, #40
	add	x1, sp, #8
	bl	_find_element
	b	LBB0_9
LBB0_8:
	bl	_parse_element_unit
	str	x0, [sp, #48]
LBB0_9:
	ldr	x0, [x21, #24]
	bl	_parse_element_type
	mov	x8, x0
	str	x0, [sp, #16]
	ldr	x9, [x23]
	ldr	x0, [x21, #32]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	add	x8, sp, #8
	add	x1, x8, #8
	add	x2, x8, #48
	bl	_find_element
	b	LBB0_12
LBB0_11:
	bl	_parse_element_unit
	str	x0, [sp, #56]
LBB0_12:
	add	x24, x21, #40
	subs	w22, w20, #5
	b.eq	LBB0_14
; %bb.13:
	ldr	x0, [x24]
	bl	_is_special
	cbz	x0, LBB0_15
LBB0_14:
	ldr	x8, [sp, #8]
	ldr	x9, [sp, #48]
	str	x8, [sp, #24]
	str	x9, [sp, #40]
	cbnz	w22, LBB0_18
	b	LBB0_25
LBB0_15:
	ldr	x0, [x21, #40]
	bl	_parse_element_type
	str	x0, [sp, #24]
	ldr	x8, [x23]
	cmp	x8, x0
	b.ne	LBB0_17
; %bb.16:
	ldr	x3, [x21, #48]
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_errx
LBB0_17:
	ldr	x0, [x21, #48]
	bl	_parse_element_unit
	str	x0, [sp, #40]
	add	x24, x21, #56
	sub	w22, w20, #7
	cbz	w22, LBB0_25
LBB0_18:
	add	x21, x24, #8
Lloh13:
	adrp	x23, _CE_INVERT2@GOTPAGE
Lloh14:
	ldr	x23, [x23, _CE_INVERT2@GOTPAGEOFF]
Lloh15:
	adrp	x24, _CE_INVERT1@GOTPAGE
Lloh16:
	ldr	x24, [x24, _CE_INVERT1@GOTPAGEOFF]
Lloh17:
	adrp	x20, l_.str.3@PAGE
Lloh18:
	add	x20, x20, l_.str.3@PAGEOFF
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	ldr	x3, [x21]
	mov	w0, #1
	mov	x1, x20
	mov	x2, x19
	bl	_errx
	add	x21, x21, #8
	cbz	w22, LBB0_25
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldur	x0, [x21, #-8]
	bl	_parse_special
	sub	w22, w22, #1
	cmp	w0, #128
	b.eq	LBB0_23
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	cmp	w0, #129
	b.ne	LBB0_19
; %bb.22:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	w8, [x24]
	b	LBB0_24
LBB0_23:                                ;   in Loop: Header=BB0_20 Depth=1
	ldr	w8, [x23]
LBB0_24:                                ;   in Loop: Header=BB0_20 Depth=1
	ldr	w9, [sp, #32]
	orr	w8, w9, w8
	str	w8, [sp, #32]
	add	x21, x21, #8
	cbnz	w22, LBB0_20
LBB0_25:
Lloh19:
	adrp	x8, _changer_fd@GOTPAGE
Lloh20:
	ldr	x8, [x8, _changer_fd@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
Lloh22:
	adrp	x8, _CHIOEXCHANGE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _CHIOEXCHANGE@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_ioctl
	cbz	x0, LBB0_5
; %bb.26:
Lloh25:
	adrp	x8, _changer_name@GOTPAGE
Lloh26:
	ldr	x8, [x8, _changer_name@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
Lloh28:
	adrp	x1, l_.str.4@PAGE
Lloh29:
	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 AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.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 %s: voltag only makes sense as an element source"

	.comm	_CE_INVERT1,4,2                 ; @CE_INVERT1
	.comm	_CE_INVERT2,4,2                 ; @CE_INVERT2
l_.str.3:                               ; @.str.3
	.asciz	"%s: inappropriate modifier `%s'"

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

	.comm	_changer_name,4,2               ; @changer_name
	.comm	_stderr,4,2                     ; @stderr
l_.str.5:                               ; @.str.5
	.asciz	"usage: %s %s <src ET> <src EU> <dst1 ET> <dst1 EU>\n       [<dst2 ET> <dst2 EU>] [inv1] [inv2]\n"

	.no_dead_strip	_do_exchange
.subsections_via_symbols
