	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_igu_clear_sb_gen         ## -- Begin function bnx2x_igu_clear_sb_gen
	.p2align	4, 0x90
_bnx2x_igu_clear_sb_gen:                ## @bnx2x_igu_clear_sb_gen
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, %ebx
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movq	_IGU_REG_COMMAND_REG_32LSB_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	_IGU_REG_COMMAND_REG_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	_IGU_REG_CSTORM_TYPE_0_SB_CLEANUP@GOTPCREL(%rip), %rax
	leal	31(%rbx), %esi
	testl	%edx, %edx
	cmovnsl	%edx, %esi
	movl	%esi, %edx
	sarl	$5, %edx
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	leal	(,%rdx,4), %r12d
	addl	(%rax), %r12d
	andl	$-32, %esi
	movl	%ebx, %ecx
	subl	%esi, %ecx
	movl	$1, %r15d
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r15d
	movq	_IGU_FID_ENCODE_IS_PF_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_IGU_CMD_E2_PROD_UPD_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	callq	_CHIP_INT_MODE_IS_BC
	testq	%rax, %rax
	jne	LBB0_7
## %bb.1:
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	addl	%ebx, %r13d
	xorl	%eax, %eax
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	setne	%al
	movl	%r14d, %ecx
	shll	%cl, %eax
	orl	-52(%rbp), %eax                 ## 4-byte Folded Reload
	movq	_IGU_USE_REGISTER_cstorm_type_0_sb_cleanup@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	movq	_IGU_REGULAR_CLEANUP_TYPE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %r14d
	movq	_IGU_REGULAR_CLEANUP_SET@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r14d
	movq	_IGU_REGULAR_BCLEANUP@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r14d
	movq	_IGU_CTRL_REG_ADDRESS_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %r13d
	movq	_IGU_CTRL_REG_FID_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	_IGU_CTRL_CMD_TYPE_WR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movq	_IGU_CTRL_REG_TYPE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %ebx
	orl	%r13d, %ebx
	orl	%eax, %ebx
	movq	_NETIF_MSG_HW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	movl	-56(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_DP
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	movl	%r14d, %edx
	callq	_REG_WR
	xorl	%eax, %eax
	callq	_barrier
	movq	_NETIF_MSG_HW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	movl	-60(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_DP
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_REG_WR
	xorl	%eax, %eax
	callq	_barrier
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_REG_RD
	movl	$100, %r14d
	testl	%r15d, %eax
	jne	LBB0_6
## %bb.2:
	movl	$100, %r14d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$1, %r14d
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$20, %edi
	callq	_msleep
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_REG_RD
	decl	%r14d
	testl	%r15d, %eax
	je	LBB0_3
	jmp	LBB0_6
LBB0_4:
	xorl	%r14d, %r14d
LBB0_6:
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_REG_RD
	testl	%r15d, %eax
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	je	LBB0_8
LBB0_7:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_NETIF_MSG_HW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	%r14d, %r9d
	xorl	%eax, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DP                             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IGU_REG_COMMAND_REG_32LSB_DATA,4,2 ## @IGU_REG_COMMAND_REG_32LSB_DATA
	.comm	_IGU_REG_COMMAND_REG_CTRL,4,2   ## @IGU_REG_COMMAND_REG_CTRL
	.comm	_IGU_REG_CSTORM_TYPE_0_SB_CLEANUP,4,2 ## @IGU_REG_CSTORM_TYPE_0_SB_CLEANUP
	.comm	_IGU_FID_ENCODE_IS_PF_SHIFT,4,2 ## @IGU_FID_ENCODE_IS_PF_SHIFT
	.comm	_IGU_CMD_E2_PROD_UPD_BASE,4,2   ## @IGU_CMD_E2_PROD_UPD_BASE
	.comm	_IGU_USE_REGISTER_cstorm_type_0_sb_cleanup,4,2 ## @IGU_USE_REGISTER_cstorm_type_0_sb_cleanup
	.comm	_IGU_REGULAR_CLEANUP_TYPE_SHIFT,4,2 ## @IGU_REGULAR_CLEANUP_TYPE_SHIFT
	.comm	_IGU_REGULAR_CLEANUP_SET,4,2    ## @IGU_REGULAR_CLEANUP_SET
	.comm	_IGU_REGULAR_BCLEANUP,4,2       ## @IGU_REGULAR_BCLEANUP
	.comm	_IGU_CTRL_REG_ADDRESS_SHIFT,4,2 ## @IGU_CTRL_REG_ADDRESS_SHIFT
	.comm	_IGU_CTRL_REG_FID_SHIFT,4,2     ## @IGU_CTRL_REG_FID_SHIFT
	.comm	_IGU_CTRL_CMD_TYPE_WR,4,2       ## @IGU_CTRL_CMD_TYPE_WR
	.comm	_IGU_CTRL_REG_TYPE_SHIFT,4,2    ## @IGU_CTRL_REG_TYPE_SHIFT
	.comm	_NETIF_MSG_HW,4,2               ## @NETIF_MSG_HW
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"write 0x%08x to IGU(via GRC) addr 0x%x\n"

L_.str.1:                               ## @.str.1
	.asciz	"Unable to finish IGU cleanup: idu_sb_id %d offset %d bit %d (cnt %d)\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_igu_clear_sb_gen         ; -- Begin function bnx2x_igu_clear_sb_gen
	.p2align	2
_bnx2x_igu_clear_sb_gen:                ; @bnx2x_igu_clear_sb_gen
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x26, x3
	mov	x19, x2
	mov	x25, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _IGU_REG_COMMAND_REG_32LSB_DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IGU_REG_COMMAND_REG_32LSB_DATA@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
Lloh3:
	adrp	x8, _IGU_REG_COMMAND_REG_CTRL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IGU_REG_COMMAND_REG_CTRL@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
Lloh6:
	adrp	x8, _IGU_REG_CSTORM_TYPE_0_SB_CLEANUP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IGU_REG_CSTORM_TYPE_0_SB_CLEANUP@GOTPAGEOFF]
Lloh8:
	ldr	w21, [x8]
	add	w8, w2, #31
	cmp	w2, #0
	csel	w28, w8, w2, lt
Lloh9:
	adrp	x8, _IGU_FID_ENCODE_IS_PF_SHIFT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IGU_FID_ENCODE_IS_PF_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w27, [x8]
Lloh12:
	adrp	x8, _IGU_CMD_E2_PROD_UPD_BASE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IGU_CMD_E2_PROD_UPD_BASE@GOTPAGEOFF]
Lloh14:
	ldr	w23, [x8]
	bl	_CHIP_INT_MODE_IS_BC
	cbnz	x0, LBB0_6
; %bb.1:
	asr	w8, w28, #5
	stp	w8, w22, [sp, #24]              ; 8-byte Folded Spill
	add	w22, w21, w8, lsl #2
	and	w8, w28, #0xffffffe0
	sub	w28, w19, w8
	mov	w8, #1
	lsl	w21, w8, w28
	add	w8, w23, w19
	cmp	w26, #0
	cset	w9, ne
	lsl	w9, w9, w27
	orr	w9, w9, w25
Lloh15:
	adrp	x10, _IGU_USE_REGISTER_cstorm_type_0_sb_cleanup@GOTPAGE
Lloh16:
	ldr	x10, [x10, _IGU_USE_REGISTER_cstorm_type_0_sb_cleanup@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
Lloh18:
	adrp	x11, _IGU_REGULAR_CLEANUP_TYPE_SHIFT@GOTPAGE
Lloh19:
	ldr	x11, [x11, _IGU_REGULAR_CLEANUP_TYPE_SHIFT@GOTPAGEOFF]
Lloh20:
	ldr	w11, [x11]
	lsl	w10, w10, w11
Lloh21:
	adrp	x11, _IGU_REGULAR_CLEANUP_SET@GOTPAGE
Lloh22:
	ldr	x11, [x11, _IGU_REGULAR_CLEANUP_SET@GOTPAGEOFF]
Lloh23:
	ldr	w11, [x11]
	orr	w10, w10, w11
Lloh24:
	adrp	x11, _IGU_REGULAR_BCLEANUP@GOTPAGE
Lloh25:
	ldr	x11, [x11, _IGU_REGULAR_BCLEANUP@GOTPAGEOFF]
Lloh26:
	ldr	w11, [x11]
	orr	w25, w10, w11
Lloh27:
	adrp	x10, _IGU_CTRL_REG_ADDRESS_SHIFT@GOTPAGE
Lloh28:
	ldr	x10, [x10, _IGU_CTRL_REG_ADDRESS_SHIFT@GOTPAGEOFF]
Lloh29:
	ldr	w10, [x10]
	lsl	w8, w8, w10
Lloh30:
	adrp	x10, _IGU_CTRL_REG_FID_SHIFT@GOTPAGE
Lloh31:
	ldr	x10, [x10, _IGU_CTRL_REG_FID_SHIFT@GOTPAGEOFF]
Lloh32:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w8, w9, w8
Lloh33:
	adrp	x9, _IGU_CTRL_CMD_TYPE_WR@GOTPAGE
Lloh34:
	ldr	x9, [x9, _IGU_CTRL_CMD_TYPE_WR@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
Lloh36:
	adrp	x10, _IGU_CTRL_REG_TYPE_SHIFT@GOTPAGE
Lloh37:
	ldr	x10, [x10, _IGU_CTRL_REG_TYPE_SHIFT@GOTPAGEOFF]
Lloh38:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w26, w8, w9
Lloh39:
	adrp	x23, _NETIF_MSG_HW@GOTPAGE
Lloh40:
	ldr	x23, [x23, _NETIF_MSG_HW@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh41:
	adrp	x27, l_.str@PAGE
Lloh42:
	add	x27, x27, l_.str@PAGEOFF
	mov	x1, x27
	mov	x2, x25
	mov	x3, x24
	bl	_DP
	mov	x0, x20
	mov	x1, x24
	mov	x24, x23
	mov	x2, x25
	bl	_REG_WR
	bl	_barrier
	ldr	w0, [x23]
	mov	x1, x27
	mov	x2, x26
	ldr	w23, [sp, #28]                  ; 4-byte Folded Reload
	mov	x3, x23
	bl	_DP
	mov	x0, x20
	mov	x1, x23
	mov	x2, x26
	bl	_REG_WR
	bl	_barrier
	mov	x0, x20
	mov	x1, x22
	bl	_REG_RD
	mov	w23, #100
	tst	w0, w21
	b.ne	LBB0_4
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #20
	bl	_msleep
	mov	x0, x20
	mov	x1, x22
	bl	_REG_RD
	and	w8, w0, w21
	cbnz	w8, LBB0_4
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	subs	w23, w23, #1
	b.ne	LBB0_2
LBB0_4:
	mov	x0, x20
	mov	x1, x22
	bl	_REG_RD
	tst	w0, w21
	b.ne	LBB0_6
; %bb.5:
	ldr	w0, [x24]
	stp	x28, x23, [sp]
Lloh43:
	adrp	x1, l_.str.1@PAGE
Lloh44:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	ldr	w3, [sp, #24]                   ; 4-byte Folded Reload
	bl	_DP
LBB0_6:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_IGU_REG_COMMAND_REG_32LSB_DATA,4,2 ; @IGU_REG_COMMAND_REG_32LSB_DATA
	.comm	_IGU_REG_COMMAND_REG_CTRL,4,2   ; @IGU_REG_COMMAND_REG_CTRL
	.comm	_IGU_REG_CSTORM_TYPE_0_SB_CLEANUP,4,2 ; @IGU_REG_CSTORM_TYPE_0_SB_CLEANUP
	.comm	_IGU_FID_ENCODE_IS_PF_SHIFT,4,2 ; @IGU_FID_ENCODE_IS_PF_SHIFT
	.comm	_IGU_CMD_E2_PROD_UPD_BASE,4,2   ; @IGU_CMD_E2_PROD_UPD_BASE
	.comm	_IGU_USE_REGISTER_cstorm_type_0_sb_cleanup,4,2 ; @IGU_USE_REGISTER_cstorm_type_0_sb_cleanup
	.comm	_IGU_REGULAR_CLEANUP_TYPE_SHIFT,4,2 ; @IGU_REGULAR_CLEANUP_TYPE_SHIFT
	.comm	_IGU_REGULAR_CLEANUP_SET,4,2    ; @IGU_REGULAR_CLEANUP_SET
	.comm	_IGU_REGULAR_BCLEANUP,4,2       ; @IGU_REGULAR_BCLEANUP
	.comm	_IGU_CTRL_REG_ADDRESS_SHIFT,4,2 ; @IGU_CTRL_REG_ADDRESS_SHIFT
	.comm	_IGU_CTRL_REG_FID_SHIFT,4,2     ; @IGU_CTRL_REG_FID_SHIFT
	.comm	_IGU_CTRL_CMD_TYPE_WR,4,2       ; @IGU_CTRL_CMD_TYPE_WR
	.comm	_IGU_CTRL_REG_TYPE_SHIFT,4,2    ; @IGU_CTRL_REG_TYPE_SHIFT
	.comm	_NETIF_MSG_HW,4,2               ; @NETIF_MSG_HW
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"write 0x%08x to IGU(via GRC) addr 0x%x\n"

l_.str.1:                               ; @.str.1
	.asciz	"Unable to finish IGU cleanup: idu_sb_id %d offset %d bit %d (cnt %d)\n"

.subsections_via_symbols
