	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_position
_do_position:                           ## @do_position
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	cmpl	$3, %esi
	jge	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_2
LBB0_3:
	movl	%esi, %ebx
	cmpl	$4, %esi
	jbe	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
LBB0_2:
	movq	%r12, %rsi
	callq	_warnx
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_getprogname
	leaq	L_.str.4(%rip), %rsi
	movl	%ebx, %edi
	movq	%rax, %rdx
	movq	%r12, %rcx
	callq	_fprintf
	movl	$1, %r14d
LBB0_11:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%rdx, %r15
	leaq	-48(%rbp), %rdi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movq	8(%r15), %rdi
	callq	_parse_element_type
	movl	%eax, -40(%rbp)
	movq	16(%r15), %rdi
	callq	_parse_element_unit
	movl	%eax, -44(%rbp)
	cmpl	$3, %ebx
	je	LBB0_9
## %bb.6:
	movq	24(%r15), %rdi
	callq	_parse_special
	cmpl	$128, %eax
	jne	LBB0_8
## %bb.7:
	movq	_CP_INVERT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -48(%rbp)
	jmp	LBB0_9
LBB0_8:
	movq	24(%r15), %rcx
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	movq	%r12, %rdx
	callq	_errx
LBB0_9:
	movq	_changer_fd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CHIOPOSITION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	callq	_ioctl
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	_changer_name@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	callq	_err
	jmp	LBB0_11
	.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	_CP_INVERT,4,2                  ## @CP_INVERT
L_.str.2:                               ## @.str.2
	.asciz	"%s: inappropriate modifier `%s'"

	.comm	_changer_fd,4,2                 ## @changer_fd
	.comm	_CHIOPOSITION,4,2               ## @CHIOPOSITION
L_.str.3:                               ## @.str.3
	.asciz	"%s: CHIOPOSITION"

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

	.no_dead_strip	_do_position
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_position
_do_position:                           ; @do_position
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x0
	cmp	w1, #3
	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, #4
	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.4@PAGE
Lloh8:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	mov	x3, x19
	bl	_fprintf
	mov	w0, #1
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_6:
	mov	x20, x2
	mov	x0, sp
	mov	w1, #0
	mov	w2, #12
	bl	_memset
	ldr	x0, [x20, #8]
	bl	_parse_element_type
	str	w0, [sp, #8]
	ldr	x0, [x20, #16]
	bl	_parse_element_unit
	str	w0, [sp, #4]
	cmp	w21, #3
	b.eq	LBB0_10
; %bb.7:
	ldr	x0, [x20, #24]
	bl	_parse_special
	cmp	w0, #128
	b.ne	LBB0_9
; %bb.8:
Lloh9:
	adrp	x8, _CP_INVERT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CP_INVERT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [sp]
	orr	w8, w9, w8
	str	w8, [sp]
	b	LBB0_10
LBB0_9:
	ldr	x3, [x20, #24]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_errx
LBB0_10:
Lloh14:
	adrp	x8, _changer_fd@GOTPAGE
Lloh15:
	ldr	x8, [x8, _changer_fd@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x8, _CHIOPOSITION@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CHIOPOSITION@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x2, sp
	bl	_ioctl
	cbz	x0, LBB0_5
; %bb.11:
Lloh20:
	adrp	x8, _changer_name@GOTPAGE
Lloh21:
	ldr	x8, [x8, _changer_name@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@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 AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.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	_CP_INVERT,4,2                  ; @CP_INVERT
l_.str.2:                               ; @.str.2
	.asciz	"%s: inappropriate modifier `%s'"

	.comm	_changer_fd,4,2                 ; @changer_fd
	.comm	_CHIOPOSITION,4,2               ; @CHIOPOSITION
l_.str.3:                               ; @.str.3
	.asciz	"%s: CHIOPOSITION"

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

	.no_dead_strip	_do_position
.subsections_via_symbols
