	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i2o_status_get                 ## -- Begin function i2o_status_get
	.p2align	4, 0x90
_i2o_status_get:                        ## @i2o_status_get
	.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, %r12
	movq	16(%rdi), %r15
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	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_1
## %bb.8:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_NINE_WORD_MSG_SIZE@GOTPCREL(%rip), %rax
	movq	_SGL_OFFSET_0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	callq	_cpu_to_le32
	movq	24(%rbx), %rcx
	movq	%rax, (%rcx)
	movq	_I2O_CMD_STATUS_GET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$24, %eax
	movq	_HOST_TID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	shll	$12, %edi
	orl	%eax, %edi
	movq	_ADAPTER_TID@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	callq	_cpu_to_le32
	movq	24(%rbx), %rcx
	movq	%rax, 8(%rcx)
	movq	_i2o_exec_driver@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	%rax, 16(%rbx)
	xorl	%edi, %edi
	callq	_cpu_to_le32
	movq	%rax, 8(%rbx)
	xorl	%edi, %edi
	callq	_cpu_to_le32
	movq	(%rbx), %rcx
	movq	%rax, (%rcx)
	xorl	%edi, %edi
	callq	_cpu_to_le32
	movq	(%rbx), %rcx
	movq	%rax, 8(%rcx)
	movl	8(%r12), %edi
	callq	_i2o_dma_low
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	(%rbx), %rcx
	movq	%rax, 16(%rcx)
	movl	8(%r12), %edi
	callq	_i2o_dma_high
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	(%rbx), %rcx
	movq	%rax, 24(%rcx)
	movl	$4, %edi
	callq	_cpu_to_le32
	movq	(%rbx), %rcx
	movq	%rax, 32(%rcx)
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_i2o_msg_post
	movq	_jiffies@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	movq	_I2O_TIMEOUT_STATUS_GET@GOTPCREL(%rip), %rax
	movq	_HZ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	imulq	(%rax), %rbx
	movl	348(%r15), %eax
	cmpl	$255, %eax
	je	LBB0_5
## %bb.2:
	addq	%rdi, %rbx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rsi
	callq	_time_after
	testq	%rax, %rax
	jne	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, %edi
	callq	_schedule_timeout_uninterruptible
	movl	348(%r15), %eax
	cmpl	$255, %eax
	je	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r13), %rdi
	jmp	LBB0_3
LBB0_4:
	movl	(%r12), %esi
	leaq	L_.str(%rip), %rdi
	callq	_osm_err
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%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	_I2O_TIMEOUT_MESSAGE_GET,4,2    ## @I2O_TIMEOUT_MESSAGE_GET
	.comm	_NINE_WORD_MSG_SIZE,4,2         ## @NINE_WORD_MSG_SIZE
	.comm	_SGL_OFFSET_0,4,2               ## @SGL_OFFSET_0
	.comm	_I2O_CMD_STATUS_GET,4,2         ## @I2O_CMD_STATUS_GET
	.comm	_HOST_TID,4,2                   ## @HOST_TID
	.comm	_ADAPTER_TID,4,2                ## @ADAPTER_TID
	.comm	_i2o_exec_driver,4,2            ## @i2o_exec_driver
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_I2O_TIMEOUT_STATUS_GET,8,3     ## @I2O_TIMEOUT_STATUS_GET
	.comm	_HZ,8,3                         ## @HZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Get status timeout.\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i2o_status_get                 ; -- Begin function i2o_status_get
	.p2align	2
_i2o_status_get:                        ; @i2o_status_get
	.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	x19, x0
	ldr	x20, [x0, #16]
	mov	x0, x20
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh0:
	adrp	x8, _I2O_TIMEOUT_MESSAGE_GET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2O_TIMEOUT_MESSAGE_GET@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_i2o_msg_get_wait
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, 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	_PTR_ERR
LBB0_2:
Lloh3:
	adrp	x8, _NINE_WORD_MSG_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NINE_WORD_MSG_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _SGL_OFFSET_0@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SGL_OFFSET_0@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w0, w9, w8
	bl	_cpu_to_le32
	ldr	x8, [x21, #24]
	str	x0, [x8]
Lloh9:
	adrp	x8, _I2O_CMD_STATUS_GET@GOTPAGE
Lloh10:
	ldr	x8, [x8, _I2O_CMD_STATUS_GET@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _HOST_TID@GOTPAGE
Lloh13:
	ldr	x9, [x9, _HOST_TID@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	lsl	w9, w9, #12
	orr	w8, w9, w8, lsl #24
Lloh15:
	adrp	x9, _ADAPTER_TID@GOTPAGE
Lloh16:
	ldr	x9, [x9, _ADAPTER_TID@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w0, w8, w9
	bl	_cpu_to_le32
	ldr	x8, [x21, #24]
	str	x0, [x8, #8]
Lloh18:
	adrp	x8, _i2o_exec_driver@GOTPAGE
Lloh19:
	ldr	x8, [x8, _i2o_exec_driver@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	str	x0, [x21, #16]
	mov	w0, #0
	bl	_cpu_to_le32
	str	x0, [x21, #8]
	mov	w0, #0
	bl	_cpu_to_le32
	ldr	x8, [x21]
	str	x0, [x8]
	mov	w0, #0
	bl	_cpu_to_le32
	ldr	x8, [x21]
	str	x0, [x8, #8]
	ldr	w0, [x19, #8]
	bl	_i2o_dma_low
	bl	_cpu_to_le32
	ldr	x8, [x21]
	str	x0, [x8, #16]
	ldr	w0, [x19, #8]
	bl	_i2o_dma_high
	bl	_cpu_to_le32
	ldr	x8, [x21]
	str	x0, [x8, #24]
	mov	w0, #4
	bl	_cpu_to_le32
	ldr	x8, [x21]
	str	x0, [x8, #32]
	mov	x0, x19
	mov	x1, x21
	bl	_i2o_msg_post
	mov	w0, #0
Lloh21:
	adrp	x22, _jiffies@GOTPAGE
Lloh22:
	ldr	x22, [x22, _jiffies@GOTPAGEOFF]
	ldr	x8, [x22]
Lloh23:
	adrp	x9, _I2O_TIMEOUT_STATUS_GET@GOTPAGE
Lloh24:
	ldr	x9, [x9, _I2O_TIMEOUT_STATUS_GET@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
Lloh26:
	adrp	x10, _HZ@GOTPAGE
Lloh27:
	ldr	x10, [x10, _HZ@GOTPAGEOFF]
Lloh28:
	ldr	x10, [x10]
	ldr	w11, [x20, #348]
	cmp	w11, #255
	b.eq	LBB0_9
; %bb.3:
	madd	x21, x10, x9, x8
	mov	x0, x8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x1, x21
	bl	_time_after
	cbnz	x0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #1
	bl	_schedule_timeout_uninterruptible
	ldr	w8, [x20, #348]
	cmp	w8, #255
	b.eq	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x22]
	b	LBB0_4
LBB0_7:
	ldr	w1, [x19]
Lloh29:
	adrp	x0, l_.str@PAGE
Lloh30:
	add	x0, x0, l_.str@PAGEOFF
	bl	_osm_err
Lloh31:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_8:
	mov	w0, #0
LBB0_9:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_I2O_TIMEOUT_MESSAGE_GET,4,2    ; @I2O_TIMEOUT_MESSAGE_GET
	.comm	_NINE_WORD_MSG_SIZE,4,2         ; @NINE_WORD_MSG_SIZE
	.comm	_SGL_OFFSET_0,4,2               ; @SGL_OFFSET_0
	.comm	_I2O_CMD_STATUS_GET,4,2         ; @I2O_CMD_STATUS_GET
	.comm	_HOST_TID,4,2                   ; @HOST_TID
	.comm	_ADAPTER_TID,4,2                ; @ADAPTER_TID
	.comm	_i2o_exec_driver,4,2            ; @i2o_exec_driver
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_I2O_TIMEOUT_STATUS_GET,8,3     ; @I2O_TIMEOUT_STATUS_GET
	.comm	_HZ,8,3                         ; @HZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Get status timeout.\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
.subsections_via_symbols
