	.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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	(%rsi), %rax
	movq	_REQ_TYPE_SPECIAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.1:
	movq	16(%rsi), %rdx
	movq	(%r14), %rcx
	movq	$0, 8(%r14)
	movq	_ide_floppy@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rcx
	je	LBB0_3
## %bb.2:
	movq	_ide_tape@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rcx
	jne	LBB0_6
LBB0_3:
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.4:
	movl	$0, 8(%rsi)
	jmp	LBB0_11
LBB0_5:
	movq	(%r14), %rcx
	movq	$0, 8(%r14)
LBB0_6:
	movq	_ide_tape@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_8
## %bb.7:
	movq	_IDE_DRV_ERROR_GENERAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rsi)
	jmp	LBB0_11
LBB0_8:
	movq	_REQ_TYPE_FS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_11
## %bb.9:
	cmpl	$0, 8(%rsi)
	jne	LBB0_11
## %bb.10:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, 8(%rsi)
LBB0_11:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	%rsi, %rdi
	callq	_blk_rq_bytes
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ide_complete_rq                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_REQ_TYPE_SPECIAL,8,3           ## @REQ_TYPE_SPECIAL
	.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	_REQ_TYPE_FS,8,3                ## @REQ_TYPE_FS
	.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_kill_rq                    ; -- Begin function ide_kill_rq
	.p2align	2
_ide_kill_rq:                           ; @ide_kill_rq
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x9, [x1]
Lloh0:
	adrp	x8, _REQ_TYPE_SPECIAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REQ_TYPE_SPECIAL@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x8]
Lloh3:
	adrp	x8, _EIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	cmp	x9, x10
	b.ne	LBB0_3
; %bb.1:
	ldr	x11, [x1, #16]
	ldr	x10, [x19]
	str	xzr, [x19, #8]
Lloh5:
	adrp	x12, _ide_floppy@GOTPAGE
Lloh6:
	ldr	x12, [x12, _ide_floppy@GOTPAGEOFF]
Lloh7:
	ldr	x12, [x12]
	cmp	x10, x12
	b.ne	LBB0_4
; %bb.2:
	cbnz	x11, LBB0_11
	b	LBB0_5
LBB0_3:
	ldr	x10, [x19]
	str	xzr, [x19, #8]
	b	LBB0_5
LBB0_4:
Lloh8:
	adrp	x12, _ide_tape@GOTPAGE
Lloh9:
	ldr	x12, [x12, _ide_tape@GOTPAGEOFF]
Lloh10:
	ldr	x12, [x12]
	cmp	x10, x12
	ccmp	x11, #0, #4, eq
	b.ne	LBB0_11
LBB0_5:
Lloh11:
	adrp	x11, _ide_tape@GOTPAGE
Lloh12:
	ldr	x11, [x11, _ide_tape@GOTPAGEOFF]
Lloh13:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_8
; %bb.6:
Lloh14:
	adrp	x9, _IDE_DRV_ERROR_GENERAL@GOTPAGE
Lloh15:
	ldr	x9, [x9, _IDE_DRV_ERROR_GENERAL@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
LBB0_7:
	str	w9, [x1, #8]
	b	LBB0_12
LBB0_8:
Lloh17:
	adrp	x10, _REQ_TYPE_FS@GOTPAGE
Lloh18:
	ldr	x10, [x10, _REQ_TYPE_FS@GOTPAGEOFF]
Lloh19:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_12
; %bb.9:
	ldr	w9, [x1, #8]
	cbnz	w9, LBB0_12
; %bb.10:
	ldr	w9, [x8]
	neg	w9, w9
	b	LBB0_7
LBB0_11:
	str	wzr, [x1, #8]
LBB0_12:
	ldr	w8, [x8]
	neg	w20, w8
	mov	x0, x1
	bl	_blk_rq_bytes
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ide_complete_rq
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_REQ_TYPE_SPECIAL,8,3           ; @REQ_TYPE_SPECIAL
	.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	_REQ_TYPE_FS,8,3                ; @REQ_TYPE_FS
	.comm	_EIO,4,2                        ; @EIO
.subsections_via_symbols
