	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_ets_e3b0_get_total_bw
_bnx2x_ets_e3b0_get_total_bw:           ## @bnx2x_ets_e3b0_get_total_bw
	.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
	movl	$0, (%rdx)
	movq	(%rsi), %rcx
	testq	%rcx, %rcx
	je	LBB0_1
## %bb.2:
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	8(%rsi), %rdx
	xorl	%eax, %eax
	movl	$8, %ebx
	movq	_bnx2x_cos_state_bw@GOTPCREL(%rip), %r12
	xorl	%esi, %esi
	xorl	%r15d, %r15d
	jmp	LBB0_3
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_DP
	movq	8(%r14), %rdx
	movl	$1, (%rdx,%rbx)
	movl	(%r13), %eax
	movq	(%r14), %rcx
	movl	$1, %esi
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	addl	%esi, %eax
	movl	%eax, (%r13)
	movl	$1, %esi
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r15
	addq	$16, %rbx
	cmpq	%rcx, %r15
	jae	LBB0_9
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	-8(%rdx,%rbx), %rdi
	cmpq	(%r12), %rdi
	jne	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, (%rdx,%rbx)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rdx,%rbx), %esi
	jmp	LBB0_7
LBB0_9:
	xorl	%ebx, %ebx
	cmpq	$1, %rsi
	jne	LBB0_14
## %bb.10:
	cmpl	$100, %eax
	je	LBB0_14
## %bb.11:
	testl	%eax, %eax
	jne	LBB0_13
## %bb.12:
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_DP
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_14
LBB0_13:
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_DP
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_bnx2x_cos_state_bw,8,3         ## @bnx2x_cos_state_bw
	.comm	_NETIF_MSG_LINK,4,2             ## @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bnx2x_ets_E3B0_config BWwas set to 0\n"

L_.str.1:                               ## @.str.1
	.asciz	"bnx2x_ets_E3B0_config total BW shouldn't be 0\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"bnx2x_ets_E3B0_config total BW should be 100\n"

	.no_dead_strip	_bnx2x_ets_e3b0_get_total_bw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_ets_e3b0_get_total_bw
_bnx2x_ets_e3b0_get_total_bw:           ; @bnx2x_ets_e3b0_get_total_bw
	.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
	str	wzr, [x2]
	ldr	x9, [x1]
	cbz	x9, LBB0_13
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	w8, #0
	mov	x11, #0
	mov	x23, #0
	ldr	x10, [x1, #8]
	mov	w24, #8
Lloh0:
	adrp	x25, _bnx2x_cos_state_bw@GOTPAGE
Lloh1:
	ldr	x25, [x25, _bnx2x_cos_state_bw@GOTPAGEOFF]
Lloh2:
	adrp	x22, _NETIF_MSG_LINK@GOTPAGE
Lloh3:
	ldr	x22, [x22, _NETIF_MSG_LINK@GOTPAGEOFF]
Lloh4:
	adrp	x21, l_.str@PAGE
Lloh5:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x22]
	mov	x1, x21
	bl	_DP
	mov	w11, #1
	ldp	x9, x10, [x20]
	str	w11, [x10, x24]
	ldr	w8, [x19]
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w8, w8, w11
	str	w8, [x19]
	mov	w11, #1
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x23, x23, #1
	add	x24, x24, #16
	cmp	x23, x9
	b.hs	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x12, x10, x24
	ldur	x12, [x12, #-8]
	ldr	x13, [x25]
	cmp	x12, x13
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w11, [x10, x24]
	cbz	w11, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w11, [x10, x24]
	b	LBB0_3
LBB0_8:
	cmp	x11, #1
	b.ne	LBB0_13
; %bb.9:
	cmp	w8, #100
	b.eq	LBB0_13
; %bb.10:
	cbnz	w8, LBB0_12
; %bb.11:
	ldr	w0, [x22]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_DP
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_14
LBB0_12:
	ldr	w0, [x22]
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_DP
LBB0_13:
	mov	w0, #0
LBB0_14:
	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 AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_bnx2x_cos_state_bw,8,3         ; @bnx2x_cos_state_bw
	.comm	_NETIF_MSG_LINK,4,2             ; @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bnx2x_ets_E3B0_config BWwas set to 0\n"

l_.str.1:                               ; @.str.1
	.asciz	"bnx2x_ets_E3B0_config total BW shouldn't be 0\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"bnx2x_ets_E3B0_config total BW should be 100\n"

	.no_dead_strip	_bnx2x_ets_e3b0_get_total_bw
.subsections_via_symbols
