	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pcap_list_datalinks            ## -- Begin function pcap_list_datalinks
	.p2align	4, 0x90
_pcap_list_datalinks:                   ## @pcap_list_datalinks
	.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
	cmpl	$0, 16(%rdi)
	je	LBB0_4
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	(%rdi), %esi
	movl	$4, %edi
	testl	%esi, %esi
	je	LBB0_5
## %bb.2:
	callq	_calloc
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movl	(%rbx), %edx
	movl	8(%rbx), %esi
	shll	$2, %edx
	movq	%rax, %rdi
	callq	_memcpy
	movl	(%rbx), %eax
	jmp	LBB0_9
LBB0_4:
	movq	_PCAP_ERROR_NOT_ACTIVATED@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_5:
	callq	_malloc
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	4(%rbx), %ecx
	movl	%ecx, (%rax)
	movl	$1, %eax
	jmp	LBB0_9
LBB0_7:
	movl	12(%rbx), %edi
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	movl	$4, %esi
	callq	_pcap_fmt_errmsg_for_errno
	movq	_PCAP_ERROR@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCAP_ERROR_NOT_ACTIVATED,4,2   ## @PCAP_ERROR_NOT_ACTIVATED
	.comm	_errno,4,2                      ## @errno
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"malloc"

	.comm	_PCAP_ERROR,4,2                 ## @PCAP_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pcap_list_datalinks            ; -- Begin function pcap_list_datalinks
	.p2align	2
_pcap_list_datalinks:                   ; @pcap_list_datalinks
	.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
	ldr	w8, [x0, #16]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	w1, [x0]
	cbz	w1, LBB0_5
; %bb.2:
	mov	w0, #4
	bl	_calloc
	str	x0, [x20]
	cbz	x0, LBB0_7
; %bb.3:
	ldr	w1, [x19, #8]
	ldr	w8, [x19]
	lsl	w2, w8, #2
	bl	_memcpy
	ldr	w0, [x19]
	b	LBB0_9
LBB0_4:
Lloh0:
	adrp	x8, _PCAP_ERROR_NOT_ACTIVATED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCAP_ERROR_NOT_ACTIVATED@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
	mov	w0, #4
	bl	_malloc
	str	x0, [x20]
	cbz	x0, LBB0_7
; %bb.6:
	ldr	w8, [x19, #4]
	str	w8, [x0]
	mov	w0, #1
	b	LBB0_9
LBB0_7:
	ldr	w0, [x19, #12]
Lloh2:
	adrp	x8, _errno@GOTPAGE
Lloh3:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x3, l_.str@PAGE
Lloh6:
	add	x3, x3, l_.str@PAGEOFF
	mov	w1, #4
	bl	_pcap_fmt_errmsg_for_errno
Lloh7:
	adrp	x8, _PCAP_ERROR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PCAP_ERROR@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_PCAP_ERROR_NOT_ACTIVATED,4,2   ; @PCAP_ERROR_NOT_ACTIVATED
	.comm	_errno,4,2                      ; @errno
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"malloc"

	.comm	_PCAP_ERROR,4,2                 ; @PCAP_ERROR
.subsections_via_symbols
