	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fm10k_set_rx_mode
_fm10k_set_rx_mode:                     ## @fm10k_set_rx_mode
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movl	(%r14), %eax
	movq	_IFF_UP@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_17
## %bb.1:
	movq	_IFF_PROMISC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.2:
	movq	_FM10K_XCAST_MODE_PROMISC@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_17:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_IFF_ALLMULTI@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.4:
	movq	_FM10K_XCAST_MODE_ALLMULTI@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_5:
	movq	_IFF_BROADCAST@GOTPCREL(%rip), %rcx
	movq	_IFF_MULTICAST@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	testl	%eax, %edx
	jne	LBB0_6
## %bb.7:
	movq	_FM10K_XCAST_MODE_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	_FM10K_XCAST_MODE_MULTI@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %r15d
	movq	%rbx, %rdi
	callq	_fm10k_mbx_lock
	movl	(%rbx), %eax
	cmpl	%r15d, %eax
	je	LBB0_16
## %bb.9:
	movq	_FM10K_XCAST_MODE_PROMISC@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	cmpl	%ecx, %r15d
	jne	LBB0_11
## %bb.10:
	movq	_FM10K_VLAN_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_fm10k_queue_vlan_request
	movl	(%rbx), %eax
	movl	(%r12), %ecx
LBB0_11:
	cmpl	%ecx, %eax
	jne	LBB0_13
## %bb.12:
	movq	%rbx, %rdi
	callq	_fm10k_clear_unused_vlans
LBB0_13:
	movq	%rbx, %rdi
	callq	_fm10k_host_mbx_ready
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	%rbx, %rdi
	addq	$8, %rdi
	movl	4(%rbx), %esi
	movl	%r15d, %edx
	callq	*8(%rbx)
LBB0_15:
	movl	%r15d, (%rbx)
LBB0_16:
	movq	_fm10k_uc_sync@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_fm10k_uc_unsync@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	___dev_uc_sync
	movq	_fm10k_mc_sync@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_fm10k_mc_unsync@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	___dev_mc_sync
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fm10k_mbx_unlock               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IFF_UP,4,2                     ## @IFF_UP
	.comm	_IFF_PROMISC,4,2                ## @IFF_PROMISC
	.comm	_FM10K_XCAST_MODE_PROMISC,4,2   ## @FM10K_XCAST_MODE_PROMISC
	.comm	_IFF_ALLMULTI,4,2               ## @IFF_ALLMULTI
	.comm	_FM10K_XCAST_MODE_ALLMULTI,4,2  ## @FM10K_XCAST_MODE_ALLMULTI
	.comm	_IFF_BROADCAST,4,2              ## @IFF_BROADCAST
	.comm	_IFF_MULTICAST,4,2              ## @IFF_MULTICAST
	.comm	_FM10K_XCAST_MODE_MULTI,4,2     ## @FM10K_XCAST_MODE_MULTI
	.comm	_FM10K_XCAST_MODE_NONE,4,2      ## @FM10K_XCAST_MODE_NONE
	.comm	_FM10K_VLAN_ALL,4,2             ## @FM10K_VLAN_ALL
	.comm	_fm10k_uc_sync,4,2              ## @fm10k_uc_sync
	.comm	_fm10k_uc_unsync,4,2            ## @fm10k_uc_unsync
	.comm	_fm10k_mc_sync,4,2              ## @fm10k_mc_sync
	.comm	_fm10k_mc_unsync,4,2            ## @fm10k_mc_unsync
	.no_dead_strip	_fm10k_set_rx_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fm10k_set_rx_mode
_fm10k_set_rx_mode:                     ; @fm10k_set_rx_mode
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x0
	bl	_netdev_priv
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _IFF_UP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IFF_UP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x9, _IFF_PROMISC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IFF_PROMISC@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x22, _FM10K_XCAST_MODE_PROMISC@GOTPAGE
Lloh7:
	ldr	x22, [x22, _FM10K_XCAST_MODE_PROMISC@GOTPAGEOFF]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
	ldr	w21, [x22]
	b	LBB0_8
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh8:
	adrp	x9, _IFF_ALLMULTI@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IFF_ALLMULTI@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
Lloh11:
	adrp	x8, _FM10K_XCAST_MODE_ALLMULTI@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FM10K_XCAST_MODE_ALLMULTI@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh13:
	adrp	x9, _IFF_BROADCAST@GOTPAGE
Lloh14:
	ldr	x9, [x9, _IFF_BROADCAST@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
Lloh16:
	adrp	x10, _IFF_MULTICAST@GOTPAGE
Lloh17:
	ldr	x10, [x10, _IFF_MULTICAST@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
Lloh19:
	adrp	x11, _FM10K_XCAST_MODE_MULTI@GOTPAGE
Lloh20:
	ldr	x11, [x11, _FM10K_XCAST_MODE_MULTI@GOTPAGEOFF]
	orr	w9, w10, w9
Lloh21:
	adrp	x10, _FM10K_XCAST_MODE_NONE@GOTPAGE
Lloh22:
	ldr	x10, [x10, _FM10K_XCAST_MODE_NONE@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x10, x11, eq
LBB0_7:
	ldr	w21, [x8]
LBB0_8:
	mov	x0, x19
	bl	_fm10k_mbx_lock
	ldr	w8, [x19]
	cmp	w8, w21
	b.eq	LBB0_16
; %bb.9:
	ldr	w9, [x22]
	cmp	w21, w9
	b.ne	LBB0_11
; %bb.10:
Lloh23:
	adrp	x8, _FM10K_VLAN_ALL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _FM10K_VLAN_ALL@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #1
	bl	_fm10k_queue_vlan_request
	ldr	w8, [x19]
	ldr	w9, [x22]
LBB0_11:
	cmp	w8, w9
	b.ne	LBB0_13
; %bb.12:
	mov	x0, x19
	bl	_fm10k_clear_unused_vlans
LBB0_13:
	mov	x0, x19
	bl	_fm10k_host_mbx_ready
	cbz	x0, LBB0_15
; %bb.14:
	add	x0, x19, #8
	ldr	x8, [x19, #8]
	ldr	w1, [x19, #4]
	mov	x2, x21
	blr	x8
LBB0_15:
	str	w21, [x19]
LBB0_16:
Lloh26:
	adrp	x8, _fm10k_uc_sync@GOTPAGE
Lloh27:
	ldr	x8, [x8, _fm10k_uc_sync@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
Lloh29:
	adrp	x8, _fm10k_uc_unsync@GOTPAGE
Lloh30:
	ldr	x8, [x8, _fm10k_uc_unsync@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
	mov	x0, x20
	bl	___dev_uc_sync
Lloh32:
	adrp	x8, _fm10k_mc_sync@GOTPAGE
Lloh33:
	ldr	x8, [x8, _fm10k_mc_sync@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
Lloh35:
	adrp	x8, _fm10k_mc_unsync@GOTPAGE
Lloh36:
	ldr	x8, [x8, _fm10k_mc_unsync@GOTPAGEOFF]
Lloh37:
	ldr	w2, [x8]
	mov	x0, x20
	bl	___dev_mc_sync
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_fm10k_mbx_unlock
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_IFF_UP,4,2                     ; @IFF_UP
	.comm	_IFF_PROMISC,4,2                ; @IFF_PROMISC
	.comm	_FM10K_XCAST_MODE_PROMISC,4,2   ; @FM10K_XCAST_MODE_PROMISC
	.comm	_IFF_ALLMULTI,4,2               ; @IFF_ALLMULTI
	.comm	_FM10K_XCAST_MODE_ALLMULTI,4,2  ; @FM10K_XCAST_MODE_ALLMULTI
	.comm	_IFF_BROADCAST,4,2              ; @IFF_BROADCAST
	.comm	_IFF_MULTICAST,4,2              ; @IFF_MULTICAST
	.comm	_FM10K_XCAST_MODE_MULTI,4,2     ; @FM10K_XCAST_MODE_MULTI
	.comm	_FM10K_XCAST_MODE_NONE,4,2      ; @FM10K_XCAST_MODE_NONE
	.comm	_FM10K_VLAN_ALL,4,2             ; @FM10K_VLAN_ALL
	.comm	_fm10k_uc_sync,4,2              ; @fm10k_uc_sync
	.comm	_fm10k_uc_unsync,4,2            ; @fm10k_uc_unsync
	.comm	_fm10k_mc_sync,4,2              ; @fm10k_mc_sync
	.comm	_fm10k_mc_unsync,4,2            ; @fm10k_mc_unsync
	.no_dead_strip	_fm10k_set_rx_mode
.subsections_via_symbols
