	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function duplicate_request
_duplicate_request:                     ## @duplicate_request
	.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	%rsi, %r13
	movq	%rdi, %r14
	movslq	(%rdi), %rbx
	movq	_BTH_PSN_MASK@GOTPCREL(%rip), %rax
	movslq	(%rax), %r15
	movl	(%rsi), %r12d
	movq	_RXE_SEND_MASK@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	_RXE_WRITE_MASK@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_4
LBB0_2:
	movq	%r13, %rdi
	callq	_bth_ack
	movq	_RESPST_CLEANUP@GOTPCREL(%rip), %r12
	testq	%rax, %rax
	je	LBB0_17
## %bb.3:
	decq	%rbx
	andq	%r15, %rbx
	movq	_AETH_ACK_UNLIMITED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rcx
	callq	_send_ack
LBB0_17:
	movl	(%r12), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_RXE_READ_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r12d
	movq	8(%r13), %rsi
	movq	%r14, %rdi
	callq	_find_resource
	movq	%rax, %r15
	testl	%r12d, %r12d
	je	LBB0_14
## %bb.5:
	movq	_RESPST_CLEANUP@GOTPCREL(%rip), %r12
	testq	%r15, %r15
	je	LBB0_17
## %bb.6:
	movq	%r13, %rdi
	callq	_reth_va
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_reth_len
	movq	24(%r15), %rsi
	cmpq	%rsi, %rbx
	jl	LBB0_17
## %bb.7:
	movq	32(%r15), %rcx
	cmpq	%rcx, %rax
	jg	LBB0_17
## %bb.8:
	leaq	(%rax,%rbx), %rdx
	addq	%rsi, %rcx
	cmpq	%rcx, %rdx
	jg	LBB0_17
## %bb.9:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_reth_rkey
	cmpq	40(%r15), %rax
	jne	LBB0_17
## %bb.10:
	movq	8(%r13), %rax
	movq	%rax, (%r15)
	cmpq	8(%r15), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	jne	LBB0_11
## %bb.12:
	movq	_rdatm_res_state_new@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_14:
	movq	_RESPST_CLEANUP@GOTPCREL(%rip), %r12
	testq	%r15, %r15
	je	LBB0_17
## %bb.15:
	movl	20(%r15), %edi
	callq	_skb_get
	movl	20(%r15), %edx
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_rxe_xmit_packet
	testl	%eax, %eax
	je	LBB0_17
## %bb.16:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	jmp	LBB0_17
LBB0_11:
	movq	_rdatm_res_state_replay@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %eax
	movl	%eax, 64(%r15)
	movl	$1, 16(%r15)
	movq	%rbx, 24(%r15)
	movq	%rbx, 56(%r15)
	movq	%rcx, 48(%r15)
	movq	%r15, 8(%r14)
	movq	_RESPST_READ_REPLY@GOTPCREL(%rip), %r12
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_BTH_PSN_MASK,4,2               ## @BTH_PSN_MASK
	.comm	_RXE_SEND_MASK,4,2              ## @RXE_SEND_MASK
	.comm	_RXE_WRITE_MASK,4,2             ## @RXE_WRITE_MASK
	.comm	_AETH_ACK_UNLIMITED,4,2         ## @AETH_ACK_UNLIMITED
	.comm	_RESPST_CLEANUP,4,2             ## @RESPST_CLEANUP
	.comm	_RXE_READ_MASK,4,2              ## @RXE_READ_MASK
	.comm	_rdatm_res_state_new,4,2        ## @rdatm_res_state_new
	.comm	_rdatm_res_state_replay,4,2     ## @rdatm_res_state_replay
	.comm	_RESPST_READ_REPLY,4,2          ## @RESPST_READ_REPLY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed resending result. This flow is not handled - skb ignored\n"

	.no_dead_strip	_duplicate_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function duplicate_request
_duplicate_request:                     ; @duplicate_request
	.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, x1
	mov	x19, x0
	ldrsw	x21, [x0]
Lloh0:
	adrp	x8, _BTH_PSN_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BTH_PSN_MASK@GOTPAGEOFF]
Lloh2:
	ldrsw	x22, [x8]
	ldr	w8, [x1]
Lloh3:
	adrp	x9, _RXE_SEND_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RXE_SEND_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x9, _RXE_WRITE_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RXE_WRITE_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
LBB0_2:
	mov	x0, x20
	bl	_bth_ack
	cbz	x0, LBB0_4
; %bb.3:
	sub	x8, x21, #1
	and	x3, x8, x22
Lloh9:
	adrp	x8, _AETH_ACK_UNLIMITED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AETH_ACK_UNLIMITED@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_send_ack
LBB0_4:
Lloh12:
	adrp	x8, _RESPST_CLEANUP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RESPST_CLEANUP@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	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
LBB0_6:
Lloh14:
	adrp	x9, _RXE_READ_MASK@GOTPAGE
Lloh15:
	ldr	x9, [x9, _RXE_READ_MASK@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	and	w22, w9, w8
	ldr	x1, [x20, #8]
	mov	x0, x19
	bl	_find_resource
	mov	x21, x0
	cbz	w22, LBB0_13
; %bb.7:
	cbz	x21, LBB0_4
; %bb.8:
	mov	x0, x20
	bl	_reth_va
	mov	x22, x0
	mov	x0, x20
	bl	_reth_len
	ldr	x8, [x21, #24]
	cmp	x22, x8
	b.lt	LBB0_4
; %bb.9:
	mov	x23, x0
	ldr	x9, [x21, #32]
	cmp	x0, x9
	b.gt	LBB0_4
; %bb.10:
	add	x10, x23, x22
	add	x8, x9, x8
	cmp	x10, x8
	b.gt	LBB0_4
; %bb.11:
	mov	x0, x20
	bl	_reth_rkey
	ldr	x8, [x21, #40]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.12:
	ldr	x8, [x20, #8]
	str	x8, [x21]
	ldr	x9, [x21, #8]
Lloh17:
	adrp	x10, _rdatm_res_state_new@GOTPAGE
Lloh18:
	ldr	x10, [x10, _rdatm_res_state_new@GOTPAGEOFF]
Lloh19:
	adrp	x11, _rdatm_res_state_replay@GOTPAGE
Lloh20:
	ldr	x11, [x11, _rdatm_res_state_replay@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	w8, [x8]
	str	w8, [x21, #64]
	mov	w8, #1
	str	w8, [x21, #16]
	str	x22, [x21, #24]
	stp	x23, x22, [x21, #48]
	str	x21, [x19, #8]
Lloh21:
	adrp	x8, _RESPST_READ_REPLY@GOTPAGE
Lloh22:
	ldr	x8, [x8, _RESPST_READ_REPLY@GOTPAGEOFF]
	b	LBB0_5
LBB0_13:
	cbz	x21, LBB0_4
; %bb.14:
	ldr	w0, [x21, #20]
	bl	_skb_get
	ldr	w2, [x21, #20]
	mov	x0, x19
	mov	x1, x20
	bl	_rxe_xmit_packet
	cbz	w0, LBB0_4
; %bb.15:
Lloh23:
	adrp	x0, l_.str@PAGE
Lloh24:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_BTH_PSN_MASK,4,2               ; @BTH_PSN_MASK
	.comm	_RXE_SEND_MASK,4,2              ; @RXE_SEND_MASK
	.comm	_RXE_WRITE_MASK,4,2             ; @RXE_WRITE_MASK
	.comm	_AETH_ACK_UNLIMITED,4,2         ; @AETH_ACK_UNLIMITED
	.comm	_RESPST_CLEANUP,4,2             ; @RESPST_CLEANUP
	.comm	_RXE_READ_MASK,4,2              ; @RXE_READ_MASK
	.comm	_rdatm_res_state_new,4,2        ; @rdatm_res_state_new
	.comm	_rdatm_res_state_replay,4,2     ; @rdatm_res_state_replay
	.comm	_RESPST_READ_REPLY,4,2          ; @RESPST_READ_REPLY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed resending result. This flow is not handled - skb ignored\n"

	.no_dead_strip	_duplicate_request
.subsections_via_symbols
