	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_sriov_post_bc_msg
_qlcnic_sriov_post_bc_msg:              ## @qlcnic_sriov_post_bc_msg
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -60(%rbp)                 ## 4-byte Spill
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	$0, -48(%rbp)
	movq	(%rdi), %r12
	movl	(%rsi), %r13d
	movq	_QLC_83XX_MBX_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%r12), %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	%r13d, -56(%rbp)                ## 4-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movl	-60(%rbp), %ebx                 ## 4-byte Reload
	leaq	4(%r12), %r13
	movq	%r13, %rdi
	callq	_spin_lock_irqsave
	movq	_QLCNIC_HOST_MBX_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_QLCRDX
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	movq	_DRV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	callq	_QLCDB
	movq	%r13, %rdi
	callq	_spin_unlock_irqrestore
	movq	_QLCNIC_RCODE_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_14
LBB0_3:
	movq	8(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_dev_info
	movq	8(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_info
	jmp	LBB0_14
LBB0_4:
	movl	%ebx, %r13d
	movl	%ebx, %eax
	shll	$16, %eax
	addl	$65536, %eax                    ## imm = 0x10000
	movq	(%r14), %rcx
	movl	(%rcx), %ebx
	shll	$29, %ebx
	orl	%eax, %ebx
	orl	$49, %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_QLCNIC_MBX_HOST
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_writel
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_qlcnic_sriov_pf_check
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	shll	$5, %ecx
	orl	$17, %ecx
	testq	%rax, %rax
	movl	$17, %ebx
	cmovnel	%ecx, %ebx
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_QLCNIC_MBX_HOST
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_writel
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %ebx
	movq	%r12, %rdi
	movl	$2, %esi
	callq	_QLCNIC_MBX_HOST
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_writel
	testl	%r13d, %r13d
	jle	LBB0_7
## %bb.5:
	movl	%r13d, %r13d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	leal	3(%r14), %esi
	movl	(%r15,%r14,4), %ebx
	movq	%r12, %rdi
	callq	_QLCNIC_MBX_HOST
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_writel
	incq	%r14
	cmpl	%r14d, %r13d
	jne	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	%r12, %rdi
	callq	_QLCWRX
	leaq	-48(%rbp), %rsi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_qlcnic_83xx_mbx_poll
	movq	_QLCNIC_RCODE_TIMEOUT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_11
## %bb.8:
	movq	_QLCNIC_MBX_ASYNC_EVENT@GOTPCREL(%rip), %r13
	leaq	-48(%rbp), %r15
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_QLCNIC_MBX_FW
	movl	%eax, %edi
	callq	_readl
	testl	%eax, (%r13)
	je	LBB0_15
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r14, %rdi
	callq	___qlcnic_83xx_process_aen
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_qlcnic_83xx_mbx_poll
	movq	_QLCNIC_RCODE_TIMEOUT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_9
LBB0_11:
	movq	8(%r14), %rbx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_QLCNIC_MBX_RSP
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_QLCNIC_RCODE_TIMEOUT@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %r15d
LBB0_13:
	movq	_QLCNIC_FW_MBX_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_QLCNIC_CLR_OWNER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_QLCWRX
	movq	(%r14), %rdi
	addq	$4, %rdi
	callq	_spin_unlock_irqrestore
LBB0_14:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_QLCNIC_MBX_STATUS
	movl	%eax, %r15d
	movl	%ebx, %edi
	callq	_QLCNIC_MBX_NUM_REGS
	movl	%ebx, %edi
	callq	_QLCNIC_MBX_RSP
	movl	%eax, %ebx
	movl	%r15d, %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
	cmpl	(%rax), %ebx
	jne	LBB0_19
## %bb.18:
	movq	%r14, %rdi
	callq	_qlcnic_83xx_mac_rcode
	testl	%eax, %eax
	je	LBB0_20
LBB0_19:
	movq	8(%r14), %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_13
LBB0_20:
	xorl	%r15d, %r15d
	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
	.comm	_QLCNIC_RCODE_TIMEOUT,4,2       ## @QLCNIC_RCODE_TIMEOUT
	.comm	_QLCNIC_SET_OWNER,4,2           ## @QLCNIC_SET_OWNER
	.comm	_QLCNIC_MBX_ASYNC_EVENT,4,2     ## @QLCNIC_MBX_ASYNC_EVENT
	.comm	_QLCNIC_RCODE_SUCCESS,4,2       ## @QLCNIC_RCODE_SUCCESS
	.comm	_QLCNIC_CMD_CONFIG_MAC_VLAN,4,2 ## @QLCNIC_CMD_CONFIG_MAC_VLAN
L_.str.2:                               ## @.str.2
	.asciz	"MBX command 0x%x failed with err:0x%x\n"

L_.str.3:                               ## @.str.3
	.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
	.no_dead_strip	_qlcnic_sriov_post_bc_msg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_sriov_post_bc_msg
_qlcnic_sriov_post_bc_msg:              ; @qlcnic_sriov_post_bc_msg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x23, x4
	mov	x22, x3
	mov	x21, x2
	mov	x24, x1
	mov	x19, x0
	str	wzr, [sp, #12]
	ldr	x20, [x0]
	ldr	w25, [x1]
Lloh0:
	adrp	x8, _QLC_83XX_MBX_READY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QLC_83XX_MBX_READY@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x20, #8
	bl	_test_bit
	cbz	w0, LBB0_3
; %bb.1:
	add	x26, x20, #4
	mov	x0, x26
	bl	_spin_lock_irqsave
Lloh3:
	adrp	x27, _QLCNIC_HOST_MBX_CTRL@GOTPAGE
Lloh4:
	ldr	x27, [x27, _QLCNIC_HOST_MBX_CTRL@GOTPAGEOFF]
	ldr	w1, [x27]
	mov	x0, x20
	bl	_QLCRDX
	cbz	w0, LBB0_4
; %bb.2:
Lloh5:
	adrp	x8, _DRV@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DRV@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x3, x25
	bl	_QLCDB
	mov	x0, x26
	bl	_spin_unlock_irqrestore
Lloh10:
	adrp	x8, _QLCNIC_RCODE_TIMEOUT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _QLCNIC_RCODE_TIMEOUT@GOTPAGEOFF]
Lloh12:
	ldr	w21, [x8]
	b	LBB0_13
LBB0_3:
	ldr	x0, [x19, #8]
	str	x25, [sp]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
	ldr	x0, [x19, #8]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_info
	mov	w21, #0
	b	LBB0_13
LBB0_4:
	lsl	w8, w23, #16
	add	w8, w8, #16, lsl #12            ; =65536
	ldr	x9, [x19]
	ldr	w9, [x9]
	orr	w8, w8, w9, lsl #29
	mov	w9, #49
	orr	w25, w8, w9
	mov	x0, x20
	mov	w1, #0
	bl	_QLCNIC_MBX_HOST
	mov	x1, x0
	mov	x0, x25
	bl	_writel
	mov	x0, x19
	bl	_qlcnic_sriov_pf_check
	mov	w8, #17
	mov	w9, #17
	bfi	w9, w22, #5, #27
	cmp	x0, #0
	csel	w22, w8, w9, eq
	mov	x0, x20
	mov	w1, #1
	bl	_QLCNIC_MBX_HOST
	mov	x1, x0
	mov	x0, x22
	bl	_writel
	ldr	w24, [x24]
	mov	x0, x20
	mov	w1, #2
	bl	_QLCNIC_MBX_HOST
	mov	x1, x0
	mov	x0, x24
	bl	_writel
	cmp	w23, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x24, #0
	mov	w25, w23
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	w1, w24, #3
	ldr	w23, [x21, x24, lsl #2]
	mov	x0, x20
	bl	_QLCNIC_MBX_HOST
	mov	x1, x0
	mov	x0, x23
	bl	_writel
	add	x24, x24, #1
	cmp	w25, w24
	b.ne	LBB0_6
LBB0_7:
	ldr	w1, [x27]
Lloh17:
	adrp	x8, _QLCNIC_SET_OWNER@GOTPAGE
Lloh18:
	ldr	x8, [x8, _QLCNIC_SET_OWNER@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_QLCWRX
	add	x1, sp, #12
	mov	x0, x19
	bl	_qlcnic_83xx_mbx_poll
Lloh20:
	adrp	x24, _QLCNIC_RCODE_TIMEOUT@GOTPAGE
Lloh21:
	ldr	x24, [x24, _QLCNIC_RCODE_TIMEOUT@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w0, w8
	b.eq	LBB0_11
; %bb.8:
Lloh22:
	adrp	x21, _QLCNIC_MBX_ASYNC_EVENT@GOTPAGE
Lloh23:
	ldr	x21, [x21, _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	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x19
	bl	___qlcnic_83xx_process_aen
	add	x1, sp, #12
	mov	x0, x19
	bl	_qlcnic_83xx_mbx_poll
	ldr	w8, [x24]
	cmp	w0, w8
	b.ne	LBB0_9
LBB0_11:
	ldr	x21, [x19, #8]
	mov	x0, x22
	bl	_QLCNIC_MBX_RSP
	mov	x2, x0
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	ldr	w21, [x24]
LBB0_12:
Lloh26:
	adrp	x8, _QLCNIC_FW_MBX_CTRL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _QLCNIC_FW_MBX_CTRL@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
Lloh29:
	adrp	x8, _QLCNIC_CLR_OWNER@GOTPAGE
Lloh30:
	ldr	x8, [x8, _QLCNIC_CLR_OWNER@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_QLCWRX
	ldr	x8, [x19]
	add	x0, x8, #4
	bl	_spin_unlock_irqrestore
LBB0_13:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_14:
	mov	x23, x0
	bl	_QLCNIC_MBX_STATUS
	mov	x21, x0
	mov	x0, x23
	bl	_QLCNIC_MBX_NUM_REGS
	mov	x0, x23
	bl	_QLCNIC_MBX_RSP
	and	w8, w21, #0xfffffffe
	cmp	w8, #128
	b.ne	LBB0_16
; %bb.15:
Lloh32:
	adrp	x8, _QLCNIC_RCODE_SUCCESS@GOTPAGE
Lloh33:
	ldr	x8, [x8, _QLCNIC_RCODE_SUCCESS@GOTPAGEOFF]
Lloh34:
	ldr	w21, [x8]
	b	LBB0_12
LBB0_16:
	mov	x22, x0
Lloh35:
	adrp	x8, _QLCNIC_CMD_CONFIG_MAC_VLAN@GOTPAGE
Lloh36:
	ldr	x8, [x8, _QLCNIC_CMD_CONFIG_MAC_VLAN@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_18
; %bb.17:
	mov	x0, x19
	bl	_qlcnic_83xx_mac_rcode
	cbz	w0, LBB0_19
LBB0_18:
	ldr	x0, [x19, #8]
	str	x21, [sp]
Lloh38:
	adrp	x1, l_.str.2@PAGE
Lloh39:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x22
	bl	_dev_err
	b	LBB0_12
LBB0_19:
	mov	w21, #0
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.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
	.comm	_QLCNIC_RCODE_TIMEOUT,4,2       ; @QLCNIC_RCODE_TIMEOUT
	.comm	_QLCNIC_SET_OWNER,4,2           ; @QLCNIC_SET_OWNER
	.comm	_QLCNIC_MBX_ASYNC_EVENT,4,2     ; @QLCNIC_MBX_ASYNC_EVENT
	.comm	_QLCNIC_RCODE_SUCCESS,4,2       ; @QLCNIC_RCODE_SUCCESS
	.comm	_QLCNIC_CMD_CONFIG_MAC_VLAN,4,2 ; @QLCNIC_CMD_CONFIG_MAC_VLAN
l_.str.2:                               ; @.str.2
	.asciz	"MBX command 0x%x failed with err:0x%x\n"

l_.str.3:                               ; @.str.3
	.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
	.no_dead_strip	_qlcnic_sriov_post_bc_msg
.subsections_via_symbols
