	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %r15d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_.str(%rip), %rbx
	movq	_optarg@GOTPCREL(%rip), %r13
	movq	_verbose@GOTPCREL(%rip), %r12
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	$2, (%r12)
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %edi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_getopt
	cmpl	$114, %eax
	jle	LBB0_2
## %bb.26:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$118, %eax
	je	LBB0_29
## %bb.27:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$115, %eax
	jne	LBB0_4
## %bb.28:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	$0, (%r12)
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$102, %eax
	jne	LBB0_3
## %bb.30:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r13), %rax
	movq	_cdname@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_1
LBB0_3:
	cmpl	$-1, %eax
	je	LBB0_5
LBB0_4:
	xorl	%eax, %eax
	callq	_usage
LBB0_5:
	movq	_optind@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	subl	%eax, %r15d
	leaq	(%r14,%rax,8), %r14
	testl	%r15d, %r15d
	jle	LBB0_8
## %bb.6:
	movq	(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcasecmp
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	callq	_usage
LBB0_8:
	movq	_cdname@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	jne	LBB0_14
## %bb.9:
	leaq	L_.str.2(%rip), %rdi
	callq	_getenv
	movq	%rax, (%rbx)
	testq	%rax, %rax
	jne	LBB0_14
## %bb.10:
	leaq	L_.str.3(%rip), %rdi
	callq	_use_cdrom_instead
	movq	%rax, (%rbx)
	testq	%rax, %rax
	jne	LBB0_14
## %bb.11:
	leaq	L_.str.4(%rip), %rdi
	callq	_use_cdrom_instead
	movq	%rax, (%rbx)
	testq	%rax, %rax
	jne	LBB0_14
## %bb.12:
	leaq	L_.str.5(%rip), %rdi
	callq	_use_cdrom_instead
	movq	%rax, (%rbx)
	testq	%rax, %rax
	jne	LBB0_14
## %bb.13:
	leaq	L_.str.6(%rip), %rdi
	callq	_use_cdrom_instead
	movq	%rax, (%rbx)
LBB0_14:
	testl	%r15d, %r15d
	jle	LBB0_32
## %bb.15:
	leaq	-128(%rbp), %rbx
	incl	%r15d
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	(%r14), %rsi
	movq	%rbx, %rdi
	callq	_strcpy
	addq	%r13, %rbx
	addq	$8, %r14
	decl	%r15d
	cmpl	$1, %r15d
	jbe	LBB0_21
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	callq	_strlen
	movslq	%eax, %r13
	leaq	(%rbx,%r13), %rax
	leaq	-49(%rbp), %rcx
	cmpq	%rcx, %rax
	jb	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	xorl	%eax, %eax
	callq	_usage
LBB0_18:                                ##   in Loop: Header=BB0_16 Depth=1
	leaq	-128(%rbp), %rax
	cmpq	%rax, %rbx
	jbe	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_16 Depth=1
	movb	$32, (%rbx)
	incq	%rbx
	jmp	LBB0_20
LBB0_21:
	movb	$0, (%rbx)
	leaq	-128(%rbp), %rdi
	leaq	-132(%rbp), %rsi
	callq	_parse
	movl	-132(%rbp), %edi
	movq	%rax, %rsi
	callq	_run
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_24
## %bb.22:
	cmpl	$0, (%r12)
	je	LBB0_24
## %bb.23:
	xorl	%edi, %edi
	callq	_warn
LBB0_24:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_25
## %bb.31:
	movl	%ebx, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_32:
	movl	(%r12), %eax
	cmpl	$1, %eax
	jne	LBB0_34
## %bb.33:
	xorl	%edi, %edi
	callq	_isatty
	movl	%eax, (%r12)
LBB0_34:
	testl	%eax, %eax
	je	LBB0_36
## %bb.35:
	movq	_VERSION@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	L_.str.7(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	leaq	L_str(%rip), %rdi
	callq	_puts
LBB0_36:
	leaq	-132(%rbp), %r15
	movq	_fd@GOTPCREL(%rip), %r14
	movq	_stdout@GOTPCREL(%rip), %rbx
	jmp	LBB0_37
	.p2align	4, 0x90
LBB0_40:                                ##   in Loop: Header=BB0_37 Depth=1
	movl	(%r14), %edi
	callq	_close
	movl	$-1, (%r14)
LBB0_41:                                ##   in Loop: Header=BB0_37 Depth=1
	movl	(%rbx), %edi
	callq	_fflush
LBB0_37:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_input
	movl	-132(%rbp), %edi
	movq	%rax, %rsi
	callq	_run
	testl	%eax, %eax
	jns	LBB0_41
## %bb.38:                              ##   in Loop: Header=BB0_37 Depth=1
	cmpl	$0, (%r12)
	je	LBB0_40
## %bb.39:                              ##   in Loop: Header=BB0_37 Depth=1
	xorl	%edi, %edi
	callq	_warn
	jmp	LBB0_40
LBB0_25:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"svhf:"

	.comm	_verbose,4,2                    ## @verbose
	.comm	_optarg,8,3                     ## @optarg
	.comm	_cdname,8,3                     ## @cdname
	.comm	_optind,8,3                     ## @optind
L_.str.1:                               ## @.str.1
	.asciz	"help"

L_.str.2:                               ## @.str.2
	.asciz	"CDROM"

L_.str.3:                               ## @.str.3
	.asciz	"MUSIC_CD"

L_.str.4:                               ## @.str.4
	.asciz	"CD_DRIVE"

L_.str.5:                               ## @.str.5
	.asciz	"DISC"

L_.str.6:                               ## @.str.6
	.asciz	"CDPLAY"

L_.str.7:                               ## @.str.7
	.asciz	"Compact Disc Control utility, version %s\n"

	.comm	_VERSION,8,3                    ## @VERSION
	.comm	_fd,4,2                         ## @fd
	.comm	_stdout,4,2                     ## @stdout
L_str:                                  ## @str
	.asciz	"Type `?' for command list\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x21, l_.str@PAGE
Lloh4:
	add	x21, x21, l_.str@PAGEOFF
Lloh5:
	adrp	x24, _optarg@GOTPAGE
Lloh6:
	ldr	x24, [x24, _optarg@GOTPAGEOFF]
	stur	x8, [x29, #-72]
Lloh7:
	adrp	x23, _cdname@GOTPAGE
Lloh8:
	ldr	x23, [x23, _cdname@GOTPAGEOFF]
Lloh9:
	adrp	x22, _verbose@GOTPAGE
Lloh10:
	ldr	x22, [x22, _verbose@GOTPAGEOFF]
	mov	w25, #2
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	str	w25, [x22]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_getopt
	cmp	w0, #114
	b.le	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w0, #118
	b.eq	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w0, #115
	b.ne	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	str	wzr, [x22]
	b	LBB0_2
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	cmp	w0, #102
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x24]
	str	x8, [x23]
	b	LBB0_2
LBB0_8:
	cmn	w0, #1
	b.eq	LBB0_10
LBB0_9:
	bl	_usage
LBB0_10:
Lloh11:
	adrp	x8, _optind@GOTPAGE
Lloh12:
	ldr	x8, [x8, _optind@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	sub	w21, w20, w8
	add	x20, x19, x8, lsl #3
	cmp	w21, #1
	b.lt	LBB0_12
; %bb.11:
	ldr	x0, [x20]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcasecmp
	cbz	w0, LBB0_18
LBB0_12:
	ldr	x8, [x23]
	cbnz	x8, LBB0_19
LBB0_13:
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_getenv
	str	x0, [x23]
	cbnz	x0, LBB0_19
; %bb.14:
Lloh18:
	adrp	x0, l_.str.3@PAGE
Lloh19:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_use_cdrom_instead
	str	x0, [x23]
	cbnz	x0, LBB0_19
; %bb.15:
Lloh20:
	adrp	x0, l_.str.4@PAGE
Lloh21:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_use_cdrom_instead
	str	x0, [x23]
	cbnz	x0, LBB0_19
; %bb.16:
Lloh22:
	adrp	x0, l_.str.5@PAGE
Lloh23:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_use_cdrom_instead
	str	x0, [x23]
	cbnz	x0, LBB0_19
; %bb.17:
Lloh24:
	adrp	x0, l_.str.6@PAGE
Lloh25:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_use_cdrom_instead
	str	x0, [x23]
	b	LBB0_19
LBB0_18:
	bl	_usage
	ldr	x8, [x23]
	cbz	x8, LBB0_13
LBB0_19:
	cmp	w21, #1
	b.lt	LBB0_31
; %bb.20:
	add	x23, sp, #24
	add	x24, x23, #79
	add	w21, w21, #1
	mov	w25, #32
	add	x19, sp, #24
	b	LBB0_22
LBB0_21:                                ;   in Loop: Header=BB0_22 Depth=1
	ldr	x1, [x20], #8
	mov	x0, x19
	bl	_strcpy
	add	x19, x19, x26
	sub	w21, w21, #1
	cmp	w21, #1
	b.ls	LBB0_26
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20]
	bl	_strlen
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x26, w0
	add	x8, x19, x26
	cmp	x8, x24
	b.lo	LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	bl	_usage
LBB0_24:                                ;   in Loop: Header=BB0_22 Depth=1
	cmp	x19, x23
	b.ls	LBB0_21
; %bb.25:                               ;   in Loop: Header=BB0_22 Depth=1
	strb	w25, [x19], #1
	b	LBB0_21
LBB0_26:
	strb	wzr, [x19]
	add	x0, sp, #24
	add	x1, sp, #20
	bl	_parse
	mov	x1, x0
	ldr	w0, [sp, #20]
	bl	_run
	mov	x19, x0
	tbz	w0, #31, LBB0_29
; %bb.27:
	ldr	w8, [x22]
	cbz	w8, LBB0_29
; %bb.28:
	mov	x0, #0
	bl	_warn
LBB0_29:
	ldur	x8, [x29, #-72]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_41
; %bb.30:
	mov	x0, x19
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_31:
	ldr	w0, [x22]
	cmp	w0, #1
	b.ne	LBB0_33
; %bb.32:
	mov	w0, #0
	bl	_isatty
	str	w0, [x22]
LBB0_33:
	cbz	w0, LBB0_35
; %bb.34:
Lloh29:
	adrp	x8, _VERSION@GOTPAGE
Lloh30:
	ldr	x8, [x8, _VERSION@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
	str	x8, [sp]
Lloh32:
	adrp	x0, l_.str.7@PAGE
Lloh33:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_printf
Lloh34:
	adrp	x0, l_str@PAGE
Lloh35:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
LBB0_35:
Lloh36:
	adrp	x19, _fd@GOTPAGE
Lloh37:
	ldr	x19, [x19, _fd@GOTPAGEOFF]
	mov	w20, #-1
Lloh38:
	adrp	x21, _stdout@GOTPAGE
Lloh39:
	ldr	x21, [x21, _stdout@GOTPAGEOFF]
	b	LBB0_38
LBB0_36:                                ;   in Loop: Header=BB0_38 Depth=1
	ldr	w0, [x19]
	bl	_close
	str	w20, [x19]
LBB0_37:                                ;   in Loop: Header=BB0_38 Depth=1
	ldr	w0, [x21]
	bl	_fflush
LBB0_38:                                ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #20
	bl	_input
	mov	x1, x0
	ldr	w0, [sp, #20]
	bl	_run
	tbz	w0, #31, LBB0_37
; %bb.39:                               ;   in Loop: Header=BB0_38 Depth=1
	ldr	w8, [x22]
	cbz	w8, LBB0_36
; %bb.40:                               ;   in Loop: Header=BB0_38 Depth=1
	mov	x0, #0
	bl	_warn
	b	LBB0_36
LBB0_41:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"svhf:"

	.comm	_verbose,4,2                    ; @verbose
	.comm	_optarg,8,3                     ; @optarg
	.comm	_cdname,8,3                     ; @cdname
	.comm	_optind,8,3                     ; @optind
l_.str.1:                               ; @.str.1
	.asciz	"help"

l_.str.2:                               ; @.str.2
	.asciz	"CDROM"

l_.str.3:                               ; @.str.3
	.asciz	"MUSIC_CD"

l_.str.4:                               ; @.str.4
	.asciz	"CD_DRIVE"

l_.str.5:                               ; @.str.5
	.asciz	"DISC"

l_.str.6:                               ; @.str.6
	.asciz	"CDPLAY"

l_.str.7:                               ; @.str.7
	.asciz	"Compact Disc Control utility, version %s\n"

	.comm	_VERSION,8,3                    ; @VERSION
	.comm	_fd,4,2                         ; @fd
	.comm	_stdout,4,2                     ; @stdout
l_str:                                  ; @str
	.asciz	"Type `?' for command list\n"

.subsections_via_symbols
