	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ice_set_priv_flags
_ice_set_priv_flags:                    ## @ice_set_priv_flags
	.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, %r12
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	_change_flags@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ICE_PF_FLAGS_NBITS@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_DECLARE_BITMAP
	movq	_orig_flags@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movl	(%r14), %esi
	callq	_DECLARE_BITMAP
	movq	(%rbx), %rbx
	movq	(%rbx), %r15
	movq	_ICE_PRIV_FLAG_ARRAY_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_BIT
	cmpq	%r12, %rax
	jae	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_26
LBB0_2:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	_ICE_FLAG_ETHTOOL_CTXT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	callq	_set_bit
	movl	(%r13), %edi
	movl	(%r15), %esi
	movl	(%r14), %edx
	callq	_bitmap_copy
	movq	_ICE_PRIV_FLAG_ARRAY_SIZE@GOTPCREL(%rip), %r12
	cmpq	$0, (%r12)
	je	LBB0_8
## %bb.3:
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	callq	_clear_bit
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %r13
	incq	%rbx
	cmpq	(%r12), %rbx
	jae	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %r14
	movq	%r15, %r13
	movq	_ice_gstrings_priv_flags@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	%rbx, %rdi
	callq	_BIT
	movl	(%r15,%rbx,4), %edi
	movq	%r13, %r15
	movl	(%r13), %esi
	testq	%rax, -64(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	callq	_set_bit
	jmp	LBB0_7
LBB0_8:
	movq	_change_flags@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	(%r15), %esi
	movl	(%r13), %edx
	movq	_ICE_PF_FLAGS_NBITS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_bitmap_xor
	movq	_ICE_FLAG_FW_LLDP_AGENT@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movl	(%rbx), %esi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_25
## %bb.9:
	movl	(%r14), %edi
	movl	(%r15), %esi
	callq	_test_bit
	leaq	16(%r15), %rbx
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_10
## %bb.17:
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_ice_aq_start_lldp
	testl	%eax, %eax
	je	LBB0_19
## %bb.18:
	movq	8(%r15), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_warn
LBB0_19:
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$1, %esi
	xorl	%ecx, %ecx
	callq	_ice_aq_start_stop_dcbx
	testl	%eax, %eax
	je	LBB0_21
## %bb.20:
	movq	8(%r15), %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_dev_dbg
LBB0_21:
	movq	8(%r15), %rdi
	cmpl	$0, -44(%rbp)
	leaq	L_.str.7(%rip), %rax
	leaq	L_.str.6(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_info
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_ice_init_pf_dcb
	testl	%eax, %eax
	je	LBB0_23
## %bb.22:
	movq	8(%r15), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_dbg
LBB0_23:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_ice_cfg_sw_lldp
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_ice_cfg_lldp_mib_change
	testl	%eax, %eax
	je	LBB0_25
## %bb.24:
	movq	8(%r15), %rdi
	leaq	L_.str.8(%rip), %rsi
	callq	_dev_dbg
	jmp	LBB0_25
LBB0_10:
	xorl	%esi, %esi
	callq	_ice_cfg_lldp_mib_change
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movq	8(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_info
LBB0_12:
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_ice_aq_stop_lldp
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movq	8(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_warn
LBB0_14:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_ice_init_pf_dcb
	testl	%eax, %eax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_16
## %bb.15:
	movq	8(%r15), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_warn
LBB0_16:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_ice_cfg_sw_lldp
LBB0_25:
	movq	_ICE_FLAG_ETHTOOL_CTXT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	callq	_clear_bit
	xorl	%eax, %eax
LBB0_26:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_change_flags,4,2               ## @change_flags
	.comm	_ICE_PF_FLAGS_NBITS,4,2         ## @ICE_PF_FLAGS_NBITS
	.comm	_orig_flags,4,2                 ## @orig_flags
	.comm	_ICE_PRIV_FLAG_ARRAY_SIZE,8,3   ## @ICE_PRIV_FLAG_ARRAY_SIZE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ICE_FLAG_ETHTOOL_CTXT,4,2      ## @ICE_FLAG_ETHTOOL_CTXT
	.comm	_ice_gstrings_priv_flags,8,3    ## @ice_gstrings_priv_flags
	.comm	_ICE_FLAG_FW_LLDP_AGENT,4,2     ## @ICE_FLAG_FW_LLDP_AGENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to unreg for LLDP events\n"

L_.str.1:                               ## @.str.1
	.asciz	"Fail to stop LLDP agent\n"

L_.str.2:                               ## @.str.2
	.asciz	"Fail to init DCB\n"

L_.str.3:                               ## @.str.3
	.asciz	"Fail to start LLDP Agent\n"

L_.str.4:                               ## @.str.4
	.asciz	"Failed to start FW DCBX\n"

L_.str.5:                               ## @.str.5
	.asciz	"FW DCBX agent is %s\n"

L_.str.6:                               ## @.str.6
	.asciz	"ACTIVE"

L_.str.7:                               ## @.str.7
	.asciz	"DISABLED"

L_.str.8:                               ## @.str.8
	.asciz	"Fail to enable MIB change events\n"

	.no_dead_strip	_ice_set_priv_flags
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ice_set_priv_flags
_ice_set_priv_flags:                    ; @ice_set_priv_flags
	.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	x21, x1
	bl	_netdev_priv
	mov	x19, x0
Lloh0:
	adrp	x24, _change_flags@GOTPAGE
Lloh1:
	ldr	x24, [x24, _change_flags@GOTPAGEOFF]
	ldr	w0, [x24]
Lloh2:
	adrp	x25, _ICE_PF_FLAGS_NBITS@GOTPAGE
Lloh3:
	ldr	x25, [x25, _ICE_PF_FLAGS_NBITS@GOTPAGEOFF]
	ldr	w1, [x25]
	bl	_DECLARE_BITMAP
Lloh4:
	adrp	x26, _orig_flags@GOTPAGE
Lloh5:
	ldr	x26, [x26, _orig_flags@GOTPAGEOFF]
	ldr	w0, [x26]
	ldr	w1, [x25]
	bl	_DECLARE_BITMAP
	ldr	x20, [x19]
	ldr	x19, [x20]
Lloh6:
	adrp	x27, _ICE_PRIV_FLAG_ARRAY_SIZE@GOTPAGE
Lloh7:
	ldr	x27, [x27, _ICE_PRIV_FLAG_ARRAY_SIZE@GOTPAGEOFF]
	ldr	x0, [x27]
	bl	_BIT
	cmp	x0, x21
	b.hs	LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_26
LBB0_2:
Lloh11:
	adrp	x8, _ICE_FLAG_ETHTOOL_CTXT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ICE_FLAG_ETHTOOL_CTXT@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldr	w1, [x19]
	bl	_set_bit
	ldr	w0, [x26]
	ldr	w1, [x19]
	ldr	w2, [x25]
	bl	_bitmap_copy
	ldr	x8, [x27]
	cbz	x8, LBB0_8
; %bb.3:
	mov	x22, #0
Lloh14:
	adrp	x28, _ice_gstrings_priv_flags@GOTPAGE
Lloh15:
	ldr	x28, [x28, _ice_gstrings_priv_flags@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	bl	_clear_bit
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x22, x22, #1
	ldr	x8, [x27]
	cmp	x22, x8
	b.hs	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x23, [x28]
	mov	x0, x22
	bl	_BIT
	mov	x8, x0
	ldr	w0, [x23, x22, lsl #2]
	ldr	w1, [x19]
	tst	x8, x21
	b.eq	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	bl	_set_bit
	b	LBB0_5
LBB0_8:
	ldr	w0, [x24]
	ldr	w1, [x19]
	ldr	w2, [x26]
	ldr	w3, [x25]
	bl	_bitmap_xor
Lloh16:
	adrp	x21, _ICE_FLAG_FW_LLDP_AGENT@GOTPAGE
Lloh17:
	ldr	x21, [x21, _ICE_FLAG_FW_LLDP_AGENT@GOTPAGEOFF]
	ldr	w0, [x21]
	ldr	w1, [x24]
	bl	_test_bit
	cbz	x0, LBB0_25
; %bb.9:
	ldr	w0, [x21]
	ldr	w1, [x19]
	bl	_test_bit
	add	x21, x19, #16
	cbz	x0, LBB0_18
; %bb.10:
	mov	x0, x21
	mov	w1, #1
	mov	x2, #0
	bl	_ice_aq_start_lldp
	cbz	w0, LBB0_12
; %bb.11:
	ldr	x0, [x19, #8]
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_warn
LBB0_12:
	add	x2, sp, #12
	mov	x0, x21
	mov	w1, #1
	mov	x3, #0
	bl	_ice_aq_start_stop_dcbx
	cbz	w0, LBB0_14
; %bb.13:
	ldr	x0, [x19, #8]
Lloh20:
	adrp	x1, l_.str.4@PAGE
Lloh21:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_dbg
LBB0_14:
	ldr	x0, [x19, #8]
	ldr	w8, [sp, #12]
Lloh22:
	adrp	x9, l_.str.6@PAGE
Lloh23:
	add	x9, x9, l_.str.6@PAGEOFF
Lloh24:
	adrp	x10, l_.str.7@PAGE
Lloh25:
	add	x10, x10, l_.str.7@PAGEOFF
	cmp	w8, #0
	csel	x8, x10, x9, eq
	str	x8, [sp]
Lloh26:
	adrp	x1, l_.str.5@PAGE
Lloh27:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_dev_info
	mov	x0, x19
	mov	w1, #1
	bl	_ice_init_pf_dcb
	cbz	w0, LBB0_16
; %bb.15:
	ldr	x0, [x19, #8]
Lloh28:
	adrp	x1, l_.str.2@PAGE
Lloh29:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_dbg
LBB0_16:
	mov	x0, x20
	mov	w1, #0
	mov	w2, #0
	bl	_ice_cfg_sw_lldp
	mov	x0, x21
	mov	w1, #1
	bl	_ice_cfg_lldp_mib_change
	cbz	w0, LBB0_25
; %bb.17:
	ldr	x0, [x19, #8]
Lloh30:
	adrp	x1, l_.str.8@PAGE
Lloh31:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_dev_dbg
	b	LBB0_25
LBB0_18:
	mov	x0, x21
	mov	w1, #0
	bl	_ice_cfg_lldp_mib_change
	cbz	w0, LBB0_20
; %bb.19:
	ldr	x0, [x19, #8]
Lloh32:
	adrp	x1, l_.str@PAGE
Lloh33:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
LBB0_20:
	mov	x0, x21
	mov	w1, #1
	mov	w2, #1
	mov	x3, #0
	bl	_ice_aq_stop_lldp
	cbz	w0, LBB0_22
; %bb.21:
	ldr	x0, [x19, #8]
Lloh34:
	adrp	x1, l_.str.1@PAGE
Lloh35:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_warn
LBB0_22:
	mov	x0, x19
	mov	w1, #1
	bl	_ice_init_pf_dcb
	cbz	w0, LBB0_24
; %bb.23:
	ldr	x0, [x19, #8]
Lloh36:
	adrp	x1, l_.str.2@PAGE
Lloh37:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_warn
LBB0_24:
	mov	x0, x20
	mov	w1, #0
	mov	w2, #1
	bl	_ice_cfg_sw_lldp
LBB0_25:
Lloh38:
	adrp	x8, _ICE_FLAG_ETHTOOL_CTXT@GOTPAGE
Lloh39:
	ldr	x8, [x8, _ICE_FLAG_ETHTOOL_CTXT@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
	ldr	w1, [x19]
	bl	_clear_bit
	mov	w0, #0
LBB0_26:
	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
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_change_flags,4,2               ; @change_flags
	.comm	_ICE_PF_FLAGS_NBITS,4,2         ; @ICE_PF_FLAGS_NBITS
	.comm	_orig_flags,4,2                 ; @orig_flags
	.comm	_ICE_PRIV_FLAG_ARRAY_SIZE,8,3   ; @ICE_PRIV_FLAG_ARRAY_SIZE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ICE_FLAG_ETHTOOL_CTXT,4,2      ; @ICE_FLAG_ETHTOOL_CTXT
	.comm	_ice_gstrings_priv_flags,8,3    ; @ice_gstrings_priv_flags
	.comm	_ICE_FLAG_FW_LLDP_AGENT,4,2     ; @ICE_FLAG_FW_LLDP_AGENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to unreg for LLDP events\n"

l_.str.1:                               ; @.str.1
	.asciz	"Fail to stop LLDP agent\n"

l_.str.2:                               ; @.str.2
	.asciz	"Fail to init DCB\n"

l_.str.3:                               ; @.str.3
	.asciz	"Fail to start LLDP Agent\n"

l_.str.4:                               ; @.str.4
	.asciz	"Failed to start FW DCBX\n"

l_.str.5:                               ; @.str.5
	.asciz	"FW DCBX agent is %s\n"

l_.str.6:                               ; @.str.6
	.asciz	"ACTIVE"

l_.str.7:                               ; @.str.7
	.asciz	"DISABLED"

l_.str.8:                               ; @.str.8
	.asciz	"Fail to enable MIB change events\n"

	.no_dead_strip	_ice_set_priv_flags
.subsections_via_symbols
