	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ead_open_pcap
_ead_open_pcap:                         ## @ead_open_pcap
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	callq	_pcap_create
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	_PCAP_MRU@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_pcap_set_snaplen
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_pcap_set_promisc
	movq	_PCAP_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_pcap_set_timeout
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.3:
	movq	_ETH_P_IP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	movl	%eax, %esi
	movl	$10, %r15d
	jmp	LBB0_4
LBB0_2:
	xorl	%esi, %esi
	movl	$1, %r15d
LBB0_4:
	movq	%rbx, %rdi
	callq	_pcap_set_protocol_linux
	imull	(%r12), %r15d
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_pcap_set_buffer_size
	movq	%rbx, %rdi
	callq	_pcap_activate
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_set_recv_type
LBB0_5:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCAP_MRU,4,2                   ## @PCAP_MRU
	.comm	_PCAP_TIMEOUT,4,2               ## @PCAP_TIMEOUT
	.comm	_ETH_P_IP,4,2                   ## @ETH_P_IP
	.no_dead_strip	_ead_open_pcap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ead_open_pcap
_ead_open_pcap:                         ; @ead_open_pcap
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	bl	_pcap_create
	mov	x20, x0
	cbz	x0, LBB0_5
; %bb.1:
Lloh0:
	adrp	x21, _PCAP_MRU@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PCAP_MRU@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_pcap_set_snaplen
	mov	x0, x20
	mov	x1, x19
	bl	_pcap_set_promisc
Lloh2:
	adrp	x8, _PCAP_TIMEOUT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PCAP_TIMEOUT@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_pcap_set_timeout
	cbz	w19, LBB0_3
; %bb.2:
Lloh5:
	adrp	x8, _ETH_P_IP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ETH_P_IP@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_htons
	mov	x1, x0
	mov	w22, #10
	b	LBB0_4
LBB0_3:
	mov	w1, #0
	mov	w22, #1
LBB0_4:
	mov	x0, x20
	bl	_pcap_set_protocol_linux
	ldr	w8, [x21]
	mul	w1, w8, w22
	mov	x0, x20
	bl	_pcap_set_buffer_size
	mov	x0, x20
	bl	_pcap_activate
	mov	x0, x20
	mov	x1, x19
	bl	_set_recv_type
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PCAP_MRU,4,2                   ; @PCAP_MRU
	.comm	_PCAP_TIMEOUT,4,2               ; @PCAP_TIMEOUT
	.comm	_ETH_P_IP,4,2                   ; @ETH_P_IP
	.no_dead_strip	_ead_open_pcap
.subsections_via_symbols
