	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sge_queue_entries
_sge_queue_entries:                     ## @sge_queue_entries
	.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, %r14
	movq	_uld_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	_CXGB4_TX_MAX@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_1
## %bb.6:
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_sge_qinfo_uld_txq_entries
	addl	%eax, %r15d
	incl	%ebx
	cmpl	(%r12), %ebx
	jl	LBB0_7
	jmp	LBB0_2
LBB0_1:
	xorl	%r15d, %r15d
LBB0_2:
	movq	_CXGB4_ULD_MAX@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	jle	LBB0_5
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_sge_qinfo_uld_rxq_entries
	movq	%rax, %r12
	addl	%r15d, %r12d
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_sge_qinfo_uld_ciq_entries
	movq	%rax, %r15
	addl	%r12d, %r15d
	incl	%ebx
	cmpl	(%r13), %ebx
	jl	LBB0_4
LBB0_5:
	movq	_uld_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movl	(%r14), %edi
	movl	$4, %esi
	callq	_DIV_ROUND_UP
	movl	%eax, %ebx
	movq	_MAX_CTRL_QUEUES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$4, %esi
	callq	_DIV_ROUND_UP
                                        ## kill: def $eax killed $eax def $rax
	addl	%r15d, %ebx
	addl	%ebx, %eax
	incl	%eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_uld_mutex,4,2                  ## @uld_mutex
	.comm	_CXGB4_TX_MAX,4,2               ## @CXGB4_TX_MAX
	.comm	_CXGB4_ULD_MAX,4,2              ## @CXGB4_ULD_MAX
	.comm	_MAX_CTRL_QUEUES,4,2            ## @MAX_CTRL_QUEUES
	.no_dead_strip	_sge_queue_entries
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sge_queue_entries
_sge_queue_entries:                     ; @sge_queue_entries
	.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
Lloh0:
	adrp	x0, _uld_mutex@GOTPAGE
Lloh1:
	ldr	x0, [x0, _uld_mutex@GOTPAGEOFF]
	bl	_mutex_lock
Lloh2:
	adrp	x22, _CXGB4_TX_MAX@GOTPAGE
Lloh3:
	ldr	x22, [x22, _CXGB4_TX_MAX@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w20, #0
	mov	w21, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_sge_qinfo_uld_txq_entries
	add	w21, w21, w0
	add	w20, w20, #1
	ldr	w8, [x22]
	cmp	w20, w8
	b.lt	LBB0_2
	b	LBB0_4
LBB0_3:
	mov	w21, #0
LBB0_4:
Lloh4:
	adrp	x22, _CXGB4_ULD_MAX@GOTPAGE
Lloh5:
	ldr	x22, [x22, _CXGB4_ULD_MAX@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.5:
	mov	w20, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_sge_qinfo_uld_rxq_entries
	add	w21, w21, w0
	mov	x0, x19
	mov	x1, x20
	bl	_sge_qinfo_uld_ciq_entries
	add	w21, w21, w0
	add	w20, w20, #1
	ldr	w8, [x22]
	cmp	w20, w8
	b.lt	LBB0_6
LBB0_7:
Lloh6:
	adrp	x0, _uld_mutex@GOTPAGE
Lloh7:
	ldr	x0, [x0, _uld_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
	ldr	w0, [x19]
	mov	w1, #4
	bl	_DIV_ROUND_UP
	mov	x19, x0
Lloh8:
	adrp	x8, _MAX_CTRL_QUEUES@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MAX_CTRL_QUEUES@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	w1, #4
	bl	_DIV_ROUND_UP
	add	w8, w21, w19
	add	w8, w8, w0
	add	w0, w8, #1
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_uld_mutex,4,2                  ; @uld_mutex
	.comm	_CXGB4_TX_MAX,4,2               ; @CXGB4_TX_MAX
	.comm	_CXGB4_ULD_MAX,4,2              ; @CXGB4_ULD_MAX
	.comm	_MAX_CTRL_QUEUES,4,2            ; @MAX_CTRL_QUEUES
	.no_dead_strip	_sge_queue_entries
.subsections_via_symbols
