	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cw1200_bh_rx_helper
_cw1200_bh_rx_helper:                   ## @cw1200_bh_rx_helper
	.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	_ST90TDS_CONT_NEXT_LEN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rsi), %eax
	je	LBB0_1
## %bb.2:
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	movslq	%eax, %rbx
	addq	%rbx, %rbx
	cmpl	$8, %ebx
	setb	%al
	movq	_EFFECTIVE_BUF_SIZE@GOTPCREL(%rip), %r13
	cmpq	%rbx, (%r13)
	setb	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	(%r12), %edx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_pr_debug
	jmp	LBB0_24
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_25
LBB0_4:
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	addq	$2, %rbx
	movq	24(%r15), %rax
	movl	16(%r15), %edi
	movq	%rbx, %rsi
	callq	*(%rax)
	movq	%rax, %r14
	xorl	%edi, %edi
	cmpq	(%r13), %rax
	seta	%dil
	callq	_WARN_ON_ONCE
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_pr_debug
LBB0_6:
	movq	%r14, %rdi
	callq	_dev_alloc_skb
	movq	%rax, %r13
	movq	%rax, -64(%rbp)
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_7
LBB0_22:
	testq	%r13, %r13
	jne	LBB0_23
	jmp	LBB0_24
LBB0_7:
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_skb_trim
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_skb_put
	movq	(%r13), %rax
	xorl	%edi, %edi
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_23
## %bb.8:
	movq	%r15, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	_cw1200_data_read
	movl	%eax, %edi
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	leaq	L_.str.2(%rip), %rdi
	movq	%r14, %rsi
	callq	_pr_err
	jmp	LBB0_23
LBB0_10:
	andq	$-2, %r14
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	-4(%rax,%r14,2), %edi
	movq	%rax, %r14
	callq	___le16_to_cpu
	movl	%eax, (%r12)
	movl	4(%r14), %edi
	callq	___le16_to_cpu
	movslq	%eax, %r14
	xorl	%edi, %edi
	cmpq	%r14, %rbx
	setb	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_23
## %bb.11:
	cmpq	$0, 8(%r15)
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_13
## %bb.12:
	movq	_DUMP_PREFIX_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdi
	movq	%rbx, %rdx
	movq	%r14, %rcx
	callq	_print_hex_dump_bytes
LBB0_13:
	movl	(%rbx), %edi
	callq	___le16_to_cpu
	movl	%eax, %r12d
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	andl	$4095, %r12d                    ## imm = 0xFFF
	movl	(%rbx), %edi
	callq	___le16_to_cpu
	movl	%eax, %ebx
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_skb_trim
	movl	%r12d, -52(%rbp)                ## 4-byte Spill
	cmpl	$2048, %r12d                    ## imm = 0x800
	jne	LBB0_15
## %bb.14:
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	addq	$32, %rsi
	addq	$-8, %r14
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_wsm_handle_exception
LBB0_23:
	movq	%r13, %rdi
	callq	_dev_kfree_skb
LBB0_24:
	movl	$-1, %ebx
LBB0_25:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	shrl	$13, %ebx
	incl	%ebx
	andl	$7, %ebx
	movl	%ebx, (%r15)
	testl	$1024, -56(%rbp)                ## 4-byte Folded Reload
                                        ## imm = 0x400
	je	LBB0_19
## %bb.16:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_wsm_release_tx_buffer
	movl	%eax, %ebx
	movl	%eax, %edi
	shrl	$31, %edi
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_25
## %bb.17:
	testl	%ebx, %ebx
	jle	LBB0_19
## %bb.18:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
LBB0_19:
	leaq	-64(%rbp), %rcx
	movq	%r15, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movq	%r14, %rdx
	callq	_wsm_handle_rx
	movl	%eax, %edi
	callq	_WARN_ON
	movq	-64(%rbp), %r13
	testq	%rax, %rax
	jne	LBB0_22
## %bb.20:
	xorl	%ebx, %ebx
	testq	%r13, %r13
	je	LBB0_25
## %bb.21:
	movq	%r13, %rdi
	callq	_dev_kfree_skb
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.comm	_ST90TDS_CONT_NEXT_LEN_MASK,4,2 ## @ST90TDS_CONT_NEXT_LEN_MASK
	.comm	_EFFECTIVE_BUF_SIZE,8,3         ## @EFFECTIVE_BUF_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid read len: %zu (%04x)"

L_.str.1:                               ## @.str.1
	.asciz	"Read aligned len: %zu\n"

L_.str.2:                               ## @.str.2
	.asciz	"rx blew up, len %zu\n"

L_.str.3:                               ## @.str.3
	.asciz	"<-- "

	.comm	_DUMP_PREFIX_NONE,4,2           ## @DUMP_PREFIX_NONE
	.no_dead_strip	_cw1200_bh_rx_helper
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cw1200_bh_rx_helper
_cw1200_bh_rx_helper:                   ; @cw1200_bh_rx_helper
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _ST90TDS_CONT_NEXT_LEN_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ST90TDS_CONT_NEXT_LEN_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	ands	w8, w9, w8
	b.eq	LBB0_3
; %bb.1:
	mov	x20, x2
	mov	x23, x1
	mov	x19, x0
	lsl	w8, w8, #1
	sxtw	x21, w8
	cmp	w21, #8
Lloh3:
	adrp	x22, _EFFECTIVE_BUF_SIZE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _EFFECTIVE_BUF_SIZE@GOTPAGEOFF]
	ldr	x8, [x22]
	ccmp	x8, x21, #0, hs
	cset	w0, lo
	bl	_WARN_ON
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w8, [x23]
	str	x8, [sp]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_pr_debug
	b	LBB0_17
LBB0_3:
	mov	w21, #0
	b	LBB0_18
LBB0_4:
	add	x24, x21, #2
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	ldr	w0, [x19, #16]
	mov	x1, x24
	blr	x8
	mov	x25, x0
	ldr	x8, [x22]
	cmp	x0, x8
	cset	w0, hi
	bl	_WARN_ON_ONCE
	cbz	x0, LBB0_6
; %bb.5:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x25
	bl	_pr_debug
LBB0_6:
	mov	x0, x25
	bl	_dev_alloc_skb
	mov	x21, x0
	str	x0, [sp, #8]
	cmp	x0, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_8
LBB0_7:
	cbnz	x21, LBB0_16
	b	LBB0_17
LBB0_8:
	mov	x0, x21
	mov	x1, #0
	bl	_skb_trim
	mov	x0, x21
	mov	x1, x24
	bl	_skb_put
	ldr	x22, [x21]
	cmp	x22, #0
	cset	w0, eq
	bl	_WARN_ON
	cbnz	x0, LBB0_16
; %bb.9:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x25
	bl	_cw1200_data_read
	bl	_WARN_ON
	cbz	x0, LBB0_11
; %bb.10:
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x25
	bl	_pr_err
	b	LBB0_16
LBB0_11:
	lsl	x8, x25, #1
	and	x8, x8, #0xfffffffffffffffc
	add	x8, x8, x22
	ldur	w0, [x8, #-4]
	bl	___le16_to_cpu
	str	w0, [x23]
	ldr	w0, [x22, #4]
	bl	___le16_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x25, w0
	cmp	x24, x25
	cset	w0, lo
	bl	_WARN_ON
	cbnz	x0, LBB0_16
; %bb.12:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_14
; %bb.13:
Lloh11:
	adrp	x8, _DUMP_PREFIX_NONE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DUMP_PREFIX_NONE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x0, l_.str.3@PAGE
Lloh15:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x2, x22
	mov	x3, x25
	bl	_print_hex_dump_bytes
LBB0_14:
	ldr	w0, [x22]
	bl	___le16_to_cpu
	mov	x24, x0
	and	w23, w0, #0xfff
	ldr	w0, [x22]
	bl	___le16_to_cpu
	mov	x26, x0
	mov	x0, x21
	mov	x1, x25
	bl	_skb_trim
	cmp	w23, #2048
	b.ne	LBB0_19
; %bb.15:
	add	x1, x22, #32
	sub	x2, x25, #8
	mov	x0, x19
	bl	_wsm_handle_exception
LBB0_16:
	mov	x0, x21
	bl	_dev_kfree_skb
LBB0_17:
	mov	w21, #-1
LBB0_18:
	mov	x0, x21
	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
	add	sp, sp, #96
	ret
LBB0_19:
	lsr	w8, w26, #13
	add	w8, w8, #1
	and	w8, w8, #0x7
	str	w8, [x19]
	tbz	w24, #10, LBB0_23
; %bb.20:
	mov	x0, x19
	mov	w1, #1
	bl	_wsm_release_tx_buffer
	mov	x21, x0
	lsr	w0, w0, #31
	bl	_WARN_ON
	cbnz	x0, LBB0_18
; %bb.21:
	cmp	w21, #1
	b.lt	LBB0_23
; %bb.22:
	mov	w8, #1
	str	w8, [x20]
LBB0_23:
	add	x3, sp, #8
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	bl	_wsm_handle_rx
	bl	_WARN_ON
	ldr	x21, [sp, #8]
	cbnz	x0, LBB0_7
; %bb.24:
	cbz	x21, LBB0_18
; %bb.25:
	mov	x0, x21
	bl	_dev_kfree_skb
	mov	w21, #0
	b	LBB0_18
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ST90TDS_CONT_NEXT_LEN_MASK,4,2 ; @ST90TDS_CONT_NEXT_LEN_MASK
	.comm	_EFFECTIVE_BUF_SIZE,8,3         ; @EFFECTIVE_BUF_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid read len: %zu (%04x)"

l_.str.1:                               ; @.str.1
	.asciz	"Read aligned len: %zu\n"

l_.str.2:                               ; @.str.2
	.asciz	"rx blew up, len %zu\n"

l_.str.3:                               ; @.str.3
	.asciz	"<-- "

	.comm	_DUMP_PREFIX_NONE,4,2           ; @DUMP_PREFIX_NONE
	.no_dead_strip	_cw1200_bh_rx_helper
.subsections_via_symbols
