	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_ll2_terminate_connection   ## -- Begin function qed_ll2_terminate_connection
	.p2align	4, 0x90
_qed_ll2_terminate_connection:          ## @qed_ll2_terminate_connection
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	_EINVAL@GOTPCREL(%rip), %r13
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	subl	(%r13), %r14d
	callq	_qed_ptt_acquire
	testq	%rax, %rax
	je	LBB0_14
## %bb.1:
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movl	%r12d, -52(%rbp)                ## 4-byte Spill
	movl	%r12d, %esi
	callq	_qed_ll2_handle_sanity_lock
	testq	%rax, %rax
	je	LBB0_15
## %bb.2:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_QED_LL2_TX_REGISTERED
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movl	$0, 16(%r12)
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_smp_wmb
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_qed_sp_ll2_tx_queue_stop
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_17
## %bb.4:
	movq	%rbx, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_qed_ll2_txq_flush
	movl	20(%r12), %esi
	movq	%rbx, %rdi
	callq	_qed_int_unregister_cb
LBB0_5:
	movq	%r12, %rdi
	callq	_QED_LL2_RX_REGISTERED
	movl	%r14d, %r15d
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movl	$0, 8(%r12)
	xorl	%eax, %eax
	callq	_smp_wmb
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_qed_sp_ll2_rx_queue_stop
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_17
## %bb.7:
	movq	%rbx, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_qed_ll2_rxq_flush
	movl	12(%r12), %esi
	movq	%rbx, %rdi
	callq	_qed_int_unregister_cb
	xorl	%r15d, %r15d
LBB0_8:
	movq	(%r12), %rax
	movq	_QED_LL2_TYPE_OOO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.9:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	8(%rdi), %esi
	callq	_qed_ooo_release_all_isles
	movq	(%r12), %rax
LBB0_10:
	movq	_QED_LL2_TYPE_FCOE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.11:
	movq	_QED_MF_UFP_SPECIFIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rsi
	callq	_test_bit
	testl	%eax, %eax
	jne	LBB0_13
## %bb.12:
	movq	(%rbx), %rdi
	movq	_QED_LLH_FILTER_ETHERTYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ETH_P_FCOE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%esi, %esi
	xorl	%r8d, %r8d
	callq	_qed_llh_remove_protocol_filter
LBB0_13:
	movq	(%rbx), %rdi
	movq	_QED_LLH_FILTER_ETHERTYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ETH_P_FIP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%esi, %esi
	xorl	%r8d, %r8d
	callq	_qed_llh_remove_protocol_filter
	jmp	LBB0_17
LBB0_14:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_18
LBB0_15:
	xorl	%r15d, %r15d
	subl	(%r13), %r15d
LBB0_16:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_17:
	movq	%rbx, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_qed_ptt_release
LBB0_18:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_QED_LL2_TYPE_OOO,8,3           ## @QED_LL2_TYPE_OOO
	.comm	_QED_LL2_TYPE_FCOE,8,3          ## @QED_LL2_TYPE_FCOE
	.comm	_QED_MF_UFP_SPECIFIC,4,2        ## @QED_MF_UFP_SPECIFIC
	.comm	_QED_LLH_FILTER_ETHERTYPE,4,2   ## @QED_LLH_FILTER_ETHERTYPE
	.comm	_ETH_P_FCOE,4,2                 ## @ETH_P_FCOE
	.comm	_ETH_P_FIP,4,2                  ## @ETH_P_FIP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_ll2_terminate_connection   ; -- Begin function qed_ll2_terminate_connection
	.p2align	2
_qed_ll2_terminate_connection:          ; @qed_ll2_terminate_connection
	.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	x23, x1
	mov	x19, x0
Lloh0:
	adrp	x24, _EINVAL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _EINVAL@GOTPAGEOFF]
	ldr	w21, [x24]
	bl	_qed_ptt_acquire
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x23
	bl	_qed_ll2_handle_sanity_lock
	cbz	x0, LBB0_6
; %bb.2:
	mov	x22, x0
	bl	_QED_LL2_TX_REGISTERED
	cbz	x0, LBB0_7
; %bb.3:
	str	wzr, [x22, #16]
	bl	_smp_wmb
	mov	x0, x19
	mov	x1, x22
	bl	_qed_sp_ll2_tx_queue_stop
	mov	x21, x0
	cbnz	w0, LBB0_17
; %bb.4:
	mov	x0, x19
	mov	x1, x23
	bl	_qed_ll2_txq_flush
	ldr	w1, [x22, #20]
	mov	x0, x19
	bl	_qed_int_unregister_cb
	b	LBB0_8
LBB0_5:
Lloh2:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_18
LBB0_6:
	ldr	w8, [x24]
	neg	w21, w8
	b	LBB0_17
LBB0_7:
	neg	w21, w21
LBB0_8:
	mov	x0, x22
	bl	_QED_LL2_RX_REGISTERED
	cbz	x0, LBB0_11
; %bb.9:
	str	wzr, [x22, #8]
	bl	_smp_wmb
	mov	x0, x19
	mov	x1, x22
	bl	_qed_sp_ll2_rx_queue_stop
	mov	x21, x0
	cbnz	w0, LBB0_17
; %bb.10:
	mov	x0, x19
	mov	x1, x23
	bl	_qed_ll2_rxq_flush
	ldr	w1, [x22, #12]
	mov	x0, x19
	bl	_qed_int_unregister_cb
LBB0_11:
	ldr	x8, [x22]
Lloh5:
	adrp	x9, _QED_LL2_TYPE_OOO@GOTPAGE
Lloh6:
	ldr	x9, [x9, _QED_LL2_TYPE_OOO@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.12:
	ldr	w1, [x19, #8]
	mov	x0, x19
	bl	_qed_ooo_release_all_isles
	ldr	x8, [x22]
LBB0_13:
Lloh8:
	adrp	x9, _QED_LL2_TYPE_FCOE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _QED_LL2_TYPE_FCOE@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.14:
Lloh11:
	adrp	x8, _QED_MF_UFP_SPECIFIC@GOTPAGE
Lloh12:
	ldr	x8, [x8, _QED_MF_UFP_SPECIFIC@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldr	x1, [x19]
	bl	_test_bit
Lloh14:
	adrp	x22, _QED_LLH_FILTER_ETHERTYPE@GOTPAGE
Lloh15:
	ldr	x22, [x22, _QED_LLH_FILTER_ETHERTYPE@GOTPAGEOFF]
	cbnz	w0, LBB0_16
; %bb.15:
	ldr	x0, [x19]
	ldr	w2, [x22]
Lloh16:
	adrp	x8, _ETH_P_FCOE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ETH_P_FCOE@GOTPAGEOFF]
Lloh18:
	ldr	w3, [x8]
	mov	w1, #0
	mov	w4, #0
	bl	_qed_llh_remove_protocol_filter
LBB0_16:
	ldr	x0, [x19]
	ldr	w2, [x22]
Lloh19:
	adrp	x8, _ETH_P_FIP@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ETH_P_FIP@GOTPAGEOFF]
Lloh21:
	ldr	w3, [x8]
	mov	w1, #0
	mov	w4, #0
	bl	_qed_llh_remove_protocol_filter
LBB0_17:
	mov	x0, x19
	mov	x1, x20
	bl	_qed_ptt_release
LBB0_18:
	mov	x0, x21
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_QED_LL2_TYPE_OOO,8,3           ; @QED_LL2_TYPE_OOO
	.comm	_QED_LL2_TYPE_FCOE,8,3          ; @QED_LL2_TYPE_FCOE
	.comm	_QED_MF_UFP_SPECIFIC,4,2        ; @QED_MF_UFP_SPECIFIC
	.comm	_QED_LLH_FILTER_ETHERTYPE,4,2   ; @QED_LLH_FILTER_ETHERTYPE
	.comm	_ETH_P_FCOE,4,2                 ; @ETH_P_FCOE
	.comm	_ETH_P_FIP,4,2                  ; @ETH_P_FIP
.subsections_via_symbols
