	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_hca_cap_atomic
_handle_hca_cap_atomic:                 ## @handle_hca_cap_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, %rbx
	movq	_set_hca_cap_in@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_MLX5_ST_SZ_BYTES
	movl	%eax, %r14d
	movq	_atomic@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_MLX5_CAP_GEN
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.1:
	movq	_MLX5_CAP_ATOMIC@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_mlx5_core_get_caps
	testl	%eax, %eax
	jne	LBB0_6
## %bb.2:
	movq	_supported_atomic_req_8B_endianness_mode_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_MLX5_CAP_ATOMIC
	movl	%eax, %ecx
	movq	_MLX5_ATOMIC_REQ_MODE_HOST_ENDIANNESS@GOTPCREL(%rip), %r13
	movl	$0, %eax
	cmpl	(%r13), %ecx
	jne	LBB0_6
## %bb.3:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r15
	movl	(%r12), %edi
	movq	_capability@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rsi
	callq	_MLX5_ADDR_OF
	movq	_atomic_caps@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_atomic_req_8B_endianness_mode@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	(%r13), %ecx
	movq	%rax, %rsi
	callq	_MLX5_SET
	movq	_MLX5_SET_HCA_CAP_OP_MOD_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_set_caps
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_kfree
	movl	%ebx, %eax
	jmp	LBB0_6
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_set_hca_cap_in,4,2             ## @set_hca_cap_in
	.comm	_atomic,4,2                     ## @atomic
	.comm	_supported_atomic_req_8B_endianness_mode_1,4,2 ## @supported_atomic_req_8B_endianness_mode_1
	.comm	_MLX5_ATOMIC_REQ_MODE_HOST_ENDIANNESS,4,2 ## @MLX5_ATOMIC_REQ_MODE_HOST_ENDIANNESS
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_capability,4,2                 ## @capability
	.comm	_atomic_caps,4,2                ## @atomic_caps
	.comm	_atomic_req_8B_endianness_mode,4,2 ## @atomic_req_8B_endianness_mode
	.comm	_MLX5_SET_HCA_CAP_OP_MOD_ATOMIC,4,2 ## @MLX5_SET_HCA_CAP_OP_MOD_ATOMIC
	.no_dead_strip	_handle_hca_cap_atomic
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_hca_cap_atomic
_handle_hca_cap_atomic:                 ; @handle_hca_cap_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
Lloh0:
	adrp	x22, _set_hca_cap_in@GOTPAGE
Lloh1:
	ldr	x22, [x22, _set_hca_cap_in@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_MLX5_ST_SZ_BYTES
	mov	x20, x0
Lloh2:
	adrp	x8, _atomic@GOTPAGE
Lloh3:
	ldr	x8, [x8, _atomic@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_MLX5_CAP_GEN
	cbz	x0, LBB0_7
; %bb.1:
Lloh5:
	adrp	x1, _MLX5_CAP_ATOMIC@GOTPAGE
Lloh6:
	ldr	x1, [x1, _MLX5_CAP_ATOMIC@GOTPAGEOFF]
	mov	x0, x19
	bl	_mlx5_core_get_caps
	cbnz	w0, LBB0_7
; %bb.2:
Lloh7:
	adrp	x8, _supported_atomic_req_8B_endianness_mode_1@GOTPAGE
Lloh8:
	ldr	x8, [x8, _supported_atomic_req_8B_endianness_mode_1@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_MLX5_CAP_ATOMIC
Lloh10:
	adrp	x23, _MLX5_ATOMIC_REQ_MODE_HOST_ENDIANNESS@GOTPAGE
Lloh11:
	ldr	x23, [x23, _MLX5_ATOMIC_REQ_MODE_HOST_ENDIANNESS@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w0, w8
	b.ne	LBB0_5
; %bb.3:
Lloh12:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_kzalloc
	cbz	x0, LBB0_6
; %bb.4:
	mov	x21, x0
	ldr	w0, [x22]
Lloh15:
	adrp	x8, _capability@GOTPAGE
Lloh16:
	ldr	x8, [x8, _capability@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x1, x21
	bl	_MLX5_ADDR_OF
	mov	x1, x0
Lloh18:
	adrp	x8, _atomic_caps@GOTPAGE
Lloh19:
	ldr	x8, [x8, _atomic_caps@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x8, _atomic_req_8B_endianness_mode@GOTPAGE
Lloh22:
	ldr	x8, [x8, _atomic_req_8B_endianness_mode@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	ldr	w3, [x23]
	bl	_MLX5_SET
Lloh24:
	adrp	x8, _MLX5_SET_HCA_CAP_OP_MOD_ATOMIC@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MLX5_SET_HCA_CAP_OP_MOD_ATOMIC@GOTPAGEOFF]
Lloh26:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_set_caps
	mov	x19, x0
	mov	x0, x21
	bl	_kfree
	mov	x0, x19
	b	LBB0_7
LBB0_5:
	mov	w0, #0
	b	LBB0_7
LBB0_6:
Lloh27:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_set_hca_cap_in,4,2             ; @set_hca_cap_in
	.comm	_atomic,4,2                     ; @atomic
	.comm	_supported_atomic_req_8B_endianness_mode_1,4,2 ; @supported_atomic_req_8B_endianness_mode_1
	.comm	_MLX5_ATOMIC_REQ_MODE_HOST_ENDIANNESS,4,2 ; @MLX5_ATOMIC_REQ_MODE_HOST_ENDIANNESS
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_capability,4,2                 ; @capability
	.comm	_atomic_caps,4,2                ; @atomic_caps
	.comm	_atomic_req_8B_endianness_mode,4,2 ; @atomic_req_8B_endianness_mode
	.comm	_MLX5_SET_HCA_CAP_OP_MOD_ATOMIC,4,2 ; @MLX5_SET_HCA_CAP_OP_MOD_ATOMIC
	.no_dead_strip	_handle_hca_cap_atomic
.subsections_via_symbols
