	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_tcb_rpl
_read_tcb_rpl:                          ## @read_tcb_rpl
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_cplhdr
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_GET_TID
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_get_ep_from_tid
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%rax, %r15
	addq	$4, %r13
	movq	_TCB_T_FLAGS_W@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_t4_tcb_get_field64
	movl	%eax, %r12d
	movl	$1, %edi
	callq	_TF_RX_PDU_OUT_V
	movl	%eax, %ebx
	andl	%r12d, %ebx
	movq	_TF_RX_PDU_OUT_S@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %ebx
	movq	%r15, %r12
	addq	$4, %r12
	movq	%r12, %rdi
	callq	_c4iw_put_ep
	movq	%r12, %rdi
	callq	_c4iw_put_ep
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.2:
	movl	(%r15), %eax
	leal	1(%rax), %ecx
	movl	%ecx, (%r15)
	testl	%eax, %eax
	jle	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_WARN_ONCE
	movl	8(%r15), %ecx
	jmp	LBB0_6
LBB0_5:
	movq	_TCB_RQ_START_W@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_TCB_RQ_START_S@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	movl	%edx, %esi
	callq	_t4_tcb_get_field32
	movl	%eax, %ecx
	movl	%eax, 8(%r15)
LBB0_6:
	movl	12(%r15), %edx
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rsi
	callq	_pr_debug
	movq	_PEER_ABORT_IN_PROGRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_finish_peer_abort
	jmp	LBB0_11
LBB0_8:
	movq	_ABORT_REQ_IN_PROGRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%r15, %rdi
	callq	_send_abort_req
	jmp	LBB0_11
LBB0_4:
	movq	%r15, %rdi
	callq	_read_tcb
	jmp	LBB0_11
LBB0_10:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	callq	_WARN_ONCE
LBB0_11:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TCB_T_FLAGS_W,4,2              ## @TCB_T_FLAGS_W
	.comm	_TF_RX_PDU_OUT_S,4,2            ## @TF_RX_PDU_OUT_S
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tcb re-read() reached the guard limit, finishing the cleanup\n"

	.comm	_TCB_RQ_START_W,4,2             ## @TCB_RQ_START_W
	.comm	_TCB_RQ_START_S,4,2             ## @TCB_RQ_START_S
L_.str.1:                               ## @.str.1
	.asciz	"ep %p tid %u %016x\n"

	.comm	_PEER_ABORT_IN_PROGRESS,4,2     ## @PEER_ABORT_IN_PROGRESS
	.comm	_ABORT_REQ_IN_PROGRESS,4,2      ## @ABORT_REQ_IN_PROGRESS
L_.str.2:                               ## @.str.2
	.asciz	"unexpected state!"

	.no_dead_strip	_read_tcb_rpl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_tcb_rpl
_read_tcb_rpl:                          ; @read_tcb_rpl
	.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	x20, x0
	mov	x0, x1
	bl	_cplhdr
	mov	x21, x0
	bl	_GET_TID
	mov	x1, x0
	mov	x0, x20
	bl	_get_ep_from_tid
	cbz	x0, LBB0_11
; %bb.1:
	mov	x19, x0
	add	x22, x21, #4
Lloh0:
	adrp	x8, _TCB_T_FLAGS_W@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TCB_T_FLAGS_W@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_t4_tcb_get_field64
	mov	x21, x0
	mov	w0, #1
	bl	_TF_RX_PDU_OUT_V
	and	w8, w0, w21
Lloh3:
	adrp	x9, _TF_RX_PDU_OUT_S@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TF_RX_PDU_OUT_S@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	asr	w23, w8, w9
	add	x21, x19, #4
	mov	x0, x21
	bl	_c4iw_put_ep
	mov	x0, x21
	bl	_c4iw_put_ep
	cbz	w23, LBB0_4
; %bb.2:
	ldr	w8, [x19]
	add	w9, w8, #1
	str	w9, [x19]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.3:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_WARN_ONCE
	ldr	w3, [x19, #8]
	b	LBB0_5
LBB0_4:
Lloh8:
	adrp	x8, _TCB_RQ_START_W@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TCB_RQ_START_W@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _TCB_RQ_START_S@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TCB_RQ_START_S@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	mov	x0, x22
	mov	x2, x1
	bl	_t4_tcb_get_field32
	mov	x3, x0
	str	w0, [x19, #8]
LBB0_5:
	ldr	w2, [x19, #12]
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_pr_debug
Lloh16:
	adrp	x8, _PEER_ABORT_IN_PROGRESS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PEER_ABORT_IN_PROGRESS@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_test_bit
	cbz	x0, LBB0_7
; %bb.6:
	mov	x0, x20
	mov	x1, x19
	bl	_finish_peer_abort
	b	LBB0_11
LBB0_7:
Lloh19:
	adrp	x8, _ABORT_REQ_IN_PROGRESS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ABORT_REQ_IN_PROGRESS@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_test_bit
	cbz	x0, LBB0_10
; %bb.8:
	mov	x0, x19
	bl	_send_abort_req
	b	LBB0_11
LBB0_9:
	mov	x0, x19
	bl	_read_tcb
	b	LBB0_11
LBB0_10:
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_WARN_ONCE
LBB0_11:
	mov	w0, #0
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_TCB_T_FLAGS_W,4,2              ; @TCB_T_FLAGS_W
	.comm	_TF_RX_PDU_OUT_S,4,2            ; @TF_RX_PDU_OUT_S
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tcb re-read() reached the guard limit, finishing the cleanup\n"

	.comm	_TCB_RQ_START_W,4,2             ; @TCB_RQ_START_W
	.comm	_TCB_RQ_START_S,4,2             ; @TCB_RQ_START_S
l_.str.1:                               ; @.str.1
	.asciz	"ep %p tid %u %016x\n"

	.comm	_PEER_ABORT_IN_PROGRESS,4,2     ; @PEER_ABORT_IN_PROGRESS
	.comm	_ABORT_REQ_IN_PROGRESS,4,2      ; @ABORT_REQ_IN_PROGRESS
l_.str.2:                               ; @.str.2
	.asciz	"unexpected state!"

	.no_dead_strip	_read_tcb_rpl
.subsections_via_symbols
