	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cnic_init_bnx2_irq
_cnic_init_bnx2_irq:                    ## @cnic_init_bnx2_irq
	.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, %r15
	movq	8(%rdi), %r12
	movq	32(%r12), %rax
	movq	_CNIC_DRV_STATE_USING_MSIX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_8
## %bb.1:
	movl	(%r12), %r14d
	leal	-1(%r14), %ebx
	movq	_BNX2_HC_SB_CONFIG_SIZE@GOTPCREL(%rip), %rax
	imull	(%rax), %ebx
	movq	_BNX2_HC_SB_CONFIG_1@GOTPCREL(%rip), %rax
	addl	(%rax), %ebx
	movq	_BNX2_HC_SB_CONFIG_1_ONE_SHOT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_CNIC_WR
	movq	_BNX2_HC_COMP_PROD_TRIP_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%ebx, %esi
	movq	%r15, %rdi
	movl	$131080, %edx                   ## imm = 0x20008
	callq	_CNIC_WR
	movq	_BNX2_HC_COM_TICKS_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%ebx, %esi
	movq	%r15, %rdi
	movl	$4194524, %edx                  ## imm = 0x4000DC
	callq	_CNIC_WR
	movq	_BNX2_HC_CMD_TICKS_OFF@GOTPCREL(%rip), %rax
	addl	(%rax), %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	$4194524, %edx                  ## imm = 0x4000DC
	callq	_CNIC_WR
	movq	16(%r12), %rax
	movl	8(%rax), %eax
	movl	%eax, 28(%r12)
	leaq	24(%r12), %rdi
	movq	_cnic_service_bnx2_msix@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdx
	callq	_tasklet_init
	movq	%r15, %rdi
	callq	_cnic_request_irq
	testl	%eax, %eax
	jne	LBB0_18
## %bb.2:
	movq	16(%r12), %rax
	cmpq	$0, (%rax)
	je	LBB0_17
## %bb.3:
	addb	$11, %r14b
	movl	$1, %r13d
	movl	%r14d, %ecx
	shll	%cl, %r13d
	movq	_BNX2_HC_COALESCE_NOW@GOTPCREL(%rip), %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	movq	%r15, %rdi
	movl	%r13d, %edx
	callq	_CNIC_WR
	movl	$10, %edi
	callq	_udelay
	xorl	%eax, %eax
	callq	_barrier
	movq	16(%r12), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	leal	1(%rbx), %ecx
	cmpl	$9, %ebx
	movl	%ecx, %ebx
	jb	LBB0_4
LBB0_6:
	testq	%rax, %rax
	je	LBB0_17
## %bb.7:
	movq	%r15, %rdi
	callq	_cnic_free_irq
	jmp	LBB0_13
LBB0_8:
	movq	8(%r12), %r14
	movq	_BNX2_HC_COMMAND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_CNIC_RD
	cmpq	$0, (%r14)
	je	LBB0_17
## %bb.9:
	movl	%eax, %ebx
	movq	_BNX2_HC_COMMAND_COAL_NOW_WO_INT@GOTPCREL(%rip), %r13
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	_BNX2_HC_COMMAND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %edx
	orl	%ebx, %edx
	movq	%r15, %rdi
	callq	_CNIC_WR
	movl	$10, %edi
	callq	_udelay
	xorl	%eax, %eax
	callq	_barrier
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	leal	1(%r12), %ecx
	cmpl	$9, %r12d
	movl	%ecx, %r12d
	jb	LBB0_10
LBB0_12:
	testq	%rax, %rax
	je	LBB0_17
LBB0_13:
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_err
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_18
LBB0_17:
	xorl	%eax, %eax
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CNIC_DRV_STATE_USING_MSIX,4,2  ## @CNIC_DRV_STATE_USING_MSIX
	.comm	_BNX2_HC_SB_CONFIG_SIZE,4,2     ## @BNX2_HC_SB_CONFIG_SIZE
	.comm	_BNX2_HC_SB_CONFIG_1,4,2        ## @BNX2_HC_SB_CONFIG_1
	.comm	_BNX2_HC_SB_CONFIG_1_ONE_SHOT,4,2 ## @BNX2_HC_SB_CONFIG_1_ONE_SHOT
	.comm	_BNX2_HC_COMP_PROD_TRIP_OFF,4,2 ## @BNX2_HC_COMP_PROD_TRIP_OFF
	.comm	_BNX2_HC_COM_TICKS_OFF,4,2      ## @BNX2_HC_COM_TICKS_OFF
	.comm	_BNX2_HC_CMD_TICKS_OFF,4,2      ## @BNX2_HC_CMD_TICKS_OFF
	.comm	_cnic_service_bnx2_msix,4,2     ## @cnic_service_bnx2_msix
	.comm	_BNX2_HC_COALESCE_NOW,4,2       ## @BNX2_HC_COALESCE_NOW
	.comm	_BNX2_HC_COMMAND,4,2            ## @BNX2_HC_COMMAND
	.comm	_BNX2_HC_COMMAND_COAL_NOW_WO_INT,4,2 ## @BNX2_HC_COMMAND_COAL_NOW_WO_INT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"KCQ index not resetting to 0\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_cnic_init_bnx2_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cnic_init_bnx2_irq
_cnic_init_bnx2_irq:                    ; @cnic_init_bnx2_irq
	.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
	mov	x19, x0
	ldr	x21, [x0, #8]
	ldr	x8, [x21, #32]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _CNIC_DRV_STATE_USING_MSIX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CNIC_DRV_STATE_USING_MSIX@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.1:
	ldr	w22, [x21]
	sub	w8, w22, #1
Lloh3:
	adrp	x9, _BNX2_HC_SB_CONFIG_SIZE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BNX2_HC_SB_CONFIG_SIZE@GOTPAGEOFF]
Lloh5:
	adrp	x10, _BNX2_HC_SB_CONFIG_1@GOTPAGE
Lloh6:
	ldr	x10, [x10, _BNX2_HC_SB_CONFIG_1@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	ldr	w10, [x10]
	madd	w20, w8, w9, w10
Lloh9:
	adrp	x8, _BNX2_HC_SB_CONFIG_1_ONE_SHOT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BNX2_HC_SB_CONFIG_1_ONE_SHOT@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_CNIC_WR
Lloh12:
	adrp	x8, _BNX2_HC_COMP_PROD_TRIP_OFF@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BNX2_HC_COMP_PROD_TRIP_OFF@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	add	w1, w8, w20
	mov	x0, x19
	mov	w2, #8
	movk	w2, #2, lsl #16
	bl	_CNIC_WR
Lloh15:
	adrp	x8, _BNX2_HC_COM_TICKS_OFF@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BNX2_HC_COM_TICKS_OFF@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	add	w1, w8, w20
	mov	x0, x19
	mov	w2, #220
	movk	w2, #64, lsl #16
	bl	_CNIC_WR
Lloh18:
	adrp	x8, _BNX2_HC_CMD_TICKS_OFF@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BNX2_HC_CMD_TICKS_OFF@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	add	w1, w8, w20
	mov	x0, x19
	mov	w2, #220
	movk	w2, #64, lsl #16
	bl	_CNIC_WR
	ldr	x8, [x21, #16]
	ldr	w8, [x8, #8]
	str	w8, [x21, #28]
	add	x0, x21, #24
Lloh21:
	adrp	x8, _cnic_service_bnx2_msix@GOTPAGE
Lloh22:
	ldr	x8, [x8, _cnic_service_bnx2_msix@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_tasklet_init
	mov	x0, x19
	bl	_cnic_request_irq
	cbnz	w0, LBB0_13
; %bb.2:
	ldr	x8, [x21, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_12
; %bb.3:
	mov	w23, #0
	add	w8, w22, #11
	mov	w9, #1
	lsl	w20, w9, w8
Lloh24:
	adrp	x22, _BNX2_HC_COALESCE_NOW@GOTPAGE
Lloh25:
	ldr	x22, [x22, _BNX2_HC_COALESCE_NOW@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x20
	bl	_CNIC_WR
	mov	w0, #10
	bl	_udelay
	add	w24, w23, #1
	bl	_barrier
	ldr	x8, [x21, #16]
	ldr	x8, [x8]
	cmp	x8, #0
	ccmp	w23, #9, #2, ne
	mov	x23, x24
	b.lo	LBB0_4
; %bb.5:
	cbz	x8, LBB0_12
; %bb.6:
	mov	x0, x19
	bl	_cnic_free_irq
	b	LBB0_11
LBB0_7:
	ldr	x21, [x21, #8]
Lloh26:
	adrp	x22, _BNX2_HC_COMMAND@GOTPAGE
Lloh27:
	ldr	x22, [x22, _BNX2_HC_COMMAND@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_CNIC_RD
	ldr	x8, [x21]
	cbz	x8, LBB0_12
; %bb.8:
	mov	x20, x0
	mov	w23, #0
Lloh28:
	adrp	x24, _BNX2_HC_COMMAND_COAL_NOW_WO_INT@GOTPAGE
Lloh29:
	ldr	x24, [x24, _BNX2_HC_COMMAND_COAL_NOW_WO_INT@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	ldr	w8, [x24]
	orr	w2, w8, w20
	mov	x0, x19
	bl	_CNIC_WR
	mov	w0, #10
	bl	_udelay
	add	w25, w23, #1
	bl	_barrier
	ldr	x8, [x21]
	cmp	x8, #0
	ccmp	w23, #9, #2, ne
	mov	x23, x25
	b.lo	LBB0_9
; %bb.10:
	cbz	x8, LBB0_12
LBB0_11:
	ldr	w0, [x19]
Lloh30:
	adrp	x1, l_.str@PAGE
Lloh31:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_err
Lloh32:
	adrp	x8, _EBUSY@GOTPAGE
Lloh33:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_13
LBB0_12:
	mov	w0, #0
LBB0_13:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_CNIC_DRV_STATE_USING_MSIX,4,2  ; @CNIC_DRV_STATE_USING_MSIX
	.comm	_BNX2_HC_SB_CONFIG_SIZE,4,2     ; @BNX2_HC_SB_CONFIG_SIZE
	.comm	_BNX2_HC_SB_CONFIG_1,4,2        ; @BNX2_HC_SB_CONFIG_1
	.comm	_BNX2_HC_SB_CONFIG_1_ONE_SHOT,4,2 ; @BNX2_HC_SB_CONFIG_1_ONE_SHOT
	.comm	_BNX2_HC_COMP_PROD_TRIP_OFF,4,2 ; @BNX2_HC_COMP_PROD_TRIP_OFF
	.comm	_BNX2_HC_COM_TICKS_OFF,4,2      ; @BNX2_HC_COM_TICKS_OFF
	.comm	_BNX2_HC_CMD_TICKS_OFF,4,2      ; @BNX2_HC_CMD_TICKS_OFF
	.comm	_cnic_service_bnx2_msix,4,2     ; @cnic_service_bnx2_msix
	.comm	_BNX2_HC_COALESCE_NOW,4,2       ; @BNX2_HC_COALESCE_NOW
	.comm	_BNX2_HC_COMMAND,4,2            ; @BNX2_HC_COMMAND
	.comm	_BNX2_HC_COMMAND_COAL_NOW_WO_INT,4,2 ; @BNX2_HC_COMMAND_COAL_NOW_WO_INT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"KCQ index not resetting to 0\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_cnic_init_bnx2_irq
.subsections_via_symbols
