	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qca_tty_receive
_qca_tty_receive:                       ## @qca_tty_receive
	.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	%rdx, %rbx
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	callq	_serdev_device_get_drvdata
	movq	%rax, %r12
	movq	(%rax), %rdi
	movq	16(%rax), %r13
	testq	%rdi, %rdi
	jne	LBB0_3
## %bb.1:
	movq	_VLAN_ETH_HLEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r13), %rsi
	movq	%r13, %rdi
	callq	_netdev_alloc_skb_ip_align
	movq	%rax, %rdi
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_2
LBB0_3:
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.5:
	movq	%r12, %r14
	addq	$8, %r14
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	leaq	-1(%rbx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	12(%rdi), %r15d
	callq	_skb_tailroom
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movzbl	(%rcx,%rbx), %ecx
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_qcafrm_fsm_decode
                                        ## kill: def $eax killed $eax def $rax
	leal	-128(%rax), %ecx
	cmpl	$3, %ecx
	ja	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rax
	addq	%rdx, %rax
	leaq	L_.str(%rip), %rsi
	jmpq	*%rax
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	leaq	L_.str.1(%rip), %rsi
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdi
	callq	_netdev_dbg
	incl	12(%r13)
	incl	20(%r13)
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	incl	16(%r13)
	addl	%eax, 8(%r13)
	movq	(%r12), %rdi
	movl	%eax, %esi
	callq	_skb_put
	movq	(%r12), %rdi
	movl	4(%rdi), %esi
	callq	_eth_type_trans
	movq	(%r12), %rdi
	movl	%eax, 8(%rdi)
	movq	_CHECKSUM_UNNECESSARY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rdi)
	callq	_netif_rx_ni
	movq	_VLAN_ETH_HLEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r13), %rsi
	movq	%r13, %rdi
	callq	_netdev_alloc_skb_ip_align
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_9
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpq	%rbx, -56(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r12), %rdi
	incq	%rbx
	jmp	LBB0_6
LBB0_14:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
                                        ## kill: def $ebx killed $ebx killed $rbx def $rbx
	jmp	LBB0_15
LBB0_4:
	xorl	%ebx, %ebx
	jmp	LBB0_15
LBB0_2:
	incl	12(%r13)
	incl	20(%r13)
	xorl	%ebx, %ebx
	jmp	LBB0_15
LBB0_9:
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	callq	_netdev_dbg
	incl	12(%r13)
LBB0_15:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_12
	.long	L0_0_set_10
	.long	L0_0_set_12
	.end_data_region
                                        ## -- End function
	.comm	_VLAN_ETH_HLEN,8,3              ## @VLAN_ETH_HLEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"recv: no RX tail\n"

L_.str.1:                               ## @.str.1
	.asciz	"recv: invalid RX length\n"

	.comm	_CHECKSUM_UNNECESSARY,4,2       ## @CHECKSUM_UNNECESSARY
L_.str.2:                               ## @.str.2
	.asciz	"recv: out of RX resources\n"

	.no_dead_strip	_qca_tty_receive
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qca_tty_receive
_qca_tty_receive:                       ; @qca_tty_receive
	.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
	mov	x20, x2
	mov	x21, x1
	bl	_serdev_device_get_drvdata
	mov	x22, x0
	ldr	x19, [x0, #16]
	ldr	x0, [x0]
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _VLAN_ETH_HLEN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VLAN_ETH_HLEN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x19
	bl	_netdev_alloc_skb_ip_align
	str	x0, [x22]
	cbz	x0, LBB0_13
LBB0_2:
	cbz	x20, LBB0_12
; %bb.3:
	mov	x23, #0
	add	x24, x22, #8
	sub	x26, x20, #1
Lloh3:
	adrp	x27, l_.str@PAGE
Lloh4:
	add	x27, x27, l_.str@PAGEOFF
Lloh5:
	adrp	x28, lJTI0_0@PAGE
Lloh6:
	add	x28, x28, lJTI0_0@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w25, [x0, #12]
	bl	_skb_tailroom
	mov	x2, x0
	ldrb	w3, [x21, x23]
	mov	x0, x24
	mov	x1, x25
	bl	_qcafrm_fsm_decode
	sub	w8, w0, #128
	cmp	w8, #3
	b.hi	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	adr	x9, LBB0_6
	ldrb	w10, [x28, x8]
	add	x9, x9, x10, lsl #2
	mov	x1, x27
	br	x9
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_netdev_dbg
	ldr	w8, [x19, #12]
	add	w8, w8, #1
	str	w8, [x19, #12]
	ldr	w8, [x19, #20]
	add	w8, w8, #1
	str	w8, [x19, #20]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x1, x0
	ldr	w8, [x19, #16]
	add	w8, w8, #1
	str	w8, [x19, #16]
	ldr	w8, [x19, #8]
	add	w8, w8, w0
	str	w8, [x19, #8]
	ldr	x0, [x22]
	bl	_skb_put
	ldr	x0, [x22]
	ldr	w1, [x0, #4]
	bl	_eth_type_trans
	ldr	x8, [x22]
	str	w0, [x8, #8]
Lloh9:
	adrp	x9, _CHECKSUM_UNNECESSARY@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CHECKSUM_UNNECESSARY@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	str	w9, [x8]
	mov	x0, x8
	bl	_netif_rx_ni
	ldr	x8, [x19]
Lloh12:
	adrp	x9, _VLAN_ETH_HLEN@GOTPAGE
Lloh13:
	ldr	x9, [x9, _VLAN_ETH_HLEN@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x19
	bl	_netdev_alloc_skb_ip_align
	str	x0, [x22]
	cbz	x0, LBB0_14
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	x26, x23
	b.eq	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x22]
	add	x23, x23, #1
	b	LBB0_4
LBB0_11:
	mov	x23, x20
	b	LBB0_15
LBB0_12:
	mov	w23, #0
	b	LBB0_15
LBB0_13:
	mov	w23, #0
	ldr	w8, [x19, #12]
	add	w8, w8, #1
	str	w8, [x19, #12]
	ldr	w8, [x19, #20]
	add	w8, w8, #1
	str	w8, [x19, #20]
	b	LBB0_15
LBB0_14:
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_netdev_dbg
	ldr	w8, [x19, #12]
	add	w8, w8, #1
	str	w8, [x19, #12]
LBB0_15:
	mov	x0, x23
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_6)>>2
	.byte	(LBB0_9-LBB0_6)>>2
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_9-LBB0_6)>>2
                                        ; -- End function
	.comm	_VLAN_ETH_HLEN,8,3              ; @VLAN_ETH_HLEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"recv: no RX tail\n"

l_.str.1:                               ; @.str.1
	.asciz	"recv: invalid RX length\n"

	.comm	_CHECKSUM_UNNECESSARY,4,2       ; @CHECKSUM_UNNECESSARY
l_.str.2:                               ; @.str.2
	.asciz	"recv: out of RX resources\n"

	.no_dead_strip	_qca_tty_receive
.subsections_via_symbols
