	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ide_kill_rq                    ## -- Begin function ide_kill_rq
	.p2align	4, 0x90
_ide_kill_rq:                           ## @ide_kill_rq
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_ata_misc_request
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	(%r15), %rcx
	movq	(%r14), %rax
	movq	$0, 8(%r14)
	movq	_ide_floppy@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_3
## %bb.2:
	movq	_ide_tape@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_6
LBB0_3:
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.4:
	movq	%r15, %rdi
	callq	_scsi_req
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_5:
	movq	(%r14), %rax
	movq	$0, 8(%r14)
LBB0_6:
	movq	_ide_tape@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	movq	_IDE_DRV_ERROR_GENERAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_11
LBB0_8:
	movq	%r15, %rdi
	callq	_blk_rq_is_passthrough
	testq	%rax, %rax
	je	LBB0_13
## %bb.9:
	movq	%r15, %rdi
	callq	_scsi_req
	cmpl	$0, (%rax)
	jne	LBB0_13
## %bb.10:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	movq	%r15, %rdi
	callq	_scsi_req
LBB0_12:
	movl	%ebx, (%rax)
LBB0_13:
	movq	_BLK_STS_IOERR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_blk_rq_bytes
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ide_complete_rq                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ide_floppy,8,3                 ## @ide_floppy
	.comm	_ide_tape,8,3                   ## @ide_tape
	.comm	_IDE_DRV_ERROR_GENERAL,4,2      ## @IDE_DRV_ERROR_GENERAL
	.comm	_EIO,4,2                        ## @EIO
	.comm	_BLK_STS_IOERR,4,2              ## @BLK_STS_IOERR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ide_kill_rq                    ; -- Begin function ide_kill_rq
	.p2align	2
_ide_kill_rq:                           ; @ide_kill_rq
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_ata_misc_request
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x9, [x20]
	ldr	x8, [x19]
	str	xzr, [x19, #8]
Lloh0:
	adrp	x10, _ide_floppy@GOTPAGE
Lloh1:
	ldr	x10, [x10, _ide_floppy@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x8, x10
	b.ne	LBB0_4
; %bb.2:
	cbnz	x9, LBB0_7
	b	LBB0_5
LBB0_3:
	ldr	x8, [x19]
	str	xzr, [x19, #8]
	b	LBB0_5
LBB0_4:
Lloh3:
	adrp	x10, _ide_tape@GOTPAGE
Lloh4:
	ldr	x10, [x10, _ide_tape@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x10
	ccmp	x9, #0, #4, eq
	b.ne	LBB0_7
LBB0_5:
Lloh6:
	adrp	x9, _ide_tape@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ide_tape@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.6:
Lloh9:
	adrp	x8, _IDE_DRV_ERROR_GENERAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IDE_DRV_ERROR_GENERAL@GOTPAGEOFF]
Lloh11:
	ldr	w21, [x8]
	b	LBB0_11
LBB0_7:
	mov	x0, x20
	bl	_scsi_req
	mov	w21, #0
	b	LBB0_12
LBB0_8:
	mov	x0, x20
	bl	_blk_rq_is_passthrough
	cbz	x0, LBB0_13
; %bb.9:
	mov	x0, x20
	bl	_scsi_req
	ldr	w8, [x0]
	cbnz	w8, LBB0_13
; %bb.10:
Lloh12:
	adrp	x8, _EIO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_11:
	mov	x0, x20
	bl	_scsi_req
LBB0_12:
	str	w21, [x0]
LBB0_13:
Lloh15:
	adrp	x8, _BLK_STS_IOERR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BLK_STS_IOERR@GOTPAGEOFF]
Lloh17:
	ldr	w21, [x8]
	mov	x0, x20
	bl	_blk_rq_bytes
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ide_complete_rq
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.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	_ide_floppy,8,3                 ; @ide_floppy
	.comm	_ide_tape,8,3                   ; @ide_tape
	.comm	_IDE_DRV_ERROR_GENERAL,4,2      ; @IDE_DRV_ERROR_GENERAL
	.comm	_EIO,4,2                        ; @EIO
	.comm	_BLK_STS_IOERR,4,2              ; @BLK_STS_IOERR
.subsections_via_symbols
