	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xlgmac_set_promiscuous_mode
_xlgmac_set_promiscuous_mode:           ## @xlgmac_set_promiscuous_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	%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, %r14d
	movq	%rdi, %r15
	xorl	%ebx, %ebx
	testl	%esi, %esi
	setne	%bl
	movq	_MAC_PFR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r15), %rdi
	callq	_readl
	movq	_MAC_PFR_PR_POS@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_MAC_PFR_PR_LEN@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movl	%eax, %edi
	callq	_XLGMAC_GET_REG_BITS
	cmpl	%ebx, %eax
	je	LBB0_5
## %bb.1:
	testl	%r14d, %r14d
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r15), %rdx
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %r8
	cmoveq	%rax, %r8
	leaq	L_.str(%rip), %rcx
	movq	%r15, %rdi
	callq	_netif_dbg
	movq	_MAC_PFR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r15), %rdi
	callq	_readl
	movl	(%r13), %esi
	movl	(%r12), %edx
	movl	%eax, %edi
	movl	%ebx, %ecx
	callq	_XLGMAC_SET_REG_BITS
	movq	_MAC_PFR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	8(%r15), %rsi
	movl	%eax, %edi
	callq	_writel
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	callq	_xlgmac_disable_rx_vlan_filtering
	jmp	LBB0_5
LBB0_3:
	movq	(%r15), %rax
	movq	_NETIF_F_HW_VLAN_CTAG_FILTER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	callq	_xlgmac_enable_rx_vlan_filtering
LBB0_5:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAC_PFR,8,3                    ## @MAC_PFR
	.comm	_MAC_PFR_PR_POS,4,2             ## @MAC_PFR_PR_POS
	.comm	_MAC_PFR_PR_LEN,4,2             ## @MAC_PFR_PR_LEN
	.comm	_drv,4,2                        ## @drv
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s promiscuous mode\n"

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

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

	.comm	_NETIF_F_HW_VLAN_CTAG_FILTER,4,2 ## @NETIF_F_HW_VLAN_CTAG_FILTER
	.no_dead_strip	_xlgmac_set_promiscuous_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xlgmac_set_promiscuous_mode
_xlgmac_set_promiscuous_mode:           ; @xlgmac_set_promiscuous_mode
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	cmp	w1, #0
	cset	w21, ne
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x22, _MAC_PFR@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MAC_PFR@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_readl
Lloh2:
	adrp	x23, _MAC_PFR_PR_POS@GOTPAGE
Lloh3:
	ldr	x23, [x23, _MAC_PFR_PR_POS@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh4:
	adrp	x24, _MAC_PFR_PR_LEN@GOTPAGE
Lloh5:
	ldr	x24, [x24, _MAC_PFR_PR_LEN@GOTPAGEOFF]
	ldr	w2, [x24]
	bl	_XLGMAC_GET_REG_BITS
	cmp	w0, w21
	b.eq	LBB0_5
; %bb.1:
Lloh6:
	adrp	x8, _drv@GOTPAGE
Lloh7:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	x2, [x19]
Lloh9:
	adrp	x8, l_.str.1@PAGE
Lloh10:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh11:
	adrp	x9, l_.str.2@PAGE
Lloh12:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w20, #0
	csel	x4, x9, x8, eq
Lloh13:
	adrp	x3, l_.str@PAGE
Lloh14:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netif_dbg
	ldr	x8, [x19, #8]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_readl
	ldr	w1, [x23]
	ldr	w2, [x24]
	mov	x3, x21
	bl	_XLGMAC_SET_REG_BITS
	ldr	x8, [x19, #8]
	ldr	x9, [x22]
	add	x1, x9, x8
	bl	_writel
	cbz	w20, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_xlgmac_disable_rx_vlan_filtering
	b	LBB0_5
LBB0_3:
	ldr	x8, [x19]
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _NETIF_F_HW_VLAN_CTAG_FILTER@GOTPAGE
Lloh16:
	ldr	x9, [x9, _NETIF_F_HW_VLAN_CTAG_FILTER@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_xlgmac_enable_rx_vlan_filtering
LBB0_5:
	mov	w0, #0
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MAC_PFR,8,3                    ; @MAC_PFR
	.comm	_MAC_PFR_PR_POS,4,2             ; @MAC_PFR_PR_POS
	.comm	_MAC_PFR_PR_LEN,4,2             ; @MAC_PFR_PR_LEN
	.comm	_drv,4,2                        ; @drv
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s promiscuous mode\n"

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

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

	.comm	_NETIF_F_HW_VLAN_CTAG_FILTER,4,2 ; @NETIF_F_HW_VLAN_CTAG_FILTER
	.no_dead_strip	_xlgmac_set_promiscuous_mode
.subsections_via_symbols
