	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gbe_set_rx_mode
_gbe_set_rx_mode:                       ## @gbe_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	%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, -44(%rbp)                 ## 4-byte Spill
	movq	(%rdi), %r13
	movq	16(%r13), %r12
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	cmpl	$0, (%r13)
	js	LBB0_3
## %bb.1:
	xorl	%r15d, %r15d
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	setne	%r15b
	movl	$-1, %ebx
	movq	_ALE_PORT_NO_SA_UPDATE@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	incl	%ebx
	movq	_ALE_PORT_NOLEARN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%r15d, %ecx
	callq	_cpsw_ale_control_set
	movl	(%r14), %edx
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%r15d, %ecx
	callq	_cpsw_ale_control_set
	cmpl	(%r13), %ebx
	jl	LBB0_2
LBB0_3:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_4
## %bb.5:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	negl	%eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_jiffies@GOTPCREL(%rip), %r14
	movq	_HZ@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	addq	(%r14), %r15
	movq	_ALE_AGEOUT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$1, %ecx
	callq	_cpsw_ale_control_set
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_cpu_relax
	movl	(%rbx), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_cpsw_ale_control_get
	testq	%rax, %rax
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r14), %rsi
	movq	%r15, %rdi
	callq	_time_after
	testq	%rax, %rax
	jne	LBB0_6
## %bb.9:
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	movl	$0, %r15d
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	je	LBB0_11
## %bb.10:
	movl	(%rbx), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_cpsw_ale_control_get
	movl	%r14d, %r15d
	testq	%rax, %rax
	jne	LBB0_11
	jmp	LBB0_13
LBB0_4:
	leaq	L_.str(%rip), %rbx
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	jmp	LBB0_12
LBB0_7:
	xorl	%r15d, %r15d
LBB0_11:
	movl	(%rbx), %edx
	movl	$1, %r14d
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$1, %ecx
	callq	_cpsw_ale_control_set
	movl	8(%r13), %edi
	callq	_GBE_PORT_MASK
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	$-1, %edx
	callq	_cpsw_ale_flush_multicast
	leaq	L_.str.1(%rip), %rbx
LBB0_12:
	movq	_ALE_P0_UNI_FLOOD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%r14d, %ecx
	callq	_cpsw_ale_control_set
	movl	4(%r13), %edi
	movq	%rbx, %rsi
	callq	_dev_vdbg
	movl	%r15d, %r14d
LBB0_13:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_ALE_PORT_NOLEARN,4,2           ## @ALE_PORT_NOLEARN
	.comm	_ALE_PORT_NO_SA_UPDATE,4,2      ## @ALE_PORT_NO_SA_UPDATE
	.comm	_ALE_P0_UNI_FLOOD,4,2           ## @ALE_P0_UNI_FLOOD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"promiscuous mode disabled\n"

	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,8,3                         ## @HZ
	.comm	_ALE_AGEOUT,4,2                 ## @ALE_AGEOUT
L_.str.1:                               ## @.str.1
	.asciz	"promiscuous mode enabled\n"

	.no_dead_strip	_gbe_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 gbe_set_rx_mode
_gbe_set_rx_mode:                       ; @gbe_set_rx_mode
	.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
	ldr	x23, [x0]
	ldr	x19, [x23, #16]
Lloh0:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
	ldr	w8, [x23]
	tbnz	w8, #31, LBB0_3
; %bb.1:
	cmp	w20, #0
	cset	w21, ne
	mov	w22, #-1
Lloh3:
	adrp	x25, _ALE_PORT_NOLEARN@GOTPAGE
Lloh4:
	ldr	x25, [x25, _ALE_PORT_NOLEARN@GOTPAGEOFF]
Lloh5:
	adrp	x26, _ALE_PORT_NO_SA_UPDATE@GOTPAGE
Lloh6:
	ldr	x26, [x26, _ALE_PORT_NO_SA_UPDATE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	w22, w22, #1
	ldr	w2, [x25]
	mov	x0, x19
	mov	x1, x22
	mov	x3, x21
	bl	_cpsw_ale_control_set
	ldr	w2, [x26]
	mov	x0, x19
	mov	x1, x22
	mov	x3, x21
	bl	_cpsw_ale_control_set
	ldr	w8, [x23]
	cmp	w22, w8
	b.lt	LBB0_2
LBB0_3:
	cbz	w20, LBB0_11
; %bb.4:
	neg	w20, w24
Lloh7:
	adrp	x25, _jiffies@GOTPAGE
Lloh8:
	ldr	x25, [x25, _jiffies@GOTPAGEOFF]
Lloh9:
	adrp	x8, _HZ@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
	ldr	x9, [x25]
Lloh11:
	ldr	x8, [x8]
	add	x21, x8, x9
Lloh12:
	adrp	x22, _ALE_AGEOUT@GOTPAGE
Lloh13:
	ldr	x22, [x22, _ALE_AGEOUT@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x19
	mov	w1, #0
	mov	w3, #1
	bl	_cpsw_ale_control_set
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	bl	_cpu_relax
	ldr	w2, [x22]
	mov	x0, x19
	mov	w1, #0
	bl	_cpsw_ale_control_get
	cbnz	x0, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x1, [x25]
	mov	x0, x21
	bl	_time_after
	cbnz	x0, LBB0_5
; %bb.7:
	cbz	w24, LBB0_9
; %bb.8:
	ldr	w2, [x22]
	mov	x0, x19
	mov	w1, #0
	bl	_cpsw_ale_control_get
	cbnz	x0, LBB0_10
	b	LBB0_13
LBB0_9:
	mov	w20, #0
LBB0_10:
	ldr	w2, [x22]
	mov	w21, #1
	mov	x0, x19
	mov	w1, #0
	mov	w3, #1
	bl	_cpsw_ale_control_set
	ldr	w0, [x23, #8]
	bl	_GBE_PORT_MASK
	mov	x1, x0
	mov	x0, x19
	mov	w2, #-1
	bl	_cpsw_ale_flush_multicast
Lloh14:
	adrp	x22, l_.str.1@PAGE
Lloh15:
	add	x22, x22, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_11:
	mov	w21, #0
Lloh16:
	adrp	x22, l_.str@PAGE
Lloh17:
	add	x22, x22, l_.str@PAGEOFF
LBB0_12:
Lloh18:
	adrp	x8, _ALE_P0_UNI_FLOOD@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ALE_P0_UNI_FLOOD@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	mov	x3, x21
	bl	_cpsw_ale_control_set
	ldr	w0, [x23, #4]
	mov	x1, x22
	bl	_dev_vdbg
LBB0_13:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_ALE_PORT_NOLEARN,4,2           ; @ALE_PORT_NOLEARN
	.comm	_ALE_PORT_NO_SA_UPDATE,4,2      ; @ALE_PORT_NO_SA_UPDATE
	.comm	_ALE_P0_UNI_FLOOD,4,2           ; @ALE_P0_UNI_FLOOD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"promiscuous mode disabled\n"

	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,8,3                         ; @HZ
	.comm	_ALE_AGEOUT,4,2                 ; @ALE_AGEOUT
l_.str.1:                               ; @.str.1
	.asciz	"promiscuous mode enabled\n"

	.no_dead_strip	_gbe_set_rx_mode
.subsections_via_symbols
