	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2o_scsi_abort
_i2o_scsi_abort:                        ## @i2o_scsi_abort
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	L_.str(%rip), %rdi
	callq	_osm_warn
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	8(%rax), %r12
	movl	(%rax), %r13d
	movq	_I2O_TIMEOUT_MESSAGE_GET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_i2o_msg_get_wait
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_SCSI_MLQUEUE_HOST_BUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_FIVE_WORD_MSG_SIZE@GOTPCREL(%rip), %rax
	movq	_SGL_OFFSET_0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	callq	_cpu_to_le32
	movq	8(%rbx), %rcx
	movq	%rax, (%rcx)
	movq	_I2O_CMD_SCSI_ABORT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$24, %eax
	orl	%r13d, %eax
	movq	_HOST_TID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	shll	$12, %edi
	orl	%eax, %edi
	callq	_cpu_to_le32
	movq	8(%rbx), %rcx
	movq	%rax, 8(%rcx)
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_i2o_cntxt_list_get_ptr
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	(%rbx), %rcx
	movq	%rax, (%rcx)
	movq	_I2O_TIMEOUT_SCSI_SCB_ABORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_i2o_msg_post_wait
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movq	_SUCCESS@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %r14d
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FAILED,4,2                     ## @FAILED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Aborting command block.\n"

	.comm	_I2O_TIMEOUT_MESSAGE_GET,4,2    ## @I2O_TIMEOUT_MESSAGE_GET
	.comm	_SCSI_MLQUEUE_HOST_BUSY,4,2     ## @SCSI_MLQUEUE_HOST_BUSY
	.comm	_FIVE_WORD_MSG_SIZE,4,2         ## @FIVE_WORD_MSG_SIZE
	.comm	_SGL_OFFSET_0,4,2               ## @SGL_OFFSET_0
	.comm	_I2O_CMD_SCSI_ABORT,4,2         ## @I2O_CMD_SCSI_ABORT
	.comm	_HOST_TID,4,2                   ## @HOST_TID
	.comm	_I2O_TIMEOUT_SCSI_SCB_ABORT,4,2 ## @I2O_TIMEOUT_SCSI_SCB_ABORT
	.comm	_SUCCESS,4,2                    ## @SUCCESS
	.no_dead_strip	_i2o_scsi_abort
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2o_scsi_abort
_i2o_scsi_abort:                        ; @i2o_scsi_abort
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x0
Lloh0:
	adrp	x8, _FAILED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FAILED@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_osm_warn
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	x19, [x8, #8]
	ldr	w23, [x8]
Lloh5:
	adrp	x8, _I2O_TIMEOUT_MESSAGE_GET@GOTPAGE
Lloh6:
	ldr	x8, [x8, _I2O_TIMEOUT_MESSAGE_GET@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_i2o_msg_get_wait
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _SCSI_MLQUEUE_HOST_BUSY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SCSI_MLQUEUE_HOST_BUSY@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	b	LBB0_3
LBB0_2:
Lloh11:
	adrp	x8, _FIVE_WORD_MSG_SIZE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FIVE_WORD_MSG_SIZE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _SGL_OFFSET_0@GOTPAGE
Lloh15:
	ldr	x9, [x9, _SGL_OFFSET_0@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w0, w9, w8
	bl	_cpu_to_le32
	ldr	x8, [x21, #8]
	str	x0, [x8]
Lloh17:
	adrp	x8, _I2O_CMD_SCSI_ABORT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _I2O_CMD_SCSI_ABORT@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _HOST_TID@GOTPAGE
Lloh21:
	ldr	x9, [x9, _HOST_TID@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w23, w8, lsl #24
	orr	w0, w8, w9, lsl #12
	bl	_cpu_to_le32
	ldr	x8, [x21, #8]
	str	x0, [x8, #8]
	mov	x0, x19
	mov	x1, x20
	bl	_i2o_cntxt_list_get_ptr
	bl	_cpu_to_le32
	ldr	x8, [x21]
	str	x0, [x8]
Lloh23:
	adrp	x8, _I2O_TIMEOUT_SCSI_SCB_ABORT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _I2O_TIMEOUT_SCSI_SCB_ABORT@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x21
	bl	_i2o_msg_post_wait
Lloh26:
	adrp	x8, _SUCCESS@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SUCCESS@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	cmp	w0, #0
	csel	w0, w8, w22, eq
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_FAILED,4,2                     ; @FAILED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Aborting command block.\n"

	.comm	_I2O_TIMEOUT_MESSAGE_GET,4,2    ; @I2O_TIMEOUT_MESSAGE_GET
	.comm	_SCSI_MLQUEUE_HOST_BUSY,4,2     ; @SCSI_MLQUEUE_HOST_BUSY
	.comm	_FIVE_WORD_MSG_SIZE,4,2         ; @FIVE_WORD_MSG_SIZE
	.comm	_SGL_OFFSET_0,4,2               ; @SGL_OFFSET_0
	.comm	_I2O_CMD_SCSI_ABORT,4,2         ; @I2O_CMD_SCSI_ABORT
	.comm	_HOST_TID,4,2                   ; @HOST_TID
	.comm	_I2O_TIMEOUT_SCSI_SCB_ABORT,4,2 ; @I2O_TIMEOUT_SCSI_SCB_ABORT
	.comm	_SUCCESS,4,2                    ; @SUCCESS
	.no_dead_strip	_i2o_scsi_abort
.subsections_via_symbols
