	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function usb_read_linux_mmap
_usb_read_linux_mmap:                   ## @usb_read_linux_mmap
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	%rsp, -88(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	32(%rdi), %r12
	movq	_VEC_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rax
	addq	$-24, %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	_errno@GOTPCREL(%rip), %r15
	xorl	%r13d, %r13d
	xorl	%edx, %edx
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_2 Depth 2
                                        ##     Child Loop BB0_11 Depth 2
	movl	%r14d, %eax
	subl	%r13d, %eax
	testl	%eax, %eax
	movq	_VEC_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmovlel	%ecx, %eax
	cmpl	%ecx, %eax
	cmovgel	%ecx, %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, -80(%rbp)
	movl	%eax, -72(%rbp)
	movl	%edx, -68(%rbp)
	.p2align	4, 0x90
LBB0_2:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	8(%rbx), %edi
	movq	_MON_IOCX_MFETCH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-80(%rbp), %rdx
	xorl	%eax, %eax
	callq	_ioctl
	cmpq	$0, 24(%rbx)
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=2
	movq	(%r15), %rdx
	cmpl	$-1, %eax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=2
	movq	_EINTR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	je	LBB0_2
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	testl	%eax, %eax
	js	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%r14d, -56(%rbp)                ## 4-byte Spill
	movl	%r13d, %r14d
	movl	-72(%rbp), %eax
	testl	%eax, %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	jle	LBB0_16
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	xorl	%r13d, %r13d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=2
	incl	(%r12)
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	leaq	-136(%rbp), %rsi
	movq	%r15, %rdx
	callq	*-96(%rbp)                      ## 8-byte Folded Reload
	incl	%r14d
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=2
	incq	%r13
	movslq	-72(%rbp), %rax
	cmpq	%rax, %r13
	jge	LBB0_16
LBB0_11:                                ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%r12), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%r13,8), %rcx
	cmpb	$64, (%rax,%rcx,4)
	je	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=2
	leaq	(%rax,%rcx,4), %r15
	movq	8(%r15), %rdx
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	cmpq	%rcx, %rdx
	cmovlq	%rdx, %rcx
	addq	$4, %rcx
	movq	%rcx, -128(%rbp)
	addq	$4, %rdx
	movq	%rdx, -136(%rbp)
	movl	20(%r15), %eax
	movl	%eax, -116(%rbp)
	movl	16(%r15), %eax
	movl	%eax, -120(%rbp)
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=2
	movq	%r15, %rsi
	callq	_bpf_filter
	testq	%rax, %rax
	jne	LBB0_14
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	-56(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edi
	callq	_PACKET_COUNT_IS_UNLIMITED
	testq	%rax, %rax
	movl	%r14d, %r13d
	movl	%r15d, %r14d
	movq	_errno@GOTPCREL(%rip), %r15
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpl	%r14d, %r13d
	jne	LBB0_1
LBB0_18:
	movl	8(%rbx), %edi
	movq	_MON_IOCH_MFLUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%eax, %eax
	callq	_ioctl
	cmpl	$-1, %eax
	jne	LBB0_21
## %bb.19:
	movl	8(%rbx), %r8d
	movl	12(%rbx), %edi
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r15), %rdx
	leaq	L_.str.1(%rip), %rcx
	jmp	LBB0_20
LBB0_3:
	movq	$0, 24(%rbx)
	movl	$-2, %r13d
LBB0_21:
	movq	-88(%rbp), %rsp                 ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_23
## %bb.22:
	movl	%r13d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	cmpq	(%rax), %rdx
	je	LBB0_21
## %bb.8:
	movl	8(%rbx), %r8d
	movl	12(%rbx), %edi
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
LBB0_20:
	callq	_pcap_fmt_errmsg_for_errno
	movl	$-1, %r13d
	jmp	LBB0_21
LBB0_23:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_VEC_SIZE,4,2                   ## @VEC_SIZE
	.comm	_MON_IOCX_MFETCH,4,2            ## @MON_IOCX_MFETCH
	.comm	_errno,8,3                      ## @errno
	.comm	_EINTR,8,3                      ## @EINTR
	.comm	_EAGAIN,8,3                     ## @EAGAIN
	.comm	_PCAP_ERRBUF_SIZE,4,2           ## @PCAP_ERRBUF_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't mfetch fd %d"

	.comm	_MON_IOCH_MFLUSH,4,2            ## @MON_IOCH_MFLUSH
L_.str.1:                               ## @.str.1
	.asciz	"Can't mflush fd %d"

	.no_dead_strip	_usb_read_linux_mmap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function usb_read_linux_mmap
_usb_read_linux_mmap:                   ; @usb_read_linux_mmap
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #96
	stp	x2, x3, [x29, #-144]            ; 16-byte Folded Spill
	mov	x28, x1
	mov	x19, x0
	mov	x24, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	x26, [x0, #32]
Lloh3:
	adrp	x12, _VEC_SIZE@GOTPAGE
Lloh4:
	ldr	x12, [x12, _VEC_SIZE@GOTPAGEOFF]
	ldr	w8, [x12]
	lsl	x8, x8, #3
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x25, x9, x8
	mov	sp, x25
	mov	w20, #0
	mov	w10, #0
	ldr	x8, [x0]
Lloh7:
	adrp	x27, _MON_IOCX_MFETCH@GOTPAGE
Lloh8:
	ldr	x27, [x27, _MON_IOCX_MFETCH@GOTPAGEOFF]
	sub	x23, x8, #24
	sub	x21, x29, #104
Lloh9:
	adrp	x22, _EINTR@GOTPAGE
Lloh10:
	ldr	x22, [x22, _EINTR@GOTPAGEOFF]
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_2 Depth 2
                                        ;     Child Loop BB0_9 Depth 2
	sub	w8, w28, w20
	ldr	w9, [x12]
	cmp	w8, #1
	csel	w8, w9, w8, lt
	stur	x25, [x29, #-104]
	cmp	w8, w9
	csel	w8, w8, w9, lt
	stp	w8, w10, [x29, #-96]
LBB0_2:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x19, #8]
	ldr	w1, [x27]
	str	x21, [sp, #-16]!
	bl	_ioctl
	add	sp, sp, #16
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_16
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=2
Lloh11:
	adrp	x8, _errno@GOTPAGE
Lloh12:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh13:
	ldr	x2, [x8]
	ldr	x8, [x22]
	cmn	w0, #1
	ccmp	x2, x8, #0, eq
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	tbnz	w0, #31, LBB0_19
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	stur	w28, [x29, #-156]               ; 4-byte Folded Spill
	stur	x24, [x29, #-152]               ; 8-byte Folded Spill
	ldur	w8, [x29, #-96]
	cmp	w8, #1
	stur	x8, [x29, #-168]                ; 8-byte Folded Spill
	b.lt	LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x28, #0
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=2
	ldr	w8, [x26]
	add	w8, w8, #1
	str	w8, [x26]
	sub	x1, x29, #128
	ldp	x8, x0, [x29, #-144]            ; 16-byte Folded Reload
	mov	x2, x24
	blr	x8
	add	w20, w20, #1
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=2
	add	x28, x28, #1
	ldursw	x8, [x29, #-96]
	cmp	x28, x8
	b.ge	LBB0_12
LBB0_9:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x26, #8]
	ldr	x9, [x25, x28, lsl #3]
	add	x24, x8, x9, lsl #2
	ldrb	w8, [x24]
	cmp	w8, #64
	b.eq	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	x8, [x24, #8]
	cmp	x8, x23
	csel	x9, x8, x23, lt
	add	x3, x9, #4
	add	x2, x8, #4
	stp	x2, x3, [x29, #-128]
	ldr	d0, [x24, #16]
	stur	d0, [x29, #-112]
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=2
	mov	x1, x24
	bl	_bpf_filter
	cbnz	x0, LBB0_7
	b	LBB0_8
LBB0_12:                                ;   in Loop: Header=BB0_1 Depth=1
	ldur	w28, [x29, #-156]               ; 4-byte Folded Reload
	mov	x0, x28
	bl	_PACKET_COUNT_IS_UNLIMITED
	ldur	x24, [x29, #-152]               ; 8-byte Folded Reload
Lloh14:
	adrp	x12, _VEC_SIZE@GOTPAGE
Lloh15:
	ldr	x12, [x12, _VEC_SIZE@GOTPAGEOFF]
	ldur	x10, [x29, #-168]               ; 8-byte Folded Reload
	cbnz	x0, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_1 Depth=1
	cmp	w20, w28
	b.ne	LBB0_1
LBB0_14:
	ldr	w0, [x19, #8]
Lloh16:
	adrp	x8, _MON_IOCH_MFLUSH@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MON_IOCH_MFLUSH@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	str	x10, [sp, #-16]!
	bl	_ioctl
	add	sp, sp, #16
	cmn	w0, #1
	b.ne	LBB0_17
; %bb.15:
Lloh19:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x8, _errno@GOTPAGE
Lloh23:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh24:
	ldr	x2, [x8]
	ldp	w4, w0, [x19, #8]
Lloh25:
	adrp	x3, l_.str.1@PAGE
Lloh26:
	add	x3, x3, l_.str.1@PAGEOFF
	b	LBB0_22
LBB0_16:
	str	xzr, [x19, #24]
	mov	w20, #-2
LBB0_17:
	mov	sp, x24
	ldur	x8, [x29, #-88]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.18:
	mov	x0, x20
	sub	sp, x29, #80
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_19:
Lloh30:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh31:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh32:
	ldr	x8, [x8]
	cmp	x2, x8
	b.ne	LBB0_21
; %bb.20:
	mov	w20, #0
	b	LBB0_17
LBB0_21:
Lloh33:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	ldp	w4, w0, [x19, #8]
Lloh36:
	adrp	x3, l_.str@PAGE
Lloh37:
	add	x3, x3, l_.str@PAGEOFF
LBB0_22:
	bl	_pcap_fmt_errmsg_for_errno
	mov	w20, #-1
	b	LBB0_17
LBB0_23:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_VEC_SIZE,4,2                   ; @VEC_SIZE
	.comm	_MON_IOCX_MFETCH,4,2            ; @MON_IOCX_MFETCH
	.comm	_errno,8,3                      ; @errno
	.comm	_EINTR,8,3                      ; @EINTR
	.comm	_EAGAIN,8,3                     ; @EAGAIN
	.comm	_PCAP_ERRBUF_SIZE,4,2           ; @PCAP_ERRBUF_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't mfetch fd %d"

	.comm	_MON_IOCH_MFLUSH,4,2            ; @MON_IOCH_MFLUSH
l_.str.1:                               ; @.str.1
	.asciz	"Can't mflush fd %d"

	.no_dead_strip	_usb_read_linux_mmap
.subsections_via_symbols
