	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hw_atl_a0_hw_interrupt_moderation_set
_hw_atl_a0_hw_interrupt_moderation_set: ## @hw_atl_a0_hw_interrupt_moderation_set
	.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	%rdi, %r14
	movq	8(%rdi), %rax
	movl	(%rax), %esi
	testl	%esi, %esi
	je	LBB0_1
## %bb.2:
	movq	_AQ_CFG_INTERRUPT_MODERATION_AUTO@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	jne	LBB0_3
## %bb.4:
	movq	%r14, %rdi
	movl	$10752, %esi                    ## imm = 0x2A00
	callq	_aq_hw_read_reg
	movzwl	%ax, %eax
	movl	(%r14), %edi
	xorl	%r15d, %r15d
	cmpl	%edi, %eax
	jl	LBB0_6
## %bb.5:
	callq	_hw_atl_utils_mbps_2_speed_index
	movl	%eax, %eax
	leaq	_hw_atl_a0_hw_interrupt_moderation_set.hw_timers_tbl_(%rip), %rcx
	movl	(%rcx,%rax,4), %r15d
	shll	$16, %r15d
	orl	$-2147483648, %r15d             ## imm = 0x80000000
LBB0_6:
	movq	%r14, %rdi
	movl	$10752, %esi                    ## imm = 0x2A00
	movl	$1073741824, %edx               ## imm = 0x40000000
	callq	_aq_hw_write_reg
	movq	%r14, %rdi
	movl	$10752, %esi                    ## imm = 0x2A00
	movl	$-1929379840, %edx              ## imm = 0x8D000000
	callq	_aq_hw_write_reg
	jmp	LBB0_7
LBB0_1:
	xorl	%r15d, %r15d
	jmp	LBB0_7
LBB0_3:
	sarl	%esi
	movq	_AQ_CFG_IRQ_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_min
	movl	%eax, %r15d
	shll	$16, %r15d
	orl	$-2147483648, %r15d             ## imm = 0x80000000
LBB0_7:
	movq	_HW_ATL_A0_RINGS_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	je	LBB0_10
## %bb.8:
	decl	%ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_hw_atl_reg_irq_thr_set
	addl	$-1, %ebx
	jb	LBB0_9
LBB0_10:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_aq_hw_err_from_flags           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AQ_CFG_INTERRUPT_MODERATION_AUTO,4,2 ## @AQ_CFG_INTERRUPT_MODERATION_AUTO
	.comm	_AQ_CFG_IRQ_MASK,4,2            ## @AQ_CFG_IRQ_MASK
	.section	__TEXT,__const
	.p2align	4                               ## @hw_atl_a0_hw_interrupt_moderation_set.hw_timers_tbl_
_hw_atl_a0_hw_interrupt_moderation_set.hw_timers_tbl_:
	.long	28                              ## 0x1c
	.long	57                              ## 0x39
	.long	57                              ## 0x39
	.long	115                             ## 0x73
	.long	288                             ## 0x120
	.long	511                             ## 0x1ff

	.comm	_HW_ATL_A0_RINGS_MAX,4,2        ## @HW_ATL_A0_RINGS_MAX
	.no_dead_strip	_hw_atl_a0_hw_interrupt_moderation_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hw_atl_a0_hw_interrupt_moderation_set
_hw_atl_a0_hw_interrupt_moderation_set: ; @hw_atl_a0_hw_interrupt_moderation_set
	.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, x0
	ldr	x8, [x0, #8]
	ldr	w8, [x8]
	cbz	w8, LBB0_4
; %bb.1:
Lloh0:
	adrp	x9, _AQ_CFG_INTERRUPT_MODERATION_AUTO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AQ_CFG_INTERRUPT_MODERATION_AUTO@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_5
; %bb.2:
	mov	x0, x19
	mov	w1, #10752
	bl	_aq_hw_read_reg
	mov	x8, x0
	ldr	w0, [x19]
	cmp	w0, w8, uxth
	b.le	LBB0_6
; %bb.3:
	mov	w20, #0
	b	LBB0_7
LBB0_4:
	mov	w20, #0
	b	LBB0_8
LBB0_5:
	asr	w1, w8, #1
Lloh3:
	adrp	x8, _AQ_CFG_IRQ_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AQ_CFG_IRQ_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_min
	lsl	w8, w0, #16
	orr	w20, w8, #0x80000000
	b	LBB0_8
LBB0_6:
	bl	_hw_atl_utils_mbps_2_speed_index
Lloh6:
	adrp	x8, _hw_atl_a0_hw_interrupt_moderation_set.hw_timers_tbl_@PAGE
Lloh7:
	add	x8, x8, _hw_atl_a0_hw_interrupt_moderation_set.hw_timers_tbl_@PAGEOFF
	ldr	w8, [x8, w0, uxtw #2]
	lsl	w8, w8, #16
	orr	w20, w8, #0x80000000
LBB0_7:
	mov	x0, x19
	mov	w1, #10752
	mov	w2, #1073741824
	bl	_aq_hw_write_reg
	mov	x0, x19
	mov	w1, #10752
	mov	w2, #-1929379840
	bl	_aq_hw_write_reg
LBB0_8:
Lloh8:
	adrp	x8, _HW_ATL_A0_RINGS_MAX@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HW_ATL_A0_RINGS_MAX@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cbz	w8, LBB0_11
; %bb.9:
	sub	w21, w8, #1
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_hw_atl_reg_irq_thr_set
	sub	w21, w21, #1
	cmn	w21, #1
	b.ne	LBB0_10
LBB0_11:
	mov	x0, x19
	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	_aq_hw_err_from_flags
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_AQ_CFG_INTERRUPT_MODERATION_AUTO,4,2 ; @AQ_CFG_INTERRUPT_MODERATION_AUTO
	.comm	_AQ_CFG_IRQ_MASK,4,2            ; @AQ_CFG_IRQ_MASK
	.section	__TEXT,__const
	.p2align	2                               ; @hw_atl_a0_hw_interrupt_moderation_set.hw_timers_tbl_
_hw_atl_a0_hw_interrupt_moderation_set.hw_timers_tbl_:
	.long	28                              ; 0x1c
	.long	57                              ; 0x39
	.long	57                              ; 0x39
	.long	115                             ; 0x73
	.long	288                             ; 0x120
	.long	511                             ; 0x1ff

	.comm	_HW_ATL_A0_RINGS_MAX,4,2        ; @HW_ATL_A0_RINGS_MAX
	.no_dead_strip	_hw_atl_a0_hw_interrupt_moderation_set
.subsections_via_symbols
