	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pcap_dump_open                 ## -- Begin function pcap_dump_open
	.p2align	4, 0x90
_pcap_dump_open:                        ## @pcap_dump_open
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	cmpl	$0, 12(%rdi)
	je	LBB0_1
## %bb.2:
	movl	8(%rbx), %edi
	callq	_dlt_to_linktype
	cmpl	$-1, %eax
	je	LBB0_3
## %bb.4:
	testq	%r14, %r14
	je	LBB0_5
## %bb.6:
	movl	%eax, %r15d
	orl	(%rbx), %r15d
	cmpb	$45, (%r14)
	jne	LBB0_10
## %bb.7:
	cmpb	$0, 1(%r14)
	je	LBB0_8
LBB0_10:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_fopen
	testq	%rax, %rax
	jne	LBB0_9
## %bb.11:
	movl	4(%rbx), %edi
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.5(%rip), %rcx
	movq	%r14, %r8
	callq	_pcap_fmt_errmsg_for_errno
	jmp	LBB0_12
LBB0_1:
	movl	4(%rbx), %edi
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rcx
	xorl	%eax, %eax
	callq	_pcap_snprintf
	jmp	LBB0_12
LBB0_3:
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%rbx), %edi
	movl	8(%rbx), %r8d
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rcx
	xorl	%eax, %eax
	callq	_pcap_snprintf
	jmp	LBB0_12
LBB0_5:
	movl	4(%rbx), %edi
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	xorl	%eax, %eax
	callq	_pcap_snprintf
LBB0_12:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_stdout@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	L_.str.3(%rip), %r14
LBB0_9:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movq	%rax, %rdx
	movq	%r14, %rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pcap_setup_dump                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PCAP_ERRBUF_SIZE,4,2           ## @PCAP_ERRBUF_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: not-yet-activated pcap_t passed to pcap_dump_open"

L_.str.1:                               ## @.str.1
	.asciz	"%s: link-layer type %d isn't supported in savefiles"

L_.str.2:                               ## @.str.2
	.asciz	"A null pointer was supplied as the file name"

	.comm	_stdout,8,3                     ## @stdout
L_.str.3:                               ## @.str.3
	.asciz	"standard output"

L_.str.4:                               ## @.str.4
	.asciz	"wb"

	.comm	_errno,4,2                      ## @errno
L_.str.5:                               ## @.str.5
	.asciz	"%s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pcap_dump_open                 ; -- Begin function pcap_dump_open
	.p2align	2
_pcap_dump_open:                        ; @pcap_dump_open
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x0, #12]
	cbz	w8, LBB0_7
; %bb.1:
	ldr	w0, [x20, #8]
	bl	_dlt_to_linktype
	cmn	w0, #1
	b.eq	LBB0_8
; %bb.2:
	cbz	x19, LBB0_9
; %bb.3:
	mov	x21, x0
	ldr	w22, [x20]
	ldrb	w8, [x19]
	cmp	w8, #45
	b.ne	LBB0_5
; %bb.4:
	ldrb	w8, [x19, #1]
	cbz	w8, LBB0_12
LBB0_5:
Lloh0:
	adrp	x1, l_.str.4@PAGE
Lloh1:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_fopen
	cbz	x0, LBB0_10
; %bb.6:
	mov	x2, x0
	b	LBB0_13
LBB0_7:
	ldr	w0, [x20, #4]
Lloh2:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	str	x19, [sp]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	bl	_pcap_snprintf
	b	LBB0_11
LBB0_8:
Lloh7:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	ldp	w0, w8, [x20, #4]
	stp	x19, x8, [sp]
Lloh10:
	adrp	x2, l_.str.1@PAGE
Lloh11:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_pcap_snprintf
	b	LBB0_11
LBB0_9:
	ldr	w0, [x20, #4]
Lloh12:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x2, l_.str.2@PAGE
Lloh16:
	add	x2, x2, l_.str.2@PAGEOFF
	bl	_pcap_snprintf
	b	LBB0_11
LBB0_10:
	ldr	w0, [x20, #4]
Lloh17:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x8, _errno@GOTPAGE
Lloh21:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
Lloh23:
	adrp	x3, l_.str.5@PAGE
Lloh24:
	add	x3, x3, l_.str.5@PAGEOFF
	mov	x4, x19
	bl	_pcap_fmt_errmsg_for_errno
LBB0_11:
	mov	x0, #0
	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
	add	sp, sp, #64
	ret
LBB0_12:
Lloh25:
	adrp	x8, _stdout@GOTPAGE
Lloh26:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh27:
	ldr	x2, [x8]
Lloh28:
	adrp	x19, l_.str.3@PAGE
Lloh29:
	add	x19, x19, l_.str.3@PAGEOFF
LBB0_13:
	orr	w1, w22, w21
	mov	x0, x20
	mov	x3, 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
	add	sp, sp, #64
	b	_pcap_setup_dump
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_PCAP_ERRBUF_SIZE,4,2           ; @PCAP_ERRBUF_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: not-yet-activated pcap_t passed to pcap_dump_open"

l_.str.1:                               ; @.str.1
	.asciz	"%s: link-layer type %d isn't supported in savefiles"

l_.str.2:                               ; @.str.2
	.asciz	"A null pointer was supplied as the file name"

	.comm	_stdout,8,3                     ; @stdout
l_.str.3:                               ; @.str.3
	.asciz	"standard output"

l_.str.4:                               ; @.str.4
	.asciz	"wb"

	.comm	_errno,4,2                      ; @errno
l_.str.5:                               ; @.str.5
	.asciz	"%s"

.subsections_via_symbols
