	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_c4iw_log_wr_stats              ## -- Begin function c4iw_log_wr_stats
	.p2align	4, 0x90
_c4iw_log_wr_stats:                     ## @c4iw_log_wr_stats
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	cmpq	$0, 8(%rdi)
	je	LBB0_5
## %bb.1:
	movq	%rsi, %r15
	addq	$24, %rdi
	callq	_atomic_inc_return
	cltq
	decq	%rax
	movq	(%rbx), %rcx
	movslq	(%rcx), %r12
	decq	%r12
	andq	%rax, %r12
	movq	16(%rcx), %rax
	movl	(%rax), %edi
	callq	_cxgb4_read_sge_timestamp
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	callq	_ktime_get
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	callq	_CQE_TS
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	callq	_SQ_TYPE
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	48(%rbx), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	callq	_CQE_OPCODE
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	32(%rbx), %rax
	movq	40(%rbx), %rcx
	movl	(%rcx,%rax,8), %r13d
	movl	4(%rcx,%rax,8), %r14d
	movq	%r15, %rdi
	callq	_CQE_WRID_SQ_IDX
	jmp	LBB0_4
LBB0_3:
	movl	24(%rbx), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_FW_RI_RECEIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	8(%rbx), %rax
	movq	16(%rbx), %rcx
	movl	(%rcx,%rax,8), %r13d
	movl	4(%rcx,%rax,8), %r14d
	movq	%r15, %rdi
	callq	_CQE_WRID_MSN
LBB0_4:
	movq	(%rbx), %rcx
	movq	8(%rcx), %rcx
	leaq	(%r12,%r12,8), %rdx
	movl	$1, (%rcx,%rdx,4)
	movl	%eax, 4(%rcx,%rdx,4)
	movl	%r13d, 8(%rcx,%rdx,4)
	movl	%r14d, 12(%rcx,%rdx,4)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 16(%rcx,%rdx,4)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 20(%rcx,%rdx,4)
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 24(%rcx,%rdx,4)
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 28(%rcx,%rdx,4)
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 32(%rcx,%rdx,4)
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FW_RI_RECEIVE,4,2              ## @FW_RI_RECEIVE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_c4iw_log_wr_stats              ; -- Begin function c4iw_log_wr_stats
	.p2align	2
_c4iw_log_wr_stats:                     ; @c4iw_log_wr_stats
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-96]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset b8, -88
	.cfi_offset b9, -96
	ldr	x8, [x0]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_5
; %bb.1:
	mov	x22, x1
	mov	x19, x0
	add	x0, x8, #24
	bl	_atomic_inc_return
	sub	w8, w0, #1
	ldr	x9, [x19]
	ldr	w10, [x9]
	sub	w10, w10, #1
	and	w25, w10, w8
	ldr	x8, [x9, #16]
	ldr	w0, [x8]
	bl	_cxgb4_read_sge_timestamp
	mov	x20, x0
	bl	_ktime_get
	mov	x21, x0
	mov	x0, x22
	bl	_CQE_TS
	mov	x23, x0
	mov	x0, x22
	bl	_SQ_TYPE
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w26, [x19, #48]
	mov	x0, x22
	bl	_CQE_OPCODE
	mov	x24, x0
	ldp	x9, x8, [x19, #32]
	ldr	d8, [x8, x9, lsl #3]
	mov	x0, x22
	bl	_CQE_WRID_SQ_IDX
	b	LBB0_4
LBB0_3:
Lloh0:
	adrp	x8, _FW_RI_RECEIVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FW_RI_RECEIVE@GOTPAGEOFF]
	ldr	w26, [x19, #24]
Lloh2:
	ldr	w24, [x8]
	ldp	x9, x8, [x19, #8]
	ldr	d8, [x8, x9, lsl #3]
	mov	x0, x22
	bl	_CQE_WRID_MSN
LBB0_4:
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	mov	w9, #36
	smaddl	x8, w25, w9, x8
	mov	w9, #1
	stp	w9, w0, [x8]
	str	d8, [x8, #8]
	stp	w24, w26, [x8, #16]
	stp	w23, w21, [x8, #24]
	str	w20, [x8, #32]
LBB0_5:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #96               ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_FW_RI_RECEIVE,4,2              ; @FW_RI_RECEIVE
.subsections_via_symbols
