	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function em28xx_urb_data_copy
_em28xx_urb_data_copy:                  ## @em28xx_urb_data_copy
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	testq	%rdi, %rdi
	je	LBB0_20
## %bb.1:
	movq	%rdi, %r14
	cmpq	$0, 16(%rdi)
	jne	LBB0_20
## %bb.2:
	movq	%rsi, %r13
	movq	(%rsi), %rdx
	testq	%rdx, %rdx
	jns	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	movl	$-1, %esi
	callq	_print_err_status
LBB0_4:
	movl	32(%r13), %edi
	callq	_usb_pipebulk
	movl	$1, %ecx
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movl	8(%r13), %ecx
	testl	%ecx, %ecx
	jle	LBB0_19
LBB0_6:
	movl	%ecx, %r12d
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_17:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%r14, %rdi
	callq	_process_frame_data_em28xx
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	addq	$16, %r15
	cmpq	%rbx, %r12
	je	LBB0_19
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	12(%r13), %edx
	movq	16(%r13), %rsi
	testl	%edx, %edx
	je	LBB0_18
LBB0_15:                                ##   in Loop: Header=BB0_7 Depth=1
	cmpq	$0, 8(%r14)
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%r14, %rdi
	callq	_process_frame_data_em25xx
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	24(%r13), %rax
	movq	(%rax,%r15), %rdx
	testq	%rdx, %rdx
	jns	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_print_err_status
	movq	24(%r13), %rax
	movq	(%rax,%r15), %rcx
	movq	_EPROTO@GOTPCREL(%rip), %rdx
	addq	(%rdx), %rcx
	jne	LBB0_18
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	8(%rax,%r15), %edx
	cmpl	(%r14), %edx
	jbe	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	leaq	L_.str(%rip), %rdi
	callq	_em28xx_isocdbg
	jmp	LBB0_18
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=1
	movslq	12(%rax,%r15), %rsi
	addq	16(%r13), %rsi
	testl	%edx, %edx
	jne	LBB0_15
	jmp	LBB0_18
LBB0_19:
	movl	$1, %eax
LBB0_20:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EPROTO,8,3                     ## @EPROTO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"packet bigger than packet size"

	.no_dead_strip	_em28xx_urb_data_copy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function em28xx_urb_data_copy
_em28xx_urb_data_copy:                  ; @em28xx_urb_data_copy
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	cbz	x0, LBB0_21
; %bb.1:
	mov	x20, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_3
; %bb.2:
	mov	w0, #0
	b	LBB0_21
LBB0_3:
	mov	x19, x1
	ldr	x2, [x1]
	tbz	x2, #63, LBB0_5
; %bb.4:
	mov	x0, x20
	mov	w1, #-1
	bl	_print_err_status
LBB0_5:
	ldr	w0, [x19, #32]
	bl	_usb_pipebulk
	mov	x21, x0
	cbz	w0, LBB0_7
; %bb.6:
	mov	w8, #1
	b	LBB0_8
LBB0_7:
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_20
LBB0_8:
	mov	x24, #0
	mov	x22, #0
	mov	w25, w8
Lloh0:
	adrp	x26, _EPROTO@GOTPAGE
Lloh1:
	ldr	x26, [x26, _EPROTO@GOTPAGEOFF]
Lloh2:
	adrp	x23, l_.str@PAGE
Lloh3:
	add	x23, x23, l_.str@PAGEOFF
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x20
	bl	_process_frame_data_em28xx
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x22, x22, #1
	add	x24, x24, #16
	cmp	x25, x22
	b.eq	LBB0_20
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	cbz	w21, LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w2, [x19, #12]
	ldr	x1, [x19, #16]
	cbz	w2, LBB0_10
LBB0_13:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_9
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x20
	bl	_process_frame_data_em25xx
	b	LBB0_10
LBB0_15:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x19, #24]
	ldr	x2, [x8, x24]
	tbz	x2, #63, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_print_err_status
	ldr	x8, [x19, #24]
	ldr	x9, [x8, x24]
	ldr	x10, [x26]
	cmn	x9, x10
	b.ne	LBB0_10
LBB0_17:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x8, x8, x24
	ldr	w2, [x8, #8]
	ldr	w9, [x20]
	cmp	w2, w9
	b.ls	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x23
	bl	_em28xx_isocdbg
	b	LBB0_10
LBB0_19:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	x9, [x19, #16]
	ldrsw	x8, [x8, #12]
	add	x1, x9, x8
	cbnz	w2, LBB0_13
	b	LBB0_10
LBB0_20:
	mov	w0, #1
LBB0_21:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_EPROTO,8,3                     ; @EPROTO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"packet bigger than packet size"

	.no_dead_strip	_em28xx_urb_data_copy
.subsections_via_symbols
