	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_sriov_channel_cfg_cmd
_qlcnic_sriov_channel_cfg_cmd:          ## @qlcnic_sriov_channel_cfg_cmd
	.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
	movl	%esi, %r12d
	movq	%rdi, %r13
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %r14
	leaq	-48(%rbp), %r15
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_qlcnic_sriov_alloc_bc_mbx_args
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_2:
	leaq	-48(%rbp), %rsi
	movq	%r13, %rdi
	callq	_qlcnic_issue_cmd
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	(%r13), %rdi
	testl	%r12d, %r12d
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %ecx
	callq	_dev_err
LBB0_8:
	leaq	-48(%rbp), %rdi
	callq	_qlcnic_free_mbx_args
	movl	%r15d, %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	-48(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	andl	$-33554432, %ecx                ## imm = 0xFE000000
	movl	$2, %ebx
	cmpl	$67108864, %ecx                 ## imm = 0x4000000
	je	LBB0_9
## %bb.5:
	movzbl	%al, %eax
	movq	_QLCNIC_BC_CMD_CHANNEL_INIT@GOTPCREL(%rip), %rcx
	movq	_QLC_BC_VF_STATE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	cmpl	(%rcx), %eax
	jne	LBB0_7
## %bb.6:
	movq	%r14, %rsi
	callq	_set_bit
	jmp	LBB0_8
LBB0_7:
	movq	%r14, %rsi
	callq	_clear_bit
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed bc channel %s %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"term"

L_.str.2:                               ## @.str.2
	.asciz	"init"

	.comm	_QLCNIC_BC_CMD_CHANNEL_INIT,4,2 ## @QLCNIC_BC_CMD_CHANNEL_INIT
	.comm	_QLC_BC_VF_STATE,4,2            ## @QLC_BC_VF_STATE
	.no_dead_strip	_qlcnic_sriov_channel_cfg_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_sriov_channel_cfg_cmd
_qlcnic_sriov_channel_cfg_cmd:          ; @qlcnic_sriov_channel_cfg_cmd
	.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	x21, x1
	mov	x22, x0
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	ldr	x20, [x8]
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	add	x0, sp, #8
	mov	x1, x21
	bl	_qlcnic_sriov_alloc_bc_mbx_args
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_5
LBB0_2:
	add	x1, sp, #8
	mov	x0, x22
	bl	_qlcnic_issue_cmd
	mov	x19, x0
	cbz	w0, LBB0_6
; %bb.3:
	ldr	x0, [x22]
Lloh3:
	adrp	x8, l_.str.1@PAGE
Lloh4:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh5:
	adrp	x9, l_.str.2@PAGE
Lloh6:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w21, #0
	csel	x2, x9, x8, eq
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x19
	bl	_dev_err
LBB0_4:
	add	x0, sp, #8
	bl	_qlcnic_free_mbx_args
LBB0_5:
	mov	x0, 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
	ret
LBB0_6:
	ldr	x8, [sp, #8]
	ldr	w8, [x8]
	lsr	w9, w8, #25
	cmp	w9, #2
	b.ne	LBB0_8
; %bb.7:
	mov	w19, #2
	b	LBB0_5
LBB0_8:
Lloh9:
	adrp	x9, _QLCNIC_BC_CMD_CHANNEL_INIT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _QLCNIC_BC_CMD_CHANNEL_INIT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x10, _QLC_BC_VF_STATE@GOTPAGE
Lloh13:
	ldr	x10, [x10, _QLC_BC_VF_STATE@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x10]
	mov	x1, x20
	cmp	w9, w8, uxtb
	b.ne	LBB0_10
; %bb.9:
	bl	_set_bit
	b	LBB0_4
LBB0_10:
	bl	_clear_bit
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed bc channel %s %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"term"

l_.str.2:                               ; @.str.2
	.asciz	"init"

	.comm	_QLCNIC_BC_CMD_CHANNEL_INIT,4,2 ; @QLCNIC_BC_CMD_CHANNEL_INIT
	.comm	_QLC_BC_VF_STATE,4,2            ; @QLC_BC_VF_STATE
	.no_dead_strip	_qlcnic_sriov_channel_cfg_cmd
.subsections_via_symbols
