	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___dev_set_rx_mode              ## -- Begin function __dev_set_rx_mode
	.p2align	4, 0x90
___dev_set_rx_mode:                     ## @__dev_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_IFF_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_11
## %bb.1:
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	callq	_netif_device_present
	testl	%eax, %eax
	je	LBB0_11
## %bb.2:
	movq	%r15, %r14
	cmpq	$0, 8(%r15)
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_netdev_extended
	movq	_IFF_NO_UNICAST_FLT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_12
LBB0_4:
	movq	%rbx, %rdi
	callq	_netdev_uc_empty
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:
	cmpl	$0, 4(%rbx)
	je	LBB0_6
LBB0_7:
	movq	%rbx, %rdi
	callq	_netdev_uc_empty
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	cmpl	$0, 4(%rbx)
	je	LBB0_10
## %bb.9:
	movq	%rbx, %rdi
	movl	$-1, %esi
	callq	___dev_set_promiscuity
	movl	$0, 4(%rbx)
	jmp	LBB0_10
LBB0_12:
	movq	%rbx, %rdi
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*8(%rax)                        ## TAILCALL
LBB0_6:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	___dev_set_promiscuity
	movl	$1, 4(%rbx)
LBB0_10:
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.13:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IFF_UP,4,2                     ## @IFF_UP
	.comm	_IFF_NO_UNICAST_FLT,4,2         ## @IFF_NO_UNICAST_FLT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___dev_set_rx_mode              ; -- Begin function __dev_set_rx_mode
	.p2align	2
___dev_set_rx_mode:                     ; @__dev_set_rx_mode
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _IFF_UP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IFF_UP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.1:
	mov	x19, x0
	ldr	x20, [x0, #8]
	bl	_netif_device_present
	cbz	w0, LBB0_10
; %bb.2:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_netdev_extended
	ldr	w8, [x0]
Lloh3:
	adrp	x9, _IFF_NO_UNICAST_FLT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IFF_NO_UNICAST_FLT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
LBB0_4:
	mov	x0, x19
	bl	_netdev_uc_empty
	cbnz	x0, LBB0_6
; %bb.5:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_12
LBB0_6:
	mov	x0, x19
	bl	_netdev_uc_empty
	cbz	x0, LBB0_9
; %bb.7:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_9
; %bb.8:
	mov	x0, x19
	mov	w1, #-1
	bl	___dev_set_promiscuity
	str	wzr, [x19, #4]
LBB0_9:
	ldr	x1, [x20]
	cbnz	x1, LBB0_13
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_11:
	ldr	x1, [x20, #8]
	b	LBB0_13
LBB0_12:
	mov	w21, #1
	mov	x0, x19
	mov	w1, #1
	bl	___dev_set_promiscuity
	str	w21, [x19, #4]
	ldr	x1, [x20]
	cbz	x1, LBB0_10
LBB0_13:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	br	x1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_IFF_UP,4,2                     ; @IFF_UP
	.comm	_IFF_NO_UNICAST_FLT,4,2         ; @IFF_NO_UNICAST_FLT
.subsections_via_symbols
