	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_if_flags
_get_if_flags:                          ## @get_if_flags
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movl	(%rsi), %eax
	movq	_PCAP_IF_LOOPBACK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	_PCAP_IF_CONNECTION_STATUS_NOT_APPLICABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%rbx)
	jmp	LBB0_16
LBB0_2:
	movq	%rdx, %r12
	movq	%rdi, %r15
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_socket
	cmpl	$-1, %eax
	je	LBB0_3
## %bb.4:
	movl	%eax, %r14d
	movl	%eax, %edi
	movq	%r15, %rsi
	callq	_is_wifi
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_PCAP_IF_WIRELESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
LBB0_15:
	movl	%r14d, %edi
	callq	_close
LBB0_16:
	xorl	%eax, %eax
LBB0_17:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r12, %rdi
	movq	%r15, %r8
	callq	_pcap_fmt_errmsg_for_errno
	movl	$-1, %eax
	jmp	LBB0_17
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
	leaq	-40(%rbp), %rdi
	movq	%r15, %rdx
	callq	_asprintf
	cmpl	$-1, %eax
	je	LBB0_7
## %bb.8:
	movq	-40(%rbp), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_15
## %bb.9:
	movq	%rax, %r15
	leaq	L_.str.4(%rip), %rsi
	leaq	-44(%rbp), %rdx
	movq	%rax, %rdi
	callq	_fscanf
	cmpl	$1, %eax
	jne	LBB0_14
## %bb.10:
	movl	-44(%rbp), %eax
	leal	-132(%rax), %ecx
	cmpl	$7, %ecx
	jae	LBB0_11
## %bb.13:
	movq	_PCAP_IF_WIRELESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
LBB0_14:
	movq	%r15, %rdi
	callq	_fclose
	movq	-40(%rbp), %rdi
	callq	_free
	jmp	LBB0_15
LBB0_7:
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r12, %rdi
	movq	%r15, %rcx
	callq	_pcap_snprintf
	movl	%r14d, %edi
	callq	_close
	movl	$-1, %eax
	jmp	LBB0_17
LBB0_11:
	cmpl	$131, %eax
	jne	LBB0_14
## %bb.12:
	movl	%r14d, %edi
	callq	_close
	movq	%r15, %rdi
	callq	_fclose
	movq	-40(%rbp), %rdi
	callq	_free
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_PCAP_IF_LOOPBACK,4,2           ## @PCAP_IF_LOOPBACK
	.comm	_PCAP_IF_CONNECTION_STATUS_NOT_APPLICABLE,4,2 ## @PCAP_IF_CONNECTION_STATUS_NOT_APPLICABLE
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
	.comm	_PCAP_ERRBUF_SIZE,4,2           ## @PCAP_ERRBUF_SIZE
	.comm	_errno,4,2                      ## @errno
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't create socket to get ethtool information for %s"

	.comm	_PCAP_IF_WIRELESS,4,2           ## @PCAP_IF_WIRELESS
L_.str.1:                               ## @.str.1
	.asciz	"/sys/class/net/%s/type"

L_.str.2:                               ## @.str.2
	.asciz	"%s: Can't generate path name string for /sys/class/net device"

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

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

	.comm	_ETHTOOL_GLINK,4,2              ## @ETHTOOL_GLINK
	.comm	_PCAP_IF_CONNECTION_STATUS_CONNECTED,4,2 ## @PCAP_IF_CONNECTION_STATUS_CONNECTED
	.comm	_PCAP_IF_CONNECTION_STATUS_DISCONNECTED,4,2 ## @PCAP_IF_CONNECTION_STATUS_DISCONNECTED
	.comm	_SIOCETHTOOL,4,2                ## @SIOCETHTOOL
	.no_dead_strip	_get_if_flags
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_if_flags
_get_if_flags:                          ; @get_if_flags
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x1
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _PCAP_IF_LOOPBACK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PCAP_IF_LOOPBACK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	w0, #0
Lloh3:
	adrp	x9, _PCAP_IF_CONNECTION_STATUS_NOT_APPLICABLE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PCAP_IF_CONNECTION_STATUS_NOT_APPLICABLE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x20]
	b	LBB0_9
LBB0_2:
	mov	x22, x2
	mov	x21, x0
Lloh6:
	adrp	x8, _AF_INET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _SOCK_DGRAM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SOCK_DGRAM@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_socket
	cmn	w0, #1
	b.eq	LBB0_7
; %bb.3:
	mov	x19, x0
	mov	x1, x21
	bl	_is_wifi
	cbz	x0, LBB0_10
; %bb.4:
Lloh12:
	adrp	x8, _PCAP_IF_WIRELESS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PCAP_IF_WIRELESS@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
LBB0_5:
	mov	x0, x19
	bl	_close
LBB0_6:
	mov	w0, #0
	b	LBB0_9
LBB0_7:
Lloh15:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _errno@GOTPAGE
Lloh19:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
Lloh21:
	adrp	x3, l_.str@PAGE
Lloh22:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x22
	mov	x4, x21
	bl	_pcap_fmt_errmsg_for_errno
LBB0_8:
	mov	w0, #-1
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_10:
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, sp
	mov	x2, x21
	bl	_asprintf
	cmn	w0, #1
	b.eq	LBB0_16
; %bb.11:
	ldr	x0, [sp]
Lloh25:
	adrp	x1, l_.str.3@PAGE
Lloh26:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_5
; %bb.12:
	mov	x21, x0
Lloh27:
	adrp	x1, l_.str.4@PAGE
Lloh28:
	add	x1, x1, l_.str.4@PAGEOFF
	add	x2, sp, #12
	bl	_fscanf
	cmp	w0, #1
	b.ne	LBB0_15
; %bb.13:
	ldr	w8, [sp, #12]
	sub	w9, w8, #132
	cmp	w9, #7
	b.hs	LBB0_17
; %bb.14:
Lloh29:
	adrp	x8, _PCAP_IF_WIRELESS@GOTPAGE
Lloh30:
	ldr	x8, [x8, _PCAP_IF_WIRELESS@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
LBB0_15:
	mov	x0, x21
	bl	_fclose
	ldr	x0, [sp]
	bl	_free
	b	LBB0_5
LBB0_16:
Lloh32:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
Lloh35:
	adrp	x2, l_.str.2@PAGE
Lloh36:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x22
	mov	x3, x21
	bl	_pcap_snprintf
	mov	x0, x19
	bl	_close
	b	LBB0_8
LBB0_17:
	cmp	w8, #131
	b.ne	LBB0_15
; %bb.18:
	mov	x0, x19
	bl	_close
	mov	x0, x21
	bl	_fclose
	ldr	x0, [sp]
	bl	_free
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_PCAP_IF_LOOPBACK,4,2           ; @PCAP_IF_LOOPBACK
	.comm	_PCAP_IF_CONNECTION_STATUS_NOT_APPLICABLE,4,2 ; @PCAP_IF_CONNECTION_STATUS_NOT_APPLICABLE
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
	.comm	_PCAP_ERRBUF_SIZE,4,2           ; @PCAP_ERRBUF_SIZE
	.comm	_errno,4,2                      ; @errno
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't create socket to get ethtool information for %s"

	.comm	_PCAP_IF_WIRELESS,4,2           ; @PCAP_IF_WIRELESS
l_.str.1:                               ; @.str.1
	.asciz	"/sys/class/net/%s/type"

l_.str.2:                               ; @.str.2
	.asciz	"%s: Can't generate path name string for /sys/class/net device"

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

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

	.comm	_ETHTOOL_GLINK,4,2              ; @ETHTOOL_GLINK
	.comm	_PCAP_IF_CONNECTION_STATUS_CONNECTED,4,2 ; @PCAP_IF_CONNECTION_STATUS_CONNECTED
	.comm	_PCAP_IF_CONNECTION_STATUS_DISCONNECTED,4,2 ; @PCAP_IF_CONNECTION_STATUS_DISCONNECTED
	.comm	_SIOCETHTOOL,4,2                ; @SIOCETHTOOL
	.no_dead_strip	_get_if_flags
.subsections_via_symbols
