	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_atomic_mode
_get_atomic_mode:                       ## @get_atomic_mode
	.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
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_MLX5_CAP_ATOMIC
	movq	%rax, %r14
	movl	(%rbx), %edi
	callq	_MLX5_CAP_GEN
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%r12d, %r12d
	subl	(%rcx), %r12d
	testl	%eax, %eax
	je	LBB0_11
## %bb.1:
	movq	_MLX5_IB_QPT_DCT@GOTPCREL(%rip), %rax
	movl	(%rbx), %edi
	cmpl	%r15d, (%rax)
	jne	LBB0_2
## %bb.3:
	movq	_atomic_size_dc@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_atomic_size_qp@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %esi
	callq	_MLX5_CAP_ATOMIC
	movq	_MLX5_ATOMIC_OPS_EXTENDED_CMP_SWAP@GOTPCREL(%rip), %rcx
	testl	%r14d, (%rcx)
	jne	LBB0_6
## %bb.5:
	movq	_MLX5_ATOMIC_OPS_EXTENDED_FETCH_ADD@GOTPCREL(%rip), %rcx
	testl	%r14d, (%rcx)
	je	LBB0_7
LBB0_6:
	movl	%eax, %edi
	callq	_atomic_size_to_mode
	movl	%eax, %r12d
LBB0_7:
	testl	%r12d, %r12d
	jle	LBB0_8
LBB0_11:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_MLX5_ATOMIC_OPS_CMP_SWAP@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_11
## %bb.9:
	movq	_MLX5_ATOMIC_OPS_FETCH_ADD@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_11
## %bb.10:
	movq	_MLX5_ATOMIC_MODE_IB_COMP@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_MLX5_IB_QPT_DCT,4,2            ## @MLX5_IB_QPT_DCT
	.comm	_atomic_size_dc,4,2             ## @atomic_size_dc
	.comm	_atomic_size_qp,4,2             ## @atomic_size_qp
	.comm	_MLX5_ATOMIC_OPS_EXTENDED_CMP_SWAP,4,2 ## @MLX5_ATOMIC_OPS_EXTENDED_CMP_SWAP
	.comm	_MLX5_ATOMIC_OPS_EXTENDED_FETCH_ADD,4,2 ## @MLX5_ATOMIC_OPS_EXTENDED_FETCH_ADD
	.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_MODE_IB_COMP,4,2   ## @MLX5_ATOMIC_MODE_IB_COMP
	.comm	_atomic,4,2                     ## @atomic
	.comm	_atomic_operations,4,2          ## @atomic_operations
	.no_dead_strip	_get_atomic_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_atomic_mode
_get_atomic_mode:                       ; @get_atomic_mode
	.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	x21, x1
	mov	x22, x0
	ldr	w0, [x0]
	bl	_MLX5_CAP_ATOMIC
	mov	x19, x0
	ldr	w0, [x22]
	bl	_MLX5_CAP_GEN
Lloh0:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
	cbz	w0, LBB0_7
; %bb.1:
Lloh3:
	adrp	x8, _MLX5_IB_QPT_DCT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MLX5_IB_QPT_DCT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _atomic_size_dc@GOTPAGE
Lloh7:
	ldr	x9, [x9, _atomic_size_dc@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh8:
	adrp	x10, _atomic_size_qp@GOTPAGE
Lloh9:
	ldr	x10, [x10, _atomic_size_qp@GOTPAGEOFF]
	cmp	w8, w21
	csel	x8, x9, x10, eq
	ldr	w1, [x8]
	bl	_MLX5_CAP_ATOMIC
Lloh10:
	adrp	x8, _MLX5_ATOMIC_OPS_EXTENDED_CMP_SWAP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MLX5_ATOMIC_OPS_EXTENDED_CMP_SWAP@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	tst	w8, w19
	b.ne	LBB0_3
; %bb.2:
Lloh13:
	adrp	x8, _MLX5_ATOMIC_OPS_EXTENDED_FETCH_ADD@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MLX5_ATOMIC_OPS_EXTENDED_FETCH_ADD@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_4
LBB0_3:
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_atomic_size_to_mode
	mov	x20, x0
LBB0_4:
	cmp	w20, #0
	b.gt	LBB0_7
; %bb.5:
Lloh16:
	adrp	x8, _MLX5_ATOMIC_OPS_CMP_SWAP@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MLX5_ATOMIC_OPS_CMP_SWAP@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_7
; %bb.6:
Lloh19:
	adrp	x8, _MLX5_ATOMIC_OPS_FETCH_ADD@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MLX5_ATOMIC_OPS_FETCH_ADD@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _MLX5_ATOMIC_MODE_IB_COMP@GOTPAGE
Lloh23:
	ldr	x9, [x9, _MLX5_ATOMIC_MODE_IB_COMP@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	tst	w8, w19
	csel	w20, w20, w9, eq
LBB0_7:
	mov	x0, x20
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_MLX5_IB_QPT_DCT,4,2            ; @MLX5_IB_QPT_DCT
	.comm	_atomic_size_dc,4,2             ; @atomic_size_dc
	.comm	_atomic_size_qp,4,2             ; @atomic_size_qp
	.comm	_MLX5_ATOMIC_OPS_EXTENDED_CMP_SWAP,4,2 ; @MLX5_ATOMIC_OPS_EXTENDED_CMP_SWAP
	.comm	_MLX5_ATOMIC_OPS_EXTENDED_FETCH_ADD,4,2 ; @MLX5_ATOMIC_OPS_EXTENDED_FETCH_ADD
	.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_MODE_IB_COMP,4,2   ; @MLX5_ATOMIC_MODE_IB_COMP
	.comm	_atomic,4,2                     ; @atomic
	.comm	_atomic_operations,4,2          ; @atomic_operations
	.no_dead_strip	_get_atomic_mode
.subsections_via_symbols
