	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qedr_pci_set_atomic
_qedr_pci_set_atomic:                   ## @qedr_pci_set_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rax
	movq	%rdi, %rbx
	movq	_PCI_EXP_DEVCAP2_ATOMIC_COMP64@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_pci_enable_atomic_ops_to_root
	testl	%eax, %eax
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str(%rip), %rdx
	cmoveq	%rax, %rdx
	movq	_IB_ATOMIC_NONE@GOTPCREL(%rip), %rax
	cmoveq	_IB_ATOMIC_GLOB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	_QEDR_MSG_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_DP_DEBUG                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_EXP_DEVCAP2_ATOMIC_COMP64,4,2 ## @PCI_EXP_DEVCAP2_ATOMIC_COMP64
	.comm	_IB_ATOMIC_NONE,4,2             ## @IB_ATOMIC_NONE
	.comm	_QEDR_MSG_INIT,4,2              ## @QEDR_MSG_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Atomic capability disabled\n"

	.comm	_IB_ATOMIC_GLOB,4,2             ## @IB_ATOMIC_GLOB
L_.str.1:                               ## @.str.1
	.asciz	"Atomic capability enabled\n"

	.no_dead_strip	_qedr_pci_set_atomic
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qedr_pci_set_atomic
_qedr_pci_set_atomic:                   ; @qedr_pci_set_atomic
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x8, x1
	mov	x19, x0
Lloh0:
	adrp	x9, _PCI_EXP_DEVCAP2_ATOMIC_COMP64@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PCI_EXP_DEVCAP2_ATOMIC_COMP64@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	mov	x0, x8
	bl	_pci_enable_atomic_ops_to_root
Lloh3:
	adrp	x8, l_.str@PAGE
Lloh4:
	add	x8, x8, l_.str@PAGEOFF
Lloh5:
	adrp	x9, l_.str.1@PAGE
Lloh6:
	add	x9, x9, l_.str.1@PAGEOFF
	cmp	w0, #0
Lloh7:
	adrp	x10, _IB_ATOMIC_GLOB@GOTPAGE
Lloh8:
	ldr	x10, [x10, _IB_ATOMIC_GLOB@GOTPAGEOFF]
	csel	x2, x9, x8, eq
Lloh9:
	adrp	x8, _IB_ATOMIC_NONE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IB_ATOMIC_NONE@GOTPAGEOFF]
	csel	x8, x10, x8, eq
	ldr	w8, [x8]
	str	w8, [x19]
Lloh11:
	adrp	x8, _QEDR_MSG_INIT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _QEDR_MSG_INIT@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_DP_DEBUG
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_EXP_DEVCAP2_ATOMIC_COMP64,4,2 ; @PCI_EXP_DEVCAP2_ATOMIC_COMP64
	.comm	_IB_ATOMIC_NONE,4,2             ; @IB_ATOMIC_NONE
	.comm	_QEDR_MSG_INIT,4,2              ; @QEDR_MSG_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Atomic capability disabled\n"

	.comm	_IB_ATOMIC_GLOB,4,2             ; @IB_ATOMIC_GLOB
l_.str.1:                               ; @.str.1
	.asciz	"Atomic capability enabled\n"

	.no_dead_strip	_qedr_pci_set_atomic
.subsections_via_symbols
