	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dma_intr_coal_auto_tune
_dma_intr_coal_auto_tune:               ## @dma_intr_coal_auto_tune
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	16(%rdi), %rax
	movq	_RSXX_INTR_COAL_AUTO_TUNE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.1:
	movq	%rdi, %r14
	movl	40(%rdi), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	cmpl	$0, (%r14)
	jle	LBB0_3
## %bb.4:
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r14), %rdi
	addq	%r12, %rdi
	callq	_atomic_read
	addl	%eax, %r15d
	incq	%rbx
	movslq	(%r14), %rax
	addq	$4, %r12
	cmpq	%rax, %rbx
	jl	LBB0_5
## %bb.6:
	movl	%r15d, %esi
	shrl	$31, %esi
	addl	%r15d, %esi
	sarl	%esi
	jmp	LBB0_7
LBB0_3:
	xorl	%esi, %esi
LBB0_7:
	movq	16(%r14), %rdi
	movl	24(%r14), %edx
	callq	_dma_intr_coal_val
	movq	_INTR_COAL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	8(%r14), %rsi
	movl	%eax, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iowrite32                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RSXX_INTR_COAL_AUTO_TUNE,8,3   ## @RSXX_INTR_COAL_AUTO_TUNE
	.comm	_INTR_COAL,8,3                  ## @INTR_COAL
	.no_dead_strip	_dma_intr_coal_auto_tune
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dma_intr_coal_auto_tune
_dma_intr_coal_auto_tune:               ; @dma_intr_coal_auto_tune
	.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
	ldr	x8, [x0, #16]
Lloh0:
	adrp	x9, _RSXX_INTR_COAL_AUTO_TUNE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RSXX_INTR_COAL_AUTO_TUNE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	w0, [x0, #40]
	bl	_unlikely
	cbz	x0, LBB0_3
LBB0_2:
	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
LBB0_3:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.4:
	mov	x21, #0
	mov	x22, #0
	mov	w20, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
	add	x0, x8, x21
	bl	_atomic_read
	add	w20, w20, w0
	add	x22, x22, #1
	ldrsw	x8, [x19]
	add	x21, x21, #4
	cmp	x22, x8
	b.lt	LBB0_5
; %bb.6:
	cmp	w20, #0
	cinc	w8, w20, lt
	asr	w1, w8, #1
	b	LBB0_8
LBB0_7:
	mov	w1, #0
LBB0_8:
	ldr	x0, [x19, #16]
	ldr	w2, [x19, #24]
	bl	_dma_intr_coal_val
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _INTR_COAL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _INTR_COAL@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x9, 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
	b	_iowrite32
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_RSXX_INTR_COAL_AUTO_TUNE,8,3   ; @RSXX_INTR_COAL_AUTO_TUNE
	.comm	_INTR_COAL,8,3                  ; @INTR_COAL
	.no_dead_strip	_dma_intr_coal_auto_tune
.subsections_via_symbols
