	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_hw_access_flags
_get_hw_access_flags:                   ## @get_hw_access_flags
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_IB_QP_MAX_DEST_RD_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%edx, %eax
	movq	%rsi, %rcx
	cmoveq	%rdi, %rcx
	movq	_IB_QP_ACCESS_FLAGS@GOTPCREL(%rip), %rax
	andl	(%rax), %edx
	cmoveq	%rdi, %rsi
	movl	(%rsi), %edi
	movq	_IB_ACCESS_REMOTE_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%edi, %eax
	cmpl	$0, 4(%rcx)
	cmovel	%eax, %edi
	movq	_IB_ACCESS_REMOTE_READ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%edi, %ecx
	je	LBB0_2
## %bb.1:
	movq	_MTHCA_QP_BIT_RRE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_2:
	movq	_IB_ACCESS_REMOTE_ATOMIC@GOTPCREL(%rip), %rdx
	andl	(%rdx), %edi
	je	LBB0_4
## %bb.3:
	movq	_MTHCA_QP_BIT_RAE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
LBB0_4:
	orl	%ecx, %edi
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movq	_MTHCA_QP_BIT_RWE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	orl	%eax, %edi
	popq	%rbp
	jmp	_cpu_to_be32                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_QP_MAX_DEST_RD_ATOMIC,4,2   ## @IB_QP_MAX_DEST_RD_ATOMIC
	.comm	_IB_QP_ACCESS_FLAGS,4,2         ## @IB_QP_ACCESS_FLAGS
	.comm	_IB_ACCESS_REMOTE_WRITE,4,2     ## @IB_ACCESS_REMOTE_WRITE
	.comm	_IB_ACCESS_REMOTE_READ,4,2      ## @IB_ACCESS_REMOTE_READ
	.comm	_MTHCA_QP_BIT_RRE,4,2           ## @MTHCA_QP_BIT_RRE
	.comm	_IB_ACCESS_REMOTE_ATOMIC,4,2    ## @IB_ACCESS_REMOTE_ATOMIC
	.comm	_MTHCA_QP_BIT_RAE,4,2           ## @MTHCA_QP_BIT_RAE
	.comm	_MTHCA_QP_BIT_RWE,4,2           ## @MTHCA_QP_BIT_RWE
	.no_dead_strip	_get_hw_access_flags
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_hw_access_flags
_get_hw_access_flags:                   ; @get_hw_access_flags
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _IB_QP_MAX_DEST_RD_ATOMIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_QP_MAX_DEST_RD_ATOMIC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	x9, x1, #4
	add	x10, x0, #4
	tst	w8, w2
	csel	x8, x10, x9, eq
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _IB_QP_ACCESS_FLAGS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IB_QP_ACCESS_FLAGS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w2
	csel	x9, x0, x1, eq
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _IB_ACCESS_REMOTE_WRITE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _IB_ACCESS_REMOTE_WRITE@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
Lloh9:
	adrp	x11, _MTHCA_QP_BIT_RWE@GOTPAGE
Lloh10:
	ldr	x11, [x11, _MTHCA_QP_BIT_RWE@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	ands	w10, w10, w9
	csel	w11, wzr, w11, eq
Lloh12:
	adrp	x12, _IB_ACCESS_REMOTE_READ@GOTPAGE
Lloh13:
	ldr	x12, [x12, _IB_ACCESS_REMOTE_READ@GOTPAGEOFF]
Lloh14:
	ldr	w12, [x12]
Lloh15:
	adrp	x13, _MTHCA_QP_BIT_RRE@GOTPAGE
Lloh16:
	ldr	x13, [x13, _MTHCA_QP_BIT_RRE@GOTPAGEOFF]
Lloh17:
	ldr	w13, [x13]
	cmp	w8, #0
	csel	w8, w10, w9, eq
	tst	w8, w12
Lloh18:
	adrp	x9, _IB_ACCESS_REMOTE_ATOMIC@GOTPAGE
Lloh19:
	ldr	x9, [x9, _IB_ACCESS_REMOTE_ATOMIC@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
Lloh21:
	adrp	x10, _MTHCA_QP_BIT_RAE@GOTPAGE
Lloh22:
	ldr	x10, [x10, _MTHCA_QP_BIT_RAE@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	csel	w12, wzr, w13, eq
	tst	w9, w8
	csel	w8, wzr, w10, eq
	orr	w8, w8, w12
	orr	w0, w8, w11
	b	_cpu_to_be32
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_QP_MAX_DEST_RD_ATOMIC,4,2   ; @IB_QP_MAX_DEST_RD_ATOMIC
	.comm	_IB_QP_ACCESS_FLAGS,4,2         ; @IB_QP_ACCESS_FLAGS
	.comm	_IB_ACCESS_REMOTE_WRITE,4,2     ; @IB_ACCESS_REMOTE_WRITE
	.comm	_IB_ACCESS_REMOTE_READ,4,2      ; @IB_ACCESS_REMOTE_READ
	.comm	_MTHCA_QP_BIT_RRE,4,2           ; @MTHCA_QP_BIT_RRE
	.comm	_IB_ACCESS_REMOTE_ATOMIC,4,2    ; @IB_ACCESS_REMOTE_ATOMIC
	.comm	_MTHCA_QP_BIT_RAE,4,2           ; @MTHCA_QP_BIT_RAE
	.comm	_MTHCA_QP_BIT_RWE,4,2           ; @MTHCA_QP_BIT_RWE
	.no_dead_strip	_get_hw_access_flags
.subsections_via_symbols
