	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hw_atl_b0_hw_interrupt_moderation_set
_hw_atl_b0_hw_interrupt_moderation_set: ## @hw_atl_b0_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	(%rdi), %rax
	movl	(%rax), %eax
	cmpl	$130, %eax
	je	LBB0_3
## %bb.1:
	cmpl	$129, %eax
	je	LBB0_5
## %bb.2:
	movl	$2, %r15d
	movl	$2, %r14d
	cmpl	$128, %eax
	jne	LBB0_8
LBB0_3:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_hw_atl_tdm_tx_desc_wr_wb_irq_en_set
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_hw_atl_tdm_tdm_intr_moder_en_set
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_hw_atl_rdm_rx_desc_wr_wb_irq_en_set
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_hw_atl_rdm_rdm_intr_moder_en_set
	movq	(%r12), %rax
	cmpl	$128, (%rax)
	jne	LBB0_6
## %bb.4:
	movl	4(%rax), %ecx
	movl	8(%rax), %eax
	movl	%ecx, %esi
	shrl	$31, %esi
	addl	%ecx, %esi
	sarl	%esi
	leal	3(%rcx), %r13d
	testl	%ecx, %ecx
	cmovnsl	%ecx, %r13d
	sarl	$2, %r13d
	movl	%eax, %r15d
	shrl	$31, %r15d
	addl	%eax, %r15d
	sarl	%r15d
	leal	3(%rax), %ebx
	testl	%eax, %eax
	cmovnsl	%eax, %ebx
	sarl	$2, %ebx
	movq	_HW_ATL_INTR_MODER_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_min
	movl	%eax, %r14d
	movq	_HW_ATL_INTR_MODER_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r13d, %esi
	callq	_min
	movl	%eax, %r13d
	movq	_HW_ATL_INTR_MODER_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_min
	movl	%eax, %r15d
	movq	_HW_ATL_INTR_MODER_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_min
	shll	$8, %r13d
	shll	$16, %r14d
	orl	%r13d, %r14d
	orl	$2, %r14d
	shll	$8, %eax
	shll	$16, %r15d
	orl	%eax, %r15d
	jmp	LBB0_7
LBB0_5:
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_hw_atl_tdm_tx_desc_wr_wb_irq_en_set
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_hw_atl_tdm_tdm_intr_moder_en_set
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_hw_atl_rdm_rx_desc_wr_wb_irq_en_set
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_hw_atl_rdm_rdm_intr_moder_en_set
	xorl	%r14d, %r14d
	jmp	LBB0_8
LBB0_6:
	movl	8(%r12), %edi
	callq	_hw_atl_utils_mbps_2_speed_index
	movl	%eax, %eax
	leaq	_hw_atl_b0_hw_interrupt_moderation_set.hw_atl_b0_timers_table_tx_(%rip), %rcx
	movl	(%rcx,%rax,8), %edx
	movl	4(%rcx,%rax,8), %r14d
	leal	(%r14,%r14), %ecx
	movq	(%r12), %rsi
	movl	%ecx, 4(%rsi)
	leaq	_hw_atl_b0_hw_interrupt_moderation_set.hw_atl_b0_timers_table_rx_(%rip), %rcx
	movl	(%rcx,%rax,8), %edi
	movl	4(%rcx,%rax,8), %r15d
	leal	(%r15,%r15), %eax
	movl	%eax, 8(%rsi)
	shll	$8, %edx
	shll	$16, %r14d
	orl	%edx, %r14d
	orl	$2, %r14d
	shll	$8, %edi
	shll	$16, %r15d
	orl	%edi, %r15d
LBB0_7:
	orl	$2, %r15d
LBB0_8:
	movq	_HW_ATL_B0_RINGS_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	je	LBB0_11
## %bb.9:
	decl	%ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_hw_atl_reg_tx_intr_moder_ctrl_set
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_hw_atl_reg_rx_intr_moder_ctrl_set
	addl	$-1, %ebx
	jb	LBB0_10
LBB0_11:
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_aq_hw_err_from_flags           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HW_ATL_INTR_MODER_MAX,4,2      ## @HW_ATL_INTR_MODER_MAX
	.comm	_HW_ATL_INTR_MODER_MIN,4,2      ## @HW_ATL_INTR_MODER_MIN
	.section	__TEXT,__const
	.p2align	4                               ## @hw_atl_b0_hw_interrupt_moderation_set.hw_atl_b0_timers_table_tx_
_hw_atl_b0_hw_interrupt_moderation_set.hw_atl_b0_timers_table_tx_:
	.long	15                              ## 0xf
	.long	255                             ## 0xff
	.long	15                              ## 0xf
	.long	511                             ## 0x1ff
	.long	15                              ## 0xf
	.long	511                             ## 0x1ff
	.long	15                              ## 0xf
	.long	511                             ## 0x1ff
	.long	15                              ## 0xf
	.long	511                             ## 0x1ff
	.long	15                              ## 0xf
	.long	511                             ## 0x1ff

	.p2align	4                               ## @hw_atl_b0_hw_interrupt_moderation_set.hw_atl_b0_timers_table_rx_
_hw_atl_b0_hw_interrupt_moderation_set.hw_atl_b0_timers_table_rx_:
	.long	6                               ## 0x6
	.long	56                              ## 0x38
	.long	12                              ## 0xc
	.long	112                             ## 0x70
	.long	12                              ## 0xc
	.long	112                             ## 0x70
	.long	24                              ## 0x18
	.long	224                             ## 0xe0
	.long	48                              ## 0x30
	.long	128                             ## 0x80
	.long	4                               ## 0x4
	.long	80                              ## 0x50

	.comm	_HW_ATL_B0_RINGS_MAX,4,2        ## @HW_ATL_B0_RINGS_MAX
	.no_dead_strip	_hw_atl_b0_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_b0_hw_interrupt_moderation_set
_hw_atl_b0_hw_interrupt_moderation_set: ; @hw_atl_b0_hw_interrupt_moderation_set
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	x8, [x0]
	ldr	w8, [x8]
	cmp	w8, #130
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #128
	b.ne	LBB0_6
LBB0_3:
	mov	x0, x19
	mov	w1, #0
	bl	_hw_atl_tdm_tx_desc_wr_wb_irq_en_set
	mov	x0, x19
	mov	w1, #1
	bl	_hw_atl_tdm_tdm_intr_moder_en_set
	mov	x0, x19
	mov	w1, #0
	bl	_hw_atl_rdm_rx_desc_wr_wb_irq_en_set
	mov	x0, x19
	mov	w1, #1
	bl	_hw_atl_rdm_rdm_intr_moder_en_set
	ldr	x8, [x19]
	ldr	w9, [x8]
	cmp	w9, #128
	b.ne	LBB0_7
; %bb.4:
	ldp	w9, w8, [x8, #4]
	add	w10, w9, #3
	cmp	w9, #0
	csel	w10, w10, w9, lt
	cinc	w9, w9, lt
	asr	w1, w9, #1
	asr	w20, w10, #2
	add	w9, w8, #3
	cmp	w8, #0
	csel	w9, w9, w8, lt
	cinc	w8, w8, lt
	asr	w21, w8, #1
	asr	w22, w9, #2
Lloh0:
	adrp	x24, _HW_ATL_INTR_MODER_MAX@GOTPAGE
Lloh1:
	ldr	x24, [x24, _HW_ATL_INTR_MODER_MAX@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_min
	mov	x23, x0
Lloh2:
	adrp	x25, _HW_ATL_INTR_MODER_MIN@GOTPAGE
Lloh3:
	ldr	x25, [x25, _HW_ATL_INTR_MODER_MIN@GOTPAGEOFF]
	ldr	w0, [x25]
	mov	x1, x20
	bl	_min
	mov	x20, x0
	ldr	w0, [x24]
	mov	x1, x21
	bl	_min
	mov	x21, x0
	ldr	w0, [x25]
	mov	x1, x22
	bl	_min
	lsl	w8, w23, #16
	orr	w8, w8, w20, lsl #8
	orr	w20, w8, #0x2
	lsl	w8, w21, #16
	orr	w8, w8, w0, lsl #8
	b	LBB0_8
LBB0_5:
	mov	x0, x19
	mov	w1, #1
	bl	_hw_atl_tdm_tx_desc_wr_wb_irq_en_set
	mov	x0, x19
	mov	w1, #0
	bl	_hw_atl_tdm_tdm_intr_moder_en_set
	mov	x0, x19
	mov	w1, #1
	bl	_hw_atl_rdm_rx_desc_wr_wb_irq_en_set
	mov	x0, x19
	mov	w1, #0
	bl	_hw_atl_rdm_rdm_intr_moder_en_set
	mov	w21, #0
	mov	w20, #0
	b	LBB0_9
LBB0_6:
	mov	w21, #2
	mov	w20, #2
	b	LBB0_9
LBB0_7:
	ldr	w0, [x19, #8]
	bl	_hw_atl_utils_mbps_2_speed_index
	mov	w8, w0
	lsl	x8, x8, #3
Lloh4:
	adrp	x9, _hw_atl_b0_hw_interrupt_moderation_set.hw_atl_b0_timers_table_tx_@PAGE
Lloh5:
	add	x9, x9, _hw_atl_b0_hw_interrupt_moderation_set.hw_atl_b0_timers_table_tx_@PAGEOFF
	add	x9, x9, x8
	ldp	w9, w10, [x9]
	lsl	w11, w10, #1
	ldr	x12, [x19]
Lloh6:
	adrp	x13, _hw_atl_b0_hw_interrupt_moderation_set.hw_atl_b0_timers_table_rx_@PAGE
Lloh7:
	add	x13, x13, _hw_atl_b0_hw_interrupt_moderation_set.hw_atl_b0_timers_table_rx_@PAGEOFF
	add	x8, x13, x8
	ldp	w8, w13, [x8]
	lsl	w14, w13, #1
	stp	w11, w14, [x12, #4]
	lsl	w10, w10, #16
	orr	w9, w10, w9, lsl #8
	orr	w20, w9, #0x2
	lsl	w9, w13, #16
	orr	w8, w9, w8, lsl #8
LBB0_8:
	orr	w21, w8, #0x2
LBB0_9:
Lloh8:
	adrp	x8, _HW_ATL_B0_RINGS_MAX@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HW_ATL_B0_RINGS_MAX@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cbz	w8, LBB0_12
; %bb.10:
	sub	w22, w8, #1
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_hw_atl_reg_tx_intr_moder_ctrl_set
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_hw_atl_reg_rx_intr_moder_ctrl_set
	sub	w22, w22, #1
	cmn	w22, #1
	b.ne	LBB0_11
LBB0_12:
	mov	x0, x19
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_aq_hw_err_from_flags
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_HW_ATL_INTR_MODER_MAX,4,2      ; @HW_ATL_INTR_MODER_MAX
	.comm	_HW_ATL_INTR_MODER_MIN,4,2      ; @HW_ATL_INTR_MODER_MIN
	.section	__TEXT,__const
	.p2align	2                               ; @hw_atl_b0_hw_interrupt_moderation_set.hw_atl_b0_timers_table_tx_
_hw_atl_b0_hw_interrupt_moderation_set.hw_atl_b0_timers_table_tx_:
	.long	15                              ; 0xf
	.long	255                             ; 0xff
	.long	15                              ; 0xf
	.long	511                             ; 0x1ff
	.long	15                              ; 0xf
	.long	511                             ; 0x1ff
	.long	15                              ; 0xf
	.long	511                             ; 0x1ff
	.long	15                              ; 0xf
	.long	511                             ; 0x1ff
	.long	15                              ; 0xf
	.long	511                             ; 0x1ff

	.p2align	2                               ; @hw_atl_b0_hw_interrupt_moderation_set.hw_atl_b0_timers_table_rx_
_hw_atl_b0_hw_interrupt_moderation_set.hw_atl_b0_timers_table_rx_:
	.long	6                               ; 0x6
	.long	56                              ; 0x38
	.long	12                              ; 0xc
	.long	112                             ; 0x70
	.long	12                              ; 0xc
	.long	112                             ; 0x70
	.long	24                              ; 0x18
	.long	224                             ; 0xe0
	.long	48                              ; 0x30
	.long	128                             ; 0x80
	.long	4                               ; 0x4
	.long	80                              ; 0x50

	.comm	_HW_ATL_B0_RINGS_MAX,4,2        ; @HW_ATL_B0_RINGS_MAX
	.no_dead_strip	_hw_atl_b0_hw_interrupt_moderation_set
.subsections_via_symbols
