	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_figure_of_merit
_get_figure_of_merit:                   ## @get_figure_of_merit
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	(%rdi), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	(%r14), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	movslq	%eax, %rcx
	movq	(%r14), %rax
	addq	%rbx, %rcx
	decq	%rcx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %rdi
	decq	%rcx
	cmpq	%rax, %rcx
	jb	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movzbl	-1(%rdi), %edx
	addb	$-48, %dl
	cmpb	$10, %dl
	jb	LBB0_3
LBB0_5:
	movb	(%rdi), %cl
	addb	$-48, %cl
	xorl	%eax, %eax
	cmpb	$9, %cl
	ja	LBB0_7
## %bb.6:
	callq	_atoi
	incl	%eax
	jmp	LBB0_7
LBB0_1:
	movl	$536870911, %eax                ## imm = 0x1FFFFFFF
LBB0_7:
	movl	8(%r14), %ecx
	movq	_PCAP_IF_RUNNING@GOTPCREL(%rip), %rdx
	movl	%eax, %esi
	orl	$-2147483648, %esi              ## imm = 0x80000000
	testl	%ecx, (%rdx)
	cmovnel	%eax, %esi
	movq	_PCAP_IF_UP@GOTPCREL(%rip), %rax
	movl	%esi, %edx
	orl	$1073741824, %edx               ## imm = 0x40000000
	testl	%ecx, (%rax)
	cmovnel	%esi, %edx
	movq	_PCAP_IF_WIRELESS@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	jne	LBB0_9
## %bb.8:
	movq	_PCAP_IF_CONNECTION_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ecx, %eax
	movq	_PCAP_IF_CONNECTION_STATUS_DISCONNECTED@GOTPCREL(%rip), %rsi
	movl	%edx, %edi
	orl	$536870912, %edi                ## imm = 0x20000000
	cmpl	(%rsi), %eax
	cmovel	%edi, %edx
LBB0_9:
	movq	_PCAP_IF_LOOPBACK@GOTPCREL(%rip), %rsi
	movl	%edx, %eax
	orl	$268435456, %eax                ## imm = 0x10000000
	testl	%ecx, (%rsi)
	cmovel	%edx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"any"

	.comm	_PCAP_IF_RUNNING,4,2            ## @PCAP_IF_RUNNING
	.comm	_PCAP_IF_UP,4,2                 ## @PCAP_IF_UP
	.comm	_PCAP_IF_WIRELESS,4,2           ## @PCAP_IF_WIRELESS
	.comm	_PCAP_IF_CONNECTION_STATUS,4,2  ## @PCAP_IF_CONNECTION_STATUS
	.comm	_PCAP_IF_CONNECTION_STATUS_DISCONNECTED,4,2 ## @PCAP_IF_CONNECTION_STATUS_DISCONNECTED
	.comm	_PCAP_IF_LOOPBACK,4,2           ## @PCAP_IF_LOOPBACK
	.no_dead_strip	_get_figure_of_merit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_figure_of_merit
_get_figure_of_merit:                   ; @get_figure_of_merit
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x0, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_6
; %bb.1:
	ldr	x20, [x19]
	mov	x0, x20
	bl	_strlen
	ldr	x8, [x19]
	add	x9, x20, w0, sxtw
	sub	x9, x9, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x9
	sub	x9, x9, #1
	cmp	x9, x8
	b.lo	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x9, x0
	ldrb	w10, [x9, #-1]!
	sub	w10, w10, #48
	cmp	w10, #10
	b.lo	LBB0_2
LBB0_4:
	ldrb	w8, [x0]
	sub	w8, w8, #48
	cmp	w8, #9
	b.hi	LBB0_7
; %bb.5:
	bl	_atoi
	add	w9, w0, #1
	b	LBB0_8
LBB0_6:
	mov	w9, #536870911
	b	LBB0_8
LBB0_7:
	mov	w9, #0
LBB0_8:
	ldr	w8, [x19, #8]
Lloh2:
	adrp	x10, _PCAP_IF_RUNNING@GOTPAGE
Lloh3:
	ldr	x10, [x10, _PCAP_IF_RUNNING@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	orr	w11, w9, #0x80000000
	tst	w10, w8
	csel	w9, w11, w9, eq
Lloh5:
	adrp	x10, _PCAP_IF_UP@GOTPAGE
Lloh6:
	ldr	x10, [x10, _PCAP_IF_UP@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	orr	w11, w9, #0x40000000
	tst	w10, w8
	csel	w9, w11, w9, eq
Lloh8:
	adrp	x10, _PCAP_IF_WIRELESS@GOTPAGE
Lloh9:
	ldr	x10, [x10, _PCAP_IF_WIRELESS@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	tst	w10, w8
	b.ne	LBB0_10
; %bb.9:
Lloh11:
	adrp	x10, _PCAP_IF_CONNECTION_STATUS@GOTPAGE
Lloh12:
	ldr	x10, [x10, _PCAP_IF_CONNECTION_STATUS@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	and	w10, w10, w8
Lloh14:
	adrp	x11, _PCAP_IF_CONNECTION_STATUS_DISCONNECTED@GOTPAGE
Lloh15:
	ldr	x11, [x11, _PCAP_IF_CONNECTION_STATUS_DISCONNECTED@GOTPAGEOFF]
Lloh16:
	ldr	w11, [x11]
	orr	w12, w9, #0x20000000
	cmp	w10, w11
	csel	w9, w12, w9, eq
LBB0_10:
Lloh17:
	adrp	x10, _PCAP_IF_LOOPBACK@GOTPAGE
Lloh18:
	ldr	x10, [x10, _PCAP_IF_LOOPBACK@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
	orr	w11, w9, #0x10000000
	tst	w10, w8
	csel	w0, w9, w11, eq
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"any"

	.comm	_PCAP_IF_RUNNING,4,2            ; @PCAP_IF_RUNNING
	.comm	_PCAP_IF_UP,4,2                 ; @PCAP_IF_UP
	.comm	_PCAP_IF_WIRELESS,4,2           ; @PCAP_IF_WIRELESS
	.comm	_PCAP_IF_CONNECTION_STATUS,4,2  ; @PCAP_IF_CONNECTION_STATUS
	.comm	_PCAP_IF_CONNECTION_STATUS_DISCONNECTED,4,2 ; @PCAP_IF_CONNECTION_STATUS_DISCONNECTED
	.comm	_PCAP_IF_LOOPBACK,4,2           ; @PCAP_IF_LOOPBACK
	.no_dead_strip	_get_figure_of_merit
.subsections_via_symbols
