	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2o_iop_init_outbound_queue
_i2o_iop_init_outbound_queue:           ## @i2o_iop_init_outbound_queue
	.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	8(%rdi), %r14
	movl	4(%rdi), %esi
	leaq	L_.str(%rip), %rdi
	callq	_osm_debug
	movq	8(%r15), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_I2O_TIMEOUT_MESSAGE_GET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2o_msg_get_wait
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.12:
	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	_EIGHT_WORD_MSG_SIZE@GOTPCREL(%rip), %rax
	movq	_SGL_OFFSET_6@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	callq	_cpu_to_le32
	movq	24(%rbx), %rcx
	movq	%rax, (%rcx)
	movq	_I2O_CMD_OUTBOUND_INIT@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)
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	(%rbx), %rcx
	movq	%rax, (%rcx)
	movq	_I2O_OUTBOUND_MSG_FRAME_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	shll	$16, %edi
	orl	$128, %edi
	callq	_cpu_to_le32
	movq	(%rbx), %rcx
	movq	%rax, 8(%rcx)
	movl	$-805306364, %edi               ## imm = 0xD0000004
	callq	_cpu_to_le32
	movq	(%rbx), %rcx
	movq	%rax, 16(%rcx)
	movl	16(%r15), %edi
	callq	_i2o_dma_low
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	(%rbx), %rcx
	movq	%rax, 24(%rcx)
	movl	16(%r15), %edi
	callq	_i2o_dma_high
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	(%rbx), %rcx
	movq	%rax, 32(%rcx)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_i2o_msg_post
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_I2O_TIMEOUT_INIT_OUTBOUND_QUEUE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	_HZ@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rbx
	movq	%r14, %r12
	movq	(%r14), %rcx
	movq	_I2O_CMD_IN_PROGRESS@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rcx
	jle	LBB0_2
LBB0_7:
	movq	_I2O_MAX_OUTBOUND_MSG_FRAMES@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	movl	$0, %eax
	jle	LBB0_11
## %bb.8:
	movl	(%r15), %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_i2o_flush_reply
	movl	$1, %edi
	callq	_udelay
	movl	(%r13), %eax
	leal	(%r12,%rax,4), %r12d
	incl	%ebx
	cmpl	(%r14), %ebx
	jl	LBB0_9
## %bb.10:
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_2:
	imulq	%rax, %rbx
	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.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, %edi
	callq	_schedule_timeout_uninterruptible
	movq	(%r12), %rax
	cmpq	(%r14), %rax
	jg	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	jmp	LBB0_3
LBB0_4:
	movl	4(%r15), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_osm_warn
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Initializing Outbound Queue...\n"

	.comm	_I2O_TIMEOUT_MESSAGE_GET,4,2    ## @I2O_TIMEOUT_MESSAGE_GET
	.comm	_EIGHT_WORD_MSG_SIZE,4,2        ## @EIGHT_WORD_MSG_SIZE
	.comm	_SGL_OFFSET_6,4,2               ## @SGL_OFFSET_6
	.comm	_I2O_CMD_OUTBOUND_INIT,4,2      ## @I2O_CMD_OUTBOUND_INIT
	.comm	_HOST_TID,4,2                   ## @HOST_TID
	.comm	_ADAPTER_TID,4,2                ## @ADAPTER_TID
	.comm	_i2o_exec_driver,4,2            ## @i2o_exec_driver
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_I2O_OUTBOUND_MSG_FRAME_SIZE,4,2 ## @I2O_OUTBOUND_MSG_FRAME_SIZE
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_I2O_TIMEOUT_INIT_OUTBOUND_QUEUE,4,2 ## @I2O_TIMEOUT_INIT_OUTBOUND_QUEUE
	.comm	_HZ,4,2                         ## @HZ
	.comm	_I2O_CMD_IN_PROGRESS,8,3        ## @I2O_CMD_IN_PROGRESS
L_.str.1:                               ## @.str.1
	.asciz	"%s: Timeout Initializing\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_I2O_MAX_OUTBOUND_MSG_FRAMES,4,2 ## @I2O_MAX_OUTBOUND_MSG_FRAMES
	.no_dead_strip	_i2o_iop_init_outbound_queue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2o_iop_init_outbound_queue
_i2o_iop_init_outbound_queue:           ; @i2o_iop_init_outbound_queue
	.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	x19, x0
	ldr	x21, [x0, #8]
	ldr	w1, [x0, #4]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_osm_debug
	ldr	x0, [x19, #8]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh2:
	adrp	x8, _I2O_TIMEOUT_MESSAGE_GET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _I2O_TIMEOUT_MESSAGE_GET@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_i2o_msg_get_wait
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	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
	b	_PTR_ERR
LBB0_2:
Lloh5:
	adrp	x8, _EIGHT_WORD_MSG_SIZE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EIGHT_WORD_MSG_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _SGL_OFFSET_6@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SGL_OFFSET_6@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w0, w9, w8
	bl	_cpu_to_le32
	ldr	x8, [x20, #24]
	str	x0, [x8]
Lloh11:
	adrp	x8, _I2O_CMD_OUTBOUND_INIT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _I2O_CMD_OUTBOUND_INIT@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _HOST_TID@GOTPAGE
Lloh15:
	ldr	x9, [x9, _HOST_TID@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	lsl	w9, w9, #12
	orr	w8, w9, w8, lsl #24
Lloh17:
	adrp	x9, _ADAPTER_TID@GOTPAGE
Lloh18:
	ldr	x9, [x9, _ADAPTER_TID@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w0, w8, w9
	bl	_cpu_to_le32
	ldr	x8, [x20, #24]
	str	x0, [x8, #8]
Lloh20:
	adrp	x8, _i2o_exec_driver@GOTPAGE
Lloh21:
	ldr	x8, [x8, _i2o_exec_driver@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	str	x0, [x20, #16]
	mov	w0, #0
	bl	_cpu_to_le32
	str	x0, [x20, #8]
Lloh23:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	ldr	x8, [x20]
	str	x0, [x8]
Lloh26:
	adrp	x22, _I2O_OUTBOUND_MSG_FRAME_SIZE@GOTPAGE
Lloh27:
	ldr	x22, [x22, _I2O_OUTBOUND_MSG_FRAME_SIZE@GOTPAGEOFF]
	ldr	w8, [x22]
	mov	w0, #128
	bfi	w0, w8, #16, #16
	bl	_cpu_to_le32
	ldr	x8, [x20]
	str	x0, [x8, #8]
	mov	w0, #4
	movk	w0, #53248, lsl #16
	bl	_cpu_to_le32
	ldr	x8, [x20]
	str	x0, [x8, #16]
	ldr	w0, [x19, #16]
	bl	_i2o_dma_low
	bl	_cpu_to_le32
	ldr	x8, [x20]
	str	x0, [x8, #24]
	ldr	w0, [x19, #16]
	bl	_i2o_dma_high
	bl	_cpu_to_le32
	ldr	x8, [x20]
	str	x0, [x8, #32]
	mov	x0, x19
	mov	x1, x20
	bl	_i2o_msg_post
Lloh28:
	adrp	x23, _jiffies@GOTPAGE
Lloh29:
	ldr	x23, [x23, _jiffies@GOTPAGEOFF]
	ldr	x0, [x23]
Lloh30:
	adrp	x8, _I2O_TIMEOUT_INIT_OUTBOUND_QUEUE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _I2O_TIMEOUT_INIT_OUTBOUND_QUEUE@GOTPAGEOFF]
Lloh32:
	ldrsw	x8, [x8]
Lloh33:
	adrp	x9, _HZ@GOTPAGE
Lloh34:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh35:
	ldrsw	x9, [x9]
	ldr	x10, [x21]
Lloh36:
	adrp	x24, _I2O_CMD_IN_PROGRESS@GOTPAGE
Lloh37:
	ldr	x24, [x24, _I2O_CMD_IN_PROGRESS@GOTPAGEOFF]
	ldr	x11, [x24]
	cmp	x10, x11
	b.le	LBB0_7
LBB0_3:
Lloh38:
	adrp	x21, _I2O_MAX_OUTBOUND_MSG_FRAMES@GOTPAGE
Lloh39:
	ldr	x21, [x21, _I2O_MAX_OUTBOUND_MSG_FRAMES@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.4:
	mov	w23, #0
	ldr	w20, [x19]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_i2o_flush_reply
	mov	w0, #1
	bl	_udelay
	ldr	w8, [x22]
	add	w20, w20, w8, lsl #2
	add	w23, w23, #1
	ldr	w8, [x21]
	cmp	w23, w8
	b.lt	LBB0_5
LBB0_6:
	mov	w0, #0
	b	LBB0_12
LBB0_7:
	madd	x20, x9, x8, x0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x1, x20
	bl	_time_after
	cbnz	x0, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	w0, #1
	bl	_schedule_timeout_uninterruptible
	ldr	x8, [x21]
	ldr	x9, [x24]
	cmp	x8, x9
	b.gt	LBB0_3
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x0, [x23]
	b	LBB0_8
LBB0_11:
	ldr	w1, [x19, #4]
Lloh40:
	adrp	x0, l_.str.1@PAGE
Lloh41:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_osm_warn
Lloh42:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh43:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.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
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Initializing Outbound Queue...\n"

	.comm	_I2O_TIMEOUT_MESSAGE_GET,4,2    ; @I2O_TIMEOUT_MESSAGE_GET
	.comm	_EIGHT_WORD_MSG_SIZE,4,2        ; @EIGHT_WORD_MSG_SIZE
	.comm	_SGL_OFFSET_6,4,2               ; @SGL_OFFSET_6
	.comm	_I2O_CMD_OUTBOUND_INIT,4,2      ; @I2O_CMD_OUTBOUND_INIT
	.comm	_HOST_TID,4,2                   ; @HOST_TID
	.comm	_ADAPTER_TID,4,2                ; @ADAPTER_TID
	.comm	_i2o_exec_driver,4,2            ; @i2o_exec_driver
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_I2O_OUTBOUND_MSG_FRAME_SIZE,4,2 ; @I2O_OUTBOUND_MSG_FRAME_SIZE
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_I2O_TIMEOUT_INIT_OUTBOUND_QUEUE,4,2 ; @I2O_TIMEOUT_INIT_OUTBOUND_QUEUE
	.comm	_HZ,4,2                         ; @HZ
	.comm	_I2O_CMD_IN_PROGRESS,8,3        ; @I2O_CMD_IN_PROGRESS
l_.str.1:                               ; @.str.1
	.asciz	"%s: Timeout Initializing\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_I2O_MAX_OUTBOUND_MSG_FRAMES,4,2 ; @I2O_MAX_OUTBOUND_MSG_FRAMES
	.no_dead_strip	_i2o_iop_init_outbound_queue
.subsections_via_symbols
