	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fm10k_reset_drop_on_empty
_fm10k_reset_drop_on_empty:             ## @fm10k_reset_drop_on_empty
	.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, -48(%rbp)                 ## 8-byte Spill
	movq	_FM10K_EICR_MAXHOLDTIME@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_14
## %bb.1:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	8(%rax), %r12
	movq	_FM10K_RXDCTL_WRITE_BACK_MIN_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	$7, %edi
	callq	_FM10K_MAXHOLDQ
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_fm10k_read_reg
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	$7, %edi
	callq	_FM10K_MAXHOLDQ
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	%r13d, %edx
	callq	_fm10k_write_reg
LBB0_3:
	movl	$255, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	$31, %edi
	callq	_BIT
	testl	%r13d, %eax
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_FM10K_MAX_QUEUES_PF@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jge	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	incl	4(%rax)
	movl	%ebx, %edi
	callq	_FM10K_RXDCTL
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_fm10k_write_reg
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	testl	%r13d, %r13d
	jne	LBB0_10
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	andl	$-32, %ebx
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%ebx, %eax
	testl	%ebx, %ebx
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	addl	%r13d, %r13d
	leal	-1(%rax), %ebx
	testb	$31, %al
	jne	LBB0_4
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	leal	31(%rbx), %r15d
	testl	%ebx, %ebx
	cmovnsl	%ebx, %r15d
	sarl	$5, %r15d
	movl	%r15d, %edi
	callq	_FM10K_MAXHOLDQ
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_fm10k_read_reg
	xorl	%r13d, %r13d
	testl	%eax, %eax
	je	LBB0_4
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, %r14d
	movl	%r15d, %edi
	callq	_FM10K_MAXHOLDQ
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	%r14d, %edx
	callq	_fm10k_write_reg
	movl	%r14d, %r13d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	incl	(%rax)
	testl	%r13d, %r13d
	je	LBB0_9
	jmp	LBB0_10
LBB0_14:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FM10K_RXDCTL_WRITE_BACK_MIN_DELAY,4,2 ## @FM10K_RXDCTL_WRITE_BACK_MIN_DELAY
	.comm	_FM10K_EICR_MAXHOLDTIME,4,2     ## @FM10K_EICR_MAXHOLDTIME
	.comm	_FM10K_MAX_QUEUES_PF,4,2        ## @FM10K_MAX_QUEUES_PF
	.no_dead_strip	_fm10k_reset_drop_on_empty
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fm10k_reset_drop_on_empty
_fm10k_reset_drop_on_empty:             ; @fm10k_reset_drop_on_empty
	.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
Lloh0:
	adrp	x8, _FM10K_EICR_MAXHOLDTIME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FM10K_EICR_MAXHOLDTIME@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_12
; %bb.1:
	mov	x19, x0
	add	x20, x0, #8
Lloh3:
	adrp	x8, _FM10K_RXDCTL_WRITE_BACK_MIN_DELAY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FM10K_RXDCTL_WRITE_BACK_MIN_DELAY@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	mov	w0, #7
	bl	_FM10K_MAXHOLDQ
	mov	x1, x0
	mov	x0, x20
	bl	_fm10k_read_reg
	mov	x23, x0
	cbz	w0, LBB0_3
; %bb.2:
	mov	w0, #7
	bl	_FM10K_MAXHOLDQ
	mov	x1, x0
	mov	x0, x20
	mov	x2, x23
	bl	_fm10k_write_reg
LBB0_3:
	mov	w22, #255
Lloh6:
	adrp	x26, _FM10K_MAX_QUEUES_PF@GOTPAGE
Lloh7:
	ldr	x26, [x26, _FM10K_MAX_QUEUES_PF@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #31
	bl	_BIT
	tst	w0, w23
	b.eq	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x26]
	cmp	w22, w8
	b.ge	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #4]
	mov	x0, x22
	bl	_FM10K_RXDCTL
	mov	x1, x0
	mov	x0, x20
	mov	x2, x21
	bl	_fm10k_write_reg
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	and	w8, w22, #0xffffffe0
	cmp	w23, #0
	csel	w8, w8, w22, eq
	cbz	w8, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	lsl	w23, w23, #1
	sub	w22, w8, #1
	tst	w8, #0x1f
	b.ne	LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	add	w8, w22, #31
	cmp	w22, #0
	csel	w8, w8, w22, lt
	asr	w24, w8, #5
	mov	x0, x24
	bl	_FM10K_MAXHOLDQ
	mov	x1, x0
	mov	x0, x20
	bl	_fm10k_read_reg
	mov	w23, #0
	cbz	w0, LBB0_4
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x25, x0
	mov	x0, x24
	bl	_FM10K_MAXHOLDQ
	mov	x1, x0
	mov	x0, x20
	mov	x2, x25
	bl	_fm10k_write_reg
	mov	x23, x25
	b	LBB0_4
LBB0_12:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_FM10K_RXDCTL_WRITE_BACK_MIN_DELAY,4,2 ; @FM10K_RXDCTL_WRITE_BACK_MIN_DELAY
	.comm	_FM10K_EICR_MAXHOLDTIME,4,2     ; @FM10K_EICR_MAXHOLDTIME
	.comm	_FM10K_MAX_QUEUES_PF,4,2        ; @FM10K_MAX_QUEUES_PF
	.no_dead_strip	_fm10k_reset_drop_on_empty
.subsections_via_symbols
