	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_sp_ll2_tx_queue_start
_qed_sp_ll2_tx_queue_start:             ## @qed_sp_ll2_tx_queue_start
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	4(%rsi), %r15d
	movq	$0, -48(%rbp)
	movq	%rsi, %rdi
	callq	_QED_LL2_TX_REGISTERED
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	xorl	%eax, %eax
	cmpl	$129, 4(%rbx)
	setne	%al
	movl	%eax, (%rbx)
	leaq	-72(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movl	24(%rbx), %eax
	movl	%eax, -64(%rbp)
	movl	8(%r14), %eax
	movl	%eax, -68(%rbp)
	movq	_QED_SPQ_MODE_EBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movq	_CORE_RAMROD_TX_QUEUE_START@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_PROTOCOLID_CORE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	movq	%r12, %r8
	callq	_qed_sp_init_request
	testl	%eax, %eax
	jne	LBB0_19
## %bb.3:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %r15
	movq	%r14, %rdi
	callq	_qed_int_get_sp_sb_id
	movl	%eax, %edi
	callq	_cpu_to_le16
	movq	%rax, 56(%r15)
	movl	40(%rbx), %eax
	movl	%eax, 48(%r15)
	movl	16(%rbx), %edi
	callq	_cpu_to_le16
	movq	%rax, 40(%r15)
	movl	(%rbx), %eax
	movl	%eax, (%r15)
	movl	20(%rbx), %eax
	movl	%eax, 36(%r15)
	movl	32(%r15), %r12d
	leaq	36(%rbx), %r13
	movq	%r13, %rdi
	callq	_qed_chain_get_pbl_phys
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_DMA_REGPAIR_LE
	movq	%r13, %rdi
	callq	_qed_chain_get_page_cnt
	movl	%eax, %edi
	callq	_cpu_to_le16
	movq	%rax, 24(%r15)
	movl	8(%rbx), %ecx
	cmpl	$134, %ecx
	jne	LBB0_4
## %bb.5:
	movq	_PQ_FLAGS_OOO@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_19
LBB0_4:
	movq	_PQ_FLAGS_OFLD@GOTPCREL(%rip), %rax
LBB0_6:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	cmpl	$133, %ecx
	jne	LBB0_8
## %bb.7:
	movq	_PQ_FLAGS_LB@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_qed_get_cm_pq_idx
	movl	%eax, %edi
	callq	_cpu_to_le16
	movq	%rax, 16(%r15)
	leal	-128(%r12), %eax
	cmpl	$4, %eax
	ja	LBB0_16
## %bb.9:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_12:
	movq	_PROTOCOLID_ROCE@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_16:
	movq	_PROTOCOLID_ETH@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r15)
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_DP_NOTICE
	jmp	LBB0_17
LBB0_13:
	movl	4(%r14), %eax
	movq	_QED_PCI_ISCSI@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_15
LBB0_14:
	movq	_PROTOCOLID_ISCSI@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_15:
	movq	_PROTOCOLID_IWARP@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_10:
	movq	_PROTOCOLID_FCOE@GOTPCREL(%rip), %rax
LBB0_11:
	movq	(%rax), %rax
	movq	%rax, 8(%r15)
LBB0_17:
	movl	12(%rbx), %eax
	movl	%eax, 4(%r15)
	movq	-48(%rbp), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_qed_spq_post
	testl	%eax, %eax
	jne	LBB0_19
## %bb.18:
	movl	(%r14), %edi
	movl	32(%rbx), %esi
	addq	$28, %rbx
	movq	_DB_REC_WIDTH_32B@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_DB_REC_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rbx, %rdx
	callq	_qed_db_recovery_add
LBB0_19:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_12
	.long	L0_0_set_13
	.long	L0_0_set_15
	.long	L0_0_set_14
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_QED_SPQ_MODE_EBLOCK,4,2        ## @QED_SPQ_MODE_EBLOCK
	.comm	_CORE_RAMROD_TX_QUEUE_START,4,2 ## @CORE_RAMROD_TX_QUEUE_START
	.comm	_PROTOCOLID_CORE,4,2            ## @PROTOCOLID_CORE
	.comm	_PQ_FLAGS_LB,4,2                ## @PQ_FLAGS_LB
	.comm	_PQ_FLAGS_OOO,4,2               ## @PQ_FLAGS_OOO
	.comm	_PQ_FLAGS_OFLD,4,2              ## @PQ_FLAGS_OFLD
	.comm	_PROTOCOLID_FCOE,8,3            ## @PROTOCOLID_FCOE
	.comm	_PROTOCOLID_ISCSI,8,3           ## @PROTOCOLID_ISCSI
	.comm	_PROTOCOLID_ROCE,8,3            ## @PROTOCOLID_ROCE
	.comm	_PROTOCOLID_IWARP,8,3           ## @PROTOCOLID_IWARP
	.comm	_QED_PCI_ISCSI,4,2              ## @QED_PCI_ISCSI
	.comm	_PROTOCOLID_ETH,8,3             ## @PROTOCOLID_ETH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown connection type: %d\n"

	.comm	_DB_REC_WIDTH_32B,4,2           ## @DB_REC_WIDTH_32B
	.comm	_DB_REC_KERNEL,4,2              ## @DB_REC_KERNEL
	.no_dead_strip	_qed_sp_ll2_tx_queue_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qed_sp_ll2_tx_queue_start
_qed_sp_ll2_tx_queue_start:             ; @qed_sp_ll2_tx_queue_start
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x1
	mov	x20, x0
	ldr	w21, [x1, #4]
	str	xzr, [sp, #24]
	mov	x0, x1
	bl	_QED_LL2_TX_REGISTERED
	cbz	w0, LBB0_13
; %bb.1:
	ldr	w8, [x19, #4]
	cmp	w8, #129
	cset	w8, ne
	str	w8, [x19]
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #12
	bl	_memset
	ldr	w8, [x19, #24]
	str	w8, [sp, #16]
	ldr	w8, [x20, #8]
Lloh0:
	adrp	x9, _QED_SPQ_MODE_EBLOCK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _QED_SPQ_MODE_EBLOCK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #8]
Lloh3:
	adrp	x8, _CORE_RAMROD_TX_QUEUE_START@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CORE_RAMROD_TX_QUEUE_START@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _PROTOCOLID_CORE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PROTOCOLID_CORE@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	add	x1, sp, #24
	add	x4, sp, #8
	mov	x0, x20
	bl	_qed_sp_init_request
	cbnz	w0, LBB0_13
; %bb.2:
	ldr	x24, [sp, #24]
	mov	x0, x20
	bl	_qed_int_get_sp_sb_id
	bl	_cpu_to_le16
	str	x0, [x24, #56]
	ldr	w8, [x19, #40]
	str	w8, [x24, #48]
	ldr	w0, [x19, #16]
	bl	_cpu_to_le16
	str	x0, [x24, #40]
	ldr	w8, [x19]
	str	w8, [x24]
	ldr	w8, [x19, #20]
	str	w8, [x24, #36]
	ldr	w22, [x24, #32]
	add	x23, x19, #36
	mov	x0, x23
	bl	_qed_chain_get_pbl_phys
	mov	x1, x0
	mov	x0, x22
	bl	_DMA_REGPAIR_LE
	mov	x0, x23
	bl	_qed_chain_get_page_cnt
	bl	_cpu_to_le16
	str	x0, [x24, #24]
Lloh9:
	adrp	x8, _PQ_FLAGS_LB@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PQ_FLAGS_LB@GOTPAGEOFF]
Lloh11:
	adrp	x9, _PQ_FLAGS_OOO@GOTPAGE
Lloh12:
	ldr	x9, [x9, _PQ_FLAGS_OOO@GOTPAGEOFF]
Lloh13:
	adrp	x10, _PQ_FLAGS_OFLD@GOTPAGE
Lloh14:
	ldr	x10, [x10, _PQ_FLAGS_OFLD@GOTPAGEOFF]
	ldr	w11, [x19, #8]
	cmp	w11, #134
	csel	x9, x9, x10, eq
	cmp	w11, #133
	csel	x8, x8, x9, eq
	ldr	w1, [x8]
	mov	x0, x20
	bl	_qed_get_cm_pq_idx
	bl	_cpu_to_le16
	str	x0, [x24, #16]
	sub	w8, w21, #128
	cmp	w8, #4
	b.hi	LBB0_5
; %bb.3:
Lloh15:
	adrp	x9, lJTI0_0@PAGE
Lloh16:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
Lloh17:
	adrp	x8, _PROTOCOLID_ROCE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PROTOCOLID_ROCE@GOTPAGEOFF]
	b	LBB0_10
LBB0_5:
Lloh19:
	adrp	x8, _PROTOCOLID_ETH@GOTPAGE
Lloh20:
	ldr	x8, [x8, _PROTOCOLID_ETH@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	str	x8, [x24, #8]
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_DP_NOTICE
	b	LBB0_11
LBB0_6:
	ldr	w8, [x20, #4]
Lloh24:
	adrp	x9, _QED_PCI_ISCSI@GOTPAGE
Lloh25:
	ldr	x9, [x9, _QED_PCI_ISCSI@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_8
LBB0_7:
Lloh27:
	adrp	x8, _PROTOCOLID_ISCSI@GOTPAGE
Lloh28:
	ldr	x8, [x8, _PROTOCOLID_ISCSI@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
Lloh29:
	adrp	x8, _PROTOCOLID_IWARP@GOTPAGE
Lloh30:
	ldr	x8, [x8, _PROTOCOLID_IWARP@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh31:
	adrp	x8, _PROTOCOLID_FCOE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _PROTOCOLID_FCOE@GOTPAGEOFF]
LBB0_10:
	ldr	x8, [x8]
	str	x8, [x24, #8]
LBB0_11:
	ldr	w8, [x19, #12]
	str	w8, [x24, #4]
	ldr	x1, [sp, #24]
	mov	x0, x20
	mov	x2, #0
	bl	_qed_spq_post
	cbnz	w0, LBB0_13
; %bb.12:
	ldr	w0, [x20]
	add	x2, x19, #28
	ldr	w1, [x19, #32]
Lloh33:
	adrp	x8, _DB_REC_WIDTH_32B@GOTPAGE
Lloh34:
	ldr	x8, [x8, _DB_REC_WIDTH_32B@GOTPAGEOFF]
Lloh35:
	ldr	w3, [x8]
Lloh36:
	adrp	x8, _DB_REC_KERNEL@GOTPAGE
Lloh37:
	ldr	x8, [x8, _DB_REC_KERNEL@GOTPAGEOFF]
Lloh38:
	ldr	w4, [x8]
	bl	_qed_db_recovery_add
LBB0_13:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_6-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_QED_SPQ_MODE_EBLOCK,4,2        ; @QED_SPQ_MODE_EBLOCK
	.comm	_CORE_RAMROD_TX_QUEUE_START,4,2 ; @CORE_RAMROD_TX_QUEUE_START
	.comm	_PROTOCOLID_CORE,4,2            ; @PROTOCOLID_CORE
	.comm	_PQ_FLAGS_LB,4,2                ; @PQ_FLAGS_LB
	.comm	_PQ_FLAGS_OOO,4,2               ; @PQ_FLAGS_OOO
	.comm	_PQ_FLAGS_OFLD,4,2              ; @PQ_FLAGS_OFLD
	.comm	_PROTOCOLID_FCOE,8,3            ; @PROTOCOLID_FCOE
	.comm	_PROTOCOLID_ISCSI,8,3           ; @PROTOCOLID_ISCSI
	.comm	_PROTOCOLID_ROCE,8,3            ; @PROTOCOLID_ROCE
	.comm	_PROTOCOLID_IWARP,8,3           ; @PROTOCOLID_IWARP
	.comm	_QED_PCI_ISCSI,4,2              ; @QED_PCI_ISCSI
	.comm	_PROTOCOLID_ETH,8,3             ; @PROTOCOLID_ETH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown connection type: %d\n"

	.comm	_DB_REC_WIDTH_32B,4,2           ; @DB_REC_WIDTH_32B
	.comm	_DB_REC_KERNEL,4,2              ; @DB_REC_KERNEL
	.no_dead_strip	_qed_sp_ll2_tx_queue_start
.subsections_via_symbols
