	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scan_sys_class_net
_scan_sys_class_net:                    ## @scan_sys_class_net
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PATH_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	incl	%eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -96(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rdi
	callq	_opendir
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r15
	movq	_PF_UNIX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SOCK_RAW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_socket
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	js	LBB0_19
## %bb.4:
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	_errno@GOTPCREL(%rip), %r12
	movq	$0, (%r12)
	movq	%r15, %rdi
	callq	_readdir
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	movq	%rax, %r13
	leaq	L_.str.3(%rip), %r14
	leaq	L_.str.4(%rip), %rbx
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	$0, (%r12)
	movq	%r15, %rdi
	callq	_readdir
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_9
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rdi
	movq	%r14, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%r13), %rdi
	movq	%rbx, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_8
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r13), %rax
	movq	_DT_REG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%r13), %rcx
	movq	%r14, %r15
	movq	%r12, %r14
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	leaq	L_.str.5(%rip), %rdx
	callq	_pcap_snprintf
	movq	%r12, %rdi
	movq	%r14, %r12
	movq	%r15, %r14
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	leaq	-104(%rbp), %rsi
	callq	_lstat
	testq	%rax, %rax
	jne	LBB0_8
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%r13), %rsi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	callq	_add_linux_if
	cmpl	$-1, %eax
	jne	LBB0_8
	jmp	LBB0_15
LBB0_1:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	cmpq	(%rax), %rdx
	je	LBB0_17
## %bb.2:
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rcx
	movq	%rbx, %rdi
	callq	_pcap_fmt_errmsg_for_errno
	movl	$-1, %r14d
	jmp	LBB0_17
LBB0_9:
	movq	(%r12), %rdx
	testq	%rdx, %rdx
	je	LBB0_10
## %bb.14:
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.6(%rip), %rcx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_pcap_fmt_errmsg_for_errno
LBB0_15:
	movl	$-1, %r14d
	jmp	LBB0_16
LBB0_19:
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str.2(%rip), %rcx
	movq	%rbx, %rdi
	callq	_pcap_fmt_errmsg_for_errno
	movq	%r15, %rdi
	callq	_closedir
	movl	$-1, %r14d
	jmp	LBB0_17
LBB0_10:
	movl	$1, %r14d
LBB0_16:
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_close
	movq	%r15, %rdi
	callq	_closedir
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.18:
	movl	%r14d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PATH_MAX,4,2                   ## @PATH_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/sys/class/net"

	.comm	_errno,8,3                      ## @errno
	.comm	_ENOENT,8,3                     ## @ENOENT
	.comm	_PCAP_ERRBUF_SIZE,4,2           ## @PCAP_ERRBUF_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"Can't open /sys/class/net"

	.comm	_PF_UNIX,4,2                    ## @PF_UNIX
	.comm	_SOCK_RAW,4,2                   ## @SOCK_RAW
L_.str.2:                               ## @.str.2
	.asciz	"socket"

L_.str.3:                               ## @.str.3
	.asciz	"."

L_.str.4:                               ## @.str.4
	.asciz	".."

	.comm	_DT_REG,8,3                     ## @DT_REG
L_.str.5:                               ## @.str.5
	.asciz	"/sys/class/net/%s/ifindex"

L_.str.6:                               ## @.str.6
	.asciz	"Error reading /sys/class/net"

	.no_dead_strip	_scan_sys_class_net
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scan_sys_class_net
_scan_sys_class_net:                    ; @scan_sys_class_net
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #32
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _PATH_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PATH_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w22, w8, #1
	mov	x9, x22
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x22, #15
	and	x9, x9, #0x1fffffff0
	sub	x24, x8, x9
	mov	sp, x24
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_opendir
	cbz	x0, LBB0_10
; %bb.1:
	mov	x20, x0
Lloh10:
	adrp	x8, _PF_UNIX@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PF_UNIX@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x8, _SOCK_RAW@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SOCK_RAW@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_socket
	tbnz	w0, #31, LBB0_15
; %bb.2:
	mov	x23, x0
	stur	x21, [x29, #-104]               ; 8-byte Folded Spill
Lloh16:
	adrp	x27, _errno@GOTPAGE
Lloh17:
	ldr	x27, [x27, _errno@GOTPAGEOFF]
	str	xzr, [x27]
	mov	x0, x20
	bl	_readdir
	cbz	x0, LBB0_12
; %bb.3:
	mov	x28, x0
Lloh18:
	adrp	x25, l_.str.3@PAGE
Lloh19:
	add	x25, x25, l_.str.3@PAGEOFF
Lloh20:
	adrp	x26, l_.str.4@PAGE
Lloh21:
	add	x26, x26, l_.str.4@PAGEOFF
Lloh22:
	adrp	x21, _DT_REG@GOTPAGE
Lloh23:
	ldr	x21, [x21, _DT_REG@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	xzr, [x27]
	mov	x0, x20
	bl	_readdir
	mov	x28, x0
	cbz	x0, LBB0_12
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x28, #8]
	mov	x1, x25
	bl	_strcmp
	cbz	x0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x28, #8]
	mov	x1, x26
	bl	_strcmp
	cbz	x0, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x28]
	ldr	x9, [x21]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x3, [x28, #8]
	mov	x0, x24
	mov	x1, x22
Lloh24:
	adrp	x2, l_.str.5@PAGE
Lloh25:
	add	x2, x2, l_.str.5@PAGEOFF
	bl	_pcap_snprintf
	sub	x1, x29, #96
	mov	x0, x24
	bl	_lstat
	cbnz	x0, LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x1, [x28, #8]
	ldur	x0, [x29, #-104]                ; 8-byte Folded Reload
	mov	x2, x23
	mov	x3, x19
	bl	_add_linux_if
	cmn	w0, #1
	b.ne	LBB0_4
	b	LBB0_14
LBB0_10:
Lloh26:
	adrp	x8, _errno@GOTPAGE
Lloh27:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh28:
	ldr	x2, [x8]
Lloh29:
	adrp	x8, _ENOENT@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
	cmp	x2, x8
	b.ne	LBB0_16
; %bb.11:
	mov	w19, #0
	b	LBB0_19
LBB0_12:
	ldr	x2, [x27]
	cbz	x2, LBB0_17
; %bb.13:
Lloh32:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
Lloh35:
	adrp	x3, l_.str.6@PAGE
Lloh36:
	add	x3, x3, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_pcap_fmt_errmsg_for_errno
LBB0_14:
	mov	w19, #-1
	b	LBB0_18
LBB0_15:
Lloh37:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh38:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
Lloh40:
	adrp	x8, _errno@GOTPAGE
Lloh41:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh42:
	ldr	x2, [x8]
Lloh43:
	adrp	x3, l_.str.2@PAGE
Lloh44:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_pcap_fmt_errmsg_for_errno
	mov	x0, x20
	bl	_closedir
	mov	w19, #-1
	b	LBB0_19
LBB0_16:
Lloh45:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh46:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh47:
	ldr	w1, [x8]
Lloh48:
	adrp	x3, l_.str.1@PAGE
Lloh49:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_pcap_fmt_errmsg_for_errno
	mov	w19, #-1
	b	LBB0_19
LBB0_17:
	mov	w19, #1
LBB0_18:
	mov	x0, x23
	bl	_close
	mov	x0, x20
	bl	_closedir
LBB0_19:
	ldur	x8, [x29, #-88]
Lloh50:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh51:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh52:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.20:
	mov	x0, x19
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.cfi_endproc
                                        ; -- End function
	.comm	_PATH_MAX,4,2                   ; @PATH_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/sys/class/net"

	.comm	_errno,8,3                      ; @errno
	.comm	_ENOENT,8,3                     ; @ENOENT
	.comm	_PCAP_ERRBUF_SIZE,4,2           ; @PCAP_ERRBUF_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"Can't open /sys/class/net"

	.comm	_PF_UNIX,4,2                    ; @PF_UNIX
	.comm	_SOCK_RAW,4,2                   ; @SOCK_RAW
l_.str.2:                               ; @.str.2
	.asciz	"socket"

l_.str.3:                               ; @.str.3
	.asciz	"."

l_.str.4:                               ; @.str.4
	.asciz	".."

	.comm	_DT_REG,8,3                     ; @DT_REG
l_.str.5:                               ; @.str.5
	.asciz	"/sys/class/net/%s/ifindex"

l_.str.6:                               ; @.str.6
	.asciz	"Error reading /sys/class/net"

	.no_dead_strip	_scan_sys_class_net
.subsections_via_symbols
