	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_dev                        ## -- Begin function add_dev
	.p2align	4, 0x90
_add_dev:                               ## @add_dev
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movq	%rcx, %r13
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movl	$40, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	$0, (%rax)
	movq	%rbx, %rdi
	callq	_strdup
	movq	%rax, 24(%r14)
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	testq	%r13, %r13
	je	LBB0_6
## %bb.12:
	movq	%r13, %rdi
	callq	_strdup
	movq	%rax, 32(%r14)
	testq	%rax, %rax
	jne	LBB0_7
## %bb.13:
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r15, %rdi
	callq	_pcap_fmt_errmsg_for_errno
	movq	24(%r14), %rdi
	callq	_free
	jmp	LBB0_4
LBB0_1:
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r15, %rdi
	callq	_pcap_fmt_errmsg_for_errno
	xorl	%r14d, %r14d
	jmp	LBB0_15
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	%r15, %rdi
	callq	_pcap_fmt_errmsg_for_errno
LBB0_4:
	movq	%r14, %rdi
	callq	_free
	xorl	%r14d, %r14d
	jmp	LBB0_15
LBB0_6:
	movq	$0, 32(%r14)
LBB0_7:
	movq	$0, 16(%r14)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 8(%r14)
	movq	%r14, %rdi
	callq	_get_figure_of_merit
	movq	%rax, %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %r13
	testq	%rbx, %rbx
	movq	%rbx, %rax
	cmoveq	%r12, %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	%rbx, %rdi
	callq	_get_figure_of_merit
	cmpq	%rax, %r15
	jge	LBB0_8
LBB0_10:
	movq	%rbx, (%r14)
	testq	%r13, %r13
	je	LBB0_11
## %bb.14:
	movq	%r14, (%r13)
	jmp	LBB0_15
LBB0_11:
	movq	%r14, (%r12)
LBB0_15:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCAP_ERRBUF_SIZE,4,2           ## @PCAP_ERRBUF_SIZE
	.comm	_errno,4,2                      ## @errno
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"malloc"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_dev                        ; -- Begin function add_dev
	.p2align	2
_add_dev:                               ; @add_dev
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x4
	mov	x23, x3
	mov	x22, x2
	mov	x24, x1
	mov	x20, x0
	mov	w0, #40
	bl	_malloc
	mov	x19, x0
	cbz	x0, LBB0_5
; %bb.1:
	str	xzr, [x19]
	mov	x0, x24
	bl	_strdup
	str	x0, [x19, #24]
	cbz	x0, LBB0_6
; %bb.2:
	cbz	x23, LBB0_8
; %bb.3:
	mov	x0, x23
	bl	_strdup
	str	x0, [x19, #32]
	cbnz	x0, LBB0_9
; %bb.4:
Lloh0:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _errno@GOTPAGE
Lloh4:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x3, l_.str@PAGE
Lloh7:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x21
	bl	_pcap_fmt_errmsg_for_errno
	ldr	x0, [x19, #24]
	bl	_free
	b	LBB0_7
LBB0_5:
Lloh8:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _errno@GOTPAGE
Lloh12:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
Lloh14:
	adrp	x3, l_.str@PAGE
Lloh15:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x21
	bl	_pcap_fmt_errmsg_for_errno
	b	LBB0_15
LBB0_6:
Lloh16:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x8, _errno@GOTPAGE
Lloh20:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
Lloh22:
	adrp	x3, l_.str@PAGE
Lloh23:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x21
	bl	_pcap_fmt_errmsg_for_errno
LBB0_7:
	mov	x0, x19
	bl	_free
	mov	x19, #0
	b	LBB0_15
LBB0_8:
	str	xzr, [x19, #32]
LBB0_9:
	str	xzr, [x19, #16]
	str	w22, [x19, #8]
	mov	x0, x19
	bl	_get_figure_of_merit
	mov	x21, x0
	mov	x22, #0
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x23, x22
	cmp	x22, #0
	csel	x8, x20, x22, eq
	ldr	x22, [x8]
	cbz	x22, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x22
	bl	_get_figure_of_merit
	cmp	x21, x0
	b.ge	LBB0_10
LBB0_12:
	str	x22, [x19]
	cbz	x23, LBB0_14
; %bb.13:
	str	x19, [x23]
	b	LBB0_15
LBB0_14:
	str	x19, [x20]
LBB0_15:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_PCAP_ERRBUF_SIZE,4,2           ; @PCAP_ERRBUF_SIZE
	.comm	_errno,4,2                      ; @errno
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"malloc"

.subsections_via_symbols
