	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_atomic_caps
_get_atomic_caps:                       ## @get_atomic_caps
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %r14d
	movq	%rdi, %r12
	movl	(%rdi), %edi
	callq	_MLX5_CAP_ATOMIC
	movl	%eax, %ebx
	movl	(%r12), %edi
	callq	_MLX5_CAP_ATOMIC
	movq	_MLX5_ATOMIC_OPS_CMP_SWAP@GOTPCREL(%rip), %rcx
	movq	_MLX5_ATOMIC_OPS_FETCH_ADD@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	notl	%ebx
	testl	%ebx, %edx
	jne	LBB0_4
## %bb.1:
	movq	_MLX5_ATOMIC_SIZE_QP_8BYTES@GOTPCREL(%rip), %rcx
	testl	%r14d, (%rcx)
	je	LBB0_4
## %bb.2:
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	_IB_ATOMIC_HCA@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movq	_IB_ATOMIC_NONE@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, (%r15)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX5_ATOMIC_OPS_CMP_SWAP,4,2   ## @MLX5_ATOMIC_OPS_CMP_SWAP
	.comm	_MLX5_ATOMIC_OPS_FETCH_ADD,4,2  ## @MLX5_ATOMIC_OPS_FETCH_ADD
	.comm	_MLX5_ATOMIC_SIZE_QP_8BYTES,4,2 ## @MLX5_ATOMIC_SIZE_QP_8BYTES
	.comm	_IB_ATOMIC_HCA,4,2              ## @IB_ATOMIC_HCA
	.comm	_IB_ATOMIC_NONE,4,2             ## @IB_ATOMIC_NONE
	.comm	_atomic_operations,4,2          ## @atomic_operations
	.comm	_atomic_req_8B_endianness_mode,4,2 ## @atomic_req_8B_endianness_mode
	.no_dead_strip	_get_atomic_caps
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_atomic_caps
_get_atomic_caps:                       ; @get_atomic_caps
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w0, [x0]
	bl	_MLX5_CAP_ATOMIC
	mov	x22, x0
	ldr	w0, [x21]
	bl	_MLX5_CAP_ATOMIC
Lloh0:
	adrp	x8, _MLX5_ATOMIC_OPS_CMP_SWAP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX5_ATOMIC_OPS_CMP_SWAP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _MLX5_ATOMIC_OPS_FETCH_ADD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MLX5_ATOMIC_OPS_FETCH_ADD@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bics	wzr, w8, w22
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _MLX5_ATOMIC_SIZE_QP_8BYTES@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MLX5_ATOMIC_SIZE_QP_8BYTES@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	and	w8, w8, w20
	cmp	w8, #0
	ccmp	w0, #0, #4, ne
	b.ne	LBB0_3
LBB0_2:
Lloh9:
	adrp	x8, _IB_ATOMIC_NONE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IB_ATOMIC_NONE@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh11:
	adrp	x8, _IB_ATOMIC_HCA@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IB_ATOMIC_HCA@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	str	w8, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX5_ATOMIC_OPS_CMP_SWAP,4,2   ; @MLX5_ATOMIC_OPS_CMP_SWAP
	.comm	_MLX5_ATOMIC_OPS_FETCH_ADD,4,2  ; @MLX5_ATOMIC_OPS_FETCH_ADD
	.comm	_MLX5_ATOMIC_SIZE_QP_8BYTES,4,2 ; @MLX5_ATOMIC_SIZE_QP_8BYTES
	.comm	_IB_ATOMIC_HCA,4,2              ; @IB_ATOMIC_HCA
	.comm	_IB_ATOMIC_NONE,4,2             ; @IB_ATOMIC_NONE
	.comm	_atomic_operations,4,2          ; @atomic_operations
	.comm	_atomic_req_8B_endianness_mode,4,2 ; @atomic_req_8B_endianness_mode
	.no_dead_strip	_get_atomic_caps
.subsections_via_symbols
