	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_interface
_add_interface:                         ## @add_interface
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	(%rdi), %r13
	movl	(%r13), %eax
	leal	1(%rax), %ecx
	movl	%ecx, (%r13)
	movslq	4(%r13), %rbx
	cmpl	%ebx, %eax
	jl	LBB0_12
## %bb.1:
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.3:
	movl	%ebx, %eax
	addq	%rbx, %rbx
	cmpl	%eax, %ebx
	jge	LBB0_6
## %bb.4:
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movl	$-2147483648, %ecx              ## imm = 0x80000000
	jmp	LBB0_5
LBB0_2:
	movl	$24, %edi
	callq	_malloc
	movl	$1, %ebx
	testq	%rax, %rax
	je	LBB0_10
LBB0_11:
	movl	%ebx, 4(%r13)
	movq	%rax, 16(%r13)
LBB0_12:
	movl	$1000000, -44(%rbp)             ## imm = 0xF4240
	movl	$0, -48(%rbp)
	movq	$0, -56(%rbp)
	leaq	-44(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	leaq	-48(%rbp), %r8
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r14, %r9
	callq	_process_idb_options
	cmpl	$-1, %eax
	je	LBB0_13
## %bb.14:
	movl	-44(%rbp), %eax
	movq	16(%r13), %rdi
	movslq	(%r13), %rcx
	decq	%rcx
	leaq	(%rcx,%rcx,2), %rbx
	movl	%eax, (%rdi,%rbx,8)
	movq	-56(%rbp), %rax
	movq	%rax, 16(%rdi,%rbx,8)
	movl	-44(%rbp), %ecx
	movl	8(%r13), %esi
	cmpl	%esi, %ecx
	jne	LBB0_16
## %bb.15:
	movq	_PASS_THROUGH@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_13:
	xorl	%eax, %eax
	jmp	LBB0_24
LBB0_16:
	movl	-48(%rbp), %eax
	jle	LBB0_20
## %bb.17:
	testl	%eax, %eax
	je	LBB0_19
## %bb.18:
	movq	_SCALE_DOWN_BIN@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_6:
	leaq	(,%rbx,8), %rax
	leaq	(%rax,%rax,2), %rsi
	cmpq	%rbx, %rsi
	jae	LBB0_8
## %bb.7:
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movl	$178956970, %ecx                ## imm = 0xAAAAAAA
	jmp	LBB0_5
LBB0_20:
	testl	%eax, %eax
	je	LBB0_22
## %bb.21:
	movq	_SCALE_UP_BIN@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_8:
	movq	16(%r13), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_realloc
	testq	%rax, %rax
	jne	LBB0_11
LBB0_10:
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %ecx
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
LBB0_5:
	callq	_pcap_snprintf
	xorl	%eax, %eax
	jmp	LBB0_24
LBB0_19:
	movl	%ecx, %eax
	cltd
	idivl	%esi
	movl	%eax, 4(%rdi,%rbx,8)
	movq	_SCALE_DOWN_DEC@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_22:
	movl	%esi, %eax
	cltd
	idivl	%ecx
	movl	%eax, 4(%rdi,%rbx,8)
	movq	_SCALE_UP_DEC@GOTPCREL(%rip), %rax
LBB0_23:
	movl	(%rax), %eax
	movl	%eax, 8(%rdi,%rbx,8)
	movl	$1, %eax
LBB0_24:
	addq	$24, %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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"more than %u interfaces in the file"

L_.str.1:                               ## @.str.1
	.asciz	"out of memory for per-interface information (%u interfaces)"

	.comm	_PASS_THROUGH,4,2               ## @PASS_THROUGH
	.comm	_SCALE_DOWN_BIN,4,2             ## @SCALE_DOWN_BIN
	.comm	_SCALE_DOWN_DEC,4,2             ## @SCALE_DOWN_DEC
	.comm	_SCALE_UP_BIN,4,2               ## @SCALE_UP_BIN
	.comm	_SCALE_UP_DEC,4,2               ## @SCALE_UP_DEC
	.no_dead_strip	_add_interface
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_interface
_add_interface:                         ; @add_interface
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x22, [x0]
	ldp	w9, w8, [x22]
                                        ; kill: def $w8 killed $w8 def $x8
	sxtw	x8, w8
	add	w10, w9, #1
	str	w10, [x22]
	cmp	w9, w8
	b.lt	LBB0_6
; %bb.1:
	cbz	w8, LBB0_4
; %bb.2:
	lsl	x23, x8, #1
	cmp	w23, w8
	b.ge	LBB0_12
; %bb.3:
Lloh0:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	w3, #-2147483648
	b	LBB0_20
LBB0_4:
	mov	w0, #24
	bl	_malloc
	mov	w23, #1
	cbz	x0, LBB0_19
LBB0_5:
	str	w23, [x22, #4]
	str	x0, [x22, #16]
LBB0_6:
	mov	w8, #16960
	movk	w8, #15, lsl #16
	str	w8, [sp, #28]
	str	wzr, [sp, #12]
	str	xzr, [sp, #16]
	add	x2, sp, #28
	add	x3, sp, #16
	add	x4, sp, #12
	mov	x0, x21
	mov	x1, x20
	mov	x5, x19
	bl	_process_idb_options
	cmn	w0, #1
	b.eq	LBB0_21
; %bb.7:
	ldr	w10, [sp, #28]
	ldr	x8, [x22, #16]
	ldrsw	x9, [x22]
	sub	x9, x9, #1
	mov	w11, #24
	madd	x11, x9, x11, x8
	str	w10, [x11]
	ldr	x10, [sp, #16]
	str	x10, [x11, #16]
	ldr	w10, [sp, #28]
	ldr	w11, [x22, #8]
	cmp	w10, w11
	b.ne	LBB0_9
; %bb.8:
Lloh5:
	adrp	x10, _PASS_THROUGH@GOTPAGE
Lloh6:
	ldr	x10, [x10, _PASS_THROUGH@GOTPAGEOFF]
	b	LBB0_16
LBB0_9:
	ldr	w12, [sp, #12]
	b.le	LBB0_14
; %bb.10:
	cbz	w12, LBB0_23
; %bb.11:
Lloh7:
	adrp	x10, _SCALE_DOWN_BIN@GOTPAGE
Lloh8:
	ldr	x10, [x10, _SCALE_DOWN_BIN@GOTPAGEOFF]
	b	LBB0_16
LBB0_12:
	add	x8, x23, x23, lsl #1
	lsl	x1, x8, #3
	cmp	x1, x23
	b.hs	LBB0_18
; %bb.13:
Lloh9:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	w3, #43690
	movk	w3, #2730, lsl #16
	b	LBB0_20
LBB0_14:
	cbz	w12, LBB0_24
; %bb.15:
Lloh14:
	adrp	x10, _SCALE_UP_BIN@GOTPAGE
Lloh15:
	ldr	x10, [x10, _SCALE_UP_BIN@GOTPAGEOFF]
LBB0_16:
	ldr	w10, [x10]
	mov	w11, #24
	madd	x8, x9, x11, x8
	str	w10, [x8, #8]
LBB0_17:
	mov	w0, #1
	b	LBB0_22
LBB0_18:
	ldr	x0, [x22, #16]
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_realloc
	cbnz	x0, LBB0_5
LBB0_19:
Lloh16:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	ldr	w3, [x22]
Lloh19:
	adrp	x2, l_.str.1@PAGE
Lloh20:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
LBB0_20:
	bl	_pcap_snprintf
LBB0_21:
	mov	w0, #0
LBB0_22:
	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
	add	sp, sp, #96
	ret
LBB0_23:
	sdiv	w10, w10, w11
	mov	w11, #24
	madd	x8, x9, x11, x8
	str	w10, [x8, #4]
Lloh21:
	adrp	x9, _SCALE_DOWN_DEC@GOTPAGE
Lloh22:
	ldr	x9, [x9, _SCALE_DOWN_DEC@GOTPAGEOFF]
	b	LBB0_25
LBB0_24:
	sdiv	w10, w11, w10
	mov	w11, #24
	madd	x8, x9, x11, x8
	str	w10, [x8, #4]
Lloh23:
	adrp	x9, _SCALE_UP_DEC@GOTPAGE
Lloh24:
	ldr	x9, [x9, _SCALE_UP_DEC@GOTPAGEOFF]
LBB0_25:
	ldr	w9, [x9]
	str	w9, [x8, #8]
	b	LBB0_17
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_PCAP_ERRBUF_SIZE,4,2           ; @PCAP_ERRBUF_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"more than %u interfaces in the file"

l_.str.1:                               ; @.str.1
	.asciz	"out of memory for per-interface information (%u interfaces)"

	.comm	_PASS_THROUGH,4,2               ; @PASS_THROUGH
	.comm	_SCALE_DOWN_BIN,4,2             ; @SCALE_DOWN_BIN
	.comm	_SCALE_DOWN_DEC,4,2             ; @SCALE_DOWN_DEC
	.comm	_SCALE_UP_BIN,4,2               ; @SCALE_UP_BIN
	.comm	_SCALE_UP_DEC,4,2               ; @SCALE_UP_DEC
	.no_dead_strip	_add_interface
.subsections_via_symbols
