	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function process_atomic
_process_atomic:                        ## @process_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_atmeth_va
	movq	8(%rbx), %rdi
	movq	(%rdi), %rcx
	movq	_RXE_MEM_STATE_VALID@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_1
## %bb.2:
	movq	%rax, %rsi
	movl	$8, %edx
	callq	_iova_to_vaddr
	movq	%rax, %r14
	movq	_RESPST_ERR_MISALIGNED_ATOMIC@GOTPCREL(%rip), %rax
	testq	%r14, %r14
	je	LBB0_11
## %bb.3:
	movl	%r14d, %ecx
	andl	$7, %ecx
	testq	%rcx, %rcx
	jne	LBB0_11
## %bb.4:
	movq	_atomic_ops_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_bh
	movq	(%r14), %rax
	movq	%rax, (%rbx)
	movq	(%r15), %rax
	movq	_IB_OPCODE_RC_COMPARE_SWAP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.5:
	movq	_IB_OPCODE_RD_COMPARE_SWAP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.8:
	movq	%r15, %rdi
	callq	_atmeth_swap_add
	addq	(%r14), %rax
	jmp	LBB0_9
LBB0_1:
	movq	_RESPST_ERR_RKEY_VIOLATION@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_6:
	movq	(%r14), %rbx
	movq	%r15, %rdi
	callq	_atmeth_comp
	cmpq	%rax, %rbx
	jne	LBB0_10
## %bb.7:
	movq	%r15, %rdi
	callq	_atmeth_swap_add
LBB0_9:
	movq	%rax, (%r14)
LBB0_10:
	movq	_atomic_ops_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_bh
	movq	_RESPST_NONE@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RXE_MEM_STATE_VALID,8,3        ## @RXE_MEM_STATE_VALID
	.comm	_RESPST_ERR_RKEY_VIOLATION,4,2  ## @RESPST_ERR_RKEY_VIOLATION
	.comm	_RESPST_ERR_MISALIGNED_ATOMIC,4,2 ## @RESPST_ERR_MISALIGNED_ATOMIC
	.comm	_atomic_ops_lock,4,2            ## @atomic_ops_lock
	.comm	_IB_OPCODE_RC_COMPARE_SWAP,8,3  ## @IB_OPCODE_RC_COMPARE_SWAP
	.comm	_IB_OPCODE_RD_COMPARE_SWAP,8,3  ## @IB_OPCODE_RD_COMPARE_SWAP
	.comm	_RESPST_NONE,4,2                ## @RESPST_NONE
	.no_dead_strip	_process_atomic
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function process_atomic
_process_atomic:                        ; @process_atomic
	.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, x1
	mov	x21, x0
	mov	x0, x1
	bl	_atmeth_va
	mov	x1, x0
	ldr	x0, [x21, #8]
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _RXE_MEM_STATE_VALID@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RXE_MEM_STATE_VALID@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	mov	w2, #8
	bl	_iova_to_vaddr
	and	x8, x0, #0x7
	cmp	x0, #0
	ccmp	x8, #0, #0, ne
	b.eq	LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _RESPST_ERR_MISALIGNED_ATOMIC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RESPST_ERR_MISALIGNED_ATOMIC@GOTPAGEOFF]
	b	LBB0_10
LBB0_3:
Lloh5:
	adrp	x8, _RESPST_ERR_RKEY_VIOLATION@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RESPST_ERR_RKEY_VIOLATION@GOTPAGEOFF]
	b	LBB0_10
LBB0_4:
	mov	x20, x0
Lloh7:
	adrp	x0, _atomic_ops_lock@GOTPAGE
Lloh8:
	ldr	x0, [x0, _atomic_ops_lock@GOTPAGEOFF]
	bl	_spin_lock_bh
	ldr	x8, [x20]
	str	x8, [x21]
	ldr	x8, [x19]
Lloh9:
	adrp	x9, _IB_OPCODE_RC_COMPARE_SWAP@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IB_OPCODE_RC_COMPARE_SWAP@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
Lloh12:
	adrp	x10, _IB_OPCODE_RD_COMPARE_SWAP@GOTPAGE
Lloh13:
	ldr	x10, [x10, _IB_OPCODE_RD_COMPARE_SWAP@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_7
; %bb.5:
	ldr	x21, [x20]
	mov	x0, x19
	bl	_atmeth_comp
	cmp	x21, x0
	b.ne	LBB0_9
; %bb.6:
	mov	x0, x19
	bl	_atmeth_swap_add
	b	LBB0_8
LBB0_7:
	mov	x0, x19
	bl	_atmeth_swap_add
	ldr	x8, [x20]
	add	x0, x8, x0
LBB0_8:
	str	x0, [x20]
LBB0_9:
Lloh15:
	adrp	x0, _atomic_ops_lock@GOTPAGE
Lloh16:
	ldr	x0, [x0, _atomic_ops_lock@GOTPAGEOFF]
	bl	_spin_unlock_bh
Lloh17:
	adrp	x8, _RESPST_NONE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _RESPST_NONE@GOTPAGEOFF]
LBB0_10:
	ldr	w0, [x8]
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_RXE_MEM_STATE_VALID,8,3        ; @RXE_MEM_STATE_VALID
	.comm	_RESPST_ERR_RKEY_VIOLATION,4,2  ; @RESPST_ERR_RKEY_VIOLATION
	.comm	_RESPST_ERR_MISALIGNED_ATOMIC,4,2 ; @RESPST_ERR_MISALIGNED_ATOMIC
	.comm	_atomic_ops_lock,4,2            ; @atomic_ops_lock
	.comm	_IB_OPCODE_RC_COMPARE_SWAP,8,3  ; @IB_OPCODE_RC_COMPARE_SWAP
	.comm	_IB_OPCODE_RD_COMPARE_SWAP,8,3  ; @IB_OPCODE_RD_COMPARE_SWAP
	.comm	_RESPST_NONE,4,2                ; @RESPST_NONE
	.no_dead_strip	_process_atomic
.subsections_via_symbols
