	.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	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	$0, -56(%rbp)
	cmpq	$0, 24(%rdi)
	je	LBB0_3
## %bb.1:
	movq	_NIOCSCHUNK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	movl	$8, -40(%rbp)
	leaq	-56(%rbp), %rax
	movq	%rax, -32(%rbp)
	movl	4(%rbx), %edi
	movq	_I_STR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rdx
	callq	_ioctl
	testq	%rax, %rax
	js	LBB0_2
LBB0_3:
	movq	_INFTIM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -20(%rbp)
	movl	8(%rbx), %eax
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movslq	%eax, %rcx
	imulq	$274877907, %rcx, %rcx          ## imm = 0x10624DD3
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$38, %rcx
	addl	%edx, %ecx
	movl	%ecx, -48(%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, -44(%rbp)
	movq	_NIOCSTIME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	movl	$8, -40(%rbp)
	leaq	-48(%rbp), %rax
	movq	%rax, -32(%rbp)
	movl	4(%rbx), %edi
	movq	_I_STR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rdx
	callq	_ioctl
	testq	%rax, %rax
	js	LBB0_5
LBB0_6:
	movq	_NI_TIMESTAMP@GOTPCREL(%rip), %rcx
	movq	_NI_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movq	_NI_DROPS@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, -12(%rbp)
	cmpq	$0, 16(%rbx)
	je	LBB0_8
## %bb.7:
	movq	_NI_PROMISC@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, -12(%rbp)
LBB0_8:
	movq	_NIOCSFLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	movl	$4, -40(%rbp)
	leaq	-12(%rbp), %rax
	movq	%rax, -32(%rbp)
	movl	4(%rbx), %edi
	movq	_I_STR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rdx
	callq	_ioctl
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jns	LBB0_11
## %bb.9:
	leaq	L_.str.2(%rip), %rcx
	jmp	LBB0_10
LBB0_2:
	leaq	L_.str(%rip), %rcx
	jmp	LBB0_10
LBB0_5:
	leaq	L_.str.1(%rip), %rcx
LBB0_10:
	movl	(%rbx), %edi
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_pcap_fmt_errmsg_for_errno
	movl	$-1, %eax
LBB0_11:
	addq	$56, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NIOCSCHUNK,4,2                 ## @NIOCSCHUNK
	.comm	_I_STR,4,2                      ## @I_STR
	.comm	_PCAP_ERRBUF_SIZE,4,2           ## @PCAP_ERRBUF_SIZE
	.comm	_errno,4,2                      ## @errno
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NIOCSCHUNK"

	.comm	_INFTIM,4,2                     ## @INFTIM
	.comm	_NIOCSTIME,4,2                  ## @NIOCSTIME
L_.str.1:                               ## @.str.1
	.asciz	"NIOCSTIME"

	.comm	_NI_TIMESTAMP,4,2               ## @NI_TIMESTAMP
	.comm	_NI_LEN,4,2                     ## @NI_LEN
	.comm	_NI_DROPS,4,2                   ## @NI_DROPS
	.comm	_NI_PROMISC,4,2                 ## @NI_PROMISC
	.comm	_NIOCSFLAGS,4,2                 ## @NIOCSFLAGS
L_.str.2:                               ## @.str.2
	.asciz	"NIOCSFLAGS"

	.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, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	str	xzr, [sp, #8]
	ldr	x8, [x0, #24]
Lloh0:
	adrp	x20, _I_STR@GOTPAGE
Lloh1:
	ldr	x20, [x20, _I_STR@GOTPAGEOFF]
	cbz	x8, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _NIOCSCHUNK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NIOCSCHUNK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [sp, #32]
	mov	w8, #8
	str	w8, [sp, #16]
	add	x8, sp, #8
	str	x8, [sp, #24]
	ldr	w0, [x19, #4]
	ldr	w1, [x20]
	add	x2, sp, #16
	bl	_ioctl
	tbnz	x0, #63, LBB0_8
LBB0_2:
Lloh5:
	adrp	x8, _INFTIM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _INFTIM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [sp, #36]
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_4
; %bb.3:
	mov	w9, #1000
	mul	w9, w8, w9
	mov	w10, #56963
	movk	w10, #17179, lsl #16
	smull	x10, w9, w10
	lsr	x11, x10, #63
	asr	x10, x10, #50
	add	w10, w10, w11
	mov	w11, #16960
	movk	w11, #15, lsl #16
	msub	w9, w10, w11, w9
	mov	w10, #19923
	movk	w10, #4194, lsl #16
	smull	x8, w8, w10
	lsr	x10, x8, #63
	asr	x8, x8, #38
	add	w8, w8, w10
	stp	w8, w9, [sp]
Lloh8:
	adrp	x8, _NIOCSTIME@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NIOCSTIME@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [sp, #32]
	mov	w8, #8
	str	w8, [sp, #16]
	mov	x8, sp
	str	x8, [sp, #24]
	ldr	w0, [x19, #4]
	ldr	w1, [x20]
	add	x2, sp, #16
	bl	_ioctl
	tbnz	x0, #63, LBB0_10
LBB0_4:
Lloh11:
	adrp	x8, _NI_TIMESTAMP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NI_TIMESTAMP@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _NI_LEN@GOTPAGE
Lloh15:
	ldr	x9, [x9, _NI_LEN@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh17:
	adrp	x9, _NI_DROPS@GOTPAGE
Lloh18:
	ldr	x9, [x9, _NI_DROPS@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w8, w9
	stur	w8, [x29, #-20]
	ldr	x9, [x19, #16]
	cbz	x9, LBB0_6
; %bb.5:
Lloh20:
	adrp	x9, _NI_PROMISC@GOTPAGE
Lloh21:
	ldr	x9, [x9, _NI_PROMISC@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w9, w8
	stur	w8, [x29, #-20]
LBB0_6:
Lloh23:
	adrp	x8, _NIOCSFLAGS@GOTPAGE
Lloh24:
	ldr	x8, [x8, _NIOCSFLAGS@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	str	w8, [sp, #32]
	mov	w8, #4
	str	w8, [sp, #16]
	sub	x8, x29, #20
	str	x8, [sp, #24]
	ldr	w0, [x19, #4]
	ldr	w1, [x20]
	add	x2, sp, #16
	bl	_ioctl
	tbnz	x0, #63, LBB0_9
; %bb.7:
	mov	w0, #0
	b	LBB0_12
LBB0_8:
Lloh26:
	adrp	x3, l_.str@PAGE
Lloh27:
	add	x3, x3, l_.str@PAGEOFF
	b	LBB0_11
LBB0_9:
Lloh28:
	adrp	x3, l_.str.2@PAGE
Lloh29:
	add	x3, x3, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_10:
Lloh30:
	adrp	x3, l_.str.1@PAGE
Lloh31:
	add	x3, x3, l_.str.1@PAGEOFF
LBB0_11:
	ldr	w0, [x19]
Lloh32:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
Lloh35:
	adrp	x8, _errno@GOTPAGE
Lloh36:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh37:
	ldr	w2, [x8]
	bl	_pcap_fmt_errmsg_for_errno
	mov	w0, #-1
LBB0_12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_NIOCSCHUNK,4,2                 ; @NIOCSCHUNK
	.comm	_I_STR,4,2                      ; @I_STR
	.comm	_PCAP_ERRBUF_SIZE,4,2           ; @PCAP_ERRBUF_SIZE
	.comm	_errno,4,2                      ; @errno
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NIOCSCHUNK"

	.comm	_INFTIM,4,2                     ; @INFTIM
	.comm	_NIOCSTIME,4,2                  ; @NIOCSTIME
l_.str.1:                               ; @.str.1
	.asciz	"NIOCSTIME"

	.comm	_NI_TIMESTAMP,4,2               ; @NI_TIMESTAMP
	.comm	_NI_LEN,4,2                     ; @NI_LEN
	.comm	_NI_DROPS,4,2                   ; @NI_DROPS
	.comm	_NI_PROMISC,4,2                 ; @NI_PROMISC
	.comm	_NIOCSFLAGS,4,2                 ; @NIOCSFLAGS
l_.str.2:                               ; @.str.2
	.asciz	"NIOCSFLAGS"

	.no_dead_strip	_nit_setflags
.subsections_via_symbols
