	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_sriov_validate_cfg_macvlan
_qlcnic_sriov_validate_cfg_macvlan:     ## @qlcnic_sriov_validate_cfg_macvlan
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdx), %rcx
	movl	4(%rcx), %eax
	movq	_BIT_8@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_1
## %bb.2:
	movq	(%rsi), %r8
	movl	(%r8), %edx
	shll	$16, %edx
	orl	%eax, %edx
	movq	_BIT_31@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	%edx, 4(%rcx)
	movq	8(%r8), %rsi
	movq	_QLC_PVID_MODE@GOTPCREL(%rip), %rdi
	xorl	%eax, %eax
	cmpq	(%rdi), %rsi
	jne	LBB0_6
## %bb.3:
	movl	%edx, %edi
	andl	$7, %edi
	andl	$-8, %edx
	movl	%edx, 4(%rcx)
	movq	_QLCNIC_MAC_ADD@GOTPCREL(%rip), %r9
	movq	_QLCNIC_MAC_VLAN_ADD@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r10d
	movl	%r10d, %esi
	cmpl	%r10d, %edi
	je	LBB0_5
## %bb.4:
	movq	_QLCNIC_MAC_VLAN_DEL@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
LBB0_5:
	cmpl	(%r9), %edi
	cmovel	%r10d, %esi
	movl	16(%r8), %edi
	shll	$16, %edi
	orl	%edi, 12(%rcx)
	orl	%edx, %esi
	movl	%esi, 4(%rcx)
LBB0_6:
	popq	%rbp
	retq
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BIT_8,4,2                      ## @BIT_8
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_BIT_31,4,2                     ## @BIT_31
	.comm	_QLC_PVID_MODE,8,3              ## @QLC_PVID_MODE
	.comm	_QLCNIC_MAC_ADD,4,2             ## @QLCNIC_MAC_ADD
	.comm	_QLCNIC_MAC_VLAN_ADD,4,2        ## @QLCNIC_MAC_VLAN_ADD
	.comm	_QLCNIC_MAC_VLAN_DEL,4,2        ## @QLCNIC_MAC_VLAN_DEL
	.no_dead_strip	_qlcnic_sriov_validate_cfg_macvlan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_sriov_validate_cfg_macvlan
_qlcnic_sriov_validate_cfg_macvlan:     ; @qlcnic_sriov_validate_cfg_macvlan
	.cfi_startproc
; %bb.0:
	ldr	x8, [x2]
	ldr	w10, [x8, #4]
Lloh0:
	adrp	x9, _BIT_8@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BIT_8@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w10
	b.eq	LBB0_3
; %bb.1:
	ldr	x9, [x1]
	ldr	w11, [x9]
	orr	w10, w10, w11, lsl #16
Lloh3:
	adrp	x11, _BIT_31@GOTPAGE
Lloh4:
	ldr	x11, [x11, _BIT_31@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	orr	w10, w10, w11
	str	w10, [x8, #4]
	ldr	x11, [x9, #8]
Lloh6:
	adrp	x12, _QLC_PVID_MODE@GOTPAGE
Lloh7:
	ldr	x12, [x12, _QLC_PVID_MODE@GOTPAGEOFF]
Lloh8:
	ldr	x12, [x12]
	cmp	x11, x12
	b.ne	LBB0_4
; %bb.2:
	mov	w0, #0
	and	w11, w10, #0x7
Lloh9:
	adrp	x12, _QLCNIC_MAC_ADD@GOTPAGE
Lloh10:
	ldr	x12, [x12, _QLCNIC_MAC_ADD@GOTPAGEOFF]
Lloh11:
	ldr	w12, [x12]
Lloh12:
	adrp	x13, _QLCNIC_MAC_VLAN_ADD@GOTPAGE
Lloh13:
	ldr	x13, [x13, _QLCNIC_MAC_VLAN_ADD@GOTPAGEOFF]
Lloh14:
	ldr	w13, [x13]
	cmp	w11, w13
	ccmp	w11, w12, #4, ne
	and	w10, w10, #0xfffffff8
	str	w10, [x8, #4]
Lloh15:
	adrp	x11, _QLCNIC_MAC_VLAN_DEL@GOTPAGE
Lloh16:
	ldr	x11, [x11, _QLCNIC_MAC_VLAN_DEL@GOTPAGEOFF]
Lloh17:
	ldr	w11, [x11]
	csel	w11, w13, w11, eq
	ldr	w9, [x9, #16]
	ldr	w12, [x8, #12]
	orr	w9, w12, w9, lsl #16
	str	w9, [x8, #12]
	orr	w9, w11, w10
	str	w9, [x8, #4]
	ret
LBB0_3:
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_4:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_BIT_8,4,2                      ; @BIT_8
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_BIT_31,4,2                     ; @BIT_31
	.comm	_QLC_PVID_MODE,8,3              ; @QLC_PVID_MODE
	.comm	_QLCNIC_MAC_ADD,4,2             ; @QLCNIC_MAC_ADD
	.comm	_QLCNIC_MAC_VLAN_ADD,4,2        ; @QLCNIC_MAC_VLAN_ADD
	.comm	_QLCNIC_MAC_VLAN_DEL,4,2        ; @QLCNIC_MAC_VLAN_DEL
	.no_dead_strip	_qlcnic_sriov_validate_cfg_macvlan
.subsections_via_symbols
