	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_rkey
_check_rkey:                            ## @check_rkey
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	(%rdi), %r13d
	movl	(%rsi), %eax
	movq	_RXE_READ_MASK@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	movq	_RXE_WRITE_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	%ecx, %edx
	testl	%eax, %edx
	je	LBB0_5
## %bb.1:
	movq	_RXE_RETH_MASK@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	_reth_va
	movl	%eax, 24(%rbx)
	movq	%r14, %rdi
	callq	_reth_rkey
	movl	%eax, 8(%rbx)
	movq	%r14, %rdi
	callq	_reth_len
	movl	%eax, 12(%rbx)
	movq	%r14, %rdi
	callq	_reth_len
	movq	%rax, 32(%rbx)
	movl	(%r14), %eax
	movl	(%r12), %ecx
LBB0_3:
	testl	%eax, %ecx
	jne	LBB0_7
## %bb.4:
	movq	_IB_ACCESS_REMOTE_WRITE@GOTPCREL(%rip), %rdx
	jmp	LBB0_8
LBB0_5:
	movq	_RXE_ATOMIC_MASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_24
## %bb.6:
	movq	%r14, %rdi
	callq	_atmeth_va
	movl	%eax, 24(%rbx)
	movq	%r14, %rdi
	callq	_atmeth_rkey
	movl	%eax, 8(%rbx)
	movl	$4, 12(%rbx)
	movq	_IB_ACCESS_REMOTE_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	(%r14), %eax
	movl	(%r12), %ecx
	jmp	LBB0_9
LBB0_7:
	movq	_IB_ACCESS_REMOTE_READ@GOTPCREL(%rip), %rdx
LBB0_8:
	movl	(%rdx), %r15d
LBB0_9:
	movq	_RXE_WRITE_OR_SEND@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	testl	%eax, %ecx
	je	LBB0_12
## %bb.10:
	movq	_RXE_RETH_MASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_12
## %bb.11:
	movq	%r14, %rdi
	callq	_reth_len
	testq	%rax, %rax
	je	LBB0_24
LBB0_12:
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	movl	24(%rbx), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	8(%rbx), %r12d
	movl	12(%rbx), %r13d
	movq	%r14, %rdi
	callq	_payload_size
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	40(%rbx), %edi
	movq	_lookup_remote@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r15d, %esi
	movl	%r12d, %edx
	callq	_lookup_mem
	testq	%rax, %rax
	je	LBB0_16
## %bb.13:
	movq	%rax, %r15
	movq	(%rax), %rax
	movq	_RXE_MEM_STATE_FREE@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_unlikely
	movq	_RESPST_ERR_RKEY_VIOLATION@GOTPCREL(%rip), %r12
	testq	%rax, %rax
	jne	LBB0_15
## %bb.14:
	movq	%r15, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	%r13d, %edx
	callq	_mem_check_range
	testq	%rax, %rax
	je	LBB0_17
LBB0_15:
	movl	(%r12), %ebx
	movq	%r15, %rdi
	callq	_rxe_drop_ref
	jmp	LBB0_26
LBB0_16:
	movq	_RESPST_ERR_RKEY_VIOLATION@GOTPCREL(%rip), %rax
	jmp	LBB0_25
LBB0_17:
	movq	_RXE_WRITE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_23
## %bb.18:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movq	_RESPST_ERR_LENGTH@GOTPCREL(%rip), %r12
	cmpl	%eax, %r13d
	jle	LBB0_21
## %bb.19:
	cmpl	%eax, -44(%rbp)                 ## 4-byte Folded Reload
	jne	LBB0_15
## %bb.20:
	movq	%r14, %rdi
	callq	_bth_pad
	testl	%eax, %eax
	jne	LBB0_15
	jmp	LBB0_23
LBB0_21:
	cmpl	%r13d, -44(%rbp)                ## 4-byte Folded Reload
	jne	LBB0_15
## %bb.22:
	movq	%r14, %rdi
	callq	_bth_pad
	negl	%r13d
	andl	$3, %r13d
	cmpl	%r13d, %eax
	jne	LBB0_15
LBB0_23:
	movq	16(%rbx), %rdi
	callq	_WARN_ON_ONCE
	movq	%r15, 16(%rbx)
LBB0_24:
	movq	_RESPST_EXECUTE@GOTPCREL(%rip), %rax
LBB0_25:
	movl	(%rax), %ebx
LBB0_26:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RXE_READ_MASK,4,2              ## @RXE_READ_MASK
	.comm	_RXE_WRITE_MASK,4,2             ## @RXE_WRITE_MASK
	.comm	_RXE_RETH_MASK,4,2              ## @RXE_RETH_MASK
	.comm	_IB_ACCESS_REMOTE_READ,4,2      ## @IB_ACCESS_REMOTE_READ
	.comm	_IB_ACCESS_REMOTE_WRITE,4,2     ## @IB_ACCESS_REMOTE_WRITE
	.comm	_RXE_ATOMIC_MASK,4,2            ## @RXE_ATOMIC_MASK
	.comm	_IB_ACCESS_REMOTE_ATOMIC,4,2    ## @IB_ACCESS_REMOTE_ATOMIC
	.comm	_RESPST_EXECUTE,4,2             ## @RESPST_EXECUTE
	.comm	_RXE_WRITE_OR_SEND,4,2          ## @RXE_WRITE_OR_SEND
	.comm	_lookup_remote,4,2              ## @lookup_remote
	.comm	_RESPST_ERR_RKEY_VIOLATION,4,2  ## @RESPST_ERR_RKEY_VIOLATION
	.comm	_RXE_MEM_STATE_FREE,8,3         ## @RXE_MEM_STATE_FREE
	.comm	_RESPST_ERR_LENGTH,4,2          ## @RESPST_ERR_LENGTH
	.no_dead_strip	_check_rkey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_rkey
_check_rkey:                            ; @check_rkey
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x19, x0
	ldr	w26, [x0]
	ldr	w8, [x1]
Lloh0:
	adrp	x23, _RXE_READ_MASK@GOTPAGE
Lloh1:
	ldr	x23, [x23, _RXE_READ_MASK@GOTPAGEOFF]
Lloh2:
	adrp	x27, _RXE_WRITE_MASK@GOTPAGE
Lloh3:
	ldr	x27, [x27, _RXE_WRITE_MASK@GOTPAGEOFF]
	ldr	w9, [x23]
	ldr	w10, [x27]
	orr	w10, w10, w9
Lloh4:
	adrp	x22, _RXE_RETH_MASK@GOTPAGE
Lloh5:
	ldr	x22, [x22, _RXE_RETH_MASK@GOTPAGEOFF]
	tst	w10, w8
	b.eq	LBB0_4
; %bb.1:
	ldr	w10, [x22]
	tst	w10, w8
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_reth_va
	str	w0, [x19, #24]
	mov	x0, x20
	bl	_reth_rkey
	str	w0, [x19, #8]
	mov	x0, x20
	bl	_reth_len
	str	w0, [x19, #12]
	mov	x0, x20
	bl	_reth_len
	str	x0, [x19, #32]
	ldr	w8, [x20]
	ldr	w9, [x23]
LBB0_3:
Lloh6:
	adrp	x10, _IB_ACCESS_REMOTE_READ@GOTPAGE
Lloh7:
	ldr	x10, [x10, _IB_ACCESS_REMOTE_READ@GOTPAGEOFF]
Lloh8:
	adrp	x11, _IB_ACCESS_REMOTE_WRITE@GOTPAGE
Lloh9:
	ldr	x11, [x11, _IB_ACCESS_REMOTE_WRITE@GOTPAGEOFF]
	tst	w9, w8
	csel	x10, x11, x10, eq
	ldr	w21, [x10]
	b	LBB0_6
LBB0_4:
Lloh10:
	adrp	x9, _RXE_ATOMIC_MASK@GOTPAGE
Lloh11:
	ldr	x9, [x9, _RXE_ATOMIC_MASK@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_22
; %bb.5:
	mov	x0, x20
	bl	_atmeth_va
	str	w0, [x19, #24]
	mov	x0, x20
	bl	_atmeth_rkey
	mov	w8, #4
	stp	w0, w8, [x19, #8]
Lloh13:
	adrp	x8, _IB_ACCESS_REMOTE_ATOMIC@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IB_ACCESS_REMOTE_ATOMIC@GOTPAGEOFF]
Lloh15:
	ldr	w21, [x8]
	ldr	w8, [x20]
	ldr	w9, [x23]
LBB0_6:
Lloh16:
	adrp	x10, _RXE_WRITE_OR_SEND@GOTPAGE
Lloh17:
	ldr	x10, [x10, _RXE_WRITE_OR_SEND@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_9
; %bb.7:
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
	mov	x0, x20
	bl	_reth_len
	cbz	x0, LBB0_22
LBB0_9:
	ldr	w24, [x19, #24]
	ldp	w25, w22, [x19, #8]
	mov	x0, x20
	bl	_payload_size
	mov	x23, x0
	ldr	w0, [x19, #40]
Lloh19:
	adrp	x8, _lookup_remote@GOTPAGE
Lloh20:
	ldr	x8, [x8, _lookup_remote@GOTPAGEOFF]
Lloh21:
	ldr	w3, [x8]
	mov	x1, x21
	mov	x2, x25
	bl	_lookup_mem
	cbz	x0, LBB0_14
; %bb.10:
	mov	x21, x0
	ldr	x8, [x0]
Lloh22:
	adrp	x9, _RXE_MEM_STATE_FREE@GOTPAGE
Lloh23:
	ldr	x9, [x9, _RXE_MEM_STATE_FREE@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_12
; %bb.11:
	mov	x0, x21
	mov	x1, x24
	mov	x2, x22
	bl	_mem_check_range
	cbz	x0, LBB0_15
LBB0_12:
Lloh25:
	adrp	x8, _RESPST_ERR_RKEY_VIOLATION@GOTPAGE
Lloh26:
	ldr	x8, [x8, _RESPST_ERR_RKEY_VIOLATION@GOTPAGEOFF]
LBB0_13:
	ldr	w19, [x8]
	mov	x0, x21
	bl	_rxe_drop_ref
	b	LBB0_24
LBB0_14:
Lloh27:
	adrp	x8, _RESPST_ERR_RKEY_VIOLATION@GOTPAGE
Lloh28:
	ldr	x8, [x8, _RESPST_ERR_RKEY_VIOLATION@GOTPAGEOFF]
	b	LBB0_23
LBB0_15:
	ldr	w8, [x20]
	ldr	w9, [x27]
	tst	w9, w8
	b.eq	LBB0_21
; %bb.16:
	cmp	w22, w26
	b.le	LBB0_19
; %bb.17:
	cmp	w23, w26
	b.ne	LBB0_25
; %bb.18:
	mov	x0, x20
	bl	_bth_pad
	cbnz	w0, LBB0_25
	b	LBB0_21
LBB0_19:
	cmp	w23, w22
	b.ne	LBB0_25
; %bb.20:
	mov	x0, x20
	bl	_bth_pad
	neg	w8, w22
	and	w8, w8, #0x3
	cmp	w0, w8
	b.ne	LBB0_25
LBB0_21:
	ldr	x0, [x19, #16]
	bl	_WARN_ON_ONCE
	str	x21, [x19, #16]
LBB0_22:
Lloh29:
	adrp	x8, _RESPST_EXECUTE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _RESPST_EXECUTE@GOTPAGEOFF]
LBB0_23:
	ldr	w19, [x8]
LBB0_24:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_25:
Lloh31:
	adrp	x8, _RESPST_ERR_LENGTH@GOTPAGE
Lloh32:
	ldr	x8, [x8, _RESPST_ERR_LENGTH@GOTPAGEOFF]
	b	LBB0_13
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_RXE_READ_MASK,4,2              ; @RXE_READ_MASK
	.comm	_RXE_WRITE_MASK,4,2             ; @RXE_WRITE_MASK
	.comm	_RXE_RETH_MASK,4,2              ; @RXE_RETH_MASK
	.comm	_IB_ACCESS_REMOTE_READ,4,2      ; @IB_ACCESS_REMOTE_READ
	.comm	_IB_ACCESS_REMOTE_WRITE,4,2     ; @IB_ACCESS_REMOTE_WRITE
	.comm	_RXE_ATOMIC_MASK,4,2            ; @RXE_ATOMIC_MASK
	.comm	_IB_ACCESS_REMOTE_ATOMIC,4,2    ; @IB_ACCESS_REMOTE_ATOMIC
	.comm	_RESPST_EXECUTE,4,2             ; @RESPST_EXECUTE
	.comm	_RXE_WRITE_OR_SEND,4,2          ; @RXE_WRITE_OR_SEND
	.comm	_lookup_remote,4,2              ; @lookup_remote
	.comm	_RESPST_ERR_RKEY_VIOLATION,4,2  ; @RESPST_ERR_RKEY_VIOLATION
	.comm	_RXE_MEM_STATE_FREE,8,3         ; @RXE_MEM_STATE_FREE
	.comm	_RESPST_ERR_LENGTH,4,2          ; @RESPST_ERR_LENGTH
	.no_dead_strip	_check_rkey
.subsections_via_symbols
