	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_promisc                    ## -- Begin function set_promisc
	.p2align	4, 0x90
_set_promisc:                           ## @set_promisc
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %ebx
	movq	_ifname@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IFNAMSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_strncpy
	movq	_capture_sock@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_SIOCGIFFLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-24(%rbp), %rdx
	callq	_ioctl
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movl	-24(%rbp), %edx
	movq	_IFF_PROMISC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.3:
	xorl	%eax, %eax
	testl	%edx, %ecx
	jne	LBB0_9
## %bb.4:
	orl	%edx, %ecx
	jmp	LBB0_8
LBB0_1:
	movl	$-1, %eax
	jmp	LBB0_9
LBB0_5:
	testl	%edx, %ecx
	je	LBB0_6
## %bb.7:
	notl	%ecx
	andl	%edx, %ecx
LBB0_8:
	movl	%ecx, -24(%rbp)
	movl	(%r14), %edi
	movq	_SIOCSIFFLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-24(%rbp), %rdx
	callq	_ioctl
	movq	%rax, %rcx
	xorl	%eax, %eax
	negq	%rcx
	sbbl	%eax, %eax
	orl	$1, %eax
	jmp	LBB0_9
LBB0_6:
	xorl	%eax, %eax
LBB0_9:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ifname,4,2                     ## @ifname
	.comm	_IFNAMSIZ,4,2                   ## @IFNAMSIZ
	.comm	_capture_sock,4,2               ## @capture_sock
	.comm	_SIOCGIFFLAGS,4,2               ## @SIOCGIFFLAGS
	.comm	_IFF_PROMISC,4,2                ## @IFF_PROMISC
	.comm	_SIOCSIFFLAGS,4,2               ## @SIOCSIFFLAGS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_promisc                    ; -- Begin function set_promisc
	.p2align	2
_set_promisc:                           ; @set_promisc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _ifname@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ifname@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _IFNAMSIZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IFNAMSIZ@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_strncpy
Lloh6:
	adrp	x20, _capture_sock@GOTPAGE
Lloh7:
	ldr	x20, [x20, _capture_sock@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh8:
	adrp	x8, _SIOCGIFFLAGS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SIOCGIFFLAGS@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_ioctl
	tbnz	x0, #63, LBB0_4
; %bb.1:
	ldr	w8, [sp, #8]
Lloh11:
	adrp	x9, _IFF_PROMISC@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IFF_PROMISC@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	and	w10, w9, w8
	cbz	w19, LBB0_5
; %bb.2:
	cbnz	w10, LBB0_8
; %bb.3:
	orr	w8, w9, w8
	b	LBB0_7
LBB0_4:
	mov	w0, #-1
	b	LBB0_9
LBB0_5:
	cbz	w10, LBB0_8
; %bb.6:
	bic	w8, w8, w9
LBB0_7:
	str	w8, [sp, #8]
	ldr	w0, [x20]
Lloh14:
	adrp	x8, _SIOCSIFFLAGS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SIOCSIFFLAGS@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_ioctl
	cmp	x0, #0
	mov	w8, #1
	cneg	w0, w8, ne
	b	LBB0_9
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ifname,4,2                     ; @ifname
	.comm	_IFNAMSIZ,4,2                   ; @IFNAMSIZ
	.comm	_capture_sock,4,2               ; @capture_sock
	.comm	_SIOCGIFFLAGS,4,2               ; @SIOCGIFFLAGS
	.comm	_IFF_PROMISC,4,2                ; @IFF_PROMISC
	.comm	_SIOCSIFFLAGS,4,2               ; @SIOCSIFFLAGS
.subsections_via_symbols
