	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40iw_qp_post_wr               ## -- Begin function i40iw_qp_post_wr
	.p2align	4, 0x90
_i40iw_qp_post_wr:                      ## @i40iw_qp_post_wr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_mb
	movl	24(%rbx), %edi
	leaq	-20(%rbp), %rdx
	xorl	%esi, %esi
	callq	_get_64bit_val
	movl	-20(%rbp), %edi
	movq	_I40IW_QP_DBSA_HW_SQ_TAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_RS_64
	movq	%rax, %r14
	movq	(%rbx), %rdi
	callq	_I40IW_RING_GETCURRENT_HEAD
	cmpq	%r14, %rax
	je	LBB0_7
## %bb.1:
	movq	8(%rbx), %rcx
	cmpq	%rcx, %rax
	jle	LBB0_3
## %bb.2:
	cmpq	%rcx, %r14
	jge	LBB0_5
	jmp	LBB0_7
LBB0_3:
	je	LBB0_7
## %bb.4:
	cmpq	%rcx, %r14
	jge	LBB0_6
LBB0_5:
	cmpq	%rax, %r14
	jge	LBB0_7
LBB0_6:
	movl	16(%rbx), %esi
	movl	20(%rbx), %edi
	callq	_writel
LBB0_7:
	movq	(%rbx), %rax
	movq	%rax, 8(%rbx)
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I40IW_QP_DBSA_HW_SQ_TAIL,4,2   ## @I40IW_QP_DBSA_HW_SQ_TAIL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40iw_qp_post_wr               ; -- Begin function i40iw_qp_post_wr
	.p2align	2
_i40iw_qp_post_wr:                      ; @i40iw_qp_post_wr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	bl	_mb
	ldr	w0, [x19, #24]
	add	x2, sp, #12
	mov	w1, #0
	bl	_get_64bit_val
	ldr	w0, [sp, #12]
Lloh0:
	adrp	x8, _I40IW_QP_DBSA_HW_SQ_TAIL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I40IW_QP_DBSA_HW_SQ_TAIL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_RS_64
	mov	x20, x0
	ldr	x0, [x19]
	bl	_I40IW_RING_GETCURRENT_HEAD
	cmp	x0, x20
	b.eq	LBB0_6
; %bb.1:
	ldr	x8, [x19, #8]
	cmp	x0, x8
	b.le	LBB0_3
; %bb.2:
	cmp	x20, x8
	ccmp	x20, x0, #0, ge
	b.lt	LBB0_5
	b	LBB0_6
LBB0_3:
	b.eq	LBB0_6
; %bb.4:
	cmp	x20, x8
	ccmp	x20, x0, #8, lt
	b.ge	LBB0_6
LBB0_5:
	ldp	w1, w0, [x19, #16]
	bl	_writel
LBB0_6:
	ldr	x8, [x19]
	str	x8, [x19, #8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_I40IW_QP_DBSA_HW_SQ_TAIL,4,2   ; @I40IW_QP_DBSA_HW_SQ_TAIL
.subsections_via_symbols
