	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function carl9170_rx_stream
_carl9170_rx_stream:                    ## @carl9170_rx_stream
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	xorl	%r12d, %r12d
	movl	$0, %r13d
	movl	%edx, %ebx
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	cmpl	$4, %edx
	jb	LBB0_19
## %bb.1:
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	16(%r15), %edi
	callq	_le16_to_cpu
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%eax, %edi
	movl	$4, %esi
	callq	_ALIGN
	movl	%eax, %r12d
	movq	(%r15), %r13
	movq	_AR9170_RX_STREAM_TAG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	cmpq	%rax, %r13
	jne	LBB0_3
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	leal	-4(%rbx), %eax
	cmpl	%eax, %r12d
	ja	LBB0_14
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r15), %rsi
	movq	%r14, %rdi
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %edx
	callq	___carl9170_rx
	movl	%r12d, %eax
	addl	$4, %eax
	leaq	(%r15,%rax,4), %r15
	subl	%eax, %ebx
	cmpl	$3, %ebx
	ja	LBB0_2
LBB0_19:
	testl	%ebx, %ebx
	je	LBB0_27
## %bb.20:
	xorl	%eax, %eax
	callq	_net_ratelimit
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:
	movq	16(%r14), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_wiphy_err
	jmp	LBB0_22
LBB0_3:
	movl	(%r14), %eax
	testl	%eax, %eax
	je	LBB0_4
## %bb.7:
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	cmpl	%r13d, %eax
	jbe	LBB0_11
## %bb.8:
	xorl	%eax, %eax
	callq	_net_ratelimit
	testq	%rax, %rax
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	je	LBB0_25
## %bb.9:
	movq	16(%r14), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_10
LBB0_14:
	cmpl	$0, (%r14)
	je	LBB0_17
## %bb.15:
	xorl	%eax, %eax
	callq	_net_ratelimit
	testq	%rax, %rax
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	je	LBB0_25
## %bb.16:
	movq	16(%r14), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
LBB0_10:
	xorl	%eax, %eax
	callq	_wiphy_err
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_22:
	movq	16(%r14), %rax
	movl	(%rax), %edi
	movl	(%r14), %r9d
	leaq	L_.str.4(%rip), %rsi
	movl	%r13d, %edx
	movl	%r12d, %ecx
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_wiphy_err
	cmpl	$0, (%r14)
	je	LBB0_24
## %bb.23:
	movq	_DUMP_PREFIX_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%r14), %rax
	movq	(%rax), %rdx
	movl	8(%rax), %ecx
	leaq	L_.str.5(%rip), %rdi
	callq	_print_hex_dump_bytes
LBB0_24:
	movq	_DUMP_PREFIX_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.6(%rip), %rdi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	callq	_print_hex_dump_bytes
	movq	16(%r14), %rax
	movl	(%rax), %edi
	leaq	L_.str.7(%rip), %rsi
	xorl	%eax, %eax
	callq	_wiphy_err
LBB0_25:
	cmpl	$0, (%r14)
	je	LBB0_27
## %bb.26:
	movq	8(%r14), %rdi
	callq	_skb_reset_tail_pointer
	movq	8(%r14), %rdi
	xorl	%esi, %esi
	callq	_skb_trim
	movl	$0, (%r14)
LBB0_27:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	xorl	%eax, %eax
	callq	_net_ratelimit
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	16(%r14), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wiphy_err
LBB0_6:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	___carl9170_rx                  ## TAILCALL
LBB0_17:
	movq	8(%r14), %rdi
	movq	%r15, %rsi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_skb_put_data
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	subl	%ebx, %r12d
	movl	%r12d, (%r14)
	jmp	LBB0_27
LBB0_11:
	movq	8(%r14), %rdi
	movq	%r15, %rsi
	movl	%r13d, %edx
	callq	_skb_put_data
	subl	%r13d, (%r14)
	jne	LBB0_27
## %bb.12:
	movl	$0, (%r14)
	movq	8(%r14), %rax
	movq	(%rax), %rsi
	movl	8(%rax), %edx
	movq	%r14, %rdi
	callq	_carl9170_rx_stream
	movq	8(%r14), %rdi
	callq	_skb_reset_tail_pointer
	movq	8(%r14), %rdi
	xorl	%esi, %esi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_skb_trim                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AR9170_RX_STREAM_TAG,4,2       ## @AR9170_RX_STREAM_TAG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"missing tag!\n"

L_.str.1:                               ## @.str.1
	.asciz	"possible multi stream corruption!\n"

L_.str.2:                               ## @.str.2
	.asciz	"double rx stream corruption!\n"

L_.str.3:                               ## @.str.3
	.asciz	"%d bytes of unprocessed data left in rx stream!\n"

L_.str.4:                               ## @.str.4
	.asciz	"damaged RX stream data [want:%d, data:%d, rx:%d, pending:%d ]\n"

L_.str.5:                               ## @.str.5
	.asciz	"rxbuf:"

	.comm	_DUMP_PREFIX_OFFSET,4,2         ## @DUMP_PREFIX_OFFSET
L_.str.6:                               ## @.str.6
	.asciz	"stream:"

L_.str.7:                               ## @.str.7
	.asciz	"please check your hardware and cables, if you see this message frequently.\n"

	.no_dead_strip	_carl9170_rx_stream
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function carl9170_rx_stream
_carl9170_rx_stream:                    ; @carl9170_rx_stream
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x19, x0
	cmp	w2, #4
	b.lo	LBB0_6
; %bb.1:
Lloh0:
	adrp	x26, _AR9170_RX_STREAM_TAG@GOTPAGE
Lloh1:
	ldr	x26, [x26, _AR9170_RX_STREAM_TAG@GOTPAGEOFF]
	mov	x25, x21
	mov	x22, x20
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x25, #16]
	bl	_le16_to_cpu
	mov	x23, x0
	mov	w1, #4
	bl	_ALIGN
	mov	x24, x0
	ldr	x27, [x25]
	ldr	w0, [x26]
	bl	_cpu_to_le16
	cmp	x27, x0
	b.ne	LBB0_9
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	w8, w22, #4
	cmp	w24, w8
	b.hi	LBB0_13
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x1, [x25, #8]
	mov	x0, x19
	mov	x2, x23
	bl	___carl9170_rx
	add	w8, w24, #4
	add	x25, x25, w8, uxtw #2
	sub	w22, w22, w8
	cmp	w22, #3
	b.hi	LBB0_2
; %bb.5:
	cbnz	w22, LBB0_7
	b	LBB0_22
LBB0_6:
	mov	w24, #0
	mov	w23, #0
	mov	x22, x20
	cbz	w22, LBB0_22
LBB0_7:
	bl	_net_ratelimit
	cbz	x0, LBB0_17
; %bb.8:
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	mov	x8, x22
	str	x8, [sp]
Lloh2:
	adrp	x1, l_.str.3@PAGE
Lloh3:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_16
LBB0_9:
	ldr	w8, [x19]
	cbz	w8, LBB0_23
; %bb.10:
	cmp	w8, w22
	b.ls	LBB0_27
; %bb.11:
	bl	_net_ratelimit
	cbz	x0, LBB0_20
; %bb.12:
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_16
LBB0_13:
	ldr	w8, [x19]
	cbz	w8, LBB0_26
; %bb.14:
	bl	_net_ratelimit
	cbz	x0, LBB0_20
; %bb.15:
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_16:
	bl	_wiphy_err
LBB0_17:
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	ldr	w8, [x19]
	stp	x22, x8, [sp, #16]
	stp	x23, x24, [sp]
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wiphy_err
	ldr	w8, [x19]
Lloh10:
	adrp	x22, _DUMP_PREFIX_OFFSET@GOTPAGE
Lloh11:
	ldr	x22, [x22, _DUMP_PREFIX_OFFSET@GOTPAGEOFF]
	cbz	w8, LBB0_19
; %bb.18:
	ldr	w1, [x22]
	ldr	x8, [x19, #8]
	ldr	x2, [x8]
	ldr	w3, [x8, #8]
Lloh12:
	adrp	x0, l_.str.5@PAGE
Lloh13:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_print_hex_dump_bytes
LBB0_19:
	ldr	w1, [x22]
Lloh14:
	adrp	x0, l_.str.6@PAGE
Lloh15:
	add	x0, x0, l_.str.6@PAGEOFF
	mov	x2, x21
	mov	x3, x20
	bl	_print_hex_dump_bytes
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
Lloh16:
	adrp	x1, l_.str.7@PAGE
Lloh17:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_wiphy_err
LBB0_20:
	ldr	w8, [x19]
	cbz	w8, LBB0_22
; %bb.21:
	ldr	x0, [x19, #8]
	bl	_skb_reset_tail_pointer
	ldr	x0, [x19, #8]
	mov	w1, #0
	bl	_skb_trim
	str	wzr, [x19]
LBB0_22:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_23:
	bl	_net_ratelimit
	cbz	x0, LBB0_25
; %bb.24:
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wiphy_err
LBB0_25:
	mov	x0, x19
	mov	x1, x25
	mov	x2, x22
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	___carl9170_rx
LBB0_26:
	ldr	x0, [x19, #8]
	mov	x1, x25
	mov	x2, x22
	bl	_skb_put_data
	sub	w8, w23, w22
	str	w8, [x19]
	b	LBB0_22
LBB0_27:
	ldr	x0, [x19, #8]
	mov	x1, x25
	mov	x2, x22
	bl	_skb_put_data
	ldr	w8, [x19]
	subs	w8, w8, w22
	str	w8, [x19]
	b.ne	LBB0_22
; %bb.28:
	str	wzr, [x19]
	ldr	x8, [x19, #8]
	ldr	x1, [x8]
	ldr	w2, [x8, #8]
	mov	x0, x19
	bl	_carl9170_rx_stream
	ldr	x0, [x19, #8]
	bl	_skb_reset_tail_pointer
	ldr	x0, [x19, #8]
	mov	w1, #0
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_skb_trim
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_AR9170_RX_STREAM_TAG,4,2       ; @AR9170_RX_STREAM_TAG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"missing tag!\n"

l_.str.1:                               ; @.str.1
	.asciz	"possible multi stream corruption!\n"

l_.str.2:                               ; @.str.2
	.asciz	"double rx stream corruption!\n"

l_.str.3:                               ; @.str.3
	.asciz	"%d bytes of unprocessed data left in rx stream!\n"

l_.str.4:                               ; @.str.4
	.asciz	"damaged RX stream data [want:%d, data:%d, rx:%d, pending:%d ]\n"

l_.str.5:                               ; @.str.5
	.asciz	"rxbuf:"

	.comm	_DUMP_PREFIX_OFFSET,4,2         ; @DUMP_PREFIX_OFFSET
l_.str.6:                               ; @.str.6
	.asciz	"stream:"

l_.str.7:                               ; @.str.7
	.asciz	"please check your hardware and cables, if you see this message frequently.\n"

	.no_dead_strip	_carl9170_rx_stream
.subsections_via_symbols
