	.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
	movq	%rdi, %rax
	movq	_SetRxFilter@GOTPCREL(%rip), %rcx
	movq	_RxStation@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	orl	(%rcx), %edi
	movl	(%rax), %esi
	movq	_RxBroadcast@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edi
	movl	4(%rax), %ecx
	movq	_IFF_PROMISC@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_2
## %bb.1:
	movq	_RxMulticast@GOTPCREL(%rip), %rax
	movq	_RxProm@GOTPCREL(%rip), %rcx
	orl	(%rax), %edi
	orl	(%rcx), %edi
	jmp	LBB0_5
LBB0_2:
	cmpq	$0, 8(%rax)
	jne	LBB0_4
## %bb.3:
	movq	_IFF_ALLMULTI@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_5
LBB0_4:
	movq	_RxMulticast@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
LBB0_5:
	movq	_EL3_CMD@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	popq	%rbp
	jmp	_outw                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SetRxFilter,4,2                ## @SetRxFilter
	.comm	_RxStation,4,2                  ## @RxStation
	.comm	_RxBroadcast,4,2                ## @RxBroadcast
	.comm	_IFF_PROMISC,4,2                ## @IFF_PROMISC
	.comm	_RxMulticast,4,2                ## @RxMulticast
	.comm	_RxProm,4,2                     ## @RxProm
	.comm	_IFF_ALLMULTI,4,2               ## @IFF_ALLMULTI
	.comm	_EL3_CMD,8,3                    ## @EL3_CMD
	.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:
	mov	x8, x0
Lloh0:
	adrp	x9, _SetRxFilter@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SetRxFilter@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _RxStation@GOTPAGE
Lloh4:
	ldr	x10, [x10, _RxStation@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh6:
	adrp	x10, _RxBroadcast@GOTPAGE
Lloh7:
	ldr	x10, [x10, _RxBroadcast@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w0, w9, w10
	ldp	w9, w10, [x8]
Lloh9:
	adrp	x11, _IFF_PROMISC@GOTPAGE
Lloh10:
	ldr	x11, [x11, _IFF_PROMISC@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_2
; %bb.1:
Lloh12:
	adrp	x8, _RxMulticast@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RxMulticast@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x10, _RxProm@GOTPAGE
Lloh16:
	ldr	x10, [x10, _RxProm@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	orr	w8, w8, w0
	orr	w0, w8, w10
	b	LBB0_5
LBB0_2:
	ldr	x8, [x8, #8]
	cbnz	x8, LBB0_4
; %bb.3:
Lloh18:
	adrp	x8, _IFF_ALLMULTI@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IFF_ALLMULTI@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	tst	w8, w10
	b.eq	LBB0_5
LBB0_4:
Lloh21:
	adrp	x8, _RxMulticast@GOTPAGE
Lloh22:
	ldr	x8, [x8, _RxMulticast@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	orr	w0, w8, w0
LBB0_5:
Lloh24:
	adrp	x8, _EL3_CMD@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EL3_CMD@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	add	x1, x8, x9
	b	_outw
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_SetRxFilter,4,2                ; @SetRxFilter
	.comm	_RxStation,4,2                  ; @RxStation
	.comm	_RxBroadcast,4,2                ; @RxBroadcast
	.comm	_IFF_PROMISC,4,2                ; @IFF_PROMISC
	.comm	_RxMulticast,4,2                ; @RxMulticast
	.comm	_RxProm,4,2                     ; @RxProm
	.comm	_IFF_ALLMULTI,4,2               ; @IFF_ALLMULTI
	.comm	_EL3_CMD,8,3                    ; @EL3_CMD
	.no_dead_strip	_set_rx_mode
.subsections_via_symbols
