	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ifpromisc                      ## -- Begin function ifpromisc
	.p2align	4, 0x90
_ifpromisc:                             ## @ifpromisc
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r8d
	movq	%rdi, %rbx
	movl	(%rdi), %r15d
	movq	_IFF_PROMISC@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_IFF_PPROMISC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	4(%rdi), %rcx
	callq	_if_setflag
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movl	(%rbx), %eax
	xorl	%eax, %r15d
	movl	(%r12), %ecx
	testl	%ecx, %r15d
	je	LBB0_4
## %bb.2:
	movq	_log_promisc_mode_change@GOTPCREL(%rip), %rdx
	cmpq	$0, (%rdx)
	je	LBB0_4
## %bb.3:
	testl	%eax, %ecx
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_if_printf
LBB0_4:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IFF_PROMISC,4,2                ## @IFF_PROMISC
	.comm	_IFF_PPROMISC,4,2               ## @IFF_PPROMISC
	.comm	_log_promisc_mode_change,8,3    ## @log_promisc_mode_change
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"promiscuous mode %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"enabled"

L_.str.2:                               ## @.str.2
	.asciz	"disabled"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ifpromisc                      ; -- Begin function ifpromisc
	.p2align	2
_ifpromisc:                             ; @ifpromisc
	.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
	mov	x4, x1
	mov	x19, x0
	mov	x3, x0
	ldr	w21, [x3], #4
Lloh0:
	adrp	x22, _IFF_PROMISC@GOTPAGE
Lloh1:
	ldr	x22, [x22, _IFF_PROMISC@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh2:
	adrp	x8, _IFF_PPROMISC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IFF_PPROMISC@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	bl	_if_setflag
	mov	x20, x0
	cbnz	w0, LBB0_3
; %bb.1:
	ldr	w8, [x19]
	eor	w10, w8, w21
	ldr	w9, [x22]
	and	w10, w10, w9
Lloh5:
	adrp	x11, _log_promisc_mode_change@GOTPAGE
Lloh6:
	ldr	x11, [x11, _log_promisc_mode_change@GOTPAGEOFF]
Lloh7:
	ldr	x11, [x11]
	cmp	w10, #0
	ccmp	x11, #0, #4, ne
	b.eq	LBB0_3
; %bb.2:
Lloh8:
	adrp	x10, l_.str.1@PAGE
Lloh9:
	add	x10, x10, l_.str.1@PAGEOFF
Lloh10:
	adrp	x11, l_.str.2@PAGE
Lloh11:
	add	x11, x11, l_.str.2@PAGEOFF
	tst	w9, w8
	csel	x2, x11, x10, eq
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_if_printf
LBB0_3:
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_IFF_PROMISC,4,2                ; @IFF_PROMISC
	.comm	_IFF_PPROMISC,4,2               ; @IFF_PPROMISC
	.comm	_log_promisc_mode_change,8,3    ; @log_promisc_mode_change
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"promiscuous mode %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"enabled"

l_.str.2:                               ; @.str.2
	.asciz	"disabled"

.subsections_via_symbols
