	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcd_probe_capabilities
_pcd_probe_capabilities:                ## @pcd_probe_capabilities
	.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)
	movabsq	$1297036692685457498, %rax      ## imm = 0x12000000002A085A
	movq	%rax, -96(%rbp)
	movl	$0, -88(%rbp)
	movq	_PCD_UNITS@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	jle	LBB0_17
## %bb.1:
	movq	_pcd@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	xorl	%r14d, %r14d
	leaq	-96(%rbp), %r15
	leaq	-80(%rbp), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	%r14d
	addq	$8, %rbx
	cmpl	(%r13), %r14d
	jge	LBB0_17
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, 4(%rbx)
	je	LBB0_16
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$18, %edx
	movq	%r12, %rcx
	leaq	L_.str(%rip), %r8
	callq	_pcd_atapi
	testl	%eax, %eax
	jne	LBB0_16
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movzbl	-69(%rbp), %eax
	testb	$1, %al
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	testb	$2, %al
	je	LBB0_7
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	testb	$1, -68(%rbp)
	jne	LBB0_10
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_CDC_PLAY_AUDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movzbl	-66(%rbp), %eax
	testb	$1, %al
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	testb	$8, %al
	je	LBB0_13
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$63, %al
	ja	LBB0_16
	jmp	LBB0_15
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_CDC_CD_R@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
	movzbl	-69(%rbp), %eax
	testb	$2, %al
	jne	LBB0_8
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_CDC_CD_RW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
	testb	$1, -68(%rbp)
	je	LBB0_9
	jmp	LBB0_10
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_CDC_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
	movzbl	-66(%rbp), %eax
	testb	$8, %al
	jne	LBB0_14
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_CDC_OPEN_TRAY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
	movzbl	-66(%rbp), %eax
	cmpb	$63, %al
	ja	LBB0_16
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_CDC_CLOSE_TRAY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
	jmp	LBB0_16
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_19
## %bb.18:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
l___const.pcd_probe_capabilities.cmd:   ## @__const.pcd_probe_capabilities.cmd
	.asciz	"Z\b*\000\000\000\000\022\000\000\000"

	.comm	_pcd,8,3                        ## @pcd
	.comm	_PCD_UNITS,4,2                  ## @PCD_UNITS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mode sense capabilities"

	.comm	_CDC_CD_R,4,2                   ## @CDC_CD_R
	.comm	_CDC_CD_RW,4,2                  ## @CDC_CD_RW
	.comm	_CDC_PLAY_AUDIO,4,2             ## @CDC_PLAY_AUDIO
	.comm	_CDC_LOCK,4,2                   ## @CDC_LOCK
	.comm	_CDC_OPEN_TRAY,4,2              ## @CDC_OPEN_TRAY
	.comm	_CDC_CLOSE_TRAY,4,2             ## @CDC_CLOSE_TRAY
	.no_dead_strip	_pcd_probe_capabilities
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcd_probe_capabilities
_pcd_probe_capabilities:                ; @pcd_probe_capabilities
	.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	x8, l___const.pcd_probe_capabilities.cmd@PAGE
Lloh4:
	add	x8, x8, l___const.pcd_probe_capabilities.cmd@PAGEOFF
Lloh5:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	str	wzr, [sp, #16]
Lloh6:
	adrp	x21, _PCD_UNITS@GOTPAGE
Lloh7:
	ldr	x21, [x21, _PCD_UNITS@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.1:
	mov	w22, #0
Lloh8:
	adrp	x8, _pcd@GOTPAGE
Lloh9:
	ldr	x8, [x8, _pcd@GOTPAGEOFF]
Lloh10:
	ldr	x19, [x8]
Lloh11:
	adrp	x20, l_.str@PAGE
Lloh12:
	add	x20, x20, l_.str@PAGEOFF
Lloh13:
	adrp	x23, _CDC_CD_R@GOTPAGE
Lloh14:
	ldr	x23, [x23, _CDC_CD_R@GOTPAGEOFF]
Lloh15:
	adrp	x24, _CDC_CD_RW@GOTPAGE
Lloh16:
	ldr	x24, [x24, _CDC_CD_RW@GOTPAGEOFF]
Lloh17:
	adrp	x25, _CDC_PLAY_AUDIO@GOTPAGE
Lloh18:
	ldr	x25, [x25, _CDC_PLAY_AUDIO@GOTPAGEOFF]
Lloh19:
	adrp	x26, _CDC_LOCK@GOTPAGE
Lloh20:
	ldr	x26, [x26, _CDC_LOCK@GOTPAGEOFF]
Lloh21:
	adrp	x27, _CDC_OPEN_TRAY@GOTPAGE
Lloh22:
	ldr	x27, [x27, _CDC_OPEN_TRAY@GOTPAGEOFF]
Lloh23:
	adrp	x28, _CDC_CLOSE_TRAY@GOTPAGE
Lloh24:
	ldr	x28, [x28, _CDC_CLOSE_TRAY@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w22, w22, #1
	add	x19, x19, #8
	ldr	w8, [x21]
	cmp	w22, w8
	b.ge	LBB0_17
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x1, sp, #8
	add	x3, sp, #24
	mov	x0, x19
	mov	w2, #18
	mov	x4, x20
	bl	_pcd_atapi
	cbnz	w0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w8, [sp, #35]
	tbz	w8, #0, LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	tbz	w8, #1, LBB0_12
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w8, [sp, #36]
	tbz	w8, #0, LBB0_13
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w8, [sp, #38]
	tbz	w8, #0, LBB0_14
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	tbz	w8, #3, LBB0_15
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w8, #63
	b.hi	LBB0_2
	b	LBB0_16
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x23]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	ldrb	w8, [sp, #35]
	tbnz	w8, #1, LBB0_7
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x24]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	ldrb	w8, [sp, #36]
	tbnz	w8, #0, LBB0_8
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x25]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	ldrb	w8, [sp, #38]
	tbnz	w8, #0, LBB0_9
LBB0_14:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x26]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	ldrb	w8, [sp, #38]
	tbnz	w8, #3, LBB0_10
LBB0_15:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x27]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	ldrb	w8, [sp, #38]
	cmp	w8, #63
	b.hi	LBB0_2
LBB0_16:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x28]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	b	LBB0_2
LBB0_17:
	ldr	x8, [sp, #56]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	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_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAddLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
l___const.pcd_probe_capabilities.cmd:   ; @__const.pcd_probe_capabilities.cmd
	.asciz	"Z\b*\000\000\000\000\022\000\000\000"

	.comm	_pcd,8,3                        ; @pcd
	.comm	_PCD_UNITS,4,2                  ; @PCD_UNITS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mode sense capabilities"

	.comm	_CDC_CD_R,4,2                   ; @CDC_CD_R
	.comm	_CDC_CD_RW,4,2                  ; @CDC_CD_RW
	.comm	_CDC_PLAY_AUDIO,4,2             ; @CDC_PLAY_AUDIO
	.comm	_CDC_LOCK,4,2                   ; @CDC_LOCK
	.comm	_CDC_OPEN_TRAY,4,2              ; @CDC_OPEN_TRAY
	.comm	_CDC_CLOSE_TRAY,4,2             ; @CDC_CLOSE_TRAY
	.no_dead_strip	_pcd_probe_capabilities
.subsections_via_symbols
