	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_block
_read_block:                            ## @read_block
	.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	%rcx, %r15
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	24(%rsi), %r14
	leaq	-48(%rbp), %rsi
	movl	$8, %edx
	xorl	%ecx, %ecx
	movq	%r15, %r8
	callq	_read_bytes
	testl	%eax, %eax
	jle	LBB0_4
## %bb.1:
	cmpq	$0, 16(%r13)
	je	LBB0_5
## %bb.2:
	movl	-48(%rbp), %edi
	callq	_SWAPLONG
	movl	%eax, -48(%rbp)
	movl	-44(%rbp), %edi
	callq	_SWAPLONG
	movq	%rax, %rcx
	movl	%ecx, -44(%rbp)
	cmpl	$16777217, %ecx                 ## imm = 0x1000001
	jl	LBB0_6
LBB0_3:
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
                                        ## kill: def $ecx killed $ecx killed $rcx
	movl	$16777216, %r8d                 ## imm = 0x1000000
	xorl	%eax, %eax
	callq	_pcap_snprintf
	jmp	LBB0_18
LBB0_4:
	movl	%eax, %ebx
	jmp	LBB0_19
LBB0_5:
	movl	-44(%rbp), %ecx
	cmpl	$16777217, %ecx                 ## imm = 0x1000001
	jge	LBB0_3
LBB0_6:
	cmpl	$11, %ecx
	ja	LBB0_8
## %bb.7:
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movl	$12, %r8d
	movq	%r15, %rdi
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%eax, %eax
	callq	_pcap_snprintf
LBB0_18:
	movl	$-1, %ebx
LBB0_19:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	cmpl	%ecx, (%r13)
	jge	LBB0_11
## %bb.9:
	movl	(%r14), %eax
	cmpl	%eax, %ecx
	jle	LBB0_12
## %bb.10:
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r15, %rdi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_pcap_snprintf
	jmp	LBB0_18
LBB0_11:
	movq	8(%r13), %rdi
	jmp	LBB0_14
LBB0_12:
	movq	8(%r13), %rdi
	movl	%ecx, %esi
	callq	_realloc
	testq	%rax, %rax
	je	LBB0_17
## %bb.13:
	movq	%rax, %rdi
	movq	%rax, 8(%r13)
LBB0_14:
	leaq	-48(%rbp), %rsi
	movl	$8, %edx
	callq	_memcpy
	movq	8(%r13), %r13
	addq	$64, %r13
	movslq	-44(%rbp), %r14
	leaq	-8(%r14), %rdx
	movl	$1, %ebx
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	$1, %ecx
	movq	%r15, %r8
	callq	_read_bytes
	cmpl	$-1, %eax
	je	LBB0_18
## %bb.15:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%r13, 16(%rcx)
	addq	$-12, %r14
	movq	%r14, (%rcx)
	movl	-48(%rbp), %eax
	movl	%eax, 8(%rcx)
	jmp	LBB0_19
LBB0_17:
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_pcap_snprintf
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_PCAP_ERRBUF_SIZE,4,2           ## @PCAP_ERRBUF_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pcapng block size %u > maximum %u"

L_.str.1:                               ## @.str.1
	.asciz	"block in pcapng dump file has a length of %u < %lu"

L_.str.2:                               ## @.str.2
	.asciz	"block is larger than maximum block size %u"

L_.str.3:                               ## @.str.3
	.asciz	"out of memory"

	.no_dead_strip	_read_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_block
_read_block:                            ; @read_block
	.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, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	ldr	x23, [x1, #24]
	add	x1, sp, #24
	mov	w2, #8
	mov	w3, #0
	mov	x4, x19
	bl	_read_bytes
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.1:
	ldr	x8, [x22, #16]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w0, [sp, #24]
	bl	_SWAPLONG
	str	w0, [sp, #24]
	ldr	w0, [sp, #28]
	bl	_SWAPLONG
	mov	x8, x0
	str	w8, [sp, #28]
	b	LBB0_4
LBB0_3:
	ldr	w8, [sp, #28]
LBB0_4:
	mov	w9, #1
	movk	w9, #256, lsl #16
	cmp	w8, w9
	b.lt	LBB0_6
; %bb.5:
Lloh0:
	adrp	x9, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	mov	w9, #16777216
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	stp	x8, x9, [sp]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_8
LBB0_6:
	cmp	w8, #11
	b.hi	LBB0_10
; %bb.7:
Lloh5:
	adrp	x9, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x9]
	mov	w9, #12
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	stp	x8, x9, [sp]
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_8:
	mov	x0, x19
	bl	_pcap_snprintf
	mov	w0, #-1
LBB0_9:
	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_10:
	ldr	w9, [x22]
	cmp	w9, w8
	b.ge	LBB0_13
; %bb.11:
	ldr	w9, [x23]
	cmp	w8, w9
	b.le	LBB0_14
; %bb.12:
Lloh10:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	str	x9, [sp]
Lloh13:
	adrp	x2, l_.str.2@PAGE
Lloh14:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_8
LBB0_13:
	ldr	x0, [x22, #8]
	b	LBB0_16
LBB0_14:
	ldr	x0, [x22, #8]
	mov	x1, x8
	bl	_realloc
	cbz	x0, LBB0_18
; %bb.15:
	str	x0, [x22, #8]
LBB0_16:
	add	x1, sp, #24
	mov	w2, #8
	bl	_memcpy
	ldr	x8, [x22, #8]
	add	x22, x8, #64
	ldrsw	x23, [sp, #28]
	sub	x2, x23, #8
	mov	x0, x21
	mov	x1, x22
	mov	w3, #1
	mov	x4, x19
	bl	_read_bytes
	cmn	w0, #1
	b.eq	LBB0_9
; %bb.17:
	str	x22, [x20, #16]
	sub	x8, x23, #12
	str	x8, [x20]
	ldr	w8, [sp, #24]
	str	w8, [x20, #8]
	mov	w0, #1
	b	LBB0_9
LBB0_18:
Lloh15:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x2, l_.str.3@PAGE
Lloh19:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_8
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_PCAP_ERRBUF_SIZE,4,2           ; @PCAP_ERRBUF_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pcapng block size %u > maximum %u"

l_.str.1:                               ; @.str.1
	.asciz	"block in pcapng dump file has a length of %u < %lu"

l_.str.2:                               ; @.str.2
	.asciz	"block is larger than maximum block size %u"

l_.str.3:                               ; @.str.3
	.asciz	"out of memory"

	.no_dead_strip	_read_block
.subsections_via_symbols
