	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_for_missing_completions
_check_for_missing_completions:         ## @check_for_missing_completions
	.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, %r15
	xorl	%eax, %eax
	callq	_smp_rmb
	movq	_ENA_FLAG_DEV_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	32(%r15), %rbx
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_13
## %bb.1:
	movq	_ENA_FLAG_TRIGGER_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_13
## %bb.2:
	movq	(%r15), %rax
	movq	_ENA_HW_HINTS_NO_TIMEOUT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_13
## %bb.3:
	movl	8(%r15), %edx
	movl	12(%r15), %ecx
	cmpl	%ecx, %edx
	jge	LBB0_4
## %bb.5:
	movslq	%edx, %r13
	movq	_ENA_MONITORED_TX_QUEUES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	leal	(%rdx,%rax), %ecx
	decl	%ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	leaq	(,%r13,4), %r14
	movl	$1, %ecx
	subl	%eax, %ecx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r15), %rsi
	addq	%r14, %rsi
	movq	16(%r15), %rbx
	movq	%r15, %rdi
	callq	_check_missing_comp_in_tx_queue
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	addq	%r14, %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_check_for_rx_interrupt_queue
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpl	%r12d, -48(%rbp)                ## 4-byte Folded Reload
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	incq	%r13
	movslq	12(%r15), %rcx
	addq	$4, %r14
	decl	%r12d
	cmpq	%rcx, %r13
	jl	LBB0_6
## %bb.11:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	subl	%r12d, %eax
                                        ## kill: def $eax killed $eax killed $rax
	jmp	LBB0_12
LBB0_4:
	movl	%edx, %eax
	jmp	LBB0_12
LBB0_9:
	movl	12(%r15), %ecx
	movl	-44(%rbp), %eax                 ## 4-byte Reload
LBB0_12:
	cltd
	idivl	%ecx
	movl	%edx, 8(%r15)
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENA_FLAG_DEV_UP,4,2            ## @ENA_FLAG_DEV_UP
	.comm	_ENA_FLAG_TRIGGER_RESET,4,2     ## @ENA_FLAG_TRIGGER_RESET
	.comm	_ENA_HW_HINTS_NO_TIMEOUT,8,3    ## @ENA_HW_HINTS_NO_TIMEOUT
	.comm	_ENA_MONITORED_TX_QUEUES,4,2    ## @ENA_MONITORED_TX_QUEUES
	.no_dead_strip	_check_for_missing_completions
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_for_missing_completions
_check_for_missing_completions:         ; @check_for_missing_completions
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	bl	_smp_rmb
Lloh0:
	adrp	x8, _ENA_FLAG_DEV_UP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENA_FLAG_DEV_UP@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x20, x19, #32
	mov	x1, x20
	bl	_test_bit
	cbz	x0, LBB0_12
; %bb.1:
Lloh3:
	adrp	x8, _ENA_FLAG_TRIGGER_RESET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENA_FLAG_TRIGGER_RESET@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_bit
	cbnz	x0, LBB0_12
; %bb.2:
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _ENA_HW_HINTS_NO_TIMEOUT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ENA_HW_HINTS_NO_TIMEOUT@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_12
; %bb.3:
	ldp	w20, w8, [x19, #8]
	cmp	w20, w8
	b.ge	LBB0_11
; %bb.4:
Lloh9:
	adrp	x8, _ENA_MONITORED_TX_QUEUES@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENA_MONITORED_TX_QUEUES@GOTPAGEOFF]
	sxtw	x21, w20
Lloh11:
	ldr	w8, [x8]
	add	w9, w20, w8
	sub	w20, w9, #1
	lsl	x22, x21, #2
	sub	w23, w8, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x24, x8, [x19, #16]
	add	x1, x8, x22
	mov	x0, x19
	bl	_check_missing_comp_in_tx_queue
	bl	_unlikely
	cbnz	x0, LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x1, x24, x22
	mov	x0, x19
	bl	_check_for_rx_interrupt_queue
	bl	_unlikely
	cbnz	x0, LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	w23, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x19, #12]
	add	x22, x22, #4
	sub	w23, w23, #1
	cmp	x21, x8
	b.lt	LBB0_5
; %bb.9:
	mov	x20, x21
	b	LBB0_11
LBB0_10:
	ldr	w8, [x19, #12]
LBB0_11:
	sdiv	w9, w20, w8
	msub	w8, w9, w8, w20
	str	w8, [x19, #8]
LBB0_12:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ENA_FLAG_DEV_UP,4,2            ; @ENA_FLAG_DEV_UP
	.comm	_ENA_FLAG_TRIGGER_RESET,4,2     ; @ENA_FLAG_TRIGGER_RESET
	.comm	_ENA_HW_HINTS_NO_TIMEOUT,8,3    ; @ENA_HW_HINTS_NO_TIMEOUT
	.comm	_ENA_MONITORED_TX_QUEUES,4,2    ; @ENA_MONITORED_TX_QUEUES
	.no_dead_strip	_check_for_missing_completions
.subsections_via_symbols
