	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_rx_mode
_set_rx_mode:                           ## @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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	(%rdi), %ebx
	movq	_CONFIG_0@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	%rbx, %rdi
	callq	_inb
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	callq	_local_irq_save
	movq	_sram_config@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_1
## %bb.2:
	movq	_CONFIG0_RST@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_CONFIG0_RST_1@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %edi
	movq	(%r14), %rsi
	addq	%rbx, %rsi
	callq	_outb
	movl	4(%r15), %eax
	movq	_IFF_PROMISC@GOTPCREL(%rip), %rcx
	movl	$3, %r12d
	testl	%eax, (%rcx)
	jne	LBB0_12
## %bb.4:
	movq	8(%r15), %r14
	movq	_MC_FILTERBREAK@GOTPCREL(%rip), %rcx
	movl	$2, %r12d
	cmpq	(%rcx), %r14
	jg	LBB0_12
## %bb.5:
	movq	_IFF_ALLMULTI@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
LBB0_12:
	leaq	-80(%rbp), %rdi
	movl	$255, %esi
	movl	$32, %edx
	callq	_memset
LBB0_13:
	movq	_RX_MODE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	movl	%r12d, %edi
	callq	_outb
	movq	_CONFIG_1@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	addq	%rbx, %rdi
	callq	_inb
	movl	%eax, %r15d
	movq	(%r12), %rsi
	addq	%rbx, %rsi
	movl	$228, %edi
	callq	_outb
	movl	-80(%rbp), %edi
	movq	_MAR_ADR@GOTPCREL(%rip), %r13
	movq	(%r13), %rsi
	addq	%rbx, %rsi
	callq	_outb
	movl	-76(%rbp), %edi
	movq	(%r13), %rax
	leaq	(%rbx,%rax), %rsi
	incq	%rsi
	callq	_outb
	movl	-72(%rbp), %edi
	movq	(%r13), %rax
	leaq	(%rbx,%rax), %rsi
	addq	$2, %rsi
	callq	_outb
	movl	-68(%rbp), %edi
	movq	(%r13), %rax
	leaq	(%rbx,%rax), %rsi
	addq	$3, %rsi
	callq	_outb
	movl	-64(%rbp), %edi
	movq	(%r13), %rax
	leaq	(%rbx,%rax), %rsi
	addq	$4, %rsi
	callq	_outb
	movl	-60(%rbp), %edi
	movq	(%r13), %rax
	leaq	(%rbx,%rax), %rsi
	addq	$5, %rsi
	callq	_outb
	movl	-56(%rbp), %edi
	movq	(%r13), %rax
	leaq	(%rbx,%rax), %rsi
	addq	$6, %rsi
	callq	_outb
	movl	-52(%rbp), %edi
	movq	(%r13), %rax
	leaq	(%rbx,%rax), %rsi
	addq	$7, %rsi
	callq	_outb
	movq	(%r12), %rsi
	addq	%rbx, %rsi
	movl	%r15d, %edi
	callq	_outb
	movq	_CONFIG_0@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	movl	-84(%rbp), %edi                 ## 4-byte Reload
	movq	%rbx, %rsi
	callq	_outb
	callq	_local_irq_restore
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	-80(%rbp), %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	testq	%r14, %r14
	je	LBB0_7
## %bb.8:
	movq	16(%r15), %r13
	movl	$2, %r12d
	testq	%r13, %r13
	je	LBB0_13
## %bb.9:
	movq	$-1, %r14
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	incq	%r14
	cmpq	%r14, 8(%r15)
	jle	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r13), %esi
	callq	_ether_crc_le
                                        ## kill: def $eax killed $eax def $rax
	sarl	$26, %eax
	movl	%eax, %ecx
	andb	$7, %cl
	movl	$1, %edx
	shll	%cl, %edx
	shrl	$3, %eax
	orl	%edx, -80(%rbp,%rax,4)
	movq	8(%r13), %r13
	testq	%r13, %r13
	jne	LBB0_10
	jmp	LBB0_13
LBB0_7:
	movl	$1, %r12d
	jmp	LBB0_13
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CONFIG_0,8,3                   ## @CONFIG_0
	.comm	_sram_config,8,3                ## @sram_config
	.comm	_CONFIG0_RST,4,2                ## @CONFIG0_RST
	.comm	_CONFIG0_RST_1,4,2              ## @CONFIG0_RST_1
	.comm	_IFF_PROMISC,4,2                ## @IFF_PROMISC
	.comm	_RX_MODE,8,3                    ## @RX_MODE
	.comm	_MC_FILTERBREAK,8,3             ## @MC_FILTERBREAK
	.comm	_IFF_ALLMULTI,4,2               ## @IFF_ALLMULTI
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_CONFIG_1,8,3                   ## @CONFIG_1
	.comm	_MAR_ADR,8,3                    ## @MAR_ADR
	.no_dead_strip	_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 set_rx_mode
_set_rx_mode:                           ; @set_rx_mode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	ldr	w22, [x0]
Lloh3:
	adrp	x23, _CONFIG_0@GOTPAGE
Lloh4:
	ldr	x23, [x23, _CONFIG_0@GOTPAGEOFF]
	ldr	x8, [x23]
	add	x0, x8, x22
	bl	_inb
	mov	x19, x0
	bl	_local_irq_save
Lloh5:
	adrp	x8, _sram_config@GOTPAGE
Lloh6:
	ldr	x8, [x8, _sram_config@GOTPAGEOFF]
Lloh7:
	adrp	x9, _CONFIG0_RST@GOTPAGE
Lloh8:
	ldr	x9, [x9, _CONFIG0_RST@GOTPAGEOFF]
Lloh9:
	adrp	x10, _CONFIG0_RST_1@GOTPAGE
Lloh10:
	ldr	x10, [x10, _CONFIG0_RST_1@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x8, #0
	csel	x8, x9, x10, eq
	ldr	w0, [x8]
	ldr	x8, [x23]
	add	x1, x8, x22
	bl	_outb
	ldr	w8, [x20, #4]
Lloh12:
	adrp	x9, _IFF_PROMISC@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IFF_PROMISC@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	w21, #3
	b	LBB0_5
LBB0_2:
	ldr	x21, [x20, #8]
Lloh15:
	adrp	x9, _MC_FILTERBREAK@GOTPAGE
Lloh16:
	ldr	x9, [x9, _MC_FILTERBREAK@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x21, x9
	b.gt	LBB0_4
; %bb.3:
Lloh18:
	adrp	x9, _IFF_ALLMULTI@GOTPAGE
Lloh19:
	ldr	x9, [x9, _IFF_ALLMULTI@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
LBB0_4:
	mov	w21, #2
LBB0_5:
	add	x0, sp, #8
	mov	w1, #255
	mov	w2, #32
	bl	_memset
LBB0_6:
Lloh21:
	adrp	x8, _RX_MODE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _RX_MODE@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	add	x1, x8, x22
	mov	x0, x21
	bl	_outb
Lloh24:
	adrp	x21, _CONFIG_1@GOTPAGE
Lloh25:
	ldr	x21, [x21, _CONFIG_1@GOTPAGEOFF]
	ldr	x8, [x21]
	add	x0, x8, x22
	bl	_inb
	mov	x20, x0
	ldr	x8, [x21]
	add	x1, x8, x22
	mov	w0, #228
	bl	_outb
	ldr	w0, [sp, #8]
Lloh26:
	adrp	x24, _MAR_ADR@GOTPAGE
Lloh27:
	ldr	x24, [x24, _MAR_ADR@GOTPAGEOFF]
	ldr	x8, [x24]
	add	x1, x8, x22
	bl	_outb
	ldr	w0, [sp, #12]
	ldr	x8, [x24]
	add	x8, x22, x8
	add	x1, x8, #1
	bl	_outb
	ldr	w0, [sp, #16]
	ldr	x8, [x24]
	add	x8, x22, x8
	add	x1, x8, #2
	bl	_outb
	ldr	w0, [sp, #20]
	ldr	x8, [x24]
	add	x8, x22, x8
	add	x1, x8, #3
	bl	_outb
	ldr	w0, [sp, #24]
	ldr	x8, [x24]
	add	x8, x22, x8
	add	x1, x8, #4
	bl	_outb
	ldr	w0, [sp, #28]
	ldr	x8, [x24]
	add	x8, x22, x8
	add	x1, x8, #5
	bl	_outb
	ldr	w0, [sp, #32]
	ldr	x8, [x24]
	add	x8, x22, x8
	add	x1, x8, #6
	bl	_outb
	ldr	w0, [sp, #36]
	ldr	x8, [x24]
	add	x8, x22, x8
	add	x1, x8, #7
	bl	_outb
	ldr	x8, [x21]
	add	x1, x8, x22
	mov	x0, x20
	bl	_outb
	ldr	x8, [x23]
	add	x1, x8, x22
	mov	x0, x19
	bl	_outb
	bl	_local_irq_restore
	ldr	x8, [sp, #40]
Lloh28:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh29:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.7:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_8:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	cbz	x21, LBB0_14
; %bb.9:
	ldr	x24, [x20, #16]
	cbz	x24, LBB0_13
; %bb.10:
	mov	x25, #-1
Lloh31:
	adrp	x26, _ETH_ALEN@GOTPAGE
Lloh32:
	ldr	x26, [x26, _ETH_ALEN@GOTPAGEOFF]
	mov	w27, #1
	add	x28, sp, #8
	mov	w21, #2
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	add	x25, x25, #1
	cmp	x8, x25
	b.le	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w0, [x26]
	ldr	w1, [x24]
	bl	_ether_crc_le
	asr	w8, w0, #26
	and	w9, w8, #0x7
	lsr	w8, w8, #3
	lsl	x8, x8, #2
	ldr	w10, [x28, x8]
	lsl	w9, w27, w9
	orr	w9, w9, w10
	str	w9, [x28, x8]
	ldr	x24, [x24, #8]
	cbnz	x24, LBB0_11
	b	LBB0_6
LBB0_13:
	mov	w21, #2
	b	LBB0_6
LBB0_14:
	mov	w21, #1
	b	LBB0_6
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh11
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_CONFIG_0,8,3                   ; @CONFIG_0
	.comm	_sram_config,8,3                ; @sram_config
	.comm	_CONFIG0_RST,4,2                ; @CONFIG0_RST
	.comm	_CONFIG0_RST_1,4,2              ; @CONFIG0_RST_1
	.comm	_IFF_PROMISC,4,2                ; @IFF_PROMISC
	.comm	_RX_MODE,8,3                    ; @RX_MODE
	.comm	_MC_FILTERBREAK,8,3             ; @MC_FILTERBREAK
	.comm	_IFF_ALLMULTI,4,2               ; @IFF_ALLMULTI
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_CONFIG_1,8,3                   ; @CONFIG_1
	.comm	_MAR_ADR,8,3                    ; @MAR_ADR
	.no_dead_strip	_set_rx_mode
.subsections_via_symbols
