	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_re_start_irq
_bnxt_re_start_irq:                     ## @bnxt_re_start_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, %r14
	testq	%rsi, %rsi
	je	LBB0_22
## %bb.1:
	movq	16(%r14), %r12
	leaq	24(%r14), %rdi
	movl	(%r14), %r8d
	testl	%r8d, %r8d
	jle	LBB0_16
## %bb.2:
	xorl	%ecx, %ecx
	cmpl	$8, %r8d
	jb	LBB0_12
## %bb.3:
	movq	%r12, %rax
	subq	%rsi, %rax
	cmpq	$32, %rax
	jb	LBB0_12
## %bb.4:
	movl	%r8d, %ecx
	andl	$-8, %ecx
	leaq	-8(%rcx), %rax
	movq	%rax, %rdx
	shrq	$3, %rdx
	incq	%rdx
	movl	%edx, %r9d
	andl	$3, %r9d
	cmpq	$24, %rax
	jae	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_22:
	movq	%r14, %rdi
	callq	_rdev_to_dev
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
LBB0_6:
	andq	$-4, %rdx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movups	(%rsi,%rax,4), %xmm0
	movups	16(%rsi,%rax,4), %xmm1
	movups	%xmm0, (%r12,%rax,4)
	movups	%xmm1, 16(%r12,%rax,4)
	movups	32(%rsi,%rax,4), %xmm0
	movups	48(%rsi,%rax,4), %xmm1
	movups	%xmm0, 32(%r12,%rax,4)
	movups	%xmm1, 48(%r12,%rax,4)
	movups	64(%rsi,%rax,4), %xmm0
	movups	80(%rsi,%rax,4), %xmm1
	movups	%xmm0, 64(%r12,%rax,4)
	movups	%xmm1, 80(%r12,%rax,4)
	movups	96(%rsi,%rax,4), %xmm0
	movups	112(%rsi,%rax,4), %xmm1
	movups	%xmm0, 96(%r12,%rax,4)
	movups	%xmm1, 112(%r12,%rax,4)
	addq	$32, %rax
	addq	$-4, %rdx
	jne	LBB0_7
LBB0_8:
	testq	%r9, %r9
	je	LBB0_11
## %bb.9:
	leaq	(%r12,%rax,4), %rdx
	addq	$16, %rdx
	leaq	(%rsi,%rax,4), %rax
	addq	$16, %rax
	shlq	$5, %r9
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movups	-16(%rax,%rbx), %xmm0
	movups	(%rax,%rbx), %xmm1
	movups	%xmm0, -16(%rdx,%rbx)
	movups	%xmm1, (%rdx,%rbx)
	addq	$32, %rbx
	cmpq	%rbx, %r9
	jne	LBB0_10
LBB0_11:
	cmpq	%r8, %rcx
	je	LBB0_16
LBB0_12:
	movq	%rcx, %rax
	notq	%rax
	addq	%r8, %rax
	movq	%r8, %rdx
	andq	$3, %rdx
	je	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rsi,%rcx,4), %ebx
	movl	%ebx, (%r12,%rcx,4)
	incq	%rcx
	decq	%rdx
	jne	LBB0_13
LBB0_14:
	cmpq	$3, %rax
	jb	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rsi,%rcx,4), %eax
	movl	%eax, (%r12,%rcx,4)
	movl	4(%rsi,%rcx,4), %eax
	movl	%eax, 4(%r12,%rcx,4)
	movl	8(%rsi,%rcx,4), %eax
	movl	%eax, 8(%r12,%rcx,4)
	movl	12(%rsi,%rcx,4), %eax
	movl	%eax, 12(%r12,%rcx,4)
	addq	$4, %rcx
	cmpq	%rcx, %r8
	jne	LBB0_15
LBB0_16:
	movq	_BNXT_RE_AEQ_IDX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%r12,%rax,4), %esi
	xorl	%edx, %edx
	callq	_bnxt_qplib_rcfw_start_irq
	movq	_BNXT_RE_NQ_IDX@GOTPCREL(%rip), %rax
	movslq	(%rax), %r13
	cmpl	(%r14), %r13d
	jge	LBB0_21
## %bb.17:
	leaq	-4(,%r13,4), %r15
	leal	-1(%r13), %ebx
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_18 Depth=1
	incq	%r13
	movslq	(%r14), %rax
	addq	$4, %r15
	incl	%ebx
	cmpq	%rax, %r13
	jge	LBB0_21
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rdi
	addq	%r15, %rdi
	movl	(%r12,%r13,4), %edx
	movl	%ebx, %esi
	xorl	%ecx, %ecx
	callq	_bnxt_qplib_nq_start_irq
	testl	%eax, %eax
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	%r14, %rdi
	callq	_rdev_to_dev
	movl	%eax, %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_warn
	jmp	LBB0_20
LBB0_21:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to re-start IRQs\n"

	.comm	_BNXT_RE_AEQ_IDX,8,3            ## @BNXT_RE_AEQ_IDX
	.comm	_BNXT_RE_NQ_IDX,4,2             ## @BNXT_RE_NQ_IDX
L_.str.1:                               ## @.str.1
	.asciz	"Failed to reinit NQ index %d\n"

	.no_dead_strip	_bnxt_re_start_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnxt_re_start_irq
_bnxt_re_start_irq:                     ; @bnxt_re_start_irq
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	cbz	x1, LBB0_15
; %bb.1:
	ldr	x22, [x19, #16]
	add	x0, x19, #24
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.2:
	mov	x9, #0
	cmp	w8, #16
	b.lo	LBB0_7
; %bb.3:
	sub	x10, x22, x1
	cmp	x10, #64
	b.lo	LBB0_7
; %bb.4:
	and	x9, x8, #0xfffffff0
	add	x10, x22, #32
	add	x11, x1, #32
	mov	x12, x9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x11, #-32]
	ldp	q2, q3, [x11], #64
	stp	q0, q1, [x10, #-32]
	stp	q2, q3, [x10], #64
	subs	x12, x12, #16
	b.ne	LBB0_5
; %bb.6:
	cmp	x9, x8
	b.eq	LBB0_9
LBB0_7:
	lsl	x11, x9, #2
	add	x10, x1, x11
	add	x11, x22, x11
	sub	x8, x8, x9
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x10], #4
	str	w9, [x11], #4
	subs	x8, x8, #1
	b.ne	LBB0_8
LBB0_9:
Lloh0:
	adrp	x8, _BNXT_RE_AEQ_IDX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BNXT_RE_AEQ_IDX@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w1, [x22, x8, lsl #2]
	mov	w2, #0
	bl	_bnxt_qplib_rcfw_start_irq
Lloh3:
	adrp	x8, _BNXT_RE_NQ_IDX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BNXT_RE_NQ_IDX@GOTPAGEOFF]
Lloh5:
	ldrsw	x23, [x8]
	ldr	w8, [x19]
	cmp	w23, w8
	b.ge	LBB0_14
; %bb.10:
	lsl	x8, x23, #2
	sub	x24, x8, #4
	sub	w20, w23, #1
Lloh6:
	adrp	x21, l_.str.1@PAGE
Lloh7:
	add	x21, x21, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x19]
	add	x24, x24, #4
	add	w20, w20, #1
	cmp	x23, x8
	b.ge	LBB0_14
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x0, x8, x24
	ldr	w2, [x22, x23, lsl #2]
	mov	x1, x20
	mov	w3, #0
	bl	_bnxt_qplib_nq_start_irq
	cbz	w0, LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x19
	bl	_rdev_to_dev
	mov	x1, x21
	mov	x2, x20
	bl	_dev_warn
	b	LBB0_11
LBB0_14:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_15:
	mov	x0, x19
	bl	_rdev_to_dev
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_dev_err
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to re-start IRQs\n"

	.comm	_BNXT_RE_AEQ_IDX,8,3            ; @BNXT_RE_AEQ_IDX
	.comm	_BNXT_RE_NQ_IDX,4,2             ; @BNXT_RE_NQ_IDX
l_.str.1:                               ; @.str.1
	.asciz	"Failed to reinit NQ index %d\n"

	.no_dead_strip	_bnxt_re_start_irq
.subsections_via_symbols
