	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nit_setflags
_nit_setflags:                          ## @nit_setflags
	.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	$64, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	leaq	-72(%rbp), %rdi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	movl	$56, %edx
	callq	_memset
	movq	_NT_ALLTYPES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -20(%rbp)
	movl	40(%rbx), %eax
	movl	%eax, -24(%rbp)
	movl	$4, -72(%rbp)
	movq	$0, -32(%rbp)
	movq	8(%rbx), %rax
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	_BUFSPACE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_2:
	movq	%rax, -64(%rbp)
	cmpq	$0, 32(%rbx)
	jne	LBB0_4
## %bb.3:
	movq	_CHUNKSIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
LBB0_4:
	movq	%r14, -40(%rbp)
	movl	16(%rbx), %eax
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movq	_NF_TIMEOUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, -56(%rbp)
	movslq	%eax, %rcx
	imulq	$274877907, %rcx, %rcx          ## imm = 0x10624DD3
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$38, %rcx
	addl	%edx, %ecx
	movl	%ecx, -52(%rbp)
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	cltq
	imulq	$1125899907, %rax, %rcx         ## imm = 0x431BDE83
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$50, %rcx
	addl	%edx, %ecx
	imull	$1000000, %ecx, %ecx            ## imm = 0xF4240
	subl	%ecx, %eax
	movl	%eax, -48(%rbp)
LBB0_6:
	cmpq	$0, 24(%rbx)
	je	LBB0_8
## %bb.7:
	movq	_NF_PROMISC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -56(%rbp)
LBB0_8:
	movl	4(%rbx), %edi
	movq	_SIOCSNIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-72(%rbp), %rdx
	callq	_ioctl
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jns	LBB0_10
## %bb.9:
	movl	(%rbx), %edi
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	callq	_pcap_fmt_errmsg_for_errno
	movl	$-1, %eax
LBB0_10:
	addq	$64, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NT_ALLTYPES,4,2                ## @NT_ALLTYPES
	.comm	_BUFSPACE,8,3                   ## @BUFSPACE
	.comm	_CHUNKSIZE,8,3                  ## @CHUNKSIZE
	.comm	_NF_TIMEOUT,4,2                 ## @NF_TIMEOUT
	.comm	_NF_PROMISC,4,2                 ## @NF_PROMISC
	.comm	_SIOCSNIT,4,2                   ## @SIOCSNIT
	.comm	_PCAP_ERRBUF_SIZE,4,2           ## @PCAP_ERRBUF_SIZE
	.comm	_errno,4,2                      ## @errno
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SIOCSNIT"

	.no_dead_strip	_nit_setflags
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nit_setflags
_nit_setflags:                          ; @nit_setflags
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #56
	bl	_memset
Lloh0:
	adrp	x8, _NT_ALLTYPES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NT_ALLTYPES@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x19, #40]
	stp	w9, w8, [sp, #56]
	mov	w8, #4
	str	w8, [sp, #8]
	str	xzr, [sp, #48]
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _BUFSPACE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BUFSPACE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, #0
	csel	x8, x9, x8, eq
	ldr	x9, [x19, #32]
Lloh6:
	adrp	x10, _CHUNKSIZE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _CHUNKSIZE@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x9, #0
	csel	x9, x10, xzr, eq
	str	x8, [sp, #16]
	str	x9, [sp, #40]
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_2
; %bb.1:
Lloh9:
	adrp	x9, _NF_TIMEOUT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _NF_TIMEOUT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	ldr	w10, [sp, #24]
	orr	w9, w10, w9
	mov	w10, #19923
	movk	w10, #4194, lsl #16
	smull	x10, w8, w10
	lsr	x11, x10, #63
	asr	x10, x10, #38
	add	w10, w10, w11
	stp	w9, w10, [sp, #24]
	mov	w9, #1000
	mul	w8, w8, w9
	mov	w9, #56963
	movk	w9, #17179, lsl #16
	smull	x9, w8, w9
	lsr	x10, x9, #63
	asr	x9, x9, #50
	add	w9, w9, w10
	mov	w10, #16960
	movk	w10, #15, lsl #16
	msub	w8, w9, w10, w8
	str	w8, [sp, #32]
LBB0_2:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_4
; %bb.3:
Lloh12:
	adrp	x8, _NF_PROMISC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _NF_PROMISC@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	w9, [sp, #24]
	orr	w8, w9, w8
	str	w8, [sp, #24]
LBB0_4:
	ldr	w0, [x19, #4]
Lloh15:
	adrp	x8, _SIOCSNIT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SIOCSNIT@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_ioctl
	tbnz	x0, #63, LBB0_6
; %bb.5:
	mov	w0, #0
	b	LBB0_7
LBB0_6:
	ldr	w0, [x19]
Lloh18:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x8, _errno@GOTPAGE
Lloh22:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
Lloh24:
	adrp	x3, l_.str@PAGE
Lloh25:
	add	x3, x3, l_.str@PAGEOFF
	bl	_pcap_fmt_errmsg_for_errno
	mov	w0, #-1
LBB0_7:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_NT_ALLTYPES,4,2                ; @NT_ALLTYPES
	.comm	_BUFSPACE,8,3                   ; @BUFSPACE
	.comm	_CHUNKSIZE,8,3                  ; @CHUNKSIZE
	.comm	_NF_TIMEOUT,4,2                 ; @NF_TIMEOUT
	.comm	_NF_PROMISC,4,2                 ; @NF_PROMISC
	.comm	_SIOCSNIT,4,2                   ; @SIOCSNIT
	.comm	_PCAP_ERRBUF_SIZE,4,2           ; @PCAP_ERRBUF_SIZE
	.comm	_errno,4,2                      ; @errno
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SIOCSNIT"

	.no_dead_strip	_nit_setflags
.subsections_via_symbols
