	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ena_com_is_doorbell_needed
_ena_com_is_doorbell_needed:            ## @ena_com_is_doorbell_needed
	.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	%rsi, %rbx
	movq	%rdi, %r15
	callq	_is_llq_max_tx_burst_exists
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	(%rbx), %r14
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_ena_com_meta_desc_changed
	movl	%eax, %edi
	callq	_unlikely
	cmpq	$1, %rax
	sbbq	$-1, %r14
	movq	8(%r15), %rax
	movl	$1, %ebx
	cmpq	%rax, %r14
	jle	LBB0_4
## %bb.3:
	movl	%r14d, %edi
	subl	%eax, %edi
	movl	16(%r15), %esi
	callq	_DIV_ROUND_UP
	movq	%rax, %rbx
	incl	%ebx
LBB0_4:
	movl	4(%r15), %esi
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rdx
	movl	%ebx, %ecx
	callq	_pr_debug
	xorl	%eax, %eax
	cmpl	(%r15), %ebx
	setg	%al
	jmp	LBB0_5
LBB0_1:
	xorl	%eax, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"queue: %d num_descs: %d num_entries_needed: %d\n"

	.no_dead_strip	_ena_com_is_doorbell_needed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ena_com_is_doorbell_needed
_ena_com_is_doorbell_needed:            ; @ena_com_is_doorbell_needed
	.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	x20, x1
	mov	x19, x0
	bl	_is_llq_max_tx_burst_exists
	cbz	w0, LBB0_5
; %bb.1:
	ldr	x21, [x20]
	mov	x0, x19
	mov	x1, x20
	bl	_ena_com_meta_desc_changed
	bl	_unlikely
	cmp	x0, #0
	cinc	x20, x21, ne
	ldr	x8, [x19, #8]
	cmp	x20, x8
	b.le	LBB0_3
; %bb.2:
	sub	w0, w20, w8
	ldr	w1, [x19, #16]
	bl	_DIV_ROUND_UP
	add	w21, w0, #1
	b	LBB0_4
LBB0_3:
	mov	w21, #1
LBB0_4:
	ldr	w1, [x19, #4]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x20
	mov	x3, x21
	bl	_pr_debug
	ldr	w8, [x19]
	cmp	w21, w8
	cset	w0, gt
LBB0_5:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"queue: %d num_descs: %d num_entries_needed: %d\n"

	.no_dead_strip	_ena_com_is_doorbell_needed
.subsections_via_symbols
