	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_num_rd_atomic
_update_num_rd_atomic:                  ## @update_num_rd_atomic
	.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	16(%rdx), %rax
	movq	_IB_WR_RDMA_READ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.1:
	movq	_IB_WR_ATOMIC_CMP_AND_SWP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movq	_IB_WR_ATOMIC_FETCH_AND_ADD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.4:
	movq	_IB_WR_TID_RDMA_READ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.5:
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdx, %rdi
	callq	_wqe_to_tid_req
	movq	%rax, %r15
	movq	8(%r14), %r13
	movl	8(%rbx), %esi
	movq	%r12, %rdi
	callq	_cmp_psn
	testq	%rax, %rax
	jle	LBB0_6
## %bb.10:
	movq	(%r15), %rax
	addl	%eax, 8(%r13)
	addq	%rax, (%r14)
	jmp	LBB0_11
LBB0_3:
	incq	(%r14)
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	(%rbx), %rcx
	subq	%rcx, %r12
	movq	(%r13), %rsi
	movq	%r12, %rax
	orq	%rsi, %rax
	shrq	$32, %rax
	je	LBB0_7
## %bb.8:
	movq	%r12, %rax
	cqto
	idivq	%rsi
	jmp	LBB0_9
LBB0_7:
	movl	%r12d, %eax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $eax killed $eax def $rax
LBB0_9:
	subq	16(%r15), %rax
	movq	%rax, 8(%r15)
	addl	%eax, 8(%r13)
	addq	%rax, (%r14)
	movq	16(%rbx), %rdx
	movl	8(%rbx), %r8d
	movq	%r14, %rdi
	xorl	%esi, %esi
	movq	%r15, %r9
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_trace_hfi1_tid_req_update_num_rd_atomic ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_WR_RDMA_READ,8,3            ## @IB_WR_RDMA_READ
	.comm	_IB_WR_ATOMIC_CMP_AND_SWP,8,3   ## @IB_WR_ATOMIC_CMP_AND_SWP
	.comm	_IB_WR_ATOMIC_FETCH_AND_ADD,8,3 ## @IB_WR_ATOMIC_FETCH_AND_ADD
	.comm	_IB_WR_TID_RDMA_READ,8,3        ## @IB_WR_TID_RDMA_READ
	.no_dead_strip	_update_num_rd_atomic
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_num_rd_atomic
_update_num_rd_atomic:                  ; @update_num_rd_atomic
	.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	x19, x0
	ldr	x8, [x2, #16]
Lloh0:
	adrp	x9, _IB_WR_RDMA_READ@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IB_WR_RDMA_READ@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _IB_WR_ATOMIC_CMP_AND_SWP@GOTPAGE
Lloh4:
	ldr	x10, [x10, _IB_WR_ATOMIC_CMP_AND_SWP@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
Lloh6:
	adrp	x11, _IB_WR_ATOMIC_FETCH_AND_ADD@GOTPAGE
Lloh7:
	ldr	x11, [x11, _IB_WR_ATOMIC_FETCH_AND_ADD@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x8, x11, #4, ne
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x19]
	add	x8, x8, #1
	b	LBB0_5
LBB0_2:
Lloh9:
	adrp	x9, _IB_WR_TID_RDMA_READ@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IB_WR_TID_RDMA_READ@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.3:
	mov	x20, x2
	mov	x21, x1
	mov	x0, x2
	bl	_wqe_to_tid_req
	mov	x22, x0
	ldr	x23, [x19, #8]
	ldr	w1, [x20, #8]
	mov	x0, x21
	bl	_cmp_psn
	cmp	x0, #0
	b.le	LBB0_7
; %bb.4:
	ldr	x8, [x22]
	ldr	w9, [x23, #8]
	add	w9, w9, w8
	str	w9, [x23, #8]
	ldr	x9, [x19]
	add	x8, x9, x8
LBB0_5:
	str	x8, [x19]
LBB0_6:
	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_7:
	ldr	x3, [x20]
	sub	x8, x21, x3
	ldr	x9, [x23]
	sdiv	x8, x8, x9
	ldr	x9, [x22, #16]
	ldr	w10, [x23, #8]
	sub	x8, x8, x9
	add	w9, w10, w8
	str	x8, [x22, #8]
	str	w9, [x23, #8]
	ldr	x9, [x19]
	add	x8, x9, x8
	str	x8, [x19]
	ldr	x2, [x20, #16]
	ldr	w4, [x20, #8]
	mov	x0, x19
	mov	w1, #0
	mov	x5, x22
	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
	b	_trace_hfi1_tid_req_update_num_rd_atomic
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_WR_RDMA_READ,8,3            ; @IB_WR_RDMA_READ
	.comm	_IB_WR_ATOMIC_CMP_AND_SWP,8,3   ; @IB_WR_ATOMIC_CMP_AND_SWP
	.comm	_IB_WR_ATOMIC_FETCH_AND_ADD,8,3 ; @IB_WR_ATOMIC_FETCH_AND_ADD
	.comm	_IB_WR_TID_RDMA_READ,8,3        ; @IB_WR_TID_RDMA_READ
	.no_dead_strip	_update_num_rd_atomic
.subsections_via_symbols
