	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcd_detect
_pcd_detect:                            ## @pcd_detect
	.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	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_name@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	_PCD_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_major@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_nice@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leaq	L_.str(%rip), %rdi
	movl	%edx, %esi
	xorl	%eax, %eax
	callq	_printk
	movq	_pcd_drive_count@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_1
## %bb.6:
	movq	_PCD_UNITS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_16
## %bb.7:
	movq	_pcd@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	xorl	%r13d, %r13d
	movl	$0, -84(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	16(%rbx), %edi
	callq	_pi_release
LBB0_14:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%r13
	addq	$24, %rbx
	movq	_PCD_UNITS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r13
	jge	LBB0_15
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	_drives@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r13,8), %rax
	movq	(%rax), %r12
	movq	_D_PRT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%r12,%rax,4), %edx
	testl	%edx, %edx
	je	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	_D_MOD@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%r12,%rax,4), %ecx
	movq	_D_UNI@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%r12,%rax,4), %r8d
	movq	_D_PRO@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%r12,%rax,4), %r9d
	movq	_D_DLY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%r12,%rax,4), %r10d
	movq	_pcd_buffer@GOTPCREL(%rip), %rax
	movl	(%rax), %r11d
	movq	_PI_PCD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_verbose@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r15d
	movl	16(%rbx), %edi
	movl	20(%rbx), %r14d
	subq	$8, %rsp
	xorl	%esi, %esi
	pushq	%r14
	pushq	%r15
	pushq	%rax
	pushq	%r11
	pushq	%r10
	callq	_pi_init
	addq	$48, %rsp
	testq	%rax, %rax
	je	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_D_SLV@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%r12,%rax,4), %esi
	movq	%rbx, %rdi
	leaq	-80(%rbp), %rdx
	callq	_pcd_probe
	testl	%eax, %eax
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpq	$0, 8(%rbx)
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	$1, (%rbx)
	incl	-84(%rbp)                       ## 4-byte Folded Spill
	jmp	LBB0_14
LBB0_15:
	xorl	%r14d, %r14d
	cmpl	$0, -84(%rbp)                   ## 4-byte Folded Reload
	movq	_name@GOTPCREL(%rip), %rbx
	jne	LBB0_19
	jmp	LBB0_16
LBB0_1:
	movq	_pcd@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_pcd_buffer@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movq	_PI_PCD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r11d
	movq	_verbose@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	movl	16(%r15), %edi
	movl	20(%r15), %eax
	subq	$8, %rsp
	movl	$1, %esi
	movl	$-1, %edx
	movl	$-1, %ecx
	movl	$-1, %r8d
	movl	$-1, %r9d
	pushq	%rax
	pushq	%r14
	pushq	%r11
	pushq	%r10
	pushq	$-1
	callq	_pi_init
	addq	$48, %rsp
	testq	%rax, %rax
	je	LBB0_16
## %bb.2:
	leaq	-80(%rbp), %rdx
	movq	%r15, %rdi
	movl	$-1, %esi
	callq	_pcd_probe
	testl	%eax, %eax
	je	LBB0_3
LBB0_5:
	movl	16(%r15), %edi
	callq	_pi_release
LBB0_16:
	movl	(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_printk
	movq	_PCD_UNITS@GOTPCREL(%rip), %r15
	movl	$-1, %r14d
	cmpl	$0, (%r15)
	jle	LBB0_19
## %bb.17:
	movq	_pcd@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	addq	$8, %rbx
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rdi
	callq	_put_disk
	incl	%r12d
	addq	$24, %rbx
	cmpl	(%r15), %r12d
	jl	LBB0_18
LBB0_19:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_21
## %bb.20:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	cmpq	$0, 8(%r15)
	je	LBB0_5
## %bb.4:
	movl	$1, (%r15)
	xorl	%r14d, %r14d
	jmp	LBB0_19
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: %s version %s, major %d, nice %d\n"

	.comm	_name,4,2                       ## @name
	.comm	_PCD_VERSION,4,2                ## @PCD_VERSION
	.comm	_major,4,2                      ## @major
	.comm	_nice,4,2                       ## @nice
	.comm	_pcd_drive_count,8,3            ## @pcd_drive_count
	.comm	_pcd,8,3                        ## @pcd
	.comm	_pcd_buffer,4,2                 ## @pcd_buffer
	.comm	_PI_PCD,4,2                     ## @PI_PCD
	.comm	_verbose,4,2                    ## @verbose
	.comm	_PCD_UNITS,4,2                  ## @PCD_UNITS
	.comm	_drives,8,3                     ## @drives
	.comm	_D_PRT,8,3                      ## @D_PRT
	.comm	_D_MOD,8,3                      ## @D_MOD
	.comm	_D_UNI,8,3                      ## @D_UNI
	.comm	_D_PRO,8,3                      ## @D_PRO
	.comm	_D_DLY,8,3                      ## @D_DLY
	.comm	_D_SLV,8,3                      ## @D_SLV
L_.str.1:                               ## @.str.1
	.asciz	"%s: No CD-ROM drive found\n"

	.no_dead_strip	_pcd_detect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcd_detect
_pcd_detect:                            ; @pcd_detect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
Lloh3:
	adrp	x21, _name@GOTPAGE
Lloh4:
	ldr	x21, [x21, _name@GOTPAGEOFF]
Lloh5:
	adrp	x8, _PCD_VERSION@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PCD_VERSION@GOTPAGEOFF]
Lloh7:
	adrp	x9, _major@GOTPAGE
Lloh8:
	ldr	x9, [x9, _major@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh9:
	adrp	x10, _nice@GOTPAGE
Lloh10:
	ldr	x10, [x10, _nice@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	ldr	w9, [x9]
Lloh13:
	ldr	w10, [x10]
	stp	x9, x10, [sp, #16]
	stp	x1, x8, [sp]
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_printk
Lloh16:
	adrp	x8, _pcd_drive_count@GOTPAGE
Lloh17:
	ldr	x8, [x8, _pcd_drive_count@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
Lloh19:
	adrp	x20, _PCD_UNITS@GOTPAGE
Lloh20:
	ldr	x20, [x20, _PCD_UNITS@GOTPAGEOFF]
	cbz	x8, LBB0_12
; %bb.1:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.2:
	mov	x23, #0
	str	wzr, [sp, #32]                  ; 4-byte Folded Spill
Lloh21:
	adrp	x8, _pcd@GOTPAGE
Lloh22:
	ldr	x8, [x8, _pcd@GOTPAGEOFF]
Lloh23:
	adrp	x24, _drives@GOTPAGE
Lloh24:
	ldr	x24, [x24, _drives@GOTPAGEOFF]
Lloh25:
	adrp	x25, _D_PRT@GOTPAGE
Lloh26:
	ldr	x25, [x25, _D_PRT@GOTPAGEOFF]
Lloh27:
	adrp	x21, _D_DLY@GOTPAGE
Lloh28:
	ldr	x21, [x21, _D_DLY@GOTPAGEOFF]
Lloh29:
	adrp	x22, _pcd_buffer@GOTPAGE
Lloh30:
	ldr	x22, [x22, _pcd_buffer@GOTPAGEOFF]
Lloh31:
	adrp	x26, _PI_PCD@GOTPAGE
Lloh32:
	ldr	x26, [x26, _PI_PCD@GOTPAGEOFF]
Lloh33:
	ldr	x19, [x8]
Lloh34:
	adrp	x27, _verbose@GOTPAGE
Lloh35:
	ldr	x27, [x27, _verbose@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x19, #16]
	bl	_pi_release
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x23, x23, #1
	add	x19, x19, #24
	ldrsw	x8, [x20]
	cmp	x23, x8
	b.ge	LBB0_10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	ldr	x8, [x8, x23, lsl #3]
	ldr	x28, [x8]
	ldr	x8, [x25]
	ldr	w2, [x28, x8, lsl #2]
	cbz	w2, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh36:
	adrp	x8, _D_MOD@GOTPAGE
Lloh37:
	ldr	x8, [x8, _D_MOD@GOTPAGEOFF]
Lloh38:
	ldr	x8, [x8]
	ldr	w3, [x28, x8, lsl #2]
Lloh39:
	adrp	x8, _D_UNI@GOTPAGE
Lloh40:
	ldr	x8, [x8, _D_UNI@GOTPAGEOFF]
Lloh41:
	ldr	x8, [x8]
	ldr	w4, [x28, x8, lsl #2]
Lloh42:
	adrp	x8, _D_PRO@GOTPAGE
Lloh43:
	ldr	x8, [x8, _D_PRO@GOTPAGEOFF]
Lloh44:
	ldr	x8, [x8]
	ldr	w5, [x28, x8, lsl #2]
	ldr	x8, [x21]
	ldr	w6, [x28, x8, lsl #2]
	ldr	w7, [x22]
	ldr	w8, [x26]
	ldr	w9, [x27]
	ldp	w0, w10, [x19, #16]
	stp	w9, w10, [sp, #4]
	str	w8, [sp]
	mov	w1, #0
	bl	_pi_init
	cbz	x0, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh45:
	adrp	x8, _D_SLV@GOTPAGE
Lloh46:
	ldr	x8, [x8, _D_SLV@GOTPAGEOFF]
Lloh47:
	ldr	x8, [x8]
	ldr	w1, [x28, x8, lsl #2]
	add	x2, sp, #38
	mov	x0, x19
	bl	_pcd_probe
	cbnz	w0, LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w8, #1
	str	w8, [x19]
	ldr	w8, [sp, #32]                   ; 4-byte Folded Reload
	add	w8, w8, #1
	str	w8, [sp, #32]                   ; 4-byte Folded Spill
	b	LBB0_4
LBB0_10:
Lloh48:
	adrp	x21, _name@GOTPAGE
Lloh49:
	ldr	x21, [x21, _name@GOTPAGEOFF]
	ldr	w8, [sp, #32]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_15
; %bb.11:
	mov	w0, #0
	b	LBB0_19
LBB0_12:
Lloh50:
	adrp	x8, _pcd@GOTPAGE
Lloh51:
	ldr	x8, [x8, _pcd@GOTPAGEOFF]
Lloh52:
	ldr	x19, [x8]
Lloh53:
	adrp	x8, _pcd_buffer@GOTPAGE
Lloh54:
	ldr	x8, [x8, _pcd_buffer@GOTPAGEOFF]
Lloh55:
	ldr	w7, [x8]
Lloh56:
	adrp	x8, _PI_PCD@GOTPAGE
Lloh57:
	ldr	x8, [x8, _PI_PCD@GOTPAGEOFF]
Lloh58:
	ldr	w8, [x8]
Lloh59:
	adrp	x9, _verbose@GOTPAGE
Lloh60:
	ldr	x9, [x9, _verbose@GOTPAGEOFF]
Lloh61:
	ldr	w9, [x9]
	ldp	w0, w10, [x19, #16]
	stp	w9, w10, [sp, #4]
	str	w8, [sp]
	mov	w1, #1
	mov	w2, #-1
	mov	w3, #-1
	mov	w4, #-1
	mov	w5, #-1
	mov	w6, #-1
	bl	_pi_init
	cbz	x0, LBB0_15
; %bb.13:
	add	x2, sp, #38
	mov	x0, x19
	mov	w1, #-1
	bl	_pcd_probe
	cbz	w0, LBB0_21
LBB0_14:
	ldr	w0, [x19, #16]
	bl	_pi_release
LBB0_15:
	ldr	w1, [x21]
Lloh62:
	adrp	x0, l_.str.1@PAGE
Lloh63:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printk
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.16:
	mov	w19, #0
Lloh64:
	adrp	x8, _pcd@GOTPAGE
Lloh65:
	ldr	x8, [x8, _pcd@GOTPAGEOFF]
Lloh66:
	ldr	x8, [x8]
	add	x21, x8, #8
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21], #24
	bl	_put_disk
	add	w19, w19, #1
	ldr	w8, [x20]
	cmp	w19, w8
	b.lt	LBB0_17
LBB0_18:
	mov	w0, #-1
LBB0_19:
	ldr	x8, [sp, #56]
Lloh67:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh68:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh69:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.20:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_21:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_14
; %bb.22:
	mov	w0, #0
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_19
LBB0_23:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh12
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh11
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh33
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: %s version %s, major %d, nice %d\n"

	.comm	_name,4,2                       ; @name
	.comm	_PCD_VERSION,4,2                ; @PCD_VERSION
	.comm	_major,4,2                      ; @major
	.comm	_nice,4,2                       ; @nice
	.comm	_pcd_drive_count,8,3            ; @pcd_drive_count
	.comm	_pcd,8,3                        ; @pcd
	.comm	_pcd_buffer,4,2                 ; @pcd_buffer
	.comm	_PI_PCD,4,2                     ; @PI_PCD
	.comm	_verbose,4,2                    ; @verbose
	.comm	_PCD_UNITS,4,2                  ; @PCD_UNITS
	.comm	_drives,8,3                     ; @drives
	.comm	_D_PRT,8,3                      ; @D_PRT
	.comm	_D_MOD,8,3                      ; @D_MOD
	.comm	_D_UNI,8,3                      ; @D_UNI
	.comm	_D_PRO,8,3                      ; @D_PRO
	.comm	_D_DLY,8,3                      ; @D_DLY
	.comm	_D_SLV,8,3                      ; @D_SLV
l_.str.1:                               ; @.str.1
	.asciz	"%s: No CD-ROM drive found\n"

	.no_dead_strip	_pcd_detect
.subsections_via_symbols
