	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ring_kernel_db
_ring_kernel_db:                        ## @ring_kernel_db
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movl	$0, -32(%rbp)
	xorl	%eax, %eax
	callq	_udma_to_device_barrier
	cmpq	%rbx, 8(%r15)
	jne	LBB0_2
## %bb.1:
	movq	%r14, -40(%rbp)
	movq	_IBV_QP_SQ_PSN@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	movq	%r14, -48(%rbp)
	movq	_IBV_QP_RQ_PSN@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %edx
	leaq	-48(%rbp), %rsi
	leaq	-32(%rbp), %rcx
	movq	%r15, %rdi
	movl	$4, %r8d
	callq	_ibv_cmd_modify_qp
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_assert
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IBV_QP_SQ_PSN,4,2              ## @IBV_QP_SQ_PSN
	.comm	_IBV_QP_RQ_PSN,4,2              ## @IBV_QP_RQ_PSN
	.no_dead_strip	_ring_kernel_db
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ring_kernel_db
_ring_kernel_db:                        ; @ring_kernel_db
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	str	wzr, [sp, #24]
	bl	_udma_to_device_barrier
	ldr	x8, [x19, #8]
	cmp	x8, x21
	b.ne	LBB0_2
; %bb.1:
	str	x20, [sp, #16]
Lloh0:
	adrp	x8, _IBV_QP_SQ_PSN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IBV_QP_SQ_PSN@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
	str	x20, [sp, #8]
Lloh2:
	adrp	x8, _IBV_QP_RQ_PSN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IBV_QP_RQ_PSN@GOTPAGEOFF]
LBB0_3:
	ldr	w2, [x8]
	add	x1, sp, #8
	add	x3, sp, #24
	mov	x0, x19
	mov	w4, #4
	bl	_ibv_cmd_modify_qp
	cmp	w0, #0
	cset	w0, eq
	bl	_assert
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_IBV_QP_SQ_PSN,4,2              ; @IBV_QP_SQ_PSN
	.comm	_IBV_QP_RQ_PSN,4,2              ; @IBV_QP_RQ_PSN
	.no_dead_strip	_ring_kernel_db
.subsections_via_symbols
