	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ide_cd_queue_pc                ## -- Begin function ide_cd_queue_pc
	.p2align	4, 0x90
_ide_cd_queue_pc:                       ## @ide_cd_queue_pc
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movl	%edx, %ecx
	movq	%rdi, %r13
	movl	24(%rbp), %r9d
	movl	16(%rbp), %r8d
	movq	8(%rdi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_IDE_DBG_PC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movzbl	(%rsi), %edx
	leaq	L_.str(%rip), %rsi
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	callq	_ide_debug_log
	testq	%r14, %r14
	leaq	-104(%rbp), %rax
	cmovneq	%r14, %rax
	movq	%rax, %r14
	movl	$10, %r15d
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	_REQ_OP_DRV_OUT@GOTPCREL(%rip), %rax
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_REQ_OP_DRV_IN@GOTPCREL(%rip), %rax
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r13), %edi
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_blk_get_request
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_scsi_req
	movl	24(%rax), %edi
	movq	_BLK_MAX_CDB@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_memcpy
	movq	_ATA_PRIV_PC@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r12, %rdi
	callq	_ide_req
	movl	%ebx, (%rax)
	movl	24(%rbp), %eax
	orl	%eax, (%r12)
	movl	16(%rbp), %eax
	movl	%eax, 4(%r12)
	movl	(%r13), %edi
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %ecx
	movq	_GFP_NOIO@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r12, %rsi
	callq	_blk_rq_map_kern
	testl	%eax, %eax
	jne	LBB0_15
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r13), %edi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	callq	_blk_execute_rq
	movq	%r12, %rdi
	callq	_scsi_req
	movq	%r12, %rdi
	callq	_scsi_req
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	callq	_blk_execute_rq
	movq	%r12, %rdi
	callq	_scsi_req
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	callq	_scsi_req
	movl	8(%rax), %ebx
	movq	%r12, %rdi
	callq	_scsi_req
	movl	4(%rax), %esi
	movl	%ebx, %edi
	movq	%r14, %rdx
	callq	_scsi_normalize_sense
	movq	_RQF_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	(%r12), %ebx
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r14), %rax
	movq	_UNIT_ATTENTION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	callq	_cdrom_saw_media_change
	movl	%r15d, %r14d
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	xorl	%r14d, %r14d
	movq	_NOT_READY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpl	$4, 8(%rax)
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$4, 12(%rax)
	jne	LBB0_16
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	callq	_blk_put_request
	movl	%r14d, %r15d
LBB0_17:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	leal	-1(%r15), %eax
	testl	%r15d, %r15d
	movl	%eax, %r15d
	jg	LBB0_1
	jmp	LBB0_18
LBB0_16:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	callq	_blk_put_request
	movl	$2, %edi
	callq	_ssleep
	jmp	LBB0_17
LBB0_8:
	movq	%r12, %rdi
	callq	_blk_put_request
LBB0_18:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	testl	%ebx, %ebx
	cmovel	%ebx, %r14d
	jmp	LBB0_19
LBB0_15:
	movl	%eax, %r14d
	movq	%r12, %rdi
	callq	_blk_put_request
LBB0_19:
	movl	%r14d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IDE_DBG_PC,4,2                 ## @IDE_DBG_PC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cmd[0]: 0x%x, write: 0x%x, timeout: %d, rq_flags: 0x%x"

	.comm	_REQ_OP_DRV_OUT,4,2             ## @REQ_OP_DRV_OUT
	.comm	_REQ_OP_DRV_IN,4,2              ## @REQ_OP_DRV_IN
	.comm	_BLK_MAX_CDB,4,2                ## @BLK_MAX_CDB
	.comm	_ATA_PRIV_PC,4,2                ## @ATA_PRIV_PC
	.comm	_GFP_NOIO,4,2                   ## @GFP_NOIO
	.comm	_EIO,4,2                        ## @EIO
	.comm	_RQF_FAILED,4,2                 ## @RQF_FAILED
	.comm	_UNIT_ATTENTION,8,3             ## @UNIT_ATTENTION
	.comm	_NOT_READY,8,3                  ## @NOT_READY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ide_cd_queue_pc                ; -- Begin function ide_cd_queue_pc
	.p2align	2
_ide_cd_queue_pc:                       ; @ide_cd_queue_pc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x26, x5
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	x25, x0
	ldr	x8, [x0, #8]
	str	x8, [sp]                        ; 8-byte Folded Spill
Lloh0:
	adrp	x8, _IDE_DBG_PC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IDE_DBG_PC@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldrb	w2, [x1]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x23
	str	w6, [sp, #12]                   ; 4-byte Folded Spill
	mov	x4, x6
	mov	x20, x7
	mov	x5, x7
	bl	_ide_debug_log
	add	x8, sp, #16
	cmp	x26, #0
	csel	x26, x8, x26, eq
	mov	w19, #10
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x25]
	cmp	w23, #0
Lloh5:
	adrp	x8, _REQ_OP_DRV_OUT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _REQ_OP_DRV_OUT@GOTPAGEOFF]
Lloh7:
	adrp	x9, _REQ_OP_DRV_IN@GOTPAGE
Lloh8:
	ldr	x9, [x9, _REQ_OP_DRV_IN@GOTPAGEOFF]
	csel	x8, x9, x8, eq
	ldr	w1, [x8]
	mov	w2, #0
	bl	_blk_get_request
	mov	x27, x0
	bl	_scsi_req
	ldr	w0, [x0, #24]
Lloh9:
	adrp	x8, _BLK_MAX_CDB@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BLK_MAX_CDB@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x1, x24
	bl	_memcpy
Lloh12:
	adrp	x8, _ATA_PRIV_PC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ATA_PRIV_PC@GOTPAGEOFF]
Lloh14:
	ldr	w28, [x8]
	mov	x0, x27
	bl	_ide_req
	str	w28, [x0]
	ldr	w8, [x27]
	orr	w8, w8, w20
	str	w8, [x27]
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	str	w8, [x27, #4]
	ldr	w0, [x25]
	cbz	x22, LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w3, [x21]
Lloh15:
	adrp	x8, _GFP_NOIO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GFP_NOIO@GOTPAGEOFF]
Lloh17:
	ldr	w4, [x8]
	mov	x1, x27
	mov	x2, x22
	bl	_blk_rq_map_kern
	cbnz	w0, LBB0_17
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x25]
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	ldr	w1, [x8]
	mov	x2, x27
	mov	w3, #0
	bl	_blk_execute_rq
	mov	x0, x27
	bl	_scsi_req
	mov	x0, x27
	bl	_scsi_req
	ldr	w8, [x0]
	str	w8, [x21]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	ldr	w1, [x8]
	mov	x2, x27
	mov	w3, #0
	bl	_blk_execute_rq
	mov	x0, x27
	bl	_scsi_req
LBB0_5:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x27
	bl	_scsi_req
	ldr	w28, [x0, #8]
	mov	x0, x27
	bl	_scsi_req
	ldr	w1, [x0, #4]
	mov	x0, x28
	mov	x2, x26
	bl	_scsi_normalize_sense
	ldr	w8, [x27]
Lloh18:
	adrp	x9, _RQF_FAILED@GOTPAGE
Lloh19:
	ldr	x9, [x9, _RQF_FAILED@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	ands	w28, w9, w8
	b.eq	LBB0_15
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x26]
Lloh21:
	adrp	x9, _UNIT_ATTENTION@GOTPAGE
Lloh22:
	ldr	x9, [x9, _UNIT_ATTENTION@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x25
	bl	_cdrom_saw_media_change
	b	LBB0_12
LBB0_8:                                 ;   in Loop: Header=BB0_1 Depth=1
Lloh24:
	adrp	x9, _NOT_READY@GOTPAGE
Lloh25:
	ldr	x9, [x9, _NOT_READY@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x26, #8]
	cmp	w8, #4
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x26, #12]
	cmp	w8, #4
	b.ne	LBB0_14
LBB0_11:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w19, #0
LBB0_12:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x27
	bl	_blk_put_request
LBB0_13:                                ;   in Loop: Header=BB0_1 Depth=1
	sub	w8, w19, #1
	cmp	w19, #0
	mov	x19, x8
	b.gt	LBB0_1
	b	LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x27
	bl	_blk_put_request
	mov	w0, #2
	bl	_ssleep
	b	LBB0_13
LBB0_15:
	mov	x0, x27
	bl	_blk_put_request
LBB0_16:
Lloh27:
	adrp	x8, _EIO@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	cmp	w28, #0
	csneg	w28, wzr, w8, eq
	b	LBB0_18
LBB0_17:
	mov	x28, x0
	mov	x0, x27
	bl	_blk_put_request
LBB0_18:
	mov	x0, x28
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_IDE_DBG_PC,4,2                 ; @IDE_DBG_PC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cmd[0]: 0x%x, write: 0x%x, timeout: %d, rq_flags: 0x%x"

	.comm	_REQ_OP_DRV_OUT,4,2             ; @REQ_OP_DRV_OUT
	.comm	_REQ_OP_DRV_IN,4,2              ; @REQ_OP_DRV_IN
	.comm	_BLK_MAX_CDB,4,2                ; @BLK_MAX_CDB
	.comm	_ATA_PRIV_PC,4,2                ; @ATA_PRIV_PC
	.comm	_GFP_NOIO,4,2                   ; @GFP_NOIO
	.comm	_EIO,4,2                        ; @EIO
	.comm	_RQF_FAILED,4,2                 ; @RQF_FAILED
	.comm	_UNIT_ATTENTION,8,3             ; @UNIT_ATTENTION
	.comm	_NOT_READY,8,3                  ; @NOT_READY
.subsections_via_symbols
