	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function terminate
_terminate:                             ## @terminate
	.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
	movl	%eax, %r14d
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_get_ep_from_tid
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %rbx
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	4(%rax), %edx
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_pr_warn
	movq	_C4IW_QP_STATE_TERMINATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	movq	(%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
LBB0_3:
	movq	%rbx, %rdi
	callq	_c4iw_put_ep
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_pr_warn
LBB0_5:
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TERM received tid %u qpid %u\n"

	.comm	_C4IW_QP_STATE_TERMINATE,4,2    ## @C4IW_QP_STATE_TERMINATE
	.comm	_C4IW_QP_ATTR_NEXT_STATE,4,2    ## @C4IW_QP_ATTR_NEXT_STATE
L_.str.1:                               ## @.str.1
	.asciz	"TERM received tid %u no ep/qp\n"

	.no_dead_strip	_terminate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function terminate
_terminate:                             ; @terminate
	.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	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_get_ep_from_tid
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w8, [x8, #4]
	str	x8, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_pr_warn
Lloh2:
	adrp	x8, _C4IW_QP_STATE_TERMINATE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _C4IW_QP_STATE_TERMINATE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	ldr	x1, [x19]
	ldr	w0, [x1]
Lloh5:
	adrp	x8, _C4IW_QP_ATTR_NEXT_STATE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _C4IW_QP_ATTR_NEXT_STATE@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	w4, #1
	bl	_c4iw_modify_qp
LBB0_3:
	mov	x0, x19
	bl	_c4iw_put_ep
	b	LBB0_5
LBB0_4:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_pr_warn
LBB0_5:
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TERM received tid %u qpid %u\n"

	.comm	_C4IW_QP_STATE_TERMINATE,4,2    ; @C4IW_QP_STATE_TERMINATE
	.comm	_C4IW_QP_ATTR_NEXT_STATE,4,2    ; @C4IW_QP_ATTR_NEXT_STATE
l_.str.1:                               ; @.str.1
	.asciz	"TERM received tid %u no ep/qp\n"

	.no_dead_strip	_terminate
.subsections_via_symbols
