	.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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movslq	(%rdi), %r14
	movq	_IFF_PROMISC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rdi)
	je	LBB0_4
## %bb.1:
	movq	_corkscrew_debug@GOTPCREL(%rip), %rax
	cmpl	$4, (%rax)
	jl	LBB0_3
## %bb.2:
	movl	8(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	callq	_pr_debug
LBB0_3:
	movq	_SetRxFilter@GOTPCREL(%rip), %rcx
	movq	_RxStation@GOTPCREL(%rip), %rax
	movzwl	(%rax), %eax
	orw	(%rcx), %ax
	movq	_RxMulticast@GOTPCREL(%rip), %rcx
	orw	(%rcx), %ax
	movq	_RxProm@GOTPCREL(%rip), %rcx
	movq	_RxBroadcast@GOTPCREL(%rip), %rdx
	jmp	LBB0_8
LBB0_4:
	movq	%rbx, %rdi
	callq	_netdev_mc_empty
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movq	_IFF_ALLMULTI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rbx)
	je	LBB0_7
LBB0_6:
	movq	_SetRxFilter@GOTPCREL(%rip), %rcx
	movq	_RxStation@GOTPCREL(%rip), %rax
	movzwl	(%rax), %eax
	orw	(%rcx), %ax
	movq	_RxBroadcast@GOTPCREL(%rip), %rcx
	movq	_RxMulticast@GOTPCREL(%rip), %rdx
	jmp	LBB0_8
LBB0_7:
	movq	_RxStation@GOTPCREL(%rip), %rax
	movzwl	(%rax), %eax
	movq	_RxBroadcast@GOTPCREL(%rip), %rcx
	movq	_SetRxFilter@GOTPCREL(%rip), %rdx
LBB0_8:
	orw	(%rdx), %ax
	orw	(%rcx), %ax
	movq	_EL3_CMD@GOTPCREL(%rip), %rcx
	addq	(%rcx), %r14
	movzwl	%ax, %edi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_outw                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IFF_PROMISC,4,2                ## @IFF_PROMISC
	.comm	_corkscrew_debug,4,2            ## @corkscrew_debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Setting promiscuous mode.\n"

	.comm	_SetRxFilter,2,1                ## @SetRxFilter
	.comm	_RxStation,2,1                  ## @RxStation
	.comm	_RxMulticast,2,1                ## @RxMulticast
	.comm	_RxBroadcast,2,1                ## @RxBroadcast
	.comm	_RxProm,2,1                     ## @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:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldp	w20, w8, [x0]
                                        ; kill: def $w20 killed $w20 def $x20
	sxtw	x20, w20
Lloh0:
	adrp	x9, _IFF_PROMISC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IFF_PROMISC@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _corkscrew_debug@GOTPAGE
Lloh4:
	ldr	x8, [x8, _corkscrew_debug@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, #4
	b.lt	LBB0_3
; %bb.2:
	ldr	w1, [x19, #8]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
LBB0_3:
Lloh8:
	adrp	x8, _SetRxFilter@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SetRxFilter@GOTPAGEOFF]
	ldrh	w8, [x8]
Lloh10:
	adrp	x9, _RxStation@GOTPAGE
Lloh11:
	ldr	x9, [x9, _RxStation@GOTPAGEOFF]
	ldrh	w9, [x9]
	orr	w8, w9, w8
Lloh12:
	adrp	x9, _RxMulticast@GOTPAGE
Lloh13:
	ldr	x9, [x9, _RxMulticast@GOTPAGEOFF]
	ldrh	w9, [x9]
	orr	w8, w8, w9
Lloh14:
	adrp	x9, _RxProm@GOTPAGE
Lloh15:
	ldr	x9, [x9, _RxProm@GOTPAGEOFF]
Lloh16:
	adrp	x10, _RxBroadcast@GOTPAGE
Lloh17:
	ldr	x10, [x10, _RxBroadcast@GOTPAGEOFF]
	b	LBB0_8
LBB0_4:
	mov	x0, x19
	bl	_netdev_mc_empty
	cbz	w0, LBB0_6
; %bb.5:
	ldr	w8, [x19, #4]
Lloh18:
	adrp	x9, _IFF_ALLMULTI@GOTPAGE
Lloh19:
	ldr	x9, [x9, _IFF_ALLMULTI@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
LBB0_6:
Lloh21:
	adrp	x8, _SetRxFilter@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SetRxFilter@GOTPAGEOFF]
	ldrh	w8, [x8]
Lloh23:
	adrp	x9, _RxStation@GOTPAGE
Lloh24:
	ldr	x9, [x9, _RxStation@GOTPAGEOFF]
	ldrh	w9, [x9]
	orr	w8, w9, w8
Lloh25:
	adrp	x9, _RxBroadcast@GOTPAGE
Lloh26:
	ldr	x9, [x9, _RxBroadcast@GOTPAGEOFF]
Lloh27:
	adrp	x10, _RxMulticast@GOTPAGE
Lloh28:
	ldr	x10, [x10, _RxMulticast@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh29:
	adrp	x8, _RxStation@GOTPAGE
Lloh30:
	ldr	x8, [x8, _RxStation@GOTPAGEOFF]
	ldrh	w8, [x8]
Lloh31:
	adrp	x9, _RxBroadcast@GOTPAGE
Lloh32:
	ldr	x9, [x9, _RxBroadcast@GOTPAGEOFF]
Lloh33:
	adrp	x10, _SetRxFilter@GOTPAGE
Lloh34:
	ldr	x10, [x10, _SetRxFilter@GOTPAGEOFF]
LBB0_8:
	ldrh	w10, [x10]
	and	w8, w8, #0xffff
	orr	w8, w8, w10
	ldrh	w9, [x9]
	orr	w0, w8, w9
Lloh35:
	adrp	x8, _EL3_CMD@GOTPAGE
Lloh36:
	ldr	x8, [x8, _EL3_CMD@GOTPAGEOFF]
Lloh37:
	ldr	x8, [x8]
	add	x1, x8, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_outw
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_IFF_PROMISC,4,2                ; @IFF_PROMISC
	.comm	_corkscrew_debug,4,2            ; @corkscrew_debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Setting promiscuous mode.\n"

	.comm	_SetRxFilter,2,1                ; @SetRxFilter
	.comm	_RxStation,2,1                  ; @RxStation
	.comm	_RxMulticast,2,1                ; @RxMulticast
	.comm	_RxBroadcast,2,1                ; @RxBroadcast
	.comm	_RxProm,2,1                     ; @RxProm
	.comm	_IFF_ALLMULTI,4,2               ; @IFF_ALLMULTI
	.comm	_EL3_CMD,8,3                    ; @EL3_CMD
	.no_dead_strip	_set_rx_mode
.subsections_via_symbols
