	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pcap_open_live                 ## -- Begin function pcap_open_live
	.p2align	4, 0x90
_pcap_open_live:                        ## @pcap_open_live
	.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	%r8, %r15
	movl	%ecx, %r13d
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	%r8, %rsi
	callq	_pcap_create
	testq	%rax, %rax
	je	LBB0_14
## %bb.1:
	movq	%rax, %r12
	movq	%rax, %rdi
	movl	%ebx, %esi
	callq	_pcap_set_snaplen
	testl	%eax, %eax
	js	LBB0_5
## %bb.2:
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_pcap_set_promisc
	testl	%eax, %eax
	js	LBB0_5
## %bb.3:
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_pcap_set_timeout
	testl	%eax, %eax
	js	LBB0_5
## %bb.4:
	movl	$1, (%r12)
	movq	%r12, %rdi
	callq	_pcap_activate
	testl	%eax, %eax
	jns	LBB0_15
LBB0_5:
	movl	%eax, %ebx
	movq	_PCAP_ERROR@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_7
## %bb.6:
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r12), %r8d
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	jmp	LBB0_12
LBB0_7:
	movq	_PCAP_ERROR_NO_SUCH_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_PCAP_ERROR_PERM_DENIED@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_PCAP_ERROR_PROMISC_PERM_DENIED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_pcap_statustostr
	cmpl	%r14d, %ebx
	je	LBB0_10
## %bb.8:
	cmpl	%r13d, %ebx
	je	LBB0_10
## %bb.9:
	cmpl	-60(%rbp), %ebx                 ## 4-byte Folded Reload
	je	LBB0_10
## %bb.11:
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, %r8d
LBB0_12:
	xorl	%eax, %eax
	callq	_pcap_snprintf
	jmp	LBB0_13
LBB0_10:
	movl	4(%r12), %r9d
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_pcap_snprintf
LBB0_13:
	movq	%r12, %rdi
	callq	_pcap_close
LBB0_14:
	xorl	%r12d, %r12d
LBB0_15:
	movq	%r12, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCAP_ERROR,4,2                 ## @PCAP_ERROR
	.comm	_PCAP_ERRBUF_SIZE,4,2           ## @PCAP_ERRBUF_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: %s"

	.comm	_PCAP_ERROR_NO_SUCH_DEVICE,4,2  ## @PCAP_ERROR_NO_SUCH_DEVICE
	.comm	_PCAP_ERROR_PERM_DENIED,4,2     ## @PCAP_ERROR_PERM_DENIED
	.comm	_PCAP_ERROR_PROMISC_PERM_DENIED,4,2 ## @PCAP_ERROR_PROMISC_PERM_DENIED
L_.str.1:                               ## @.str.1
	.asciz	"%s: %s (%s)"

	.comm	_PCAP_BUF_SIZE,4,2              ## @PCAP_BUF_SIZE
	.comm	_PCAP_OPENFLAG_PROMISCUOUS,4,2  ## @PCAP_OPENFLAG_PROMISCUOUS
	.comm	_PCAP_SRC_FILE,4,2              ## @PCAP_SRC_FILE
	.comm	_PCAP_SRC_IFLOCAL,4,2           ## @PCAP_SRC_IFLOCAL
	.comm	_PCAP_SRC_IFREMOTE,4,2          ## @PCAP_SRC_IFREMOTE
	.comm	_PCAP_SRC_IF_STRING,8,3         ## @PCAP_SRC_IF_STRING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pcap_open_live                 ; -- Begin function pcap_open_live
	.p2align	2
_pcap_open_live:                        ; @pcap_open_live
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x4
	mov	x23, x3
	mov	x24, x2
	mov	x22, x1
	mov	x21, x0
	mov	x1, x4
	bl	_pcap_create
	mov	x19, x0
	cbz	x0, LBB0_12
; %bb.1:
	mov	x0, x19
	mov	x1, x22
	bl	_pcap_set_snaplen
	tbnz	w0, #31, LBB0_5
; %bb.2:
	mov	x0, x19
	mov	x1, x24
	bl	_pcap_set_promisc
	tbnz	w0, #31, LBB0_5
; %bb.3:
	mov	x0, x19
	mov	x1, x23
	bl	_pcap_set_timeout
	tbnz	w0, #31, LBB0_5
; %bb.4:
	mov	w8, #1
	str	w8, [x19]
	mov	x0, x19
	bl	_pcap_activate
	tbz	w0, #31, LBB0_12
LBB0_5:
	mov	x22, x0
Lloh0:
	adrp	x8, _PCAP_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCAP_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_7
; %bb.6:
Lloh3:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	w8, [x19, #4]
	stp	x21, x8, [sp]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	b	LBB0_11
LBB0_7:
Lloh8:
	adrp	x8, _PCAP_ERROR_NO_SUCH_DEVICE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PCAP_ERROR_NO_SUCH_DEVICE@GOTPAGEOFF]
Lloh10:
	ldr	w24, [x8]
Lloh11:
	adrp	x8, _PCAP_ERROR_PERM_DENIED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PCAP_ERROR_PERM_DENIED@GOTPAGEOFF]
Lloh13:
	ldr	w25, [x8]
Lloh14:
	adrp	x8, _PCAP_ERROR_PROMISC_PERM_DENIED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PCAP_ERROR_PROMISC_PERM_DENIED@GOTPAGEOFF]
Lloh16:
	ldr	w26, [x8]
Lloh17:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh19:
	ldr	w23, [x8]
	mov	x0, x22
	bl	_pcap_statustostr
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w22, w24
	ccmp	w22, w25, #4, ne
	ccmp	w22, w26, #4, ne
	b.ne	LBB0_9
; %bb.8:
	ldr	w8, [x19, #4]
	stp	x0, x8, [sp, #8]
	str	x21, [sp]
Lloh20:
	adrp	x2, l_.str.1@PAGE
Lloh21:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_9:
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
	stp	x21, x0, [sp]
Lloh22:
	adrp	x2, l_.str@PAGE
Lloh23:
	add	x2, x2, l_.str@PAGEOFF
LBB0_10:
	mov	x0, x20
	mov	x1, x23
LBB0_11:
	bl	_pcap_snprintf
	mov	x0, x19
	bl	_pcap_close
	mov	x19, #0
LBB0_12:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_PCAP_ERROR,4,2                 ; @PCAP_ERROR
	.comm	_PCAP_ERRBUF_SIZE,4,2           ; @PCAP_ERRBUF_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: %s"

	.comm	_PCAP_ERROR_NO_SUCH_DEVICE,4,2  ; @PCAP_ERROR_NO_SUCH_DEVICE
	.comm	_PCAP_ERROR_PERM_DENIED,4,2     ; @PCAP_ERROR_PERM_DENIED
	.comm	_PCAP_ERROR_PROMISC_PERM_DENIED,4,2 ; @PCAP_ERROR_PROMISC_PERM_DENIED
l_.str.1:                               ; @.str.1
	.asciz	"%s: %s (%s)"

	.comm	_PCAP_BUF_SIZE,4,2              ; @PCAP_BUF_SIZE
	.comm	_PCAP_OPENFLAG_PROMISCUOUS,4,2  ; @PCAP_OPENFLAG_PROMISCUOUS
	.comm	_PCAP_SRC_FILE,4,2              ; @PCAP_SRC_FILE
	.comm	_PCAP_SRC_IFLOCAL,4,2           ; @PCAP_SRC_IFLOCAL
	.comm	_PCAP_SRC_IFREMOTE,4,2          ; @PCAP_SRC_IFREMOTE
	.comm	_PCAP_SRC_IF_STRING,8,3         ; @PCAP_SRC_IF_STRING
.subsections_via_symbols
