	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40iw_terminate_connection     ## -- Begin function i40iw_terminate_connection
	.p2align	4, 0x90
_i40iw_terminate_connection:            ## @i40iw_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_I40IW_TERM_SENT@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testl	%eax, (%rdi)
	je	LBB0_2
## %bb.1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%rdi, %rbx
	movq	_TERM_EVENT_QP_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rdi)
	callq	_i40iw_bld_terminate_hdr
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_i40iw_terminate_start_timer
	movl	(%r15), %eax
	orl	%eax, (%rbx)
	movq	_I40IW_QP_STATE_TERMINATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_I40IWQP_TERM_SEND_TERM_ONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r14d, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_i40iw_term_modify_qp           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_I40IW_TERM_SENT,4,2            ## @I40IW_TERM_SENT
	.comm	_TERM_EVENT_QP_FATAL,4,2        ## @TERM_EVENT_QP_FATAL
	.comm	_I40IW_QP_STATE_TERMINATE,4,2   ## @I40IW_QP_STATE_TERMINATE
	.comm	_I40IWQP_TERM_SEND_TERM_ONLY,4,2 ## @I40IWQP_TERM_SEND_TERM_ONLY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40iw_terminate_connection     ; -- Begin function i40iw_terminate_connection
	.p2align	2
_i40iw_terminate_connection:            ; @i40iw_terminate_connection
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x21, _I40IW_TERM_SENT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _I40IW_TERM_SENT@GOTPAGEOFF]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	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
LBB0_2:
	mov	x19, x0
Lloh2:
	adrp	x8, _TERM_EVENT_QP_FATAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TERM_EVENT_QP_FATAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x0, #4]
	bl	_i40iw_bld_terminate_hdr
	mov	x20, x0
	mov	x0, x19
	bl	_i40iw_terminate_start_timer
	ldr	w8, [x21]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
Lloh5:
	adrp	x8, _I40IW_QP_STATE_TERMINATE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _I40IW_QP_STATE_TERMINATE@GOTPAGEOFF]
Lloh7:
	adrp	x9, _I40IWQP_TERM_SEND_TERM_ONLY@GOTPAGE
Lloh8:
	ldr	x9, [x9, _I40IWQP_TERM_SEND_TERM_ONLY@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	ldr	w2, [x9]
	mov	x0, x19
	mov	x3, x20
	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	_i40iw_term_modify_qp
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_I40IW_TERM_SENT,4,2            ; @I40IW_TERM_SENT
	.comm	_TERM_EVENT_QP_FATAL,4,2        ; @TERM_EVENT_QP_FATAL
	.comm	_I40IW_QP_STATE_TERMINATE,4,2   ; @I40IW_QP_STATE_TERMINATE
	.comm	_I40IWQP_TERM_SEND_TERM_ONLY,4,2 ; @I40IWQP_TERM_SEND_TERM_ONLY
.subsections_via_symbols
