	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_linux_if
_add_linux_if:                          ## @add_linux_if
	.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	$552, %rsp                      ## imm = 0x228
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%edx, %r12d
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movb	(%rsi), %al
	testb	%al, %al
	je	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	leaq	-560(%rbp), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	%al, %edi
	callq	_isascii
	testq	%rax, %rax
	je	LBB0_14
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movsbl	(%rbx), %edi
	callq	_isspace
	testl	%eax, %eax
	jne	LBB0_14
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movzbl	(%rbx), %eax
	cmpb	$58, %al
	je	LBB0_6
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	movb	%al, (%r13)
	incq	%r13
	movzbl	1(%rbx), %eax
	incq	%rbx
	testb	%al, %al
	jne	LBB0_3
	jmp	LBB0_14
LBB0_1:
	leaq	-560(%rbp), %r13
	jmp	LBB0_14
LBB0_6:
	movq	%r15, -576(%rbp)                ## 8-byte Spill
	movq	%r14, -584(%rbp)                ## 8-byte Spill
	movl	$58, %edi
	callq	_isascii
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%r13, %r14
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	(%rbx), %edi
	callq	_isdigit
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	leaq	1(%rbx), %r15
	movzbl	(%rbx), %eax
	movb	%al, (%r14)
	incq	%r14
	movsbl	1(%rbx), %edi
	callq	_isascii
	movq	%r15, %rbx
	testq	%rax, %rax
	jne	LBB0_9
	jmp	LBB0_12
LBB0_7:
	movq	%rbx, %r15
	movq	%r13, %r14
	jmp	LBB0_12
LBB0_10:
	movq	%rbx, %r15
LBB0_12:
	cmpb	$58, (%r15)
	cmoveq	%r14, %r13
	movq	-584(%rbp), %r14                ## 8-byte Reload
	movq	-576(%rbp), %r15                ## 8-byte Reload
LBB0_14:
	movb	$0, (%r13)
	movl	-564(%rbp), %edi
	leaq	-560(%rbp), %rsi
	movl	$4, %edx
	callq	_strlcpy
	movq	_SIOCGIFFLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-568(%rbp), %rdx
	movl	%r12d, %edi
	callq	_ioctl
	testq	%rax, %rax
	js	LBB0_15
## %bb.18:
	movl	-568(%rbp), %edx
	movq	_get_if_flags@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-560(%rbp), %rsi
	movq	%r15, %rdi
	movq	%r14, %r8
	callq	_find_or_add_if
	movq	%rax, %rcx
	xorl	%eax, %eax
	cmpq	$1, %rcx
	sbbl	%eax, %eax
	jmp	LBB0_19
LBB0_15:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	_ENXIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpq	(%rcx), %rdx
	je	LBB0_19
## %bb.16:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	je	LBB0_19
## %bb.17:
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-564(%rbp), %r9d
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	movl	$4, %r8d
	callq	_pcap_fmt_errmsg_for_errno
	movl	$-1, %eax
LBB0_19:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_21
## %bb.20:
	addq	$552, %rsp                      ## imm = 0x228
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SIOCGIFFLAGS,4,2               ## @SIOCGIFFLAGS
	.comm	_errno,8,3                      ## @errno
	.comm	_ENXIO,8,3                      ## @ENXIO
	.comm	_ENODEV,8,3                     ## @ENODEV
	.comm	_PCAP_ERRBUF_SIZE,4,2           ## @PCAP_ERRBUF_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SIOCGIFFLAGS: %.*s"

	.comm	_get_if_flags,4,2               ## @get_if_flags
	.no_dead_strip	_add_linux_if
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_linux_if
_add_linux_if:                          ; @add_linux_if
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w27, -72
	.cfi_offset w28, -80
	sub	sp, sp, #528
	mov	x19, x3
	mov	x21, x2
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	ldrb	w8, [x1]
	cbz	w8, LBB0_6
; %bb.1:
	mov	x22, x1
	add	x23, sp, #8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sxtb	w0, w8
	bl	_isascii
	cbz	x0, LBB0_14
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrsb	w0, [x22]
	bl	_isspace
	cbnz	w0, LBB0_14
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrb	w9, [x22]
	cmp	w9, #58
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrb	w8, [x22, #1]!
	strb	w9, [x23], #1
	cbnz	w8, LBB0_2
	b	LBB0_14
LBB0_6:
	add	x23, sp, #8
	b	LBB0_14
LBB0_7:
	mov	w0, #58
	bl	_isascii
	cbz	x0, LBB0_12
; %bb.8:
	mov	x24, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w0, [x22, x24]
	bl	_isdigit
	cbz	x0, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x8, x22, x24
	ldrb	w9, [x8]
	strb	w9, [x23, x24]
	ldrsb	w0, [x8, #1]
	bl	_isascii
	add	x24, x24, #1
	cbnz	x0, LBB0_9
LBB0_11:
	add	x8, x23, x24
	add	x22, x22, x24
	b	LBB0_13
LBB0_12:
	mov	x8, x23
LBB0_13:
	ldrb	w9, [x22]
	cmp	w9, #58
	csel	x23, x8, x23, eq
LBB0_14:
	strb	wzr, [x23]
	ldr	w0, [sp, #4]
	add	x1, sp, #8
	mov	w2, #4
	bl	_strlcpy
Lloh3:
	adrp	x8, _SIOCGIFFLAGS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SIOCGIFFLAGS@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x2, sp
	mov	x0, x21
	bl	_ioctl
	tbnz	x0, #63, LBB0_16
; %bb.15:
	ldr	w2, [sp]
Lloh6:
	adrp	x8, _get_if_flags@GOTPAGE
Lloh7:
	ldr	x8, [x8, _get_if_flags@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	add	x1, sp, #8
	mov	x0, x20
	mov	x4, x19
	bl	_find_or_add_if
	cmp	x0, #0
	csetm	w0, eq
	b	LBB0_19
LBB0_16:
Lloh9:
	adrp	x8, _errno@GOTPAGE
Lloh10:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh11:
	ldr	x2, [x8]
Lloh12:
	adrp	x8, _ENXIO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
Lloh15:
	adrp	x9, _ENODEV@GOTPAGE
Lloh16:
	ldr	x9, [x9, _ENODEV@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x2, x8
	ccmp	x2, x9, #4, ne
	b.ne	LBB0_18
; %bb.17:
	mov	w0, #0
	b	LBB0_19
LBB0_18:
Lloh18:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	ldr	w5, [sp, #4]
Lloh21:
	adrp	x3, l_.str@PAGE
Lloh22:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	w4, #4
	bl	_pcap_fmt_errmsg_for_errno
	mov	w0, #-1
LBB0_19:
	ldur	x8, [x29, #-72]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.20:
	add	sp, sp, #528
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_SIOCGIFFLAGS,4,2               ; @SIOCGIFFLAGS
	.comm	_errno,8,3                      ; @errno
	.comm	_ENXIO,8,3                      ; @ENXIO
	.comm	_ENODEV,8,3                     ; @ENODEV
	.comm	_PCAP_ERRBUF_SIZE,4,2           ; @PCAP_ERRBUF_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SIOCGIFFLAGS: %.*s"

	.comm	_get_if_flags,4,2               ; @get_if_flags
	.no_dead_strip	_add_linux_if
.subsections_via_symbols
