	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_ielem
_do_ielem:                              ## @do_ielem
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	$0, -20(%rbp)
	cmpl	$2, %esi
	jne	LBB0_4
## %bb.1:
	movq	8(%rdx), %rdi
	callq	_atol
	movl	%eax, -20(%rbp)
	jmp	LBB0_2
LBB0_4:
	jl	LBB0_2
## %bb.5:
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_warnx
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	xorl	%eax, %eax
	callq	_getprogname
	leaq	L_.str.2(%rip), %rsi
	movl	%r14d, %edi
	movq	%rax, %rdx
	movq	%rbx, %rcx
	callq	_fprintf
	movl	$1, %ebx
	jmp	LBB0_6
LBB0_2:
	movq	_changer_fd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CHIOIELEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	callq	_ioctl
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	_changer_name@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_6:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: too many arguments"

	.comm	_changer_fd,4,2                 ## @changer_fd
	.comm	_CHIOIELEM,4,2                  ## @CHIOIELEM
L_.str.1:                               ## @.str.1
	.asciz	"%s: CHIOIELEM"

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

	.no_dead_strip	_do_ielem
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_ielem
_do_ielem:                              ; @do_ielem
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	str	wzr, [sp, #12]
	cmp	w1, #2
	b.ne	LBB0_2
; %bb.1:
	ldr	x0, [x2, #8]
	bl	_atol
	str	w0, [sp, #12]
	b	LBB0_4
LBB0_2:
	b.lt	LBB0_4
; %bb.3:
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_warnx
Lloh2:
	adrp	x8, _stderr@GOTPAGE
Lloh3:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh4:
	ldr	w20, [x8]
	bl	_getprogname
	mov	x2, x0
Lloh5:
	adrp	x1, l_.str.2@PAGE
Lloh6:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x3, x19
	bl	_fprintf
	mov	w0, #1
	b	LBB0_6
LBB0_4:
Lloh7:
	adrp	x8, _changer_fd@GOTPAGE
Lloh8:
	ldr	x8, [x8, _changer_fd@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x8, _CHIOIELEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CHIOIELEM@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_ioctl
	cbz	x0, LBB0_6
; %bb.5:
Lloh13:
	adrp	x8, _changer_name@GOTPAGE
Lloh14:
	ldr	x8, [x8, _changer_name@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: too many arguments"

	.comm	_changer_fd,4,2                 ; @changer_fd
	.comm	_CHIOIELEM,4,2                  ; @CHIOIELEM
l_.str.1:                               ; @.str.1
	.asciz	"%s: CHIOIELEM"

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

	.no_dead_strip	_do_ielem
.subsections_via_symbols
