	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_83xx_mbx_op             ## -- Begin function qlcnic_83xx_mbx_op
	.p2align	4, 0x90
_qlcnic_83xx_mbx_op:                    ## @qlcnic_83xx_mbx_op
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	(%rdi), %r14
	movq	$0, -48(%rbp)
	movq	(%rsi), %rax
	movq	(%rax), %rdi
	callq	_LSW
	movq	%rax, %r12
	movq	_QLC_83XX_MBX_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r15), %rsi
	addq	$4, %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movq	(%r15), %rdi
	callq	_spin_lock_irqsave
	movq	_QLCNIC_HOST_MBX_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_QLCRDX
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%rax, %rbx
	movq	_DRV@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movq	%r12, %rcx
	callq	_QLCDB
	movl	(%r14), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rcx
	callq	_QLCDB
	movq	_QLCNIC_RCODE_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	16(%r13), %rcx
	movl	%eax, (%rcx)
	movq	(%r15), %rdi
	callq	_spin_unlock_irqrestore
	movq	16(%r13), %rax
	movl	(%rax), %r12d
	jmp	LBB0_14
LBB0_3:
	movq	8(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdx
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_dev_info
	movq	8(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_info
	jmp	LBB0_14
LBB0_4:
	movq	(%r13), %rax
	movq	(%rax), %rbx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_QLCNIC_MBX_HOST
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_writel
	cmpl	$2, 8(%r13)
	jl	LBB0_7
## %bb.5:
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movq	(%rax,%rbx,8), %r12
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_QLCNIC_MBX_HOST
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_writel
	incq	%rbx
	movslq	8(%r13), %rax
	cmpq	%rax, %rbx
	jl	LBB0_6
LBB0_7:
	movq	_QLCNIC_HOST_MBX_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_QLCNIC_SET_OWNER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_QLCWRX
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_qlcnic_83xx_mbx_poll
	movq	_QLCNIC_RCODE_TIMEOUT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_11
## %bb.8:
	movq	_QLCNIC_MBX_ASYNC_EVENT@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_QLCNIC_MBX_FW
	movl	%eax, %edi
	callq	_readl
	testq	%rax, (%rbx)
	je	LBB0_15
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r15, %rdi
	callq	___qlcnic_83xx_process_aen
	movq	%r15, %rdi
	leaq	-48(%rbp), %rsi
	callq	_qlcnic_83xx_mbx_poll
	movq	_QLCNIC_RCODE_TIMEOUT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
LBB0_11:
	movq	8(%r15), %rbx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_QLCNIC_MBX_RSP
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_QLCNIC_RCODE_TIMEOUT@GOTPCREL(%rip), %rax
LBB0_12:
	movq	(%rax), %r12
LBB0_13:
	movq	_QLCNIC_FW_MBX_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_QLCNIC_CLR_OWNER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_QLCWRX
	movq	(%r15), %rdi
	callq	_spin_unlock_irqrestore
LBB0_14:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_QLCNIC_MBX_STATUS
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_QLCNIC_MBX_NUM_REGS
	movq	%r12, %rdi
	callq	_QLCNIC_MBX_RSP
	movq	%rax, %r12
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_qlcnic_83xx_get_mbx_data
	movl	%ebx, %eax
	andl	$-2, %eax
	cmpl	$128, %eax
	jne	LBB0_17
## %bb.16:
	movq	_QLCNIC_RCODE_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_17:
	movq	_QLCNIC_CMD_CONFIG_MAC_VLAN@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jne	LBB0_19
## %bb.18:
	movq	%r15, %rdi
	callq	_qlcnic_83xx_mac_rcode
	testq	%rax, %rax
	je	LBB0_20
LBB0_19:
	movq	8(%r15), %rdi
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	movl	%ebx, %r12d
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_qlcnic_dump_mbx
	jmp	LBB0_13
LBB0_20:
	xorl	%r12d, %r12d
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_QLC_83XX_MBX_READY,4,2         ## @QLC_83XX_MBX_READY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Mailbox cmd attempted, 0x%x\n"

L_.str.1:                               ## @.str.1
	.asciz	"Mailbox detached\n"

	.comm	_QLCNIC_HOST_MBX_CTRL,4,2       ## @QLCNIC_HOST_MBX_CTRL
	.comm	_DRV,4,2                        ## @DRV
L_.str.2:                               ## @.str.2
	.asciz	"Mailbox not available, 0x%x, collect FW dump\n"

	.comm	_QLCNIC_RCODE_TIMEOUT,8,3       ## @QLCNIC_RCODE_TIMEOUT
	.comm	_QLCNIC_SET_OWNER,4,2           ## @QLCNIC_SET_OWNER
	.comm	_QLCNIC_MBX_ASYNC_EVENT,8,3     ## @QLCNIC_MBX_ASYNC_EVENT
	.comm	_QLCNIC_RCODE_SUCCESS,8,3       ## @QLCNIC_RCODE_SUCCESS
	.comm	_QLCNIC_CMD_CONFIG_MAC_VLAN,8,3 ## @QLCNIC_CMD_CONFIG_MAC_VLAN
L_.str.3:                               ## @.str.3
	.asciz	"MBX command 0x%x failed with err:0x%x\n"

L_.str.4:                               ## @.str.4
	.asciz	"MBX command 0x%x timed out\n"

	.comm	_QLCNIC_FW_MBX_CTRL,4,2         ## @QLCNIC_FW_MBX_CTRL
	.comm	_QLCNIC_CLR_OWNER,4,2           ## @QLCNIC_CLR_OWNER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_83xx_mbx_op             ; -- Begin function qlcnic_83xx_mbx_op
	.p2align	2
_qlcnic_83xx_mbx_op:                    ; @qlcnic_83xx_mbx_op
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x1
	mov	x19, x0
	ldr	x20, [x0]
	str	xzr, [sp, #8]
	ldr	x8, [x1]
	ldr	x0, [x8]
	bl	_LSW
	mov	x22, x0
Lloh0:
	adrp	x8, _QLC_83XX_MBX_READY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QLC_83XX_MBX_READY@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	x8, [x19]
	add	x1, x8, #4
	bl	_test_bit
	cbz	w0, LBB0_3
; %bb.1:
	ldr	x0, [x19]
	bl	_spin_lock_irqsave
Lloh3:
	adrp	x25, _QLCNIC_HOST_MBX_CTRL@GOTPAGE
Lloh4:
	ldr	x25, [x25, _QLCNIC_HOST_MBX_CTRL@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x20
	bl	_QLCRDX
	cbz	x0, LBB0_4
; %bb.2:
	mov	x23, x0
Lloh5:
	adrp	x20, _DRV@GOTPAGE
Lloh6:
	ldr	x20, [x20, _DRV@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh7:
	adrp	x2, l_.str@PAGE
Lloh8:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x3, x22
	bl	_QLCDB
	ldr	w1, [x20]
Lloh9:
	adrp	x2, l_.str.2@PAGE
Lloh10:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x3, x23
	bl	_QLCDB
Lloh11:
	adrp	x8, _QLCNIC_RCODE_TIMEOUT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _QLCNIC_RCODE_TIMEOUT@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ldr	x9, [x21, #16]
	str	w8, [x9]
	ldr	x0, [x19]
	bl	_spin_unlock_irqrestore
	ldr	x8, [x21, #16]
	ldr	w22, [x8]
	b	LBB0_13
LBB0_3:
	ldr	x0, [x19, #8]
	str	x22, [sp]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
	ldr	x0, [x19, #8]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_info
	mov	w22, #0
	b	LBB0_13
LBB0_4:
	ldr	x8, [x21]
	ldr	x22, [x8]
	mov	x0, x20
	mov	w1, #0
	bl	_QLCNIC_MBX_HOST
	mov	x1, x0
	mov	x0, x22
	bl	_writel
	ldr	w8, [x21, #8]
	cmp	w8, #2
	b.lt	LBB0_7
; %bb.5:
	mov	w23, #1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	x24, [x8, x23, lsl #3]
	mov	x0, x20
	mov	x1, x23
	bl	_QLCNIC_MBX_HOST
	mov	x1, x0
	mov	x0, x24
	bl	_writel
	add	x23, x23, #1
	ldrsw	x8, [x21, #8]
	cmp	x23, x8
	b.lt	LBB0_6
LBB0_7:
	ldr	w1, [x25]
Lloh18:
	adrp	x8, _QLCNIC_SET_OWNER@GOTPAGE
Lloh19:
	ldr	x8, [x8, _QLCNIC_SET_OWNER@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_QLCWRX
	add	x1, sp, #8
	mov	x0, x19
	bl	_qlcnic_83xx_mbx_poll
Lloh21:
	adrp	x24, _QLCNIC_RCODE_TIMEOUT@GOTPAGE
Lloh22:
	ldr	x24, [x24, _QLCNIC_RCODE_TIMEOUT@GOTPAGEOFF]
	ldr	x8, [x24]
	cmp	x0, x8
	b.eq	LBB0_11
; %bb.8:
Lloh23:
	adrp	x25, _QLCNIC_MBX_ASYNC_EVENT@GOTPAGE
Lloh24:
	ldr	x25, [x25, _QLCNIC_MBX_ASYNC_EVENT@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	w1, #0
	bl	_QLCNIC_MBX_FW
	bl	_readl
	ldr	x8, [x25]
	tst	x8, x0
	b.eq	LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x19
	bl	___qlcnic_83xx_process_aen
	add	x1, sp, #8
	mov	x0, x19
	bl	_qlcnic_83xx_mbx_poll
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_9
LBB0_11:
	ldr	x21, [x19, #8]
	mov	x0, x22
	bl	_QLCNIC_MBX_RSP
	mov	x2, x0
Lloh25:
	adrp	x1, l_.str.4@PAGE
Lloh26:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	ldr	x22, [x24]
LBB0_12:
Lloh27:
	adrp	x8, _QLCNIC_FW_MBX_CTRL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _QLCNIC_FW_MBX_CTRL@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
Lloh30:
	adrp	x8, _QLCNIC_CLR_OWNER@GOTPAGE
Lloh31:
	ldr	x8, [x8, _QLCNIC_CLR_OWNER@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_QLCWRX
	ldr	x0, [x19]
	bl	_spin_unlock_irqrestore
LBB0_13:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_14:
	mov	x23, x0
	bl	_QLCNIC_MBX_STATUS
	mov	x22, x0
	mov	x0, x23
	bl	_QLCNIC_MBX_NUM_REGS
	mov	x0, x23
	bl	_QLCNIC_MBX_RSP
	mov	x23, x0
	mov	x0, x19
	mov	x1, x21
	bl	_qlcnic_83xx_get_mbx_data
	and	w8, w22, #0xfffffffe
	cmp	w8, #128
	b.ne	LBB0_16
; %bb.15:
Lloh33:
	adrp	x8, _QLCNIC_RCODE_SUCCESS@GOTPAGE
Lloh34:
	ldr	x8, [x8, _QLCNIC_RCODE_SUCCESS@GOTPAGEOFF]
Lloh35:
	ldr	x22, [x8]
	b	LBB0_12
LBB0_16:
Lloh36:
	adrp	x8, _QLCNIC_CMD_CONFIG_MAC_VLAN@GOTPAGE
Lloh37:
	ldr	x8, [x8, _QLCNIC_CMD_CONFIG_MAC_VLAN@GOTPAGEOFF]
Lloh38:
	ldr	x8, [x8]
	cmp	x23, x8
	b.ne	LBB0_18
; %bb.17:
	mov	x0, x19
	bl	_qlcnic_83xx_mac_rcode
	cbz	x0, LBB0_19
LBB0_18:
	ldr	x0, [x19, #8]
	str	x22, [sp]
Lloh39:
	adrp	x1, l_.str.3@PAGE
Lloh40:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x23
	bl	_dev_err
	mov	w22, w22
	mov	x0, x19
	mov	x1, x21
	bl	_qlcnic_dump_mbx
	b	LBB0_12
LBB0_19:
	mov	x22, #0
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_QLC_83XX_MBX_READY,4,2         ; @QLC_83XX_MBX_READY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Mailbox cmd attempted, 0x%x\n"

l_.str.1:                               ; @.str.1
	.asciz	"Mailbox detached\n"

	.comm	_QLCNIC_HOST_MBX_CTRL,4,2       ; @QLCNIC_HOST_MBX_CTRL
	.comm	_DRV,4,2                        ; @DRV
l_.str.2:                               ; @.str.2
	.asciz	"Mailbox not available, 0x%x, collect FW dump\n"

	.comm	_QLCNIC_RCODE_TIMEOUT,8,3       ; @QLCNIC_RCODE_TIMEOUT
	.comm	_QLCNIC_SET_OWNER,4,2           ; @QLCNIC_SET_OWNER
	.comm	_QLCNIC_MBX_ASYNC_EVENT,8,3     ; @QLCNIC_MBX_ASYNC_EVENT
	.comm	_QLCNIC_RCODE_SUCCESS,8,3       ; @QLCNIC_RCODE_SUCCESS
	.comm	_QLCNIC_CMD_CONFIG_MAC_VLAN,8,3 ; @QLCNIC_CMD_CONFIG_MAC_VLAN
l_.str.3:                               ; @.str.3
	.asciz	"MBX command 0x%x failed with err:0x%x\n"

l_.str.4:                               ; @.str.4
	.asciz	"MBX command 0x%x timed out\n"

	.comm	_QLCNIC_FW_MBX_CTRL,4,2         ; @QLCNIC_FW_MBX_CTRL
	.comm	_QLCNIC_CLR_OWNER,4,2           ; @QLCNIC_CLR_OWNER
.subsections_via_symbols
