	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function peer_close
_peer_close:                            ## @peer_close
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_cplhdr
	movq	%rax, %rdi
	callq	_GET_TID
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_get_ep_from_tid
	testq	%rax, %rax
	je	LBB0_17
## %bb.1:
	movq	%rax, %rbx
	movl	32(%rax), %edx
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rsi
	callq	_pr_debug
	movl	36(%rbx), %edi
	callq	_dst_confirm
	movq	_PEER_CLOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	24(%rbx), %rsi
	callq	_set_bit
	movq	%rbx, %r14
	addq	$4, %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	(%rbx), %edx
	leal	-128(%rdx), %eax
	cmpl	$8, %eax
	ja	LBB0_12
## %bb.2:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_5:
	movq	%rbx, %rdi
	movl	$135, %esi
	callq	___state_set
	movl	32(%rbx), %edx
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	callq	_pr_debug
	movl	20(%rbx), %edi
	movq	_ECONNRESET@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	subl	(%rax), %esi
	callq	_c4iw_wake_up_noref
	jmp	LBB0_13
LBB0_12:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_WARN_ONCE
	jmp	LBB0_13
LBB0_3:
	movq	%rbx, %rdi
	movl	$135, %esi
	callq	___state_set
	jmp	LBB0_13
LBB0_4:
	movq	%rbx, %rdi
	movl	$135, %esi
	callq	___state_set
	movq	_ECONNRESET@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	subl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_connect_reply_upcall
	jmp	LBB0_13
LBB0_8:
	movq	%rbx, %rdi
	callq	_stop_ep_timer
	cmpl	$0, 16(%rbx)
	je	LBB0_11
## %bb.9:
	movq	8(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.10:
	movq	_C4IW_QP_STATE_IDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	movl	(%rsi), %edi
	movq	_C4IW_QP_ATTR_NEXT_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-24(%rbp), %rcx
	movl	$1, %r8d
	callq	_c4iw_modify_qp
LBB0_11:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_close_complete_upcall
	movq	%rbx, %rdi
	movl	$134, %esi
	callq	___state_set
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	%rbx, %rdi
	callq	_release_ep_resources
	jmp	LBB0_16
LBB0_6:
	movq	%rbx, %rdi
	callq	_start_ep_timer
	movq	%rbx, %rdi
	movl	$135, %esi
	callq	___state_set
	movq	_C4IW_QP_STATE_CLOSING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	movq	8(%rbx), %rsi
	movl	(%rsi), %edi
	movq	_C4IW_QP_ATTR_NEXT_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-24(%rbp), %rcx
	movl	$1, %r8d
	callq	_c4iw_modify_qp
	movq	_ECONNRESET@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	je	LBB0_13
## %bb.7:
	movq	%rbx, %rdi
	callq	_peer_close_upcall
LBB0_13:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_c4iw_ep_disconnect
	jmp	LBB0_16
LBB0_14:
	movq	%rbx, %rdi
	movl	$132, %esi
	callq	___state_set
LBB0_15:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_16:
	movq	%rbx, %rdi
	callq	_c4iw_put_ep
LBB0_17:
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_5
	.long	L0_0_set_8
	.long	L0_0_set_6
	.long	L0_0_set_15
	.long	L0_0_set_14
	.long	L0_0_set_15
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ep %p tid %u\n"

	.comm	_PEER_CLOSE,4,2                 ## @PEER_CLOSE
	.comm	_ECONNRESET,4,2                 ## @ECONNRESET
L_.str.1:                               ## @.str.1
	.asciz	"waking up ep %p tid %u\n"

	.comm	_C4IW_QP_STATE_CLOSING,4,2      ## @C4IW_QP_STATE_CLOSING
	.comm	_C4IW_QP_ATTR_NEXT_STATE,4,2    ## @C4IW_QP_ATTR_NEXT_STATE
	.comm	_C4IW_QP_STATE_IDLE,4,2         ## @C4IW_QP_STATE_IDLE
L_.str.2:                               ## @.str.2
	.asciz	"Bad endpoint state %u\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.no_dead_strip	_peer_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function peer_close
_peer_close:                            ; @peer_close
	.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
	mov	x19, x0
	mov	x0, x1
	bl	_cplhdr
	bl	_GET_TID
	mov	x1, x0
	mov	x0, x19
	bl	_get_ep_from_tid
	cbz	x0, LBB0_17
; %bb.1:
	mov	x19, x0
	ldr	w2, [x0, #32]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_pr_debug
	ldr	w0, [x19, #36]
	bl	_dst_confirm
Lloh2:
	adrp	x8, _PEER_CLOSE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PEER_CLOSE@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	add	x1, x19, #24
	bl	_set_bit
	add	x20, x19, #4
	mov	x0, x20
	bl	_mutex_lock
	ldr	w2, [x19]
	sub	w8, w2, #128
	cmp	w8, #8
	b.hi	LBB0_4
; %bb.2:
Lloh5:
	adrp	x9, lJTI0_0@PAGE
Lloh6:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
	mov	x0, x19
	mov	w1, #135
	bl	___state_set
	ldr	w2, [x19, #32]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_pr_debug
	ldr	w0, [x19, #20]
Lloh9:
	adrp	x8, _ECONNRESET@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ECONNRESET@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w1, w8
	bl	_c4iw_wake_up_noref
	b	LBB0_13
LBB0_4:
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_WARN_ONCE
	b	LBB0_13
LBB0_5:
	mov	x0, x19
	mov	w1, #135
	bl	___state_set
	b	LBB0_13
LBB0_6:
	mov	x0, x19
	mov	w1, #135
	bl	___state_set
Lloh14:
	adrp	x8, _ECONNRESET@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ECONNRESET@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w1, w8
	mov	x0, x19
	bl	_connect_reply_upcall
	b	LBB0_13
LBB0_7:
	mov	x0, x19
	bl	_stop_ep_timer
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_10
; %bb.8:
	ldr	x1, [x19, #8]
	cbz	x1, LBB0_10
; %bb.9:
Lloh17:
	adrp	x8, _C4IW_QP_STATE_IDLE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _C4IW_QP_STATE_IDLE@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	ldr	w0, [x1]
Lloh20:
	adrp	x8, _C4IW_QP_ATTR_NEXT_STATE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _C4IW_QP_ATTR_NEXT_STATE@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	w4, #1
	bl	_c4iw_modify_qp
LBB0_10:
	mov	x0, x19
	mov	w1, #0
	bl	_close_complete_upcall
	mov	x0, x19
	mov	w1, #134
	bl	___state_set
	mov	x0, x20
	bl	_mutex_unlock
	mov	x0, x19
	bl	_release_ep_resources
	b	LBB0_16
LBB0_11:
	mov	x0, x19
	bl	_start_ep_timer
	mov	x0, x19
	mov	w1, #135
	bl	___state_set
Lloh23:
	adrp	x8, _C4IW_QP_STATE_CLOSING@GOTPAGE
Lloh24:
	ldr	x8, [x8, _C4IW_QP_STATE_CLOSING@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	ldr	x1, [x19, #8]
	ldr	w0, [x1]
Lloh26:
	adrp	x8, _C4IW_QP_ATTR_NEXT_STATE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _C4IW_QP_ATTR_NEXT_STATE@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	w4, #1
	bl	_c4iw_modify_qp
Lloh29:
	adrp	x8, _ECONNRESET@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ECONNRESET@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_13
; %bb.12:
	mov	x0, x19
	bl	_peer_close_upcall
LBB0_13:
	mov	x0, x20
	bl	_mutex_unlock
Lloh32:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_c4iw_ep_disconnect
	b	LBB0_16
LBB0_14:
	mov	x0, x19
	mov	w1, #132
	bl	___state_set
LBB0_15:
	mov	x0, x20
	bl	_mutex_unlock
LBB0_16:
	mov	x0, x19
	bl	_c4iw_put_ep
LBB0_17:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_11-LBB0_3)>>2
	.byte	(LBB0_15-LBB0_3)>>2
	.byte	(LBB0_14-LBB0_3)>>2
	.byte	(LBB0_15-LBB0_3)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ep %p tid %u\n"

	.comm	_PEER_CLOSE,4,2                 ; @PEER_CLOSE
	.comm	_ECONNRESET,4,2                 ; @ECONNRESET
l_.str.1:                               ; @.str.1
	.asciz	"waking up ep %p tid %u\n"

	.comm	_C4IW_QP_STATE_CLOSING,4,2      ; @C4IW_QP_STATE_CLOSING
	.comm	_C4IW_QP_ATTR_NEXT_STATE,4,2    ; @C4IW_QP_ATTR_NEXT_STATE
	.comm	_C4IW_QP_STATE_IDLE,4,2         ; @C4IW_QP_STATE_IDLE
l_.str.2:                               ; @.str.2
	.asciz	"Bad endpoint state %u\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.no_dead_strip	_peer_close
.subsections_via_symbols
