	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function catc_rx_done
_catc_rx_done:                          ## @catc_rx_done
	.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
	movq	%rdi, %r15
	movq	24(%rdi), %r14
	movq	16(%rdi), %r12
	movl	(%rdi), %ebx
	cmpq	$0, 32(%r14)
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_2:
	movq	_RX_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_clear_bit
	movl	$2, %eax
LBB0_3:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testl	%ebx, %ebx
	je	LBB0_4
## %bb.16:
	movq	8(%r15), %rdi
	movl	4(%r15), %ecx
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_dbg                        ## TAILCALL
LBB0_4:
	cmpq	$0, 32(%r14)
	sete	%al
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	testb	$1, %al
	je	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rdi
	callq	_le16_to_cpup
	movl	%eax, %r13d
	cmpl	4(%r15), %eax
	jle	LBB0_12
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	4(%r15), %r13d
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	%r13d, %edi
	callq	_dev_alloc_skb
	testq	%rax, %rax
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %rbx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%r12,%rax,4), %rsi
	movq	%rbx, %rdi
	movl	%r13d, %edx
	callq	_skb_copy_to_linear_data
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_skb_put
	movq	8(%r14), %rsi
	movq	%rbx, %rdi
	callq	_eth_type_trans
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	_netif_rx
	movq	8(%r14), %rax
	incl	4(%rax)
	addl	%r13d, (%rax)
	cmpq	$0, 32(%r14)
	jne	LBB0_8
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	addl	$65, %r13d
	andl	$-64, %r13d
	movslq	%r13d, %rax
	leaq	(%r12,%rax,4), %r12
	movq	%r12, %rcx
	subq	16(%r15), %rcx
	sarq	$2, %rcx
	movslq	4(%r15), %rdx
	movb	$1, %al
	cmpq	%rdx, %rcx
	jl	LBB0_5
	jmp	LBB0_15
LBB0_7:
	movq	8(%r14), %rax
	incl	12(%rax)
	incl	8(%rax)
	cmpq	$0, 32(%r14)
	je	LBB0_15
LBB0_8:
	leaq	24(%r14), %rbx
	movq	%rbx, %rdi
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_17
## %bb.9:
	movq	%rbx, %rdi
	callq	_atomic_dec
	movq	8(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_netdev_dbg
	movq	16(%r14), %rax
	movq	%rax, 8(%r15)
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_usb_submit_urb
	testl	%eax, %eax
	js	LBB0_10
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	_RX_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_clear_bit                      ## TAILCALL
LBB0_10:
	movq	8(%r14), %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netdev_dbg                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RX_RUNNING,4,2                 ## @RX_RUNNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rx_done, status %d, length %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"getting extra packet\n"

	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
L_.str.2:                               ## @.str.2
	.asciz	"submit(rx_urb) status %d\n"

	.no_dead_strip	_catc_rx_done
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function catc_rx_done
_catc_rx_done:                          ; @catc_rx_done
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x0
	ldp	x21, x19, [x0, #16]
	ldr	w22, [x0]
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x24, #0
	cbz	w22, LBB0_4
LBB0_2:
	ldr	x0, [x20, #8]
	ldr	w3, [x20, #4]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	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
	add	sp, sp, #80
	b	_dev_dbg
LBB0_3:
Lloh2:
	adrp	x8, _RX_RUNNING@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RX_RUNNING@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_clear_bit
	mov	w24, #2
	cbnz	w22, LBB0_2
LBB0_4:
	ldr	x8, [x19, #32]
	cmp	x8, #0
	cset	w8, eq
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	tbz	w8, #0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	bl	_le16_to_cpup
	mov	x22, x0
	ldr	w8, [x20, #4]
	cmp	w0, w8
	b.le	LBB0_8
	b	LBB0_11
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w22, [x20, #4]
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	bl	_dev_alloc_skb
	cbz	x0, LBB0_15
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x23, x0
	add	x1, x21, x24, lsl #2
	mov	x2, x22
	bl	_skb_copy_to_linear_data
	mov	x0, x23
	mov	x1, x22
	bl	_skb_put
	ldr	x1, [x19, #8]
	mov	x0, x23
	bl	_eth_type_trans
	str	w0, [x23]
	mov	x0, x23
	bl	_netif_rx
	ldr	x8, [x19, #8]
	ldr	d0, [x8]
	movi.2s	v1, #1
	mov.s	v1[0], w22
	add.2s	v0, v0, v1
	str	d0, [x8]
	ldr	x8, [x19, #32]
	cbnz	x8, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	add	w8, w22, #65
	and	w8, w8, #0xffffffc0
	add	x21, x21, w8, sxtw #2
	ldr	x8, [x20, #16]
	sub	x9, x21, x8
	ldrsw	x10, [x20, #4]
	mov	w8, #1
	cmp	x10, x9, asr #2
	b.gt	LBB0_5
	b	LBB0_15
LBB0_11:
	ldr	x8, [x19, #8]
	ldr	d0, [x8, #8]
	movi.2s	v1, #1
	add.2s	v0, v0, v1
	str	d0, [x8, #8]
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_15
LBB0_12:
	add	x21, x19, #24
	mov	x0, x21
	bl	_atomic_read
	cbz	x0, LBB0_16
; %bb.13:
	mov	x0, x21
	bl	_atomic_dec
	ldr	x0, [x19, #8]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_netdev_dbg
	ldr	x8, [x19, #16]
	str	x8, [x20, #8]
Lloh7:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_usb_submit_urb
                                        ; kill: def $w0 killed $w0 def $x0
	tbz	w0, #31, LBB0_15
; %bb.14:
	ldr	x8, [x19, #8]
	str	x0, [sp]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x8
	bl	_netdev_dbg
LBB0_15:
	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
	add	sp, sp, #80
	ret
LBB0_16:
Lloh12:
	adrp	x8, _RX_RUNNING@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RX_RUNNING@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	x1, x19
	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
	add	sp, sp, #80
	b	_clear_bit
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_RX_RUNNING,4,2                 ; @RX_RUNNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rx_done, status %d, length %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"getting extra packet\n"

	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
l_.str.2:                               ; @.str.2
	.asciz	"submit(rx_urb) status %d\n"

	.no_dead_strip	_catc_rx_done
.subsections_via_symbols
