	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ide_queue_pc_tail              ## -- Begin function ide_queue_pc_tail
	.p2align	4, 0x90
_ide_queue_pc_tail:                     ## @ide_queue_pc_tail
	.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
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movq	%rcx, %r12
	movq	%rdx, %r15
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movl	8(%rdi), %edi
	movq	_REQ_OP_DRV_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_blk_get_request
	movq	%rax, %r13
	movq	_ATA_PRIV_MISC@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r13, %rdi
	callq	_ide_req
	movl	%ebx, 8(%rax)
	movq	%r13, %rdi
	callq	_ide_req
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	%r15, (%rax)
	testq	%r12, %r12
	je	LBB0_3
## %bb.1:
	testl	%ecx, %ecx
	je	LBB0_3
## %bb.2:
	movl	8(%r14), %edi
	movq	_GFP_NOIO@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_blk_rq_map_kern
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
LBB0_3:
	movq	%r13, %rdi
	callq	_scsi_req
	movq	8(%rax), %rdi
	movl	(%r15), %esi
	movl	$12, %edx
	callq	_memcpy
	movq	(%r14), %rax
	movq	_ide_tape@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	_REQ_IDETAPE_PC1@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r13, %rdi
	callq	_scsi_req
	movq	8(%rax), %rax
	movl	%ebx, 52(%rax)
LBB0_5:
	movl	8(%r14), %edi
	xorl	%r14d, %r14d
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	xorl	%ecx, %ecx
	callq	_blk_execute_rq
	movq	%r13, %rdi
	callq	_scsi_req
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	subl	(%rcx), %ebx
	cmpq	$0, (%rax)
	cmovel	%r14d, %ebx
LBB0_6:
	movq	%r13, %rdi
	callq	_blk_put_request
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REQ_OP_DRV_IN,4,2              ## @REQ_OP_DRV_IN
	.comm	_ATA_PRIV_MISC,4,2              ## @ATA_PRIV_MISC
	.comm	_GFP_NOIO,4,2                   ## @GFP_NOIO
	.comm	_ide_tape,8,3                   ## @ide_tape
	.comm	_REQ_IDETAPE_PC1,4,2            ## @REQ_IDETAPE_PC1
	.comm	_EIO,4,2                        ## @EIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ide_queue_pc_tail              ; -- Begin function ide_queue_pc_tail
	.p2align	2
_ide_queue_pc_tail:                     ; @ide_queue_pc_tail
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x23, x4
	mov	x24, x3
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w0, [x0, #8]
Lloh0:
	adrp	x8, _REQ_OP_DRV_IN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REQ_OP_DRV_IN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_blk_get_request
	mov	x19, x0
Lloh3:
	adrp	x8, _ATA_PRIV_MISC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ATA_PRIV_MISC@GOTPAGEOFF]
Lloh5:
	ldr	w25, [x8]
	bl	_ide_req
	str	w25, [x0, #8]
	mov	x0, x19
	bl	_ide_req
	str	x22, [x0]
	cbz	x24, LBB0_3
; %bb.1:
	cbz	w23, LBB0_3
; %bb.2:
	ldr	w0, [x21, #8]
Lloh6:
	adrp	x8, _GFP_NOIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_NOIO@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
	mov	x1, x19
	mov	x2, x24
	mov	x3, x23
	bl	_blk_rq_map_kern
	mov	x23, x0
	cbnz	w0, LBB0_6
LBB0_3:
	mov	x0, x19
	bl	_scsi_req
	ldr	x0, [x0, #8]
	ldr	w1, [x22]
	mov	w2, #12
	bl	_memcpy
	ldr	x8, [x21]
Lloh9:
	adrp	x9, _ide_tape@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ide_tape@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
Lloh12:
	adrp	x8, _REQ_IDETAPE_PC1@GOTPAGE
Lloh13:
	ldr	x8, [x8, _REQ_IDETAPE_PC1@GOTPAGEOFF]
Lloh14:
	ldr	w22, [x8]
	mov	x0, x19
	bl	_scsi_req
	ldr	x8, [x0, #8]
	str	w22, [x8, #52]
LBB0_5:
	ldr	w0, [x21, #8]
	mov	x1, x20
	mov	x2, x19
	mov	w3, #0
	bl	_blk_execute_rq
	mov	x0, x19
	bl	_scsi_req
	ldr	x8, [x0]
Lloh15:
	adrp	x9, _EIO@GOTPAGE
Lloh16:
	ldr	x9, [x9, _EIO@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	cmp	x8, #0
	csneg	w23, wzr, w9, eq
LBB0_6:
	mov	x0, x19
	bl	_blk_put_request
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_REQ_OP_DRV_IN,4,2              ; @REQ_OP_DRV_IN
	.comm	_ATA_PRIV_MISC,4,2              ; @ATA_PRIV_MISC
	.comm	_GFP_NOIO,4,2                   ; @GFP_NOIO
	.comm	_ide_tape,8,3                   ; @ide_tape
	.comm	_REQ_IDETAPE_PC1,4,2            ; @REQ_IDETAPE_PC1
	.comm	_EIO,4,2                        ; @EIO
.subsections_via_symbols
