	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_sriov_pf_channel_cfg_cmd
_qlcnic_sriov_pf_channel_cfg_cmd:       ## @qlcnic_sriov_pf_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
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	8(%rdi), %r15
	movq	8(%r15), %r13
	movl	4(%r15), %r12d
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %rcx
	movl	$65536, %edx                    ## imm = 0x10000
	orq	(%rax), %rdx
	movq	%rdx, (%rcx)
	movq	(%rax), %rax
	movq	_QLCNIC_BC_CMD_CHANNEL_INIT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.1:
	movq	%r13, %rdi
	movl	$1, %esi
	movl	%r12d, %edx
	callq	_qlcnic_sriov_pf_config_vport
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_qlcnic_sriov_set_vf_vport_info
	testl	%eax, %eax
	je	LBB0_6
## %bb.3:
	movl	%eax, %r14d
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	%r12d, %edx
	callq	_qlcnic_sriov_pf_config_vport
	jmp	LBB0_4
LBB0_5:
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	%r12d, %edx
	callq	_qlcnic_sriov_pf_config_vport
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_6
LBB0_4:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	orq	$67108864, (%rax)               ## imm = 0x4000000
	jmp	LBB0_10
LBB0_6:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	orq	$33554432, (%rax)               ## imm = 0x2000000
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	_QLC_BC_VF_STATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_QLCNIC_BC_CMD_CHANNEL_INIT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	movq	%r15, %rsi
	callq	_set_bit
	jmp	LBB0_9
LBB0_8:
	movq	%r15, %rsi
	callq	_clear_bit
LBB0_9:
	xorl	%r14d, %r14d
LBB0_10:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLCNIC_BC_CMD_CHANNEL_INIT,8,3 ## @QLCNIC_BC_CMD_CHANNEL_INIT
	.comm	_QLC_BC_VF_STATE,4,2            ## @QLC_BC_VF_STATE
	.no_dead_strip	_qlcnic_sriov_pf_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_pf_channel_cfg_cmd
_qlcnic_sriov_pf_channel_cfg_cmd:       ; @qlcnic_sriov_pf_channel_cfg_cmd
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x1
	mov	x21, x0
	ldp	x8, x19, [x0]
	ldr	x23, [x19, #8]
	ldr	w22, [x19, #4]
	ldr	x9, [x8]
	ldr	x10, [x1]
	orr	x9, x9, #0x10000
	str	x9, [x10]
	ldr	x8, [x8]
Lloh0:
	adrp	x25, _QLCNIC_BC_CMD_CHANNEL_INIT@GOTPAGE
Lloh1:
	ldr	x25, [x25, _QLCNIC_BC_CMD_CHANNEL_INIT@GOTPAGEOFF]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	mov	x0, x23
	mov	w1, #1
	mov	x2, x22
	bl	_qlcnic_sriov_pf_config_vport
	mov	x24, x0
	cbnz	w0, LBB0_5
; %bb.2:
	mov	x0, x23
	mov	x1, x22
	bl	_qlcnic_sriov_set_vf_vport_info
	cbz	w0, LBB0_6
; %bb.3:
	mov	x24, x0
	mov	x0, x23
	mov	w1, #0
	mov	x2, x22
	bl	_qlcnic_sriov_pf_config_vport
	b	LBB0_5
LBB0_4:
	mov	x0, x23
	mov	w1, #0
	mov	x2, x22
	bl	_qlcnic_sriov_pf_config_vport
	mov	x24, x0
	cbz	w0, LBB0_6
LBB0_5:
	ldr	x8, [x20]
	ldr	x9, [x8]
	orr	x9, x9, #0x4000000
	str	x9, [x8]
	b	LBB0_10
LBB0_6:
	ldr	x8, [x20]
	ldr	x9, [x8]
	orr	x9, x9, #0x2000000
	str	x9, [x8]
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldr	x9, [x25]
Lloh2:
	adrp	x10, _QLC_BC_VF_STATE@GOTPAGE
Lloh3:
	ldr	x10, [x10, _QLC_BC_VF_STATE@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x10]
	mov	x1, x19
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	bl	_set_bit
	b	LBB0_9
LBB0_8:
	bl	_clear_bit
LBB0_9:
	mov	w24, #0
LBB0_10:
	mov	x0, x24
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_QLCNIC_BC_CMD_CHANNEL_INIT,8,3 ; @QLCNIC_BC_CMD_CHANNEL_INIT
	.comm	_QLC_BC_VF_STATE,4,2            ; @QLC_BC_VF_STATE
	.no_dead_strip	_qlcnic_sriov_pf_channel_cfg_cmd
.subsections_via_symbols
