	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_siw_qp_cm_drop                 ## -- Begin function siw_qp_cm_drop
	.p2align	4, 0x90
_siw_qp_cm_drop:                        ## @siw_qp_cm_drop
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	8(%rdi), %rbx
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 16(%rdi)
	testq	%rbx, %rbx
	je	LBB0_18
## %bb.1:
	testl	%esi, %esi
	je	LBB0_2
## %bb.19:
	movq	_SIW_CM_WORK_CLOSE_LLP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_siw_cm_queue_work              ## TAILCALL
LBB0_18:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movq	%rdi, %r14
	movq	%rbx, %rdi
	callq	_siw_cep_set_inuse
	movq	(%rbx), %rdx
	cmpq	$133, %rdx
	jne	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_siw_dbg_cep
	jmp	LBB0_17
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_siw_dbg_cep
	cmpq	$0, (%r14)
	je	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	callq	_siw_send_terminate
LBB0_6:
	cmpq	$0, 24(%rbx)
	je	LBB0_13
## %bb.7:
	movq	(%rbx), %rax
	cmpq	$129, %rax
	je	LBB0_10
## %bb.8:
	cmpq	$135, %rax
	jne	LBB0_12
## %bb.9:
	movq	_IW_CM_EVENT_CONNECT_REPLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%edx, %edx
	subl	(%rax), %edx
	movq	%rbx, %rdi
	jmp	LBB0_11
LBB0_10:
	movq	_IW_CM_EVENT_CLOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
LBB0_11:
	callq	_siw_cm_upcall
LBB0_12:
	movq	24(%rbx), %rdi
	callq	*(%rdi)
	movq	$0, 24(%rbx)
	movq	%rbx, %rdi
	callq	_siw_cep_put
LBB0_13:
	movq	$133, (%rbx)
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.14:
	callq	_siw_socket_disassoc
	movq	16(%rbx), %rdi
	callq	_sock_release
	movq	$0, 16(%rbx)
LBB0_15:
	cmpq	$0, 8(%rbx)
	je	LBB0_17
## %bb.16:
	movq	$0, 8(%rbx)
	movq	%r14, %rdi
	callq	_siw_qp_put
LBB0_17:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_siw_cep_set_free               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SIW_CM_WORK_CLOSE_LLP,4,2      ## @SIW_CM_WORK_CLOSE_LLP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"already closed\n"

L_.str.1:                               ## @.str.1
	.asciz	"immediate close, state %d\n"

	.comm	_IW_CM_EVENT_CONNECT_REPLY,4,2  ## @IW_CM_EVENT_CONNECT_REPLY
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IW_CM_EVENT_CLOSE,4,2          ## @IW_CM_EVENT_CLOSE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_siw_qp_cm_drop                 ; -- Begin function siw_qp_cm_drop
	.p2align	2
_siw_qp_cm_drop:                        ; @siw_qp_cm_drop
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	ldr	x19, [x0, #8]
	movi.2s	v0, #1
	str	d0, [x0, #16]
	cbz	x19, LBB0_3
; %bb.1:
	cbz	w1, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _SIW_CM_WORK_CLOSE_LLP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIW_CM_WORK_CLOSE_LLP@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_siw_cm_queue_work
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_4:
	mov	x20, x0
	mov	x0, x19
	bl	_siw_cep_set_inuse
	ldr	x8, [x19]
	cmp	x8, #133
	b.ne	LBB0_6
; %bb.5:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_siw_dbg_cep
	b	LBB0_19
LBB0_6:
	str	x8, [sp]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_siw_dbg_cep
	ldr	x8, [x20]
	cbz	x8, LBB0_8
; %bb.7:
	mov	x0, x20
	bl	_siw_send_terminate
LBB0_8:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_15
; %bb.9:
	ldr	x8, [x19]
	cmp	x8, #129
	b.eq	LBB0_12
; %bb.10:
	cmp	x8, #135
	b.ne	LBB0_14
; %bb.11:
Lloh7:
	adrp	x8, _IW_CM_EVENT_CONNECT_REPLY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IW_CM_EVENT_CONNECT_REPLY@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w2, w8
	mov	x0, x19
	b	LBB0_13
LBB0_12:
Lloh13:
	adrp	x8, _IW_CM_EVENT_CLOSE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IW_CM_EVENT_CLOSE@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
LBB0_13:
	bl	_siw_cm_upcall
LBB0_14:
	ldr	x0, [x19, #24]
	ldr	x8, [x0]
	blr	x8
	str	xzr, [x19, #24]
	mov	x0, x19
	bl	_siw_cep_put
LBB0_15:
	mov	w8, #133
	str	x8, [x19]
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_17
; %bb.16:
	bl	_siw_socket_disassoc
	ldr	x0, [x19, #16]
	bl	_sock_release
	str	xzr, [x19, #16]
LBB0_17:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_19
; %bb.18:
	str	xzr, [x19, #8]
	mov	x0, x20
	bl	_siw_qp_put
LBB0_19:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_siw_cep_set_free
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_SIW_CM_WORK_CLOSE_LLP,4,2      ; @SIW_CM_WORK_CLOSE_LLP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"already closed\n"

l_.str.1:                               ; @.str.1
	.asciz	"immediate close, state %d\n"

	.comm	_IW_CM_EVENT_CONNECT_REPLY,4,2  ; @IW_CM_EVENT_CONNECT_REPLY
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IW_CM_EVENT_CLOSE,4,2          ; @IW_CM_EVENT_CLOSE
.subsections_via_symbols
