	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function open_for_data
_open_for_data:                         ## @open_for_data
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %r13
	movq	_CD_OPEN@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_cdinfo
	movq	(%r13), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	_CDSL_CURRENT@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	*%rax
	movl	%eax, %ebx
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_cdinfo
	movq	%r15, %r12
	movq	_CDS_TRAY_OPEN@GOTPCREL(%rip), %r15
	cmpl	(%r15), %ebx
	jne	LBB0_10
## %bb.2:
	movl	(%r12), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_cdinfo
	movq	_CDC_CLOSE_TRAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CDROM_CAN
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	_CDO_AUTO_CLOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_6
## %bb.4:
	movq	_CD_OPEN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_cdinfo
	movq	%r14, %rdi
	xorl	%esi, %esi
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	callq	*8(%r13)
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	movl	(%rbx), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_cdinfo
	movq	_ENOMEDIUM@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	movq	%rbx, %r15
	jmp	LBB0_21
LBB0_6:
	movq	_CD_OPEN@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_cdinfo
	movq	_ENOMEDIUM@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_21
LBB0_7:
	movq	_CDSL_CURRENT@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	*(%r13)
	movq	_CDS_NO_DISC@GOTPCREL(%rip), %rcx
	movl	(%rbx), %edi
	cmpl	(%rcx), %eax
	je	LBB0_30
## %bb.8:
	cmpl	(%r15), %eax
	je	LBB0_30
## %bb.9:
	leaq	L_.str.8(%rip), %rsi
	xorl	%eax, %eax
	callq	_cdinfo
	movq	%r12, %r13
	movq	_CD_OPEN@GOTPCREL(%rip), %r12
LBB0_10:
	movl	(%r13), %esi
	movq	%r14, %rdi
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	callq	*(%r13)
	movq	_CDS_DISC_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	movq	%r12, %r15
	jne	LBB0_17
LBB0_11:
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdi
	callq	_cdrom_count_tracks
	movl	-64(%rbp), %eax
	movq	_CDS_NO_DISC@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_14
## %bb.12:
	movl	(%r15), %edi
	leaq	L_.str.9(%rip), %rsi
	xorl	%r12d, %r12d
LBB0_13:
	xorl	%eax, %eax
	callq	_cdinfo
	movq	_ENOMEDIUM@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_14:
	cmpq	$0, -56(%rbp)
	je	LBB0_18
LBB0_15:
	movl	(%r15), %edi
	leaq	L_.str.13(%rip), %rsi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_cdinfo
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	*16(%r13)
	movl	%eax, %ebx
	movl	(%r15), %edi
	leaq	L_.str.14(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_cdinfo
	testl	%ebx, %ebx
	je	LBB0_26
## %bb.16:
	movl	(%r15), %edi
	leaq	L_.str.15(%rip), %rsi
	xorl	%eax, %eax
	callq	_cdinfo
	movl	%ebx, %r12d
	jmp	LBB0_21
LBB0_17:
	movq	_ENOMEDIUM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	jmp	LBB0_20
LBB0_18:
	movq	_CDO_CHECK_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	(%r15), %edi
	testl	%eax, (%r14)
	je	LBB0_29
## %bb.19:
	leaq	L_.str.10(%rip), %rsi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_cdinfo
	movq	_CD_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_task_pid_nr
	leaq	L_.str.11(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_cdinfo
	movq	_EMEDIUMTYPE@GOTPCREL(%rip), %rax
LBB0_20:
	subl	(%rax), %r12d
LBB0_21:
	movl	(%r15), %edi
	leaq	L_.str.18(%rip), %rsi
	xorl	%eax, %eax
	callq	_cdinfo
	movq	_CDC_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CDROM_CAN
	testq	%rax, %rax
	je	LBB0_25
## %bb.22:
	movq	_CDO_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_25
## %bb.23:
	movq	%r15, %rbx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	*24(%r13)
	leaq	L_.str.19(%rip), %r15
LBB0_24:
	movl	(%rbx), %edi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_cdinfo
LBB0_25:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_26:
	movq	%r15, %rbx
	movq	_CDC_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CDROM_CAN
	leaq	L_.str.17(%rip), %r15
	testq	%rax, %rax
	je	LBB0_24
## %bb.27:
	movq	_CDO_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_24
## %bb.28:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	*24(%r13)
	movl	(%rbx), %edi
	leaq	L_.str.16(%rip), %rsi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_cdinfo
	jmp	LBB0_24
LBB0_29:
	leaq	L_.str.12(%rip), %rsi
	xorl	%eax, %eax
	callq	_cdinfo
	jmp	LBB0_15
LBB0_30:
	leaq	L_.str.6(%rip), %rsi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_cdinfo
	movq	_CD_OPEN@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_CD_OPEN,4,2                    ## @CD_OPEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"entering open_for_data\n"

	.comm	_CDSL_CURRENT,4,2               ## @CDSL_CURRENT
L_.str.1:                               ## @.str.1
	.asciz	"drive_status=%d\n"

	.comm	_CDS_TRAY_OPEN,4,2              ## @CDS_TRAY_OPEN
L_.str.2:                               ## @.str.2
	.asciz	"the tray is open...\n"

	.comm	_CDC_CLOSE_TRAY,4,2             ## @CDC_CLOSE_TRAY
	.comm	_CDO_AUTO_CLOSE,4,2             ## @CDO_AUTO_CLOSE
L_.str.3:                               ## @.str.3
	.asciz	"trying to close the tray.\n"

L_.str.4:                               ## @.str.4
	.asciz	"bummer. tried to close the tray but failed.\n"

	.comm	_ENOMEDIUM,4,2                  ## @ENOMEDIUM
L_.str.5:                               ## @.str.5
	.asciz	"bummer. this drive can't close the tray.\n"

	.comm	_CDS_NO_DISC,4,2                ## @CDS_NO_DISC
L_.str.6:                               ## @.str.6
	.asciz	"bummer. the tray is still not closed.\n"

L_.str.7:                               ## @.str.7
	.asciz	"tray might not contain a medium.\n"

L_.str.8:                               ## @.str.8
	.asciz	"the tray is now closed.\n"

	.comm	_CDS_DISC_OK,4,2                ## @CDS_DISC_OK
L_.str.9:                               ## @.str.9
	.asciz	"bummer. no disc.\n"

	.comm	_CDO_CHECK_TYPE,4,2             ## @CDO_CHECK_TYPE
L_.str.10:                              ## @.str.10
	.asciz	"bummer. wrong media type.\n"

	.comm	_CD_WARNING,4,2                 ## @CD_WARNING
L_.str.11:                              ## @.str.11
	.asciz	"pid %d must open device O_NONBLOCK!\n"

	.comm	_current,4,2                    ## @current
	.comm	_EMEDIUMTYPE,4,2                ## @EMEDIUMTYPE
L_.str.12:                              ## @.str.12
	.asciz	"wrong media type, but CDO_CHECK_TYPE not set.\n"

L_.str.13:                              ## @.str.13
	.asciz	"all seems well, opening the device.\n"

L_.str.14:                              ## @.str.14
	.asciz	"opening the device gave me %d.\n"

L_.str.15:                              ## @.str.15
	.asciz	"open device failed.\n"

	.comm	_CDC_LOCK,4,2                   ## @CDC_LOCK
	.comm	_CDO_LOCK,4,2                   ## @CDO_LOCK
L_.str.16:                              ## @.str.16
	.asciz	"door locked.\n"

L_.str.17:                              ## @.str.17
	.asciz	"device opened successfully.\n"

L_.str.18:                              ## @.str.18
	.asciz	"open failed.\n"

L_.str.19:                              ## @.str.19
	.asciz	"door unlocked.\n"

	.no_dead_strip	_open_for_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function open_for_data
_open_for_data:                         ; @open_for_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	ldr	x22, [x0, #8]
Lloh0:
	adrp	x21, _CD_OPEN@GOTPAGE
Lloh1:
	ldr	x21, [x21, _CD_OPEN@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_cdinfo
	ldr	x8, [x22]
	cbz	x8, LBB0_11
; %bb.1:
Lloh4:
	adrp	x23, _CDSL_CURRENT@GOTPAGE
Lloh5:
	ldr	x23, [x23, _CDSL_CURRENT@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	blr	x8
	mov	x20, x0
	ldr	w0, [x21]
	str	x20, [sp]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_cdinfo
Lloh8:
	adrp	x24, _CDS_TRAY_OPEN@GOTPAGE
Lloh9:
	ldr	x24, [x24, _CDS_TRAY_OPEN@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w20, w8
	b.ne	LBB0_10
; %bb.2:
	ldr	w0, [x21]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_cdinfo
Lloh12:
	adrp	x8, _CDC_CLOSE_TRAY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CDC_CLOSE_TRAY@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_CDROM_CAN
	cbz	x0, LBB0_6
; %bb.3:
	ldr	w8, [x19]
Lloh15:
	adrp	x9, _CDO_AUTO_CLOSE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _CDO_AUTO_CLOSE@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.4:
	ldr	w0, [x21]
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_cdinfo
	ldr	x8, [x22, #8]
	mov	x0, x19
	mov	w1, #0
	blr	x8
	cbz	w0, LBB0_7
; %bb.5:
	ldr	w0, [x21]
Lloh20:
	adrp	x1, l_.str.4@PAGE
Lloh21:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_13
LBB0_6:
	ldr	w0, [x21]
Lloh22:
	adrp	x1, l_.str.5@PAGE
Lloh23:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_13
LBB0_7:
	ldr	x8, [x22]
	ldr	w1, [x23]
	mov	x0, x19
	blr	x8
	mov	x8, x0
Lloh24:
	adrp	x9, _CDS_NO_DISC@GOTPAGE
Lloh25:
	ldr	x9, [x9, _CDS_NO_DISC@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	ldr	w0, [x21]
	cmp	w8, w9
	b.eq	LBB0_31
; %bb.8:
	ldr	w9, [x24]
	cmp	w8, w9
	b.eq	LBB0_31
; %bb.9:
Lloh27:
	adrp	x1, l_.str.8@PAGE
Lloh28:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_cdinfo
LBB0_10:
	ldr	x8, [x22]
	ldr	w1, [x23]
	mov	x0, x19
	blr	x8
Lloh29:
	adrp	x8, _CDS_DISC_OK@GOTPAGE
Lloh30:
	ldr	x8, [x8, _CDS_DISC_OK@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_14
LBB0_11:
	add	x1, sp, #16
	mov	x0, x19
	bl	_cdrom_count_tracks
	ldr	w8, [sp, #16]
Lloh32:
	adrp	x9, _CDS_NO_DISC@GOTPAGE
Lloh33:
	ldr	x9, [x9, _CDS_NO_DISC@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_21
; %bb.12:
	ldr	w0, [x21]
Lloh35:
	adrp	x1, l_.str.9@PAGE
Lloh36:
	add	x1, x1, l_.str.9@PAGEOFF
LBB0_13:
	bl	_cdinfo
LBB0_14:
Lloh37:
	adrp	x8, _ENOMEDIUM@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ENOMEDIUM@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_16:
	ldr	w0, [x21]
Lloh39:
	adrp	x1, l_.str.18@PAGE
Lloh40:
	add	x1, x1, l_.str.18@PAGEOFF
	bl	_cdinfo
Lloh41:
	adrp	x8, _CDC_LOCK@GOTPAGE
Lloh42:
	ldr	x8, [x8, _CDC_LOCK@GOTPAGEOFF]
Lloh43:
	ldr	w0, [x8]
	bl	_CDROM_CAN
	cbz	x0, LBB0_20
; %bb.17:
	ldr	w8, [x19]
Lloh44:
	adrp	x9, _CDO_LOCK@GOTPAGE
Lloh45:
	ldr	x9, [x9, _CDO_LOCK@GOTPAGEOFF]
Lloh46:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_20
; %bb.18:
	ldr	x8, [x22, #24]
	mov	x0, x19
	mov	w1, #0
	blr	x8
Lloh47:
	adrp	x1, l_.str.19@PAGE
Lloh48:
	add	x1, x1, l_.str.19@PAGEOFF
LBB0_19:
	ldr	w0, [x21]
	bl	_cdinfo
LBB0_20:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_21:
	ldr	x8, [sp, #24]
	cbz	x8, LBB0_24
LBB0_22:
	ldr	w0, [x21]
Lloh49:
	adrp	x1, l_.str.13@PAGE
Lloh50:
	add	x1, x1, l_.str.13@PAGEOFF
	bl	_cdinfo
	ldr	x8, [x22, #16]
	mov	x0, x19
	mov	w1, #0
	blr	x8
	mov	x20, x0
	ldr	w0, [x21]
	str	x20, [sp]
Lloh51:
	adrp	x1, l_.str.14@PAGE
Lloh52:
	add	x1, x1, l_.str.14@PAGEOFF
	bl	_cdinfo
	cbz	w20, LBB0_26
; %bb.23:
	ldr	w0, [x21]
Lloh53:
	adrp	x1, l_.str.15@PAGE
Lloh54:
	add	x1, x1, l_.str.15@PAGEOFF
	bl	_cdinfo
	b	LBB0_16
LBB0_24:
	ldr	w8, [x19]
Lloh55:
	adrp	x9, _CDO_CHECK_TYPE@GOTPAGE
Lloh56:
	ldr	x9, [x9, _CDO_CHECK_TYPE@GOTPAGEOFF]
Lloh57:
	ldr	w9, [x9]
	ldr	w0, [x21]
	tst	w9, w8
	b.eq	LBB0_30
; %bb.25:
Lloh58:
	adrp	x1, l_.str.10@PAGE
Lloh59:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_cdinfo
Lloh60:
	adrp	x8, _CD_WARNING@GOTPAGE
Lloh61:
	ldr	x8, [x8, _CD_WARNING@GOTPAGEOFF]
Lloh62:
	ldr	w20, [x8]
Lloh63:
	adrp	x8, _current@GOTPAGE
Lloh64:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh65:
	ldr	w0, [x8]
	bl	_task_pid_nr
	str	x0, [sp]
Lloh66:
	adrp	x1, l_.str.11@PAGE
Lloh67:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x20
	bl	_cdinfo
Lloh68:
	adrp	x8, _EMEDIUMTYPE@GOTPAGE
Lloh69:
	ldr	x8, [x8, _EMEDIUMTYPE@GOTPAGEOFF]
	b	LBB0_15
LBB0_26:
Lloh70:
	adrp	x8, _CDC_LOCK@GOTPAGE
Lloh71:
	ldr	x8, [x8, _CDC_LOCK@GOTPAGEOFF]
Lloh72:
	ldr	w0, [x8]
	bl	_CDROM_CAN
	cbz	x0, LBB0_29
; %bb.27:
	ldr	w8, [x19]
Lloh73:
	adrp	x9, _CDO_LOCK@GOTPAGE
Lloh74:
	ldr	x9, [x9, _CDO_LOCK@GOTPAGEOFF]
Lloh75:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_29
; %bb.28:
	ldr	x8, [x22, #24]
	mov	x0, x19
	mov	w1, #1
	blr	x8
	ldr	w0, [x21]
Lloh76:
	adrp	x1, l_.str.16@PAGE
Lloh77:
	add	x1, x1, l_.str.16@PAGEOFF
	bl	_cdinfo
LBB0_29:
	mov	w20, #0
Lloh78:
	adrp	x1, l_.str.17@PAGE
Lloh79:
	add	x1, x1, l_.str.17@PAGEOFF
	b	LBB0_19
LBB0_30:
Lloh80:
	adrp	x1, l_.str.12@PAGE
Lloh81:
	add	x1, x1, l_.str.12@PAGEOFF
	bl	_cdinfo
	b	LBB0_22
LBB0_31:
Lloh82:
	adrp	x1, l_.str.6@PAGE
Lloh83:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_cdinfo
	ldr	w0, [x21]
Lloh84:
	adrp	x1, l_.str.7@PAGE
Lloh85:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_13
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh68, Lloh69
	.loh AdrpAdd	Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpAdd	Lloh76, Lloh77
	.loh AdrpAdd	Lloh78, Lloh79
	.loh AdrpAdd	Lloh80, Lloh81
	.loh AdrpAdd	Lloh84, Lloh85
	.loh AdrpAdd	Lloh82, Lloh83
	.cfi_endproc
                                        ; -- End function
	.comm	_CD_OPEN,4,2                    ; @CD_OPEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"entering open_for_data\n"

	.comm	_CDSL_CURRENT,4,2               ; @CDSL_CURRENT
l_.str.1:                               ; @.str.1
	.asciz	"drive_status=%d\n"

	.comm	_CDS_TRAY_OPEN,4,2              ; @CDS_TRAY_OPEN
l_.str.2:                               ; @.str.2
	.asciz	"the tray is open...\n"

	.comm	_CDC_CLOSE_TRAY,4,2             ; @CDC_CLOSE_TRAY
	.comm	_CDO_AUTO_CLOSE,4,2             ; @CDO_AUTO_CLOSE
l_.str.3:                               ; @.str.3
	.asciz	"trying to close the tray.\n"

l_.str.4:                               ; @.str.4
	.asciz	"bummer. tried to close the tray but failed.\n"

	.comm	_ENOMEDIUM,4,2                  ; @ENOMEDIUM
l_.str.5:                               ; @.str.5
	.asciz	"bummer. this drive can't close the tray.\n"

	.comm	_CDS_NO_DISC,4,2                ; @CDS_NO_DISC
l_.str.6:                               ; @.str.6
	.asciz	"bummer. the tray is still not closed.\n"

l_.str.7:                               ; @.str.7
	.asciz	"tray might not contain a medium.\n"

l_.str.8:                               ; @.str.8
	.asciz	"the tray is now closed.\n"

	.comm	_CDS_DISC_OK,4,2                ; @CDS_DISC_OK
l_.str.9:                               ; @.str.9
	.asciz	"bummer. no disc.\n"

	.comm	_CDO_CHECK_TYPE,4,2             ; @CDO_CHECK_TYPE
l_.str.10:                              ; @.str.10
	.asciz	"bummer. wrong media type.\n"

	.comm	_CD_WARNING,4,2                 ; @CD_WARNING
l_.str.11:                              ; @.str.11
	.asciz	"pid %d must open device O_NONBLOCK!\n"

	.comm	_current,4,2                    ; @current
	.comm	_EMEDIUMTYPE,4,2                ; @EMEDIUMTYPE
l_.str.12:                              ; @.str.12
	.asciz	"wrong media type, but CDO_CHECK_TYPE not set.\n"

l_.str.13:                              ; @.str.13
	.asciz	"all seems well, opening the device.\n"

l_.str.14:                              ; @.str.14
	.asciz	"opening the device gave me %d.\n"

l_.str.15:                              ; @.str.15
	.asciz	"open device failed.\n"

	.comm	_CDC_LOCK,4,2                   ; @CDC_LOCK
	.comm	_CDO_LOCK,4,2                   ; @CDO_LOCK
l_.str.16:                              ; @.str.16
	.asciz	"door locked.\n"

l_.str.17:                              ; @.str.17
	.asciz	"device opened successfully.\n"

l_.str.18:                              ; @.str.18
	.asciz	"open failed.\n"

l_.str.19:                              ; @.str.19
	.asciz	"door unlocked.\n"

	.no_dead_strip	_open_for_data
.subsections_via_symbols
