	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ql_mpi_handler
_ql_mpi_handler:                        ## @ql_mpi_handler
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	(%rsi), %r12d
	movl	$1, (%rsi)
	callq	_ql_get_mb_sts
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r15d
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_netif_err
	movq	%r14, %rdi
	callq	_ql_queue_asic_error
LBB0_21:
	movq	_CSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CSR_CMD_CLR_R2PCI_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_ql_write32
	movl	%r12d, (%rbx)
	movl	%r15d, %eax
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	8(%rbx), %rax
	movl	(%rax), %r8d
	leal	-128(%r8), %eax
	cmpl	$18, %eax
	ja	LBB0_20
## %bb.3:
	xorl	%r15d, %r15d
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_4:
	movl	%r12d, (%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ql_get_mb_sts                  ## TAILCALL
LBB0_6:
	movq	%r14, %rdi
	callq	_ql_idc_cmplt_aen
	movl	%eax, %r15d
	jmp	LBB0_21
LBB0_18:
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	leaq	L_.str.2(%rip), %rcx
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_netif_err
	movq	%r14, %rdi
	callq	_ql_queue_fw_error
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_21
LBB0_7:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_ql_link_up
	jmp	LBB0_21
LBB0_8:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_ql_link_down
	jmp	LBB0_21
LBB0_5:
	movq	%r14, %rdi
	callq	_ql_idc_req_aen
	movl	%eax, %r15d
	jmp	LBB0_21
LBB0_15:
	movq	16(%rbx), %rax
	movl	(%rax), %eax
	movq	_MB_CMD_EX_FW@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_17
## %bb.16:
	movl	%r12d, (%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_ql_get_mb_sts
	movq	8(%rbx), %rcx
	movl	$133, (%rcx)
	jmp	LBB0_11
LBB0_9:
	movq	16(%rbx), %rax
	movl	(%rax), %eax
	movq	_MB_CMD_EX_FW@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_12
## %bb.10:
	movl	%r12d, (%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_ql_get_mb_sts
	movq	8(%rbx), %rcx
	movl	$132, (%rcx)
	jmp	LBB0_11
LBB0_13:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_ql_sfp_in
	jmp	LBB0_21
LBB0_19:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_ql_aen_lost
	jmp	LBB0_21
LBB0_20:
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	leaq	L_.str.3(%rip), %rcx
	xorl	%r15d, %r15d
	movq	%r14, %rdi
                                        ## kill: def $r8d killed $r8d killed $r8
	xorl	%eax, %eax
	callq	_netif_err
	jmp	LBB0_21
LBB0_14:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_ql_sfp_out
	jmp	LBB0_21
LBB0_17:
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	leaq	L_.str.1(%rip), %rcx
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_netif_err
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	movq	%r14, %rdi
	callq	_ql_queue_fw_error
	jmp	LBB0_21
LBB0_12:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_ql_init_fw_done
	jmp	LBB0_21
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_18
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_6
	.long	L0_0_set_15
	.long	L0_0_set_9
	.long	L0_0_set_21
	.long	L0_0_set_14
	.long	L0_0_set_13
	.long	L0_0_set_19
	.end_data_region
                                        ## -- End function
	.comm	_drv,4,2                        ## @drv
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not read MPI, resetting ASIC!\n"

	.comm	_MB_CMD_EX_FW,4,2               ## @MB_CMD_EX_FW
L_.str.1:                               ## @.str.1
	.asciz	"Firmware initialization failed.\n"

	.comm	_EIO,4,2                        ## @EIO
L_.str.2:                               ## @.str.2
	.asciz	"System Error.\n"

L_.str.3:                               ## @.str.3
	.asciz	"Unsupported AE %.08x.\n"

	.comm	_CSR,4,2                        ## @CSR
	.comm	_CSR_CMD_CLR_R2PCI_INT,4,2      ## @CSR_CMD_CLR_R2PCI_INT
	.no_dead_strip	_ql_mpi_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ql_mpi_handler
_ql_mpi_handler:                        ; @ql_mpi_handler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	w22, [x1]
	mov	w8, #1
	str	w8, [x1]
	bl	_ql_get_mb_sts
	cbz	w0, LBB0_4
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x8, _drv@GOTPAGE
Lloh1:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [x20]
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	bl	_netif_err
	mov	x0, x20
	bl	_ql_queue_asic_error
LBB0_2:
Lloh5:
	adrp	x8, _CSR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CSR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _CSR_CMD_CLR_R2PCI_INT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CSR_CMD_CLR_R2PCI_INT@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_ql_write32
	str	w22, [x19]
	mov	x0, x21
LBB0_3:
	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
	add	sp, sp, #64
	ret
LBB0_4:
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	sub	w9, w8, #128
	cmp	w9, #18
	b.hi	LBB0_19
; %bb.5:
	mov	w21, #0
Lloh11:
	adrp	x8, lJTI0_0@PAGE
Lloh12:
	add	x8, x8, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x8, x9]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_6:
	str	w22, [x19]
	mov	x0, x20
	mov	x1, x19
	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
	add	sp, sp, #64
	b	_ql_get_mb_sts
LBB0_7:
	mov	x0, x20
	bl	_ql_idc_cmplt_aen
	mov	x21, x0
	b	LBB0_2
LBB0_8:
Lloh13:
	adrp	x8, _drv@GOTPAGE
Lloh14:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	ldr	w2, [x20]
Lloh16:
	adrp	x3, l_.str.2@PAGE
Lloh17:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_netif_err
	mov	x0, x20
	bl	_ql_queue_fw_error
Lloh18:
	adrp	x8, _EIO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_2
LBB0_9:
	mov	x0, x20
	mov	x1, x19
	bl	_ql_link_up
	b	LBB0_23
LBB0_10:
	mov	x0, x20
	mov	x1, x19
	bl	_ql_link_down
	b	LBB0_23
LBB0_11:
	mov	x0, x20
	bl	_ql_idc_req_aen
	mov	x21, x0
	b	LBB0_2
LBB0_12:
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _MB_CMD_EX_FW@GOTPAGE
Lloh22:
	ldr	x9, [x9, _MB_CMD_EX_FW@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_21
; %bb.13:
	str	w22, [x19]
	mov	x0, x20
	mov	x1, x19
	bl	_ql_get_mb_sts
	ldr	x8, [x19, #8]
	mov	w9, #133
	b	LBB0_16
LBB0_14:
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _MB_CMD_EX_FW@GOTPAGE
Lloh25:
	ldr	x9, [x9, _MB_CMD_EX_FW@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_22
; %bb.15:
	str	w22, [x19]
	mov	x0, x20
	mov	x1, x19
	bl	_ql_get_mb_sts
	ldr	x8, [x19, #8]
	mov	w9, #132
LBB0_16:
	str	w9, [x8]
	b	LBB0_3
LBB0_17:
	mov	x0, x20
	mov	x1, x19
	bl	_ql_sfp_in
	b	LBB0_23
LBB0_18:
	mov	x0, x20
	mov	x1, x19
	bl	_ql_aen_lost
	b	LBB0_23
LBB0_19:
Lloh27:
	adrp	x9, _drv@GOTPAGE
Lloh28:
	ldr	x9, [x9, _drv@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x9]
	ldr	w2, [x20]
	str	x8, [sp]
Lloh30:
	adrp	x3, l_.str.3@PAGE
Lloh31:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_netif_err
	b	LBB0_23
LBB0_20:
	mov	x0, x20
	mov	x1, x19
	bl	_ql_sfp_out
	b	LBB0_23
LBB0_21:
Lloh32:
	adrp	x8, _drv@GOTPAGE
Lloh33:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	ldr	w2, [x20]
Lloh35:
	adrp	x3, l_.str.1@PAGE
Lloh36:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_netif_err
Lloh37:
	adrp	x8, _EIO@GOTPAGE
Lloh38:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	neg	w21, w8
	mov	x0, x20
	bl	_ql_queue_fw_error
	b	LBB0_2
LBB0_22:
	mov	x0, x20
	mov	x1, x19
	bl	_ql_init_fw_done
LBB0_23:
	mov	w21, #0
	b	LBB0_2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_20-LBB0_2)>>2
	.byte	(LBB0_17-LBB0_2)>>2
	.byte	(LBB0_18-LBB0_2)>>2
                                        ; -- End function
	.comm	_drv,4,2                        ; @drv
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not read MPI, resetting ASIC!\n"

	.comm	_MB_CMD_EX_FW,4,2               ; @MB_CMD_EX_FW
l_.str.1:                               ; @.str.1
	.asciz	"Firmware initialization failed.\n"

	.comm	_EIO,4,2                        ; @EIO
l_.str.2:                               ; @.str.2
	.asciz	"System Error.\n"

l_.str.3:                               ; @.str.3
	.asciz	"Unsupported AE %.08x.\n"

	.comm	_CSR,4,2                        ; @CSR
	.comm	_CSR_CMD_CLR_R2PCI_INT,4,2      ; @CSR_CMD_CLR_R2PCI_INT
	.no_dead_strip	_ql_mpi_handler
.subsections_via_symbols
