	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wcn36xx_rx_skb                 ## -- Begin function wcn36xx_rx_skb
	.p2align	4, 0x90
_wcn36xx_rx_skb:                        ## @wcn36xx_rx_skb
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r14
	leaq	-88(%rbp), %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	8(%r13), %rbx
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_buff_to_be
	movq	_WCN36XX_DBG_RX_DUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	movl	$16, %ecx
	callq	_wcn36xx_dbg_dump
	movq	8(%rbx), %rsi
	addq	(%rbx), %rsi
	movq	%r13, %rdi
	callq	_skb_put
	movq	(%rbx), %rsi
	movq	%r13, %rdi
	callq	_skb_pull
	movq	8(%r13), %r15
	movl	(%r15), %edi
	callq	___le16_to_cpu
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	4(%r15), %edi
	callq	___le16_to_cpu
	movl	%eax, %edi
	callq	_IEEE80211_SEQ_TO_SN
	movl	%eax, %r12d
	movl	(%r15), %edi
	callq	_ieee80211_is_beacon
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	8(%r14), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rax, -56(%rbp)
	movl	4(%r14), %eax
	jmp	LBB0_4
LBB0_3:
	movq	%r14, %rdi
	callq	_WCN36XX_CENTER_FREQ
	movq	%rax, -56(%rbp)
	movq	%r14, %rdi
	callq	_WCN36XX_BAND
LBB0_4:
	movl	%eax, -60(%rbp)
	movl	$10, -88(%rbp)
	movq	%rbx, %rdi
	callq	_get_rssi0
	negl	%eax
	movl	%eax, -64(%rbp)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	_RX_FLAG_IV_STRIPPED@GOTPCREL(%rip), %rcx
	movq	_RX_FLAG_MMIC_STRIPPED@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	%rax, -84(%rbp)
	movq	_RX_FLAG_DECRYPTED@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	$0, -72(%rbp)
	movl	%edx, -76(%rbp)
	movq	_WCN36XX_DBG_RX@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wcn36xx_dbg
	movq	%r13, %rdi
	callq	_IEEE80211_SKB_RXCB
	leaq	-88(%rbp), %rsi
	movl	%eax, %edi
	movl	$40, %edx
	callq	_memcpy
	movl	(%r15), %edi
	callq	_ieee80211_is_beacon
	testq	%rax, %rax
	leaq	L_.str.4(%rip), %rax
	leaq	L_.str.2(%rip), %rsi
	cmovneq	_WCN36XX_DBG_BEACON@GOTPCREL(%rip), %rbx
	cmoveq	%rax, %rsi
	movl	(%rbx), %edi
	movl	(%r13), %ecx
	movq	_WCN36XX_DBG_BEACON_DUMP@GOTPCREL(%rip), %rbx
	cmoveq	_WCN36XX_DBG_RX_DUMP@GOTPCREL(%rip), %rbx
	movq	%r13, %rdx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	%r12d, %r9d
	xorl	%eax, %eax
	callq	_wcn36xx_dbg
	movl	(%rbx), %edi
	movq	8(%r13), %rdx
	movl	(%r13), %ecx
	leaq	L_.str.3(%rip), %rsi
	callq	_wcn36xx_dbg_dump
	movl	(%r14), %edi
	movq	%r13, %rsi
	callq	_ieee80211_rx_irqsafe
	xorl	%eax, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WCN36XX_DBG_RX_DUMP,4,2        ## @WCN36XX_DBG_RX_DUMP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BD   <<< "

	.comm	_RX_FLAG_IV_STRIPPED,4,2        ## @RX_FLAG_IV_STRIPPED
	.comm	_RX_FLAG_MMIC_STRIPPED,4,2      ## @RX_FLAG_MMIC_STRIPPED
	.comm	_RX_FLAG_DECRYPTED,4,2          ## @RX_FLAG_DECRYPTED
	.comm	_WCN36XX_DBG_RX,4,2             ## @WCN36XX_DBG_RX
L_.str.1:                               ## @.str.1
	.asciz	"status.flags=%x\n"

	.comm	_WCN36XX_DBG_BEACON,4,2         ## @WCN36XX_DBG_BEACON
L_.str.2:                               ## @.str.2
	.asciz	"beacon skb %p len %d fc %04x sn %d\n"

	.comm	_WCN36XX_DBG_BEACON_DUMP,4,2    ## @WCN36XX_DBG_BEACON_DUMP
L_.str.3:                               ## @.str.3
	.asciz	"SKB <<< "

L_.str.4:                               ## @.str.4
	.asciz	"rx skb %p len %d fc %04x sn %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wcn36xx_rx_skb                 ; -- Begin function wcn36xx_rx_skb
	.p2align	2
_wcn36xx_rx_skb:                        ; @wcn36xx_rx_skb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	mov	x19, x1
	mov	x20, x0
	add	x0, sp, #40
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	ldr	x23, [x19, #8]
	mov	x0, x23
	mov	w1, #4
	bl	_buff_to_be
Lloh0:
	adrp	x24, _WCN36XX_DBG_RX_DUMP@GOTPAGE
Lloh1:
	ldr	x24, [x24, _WCN36XX_DBG_RX_DUMP@GOTPAGEOFF]
	ldr	w0, [x24]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x23
	mov	w3, #16
	bl	_wcn36xx_dbg_dump
	ldp	x8, x9, [x23]
	add	x1, x9, x8
	mov	x0, x19
	bl	_skb_put
	ldr	x1, [x23]
	mov	x0, x19
	bl	_skb_pull
	ldr	x25, [x19, #8]
	ldr	w0, [x25]
	bl	___le16_to_cpu
	mov	x21, x0
	ldr	w0, [x25, #4]
	bl	___le16_to_cpu
	bl	_IEEE80211_SEQ_TO_SN
	mov	x22, x0
	ldr	w0, [x25]
	bl	_ieee80211_is_beacon
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_3
; %bb.2:
	str	x8, [sp, #72]
	ldr	w0, [x20, #4]
	b	LBB0_4
LBB0_3:
	mov	x0, x20
	bl	_WCN36XX_CENTER_FREQ
	str	x0, [sp, #72]
	mov	x0, x20
	bl	_WCN36XX_BAND
LBB0_4:
	mov	w8, #10
	str	w0, [sp, #68]
	str	w8, [sp, #40]
	mov	x0, x23
	bl	_get_rssi0
	neg	w8, w0
	str	w8, [sp, #64]
	movi.2s	v0, #1
	stur	d0, [sp, #44]
	str	xzr, [sp, #56]
Lloh4:
	adrp	x8, _RX_FLAG_IV_STRIPPED@GOTPAGE
Lloh5:
	ldr	x8, [x8, _RX_FLAG_IV_STRIPPED@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _RX_FLAG_MMIC_STRIPPED@GOTPAGE
Lloh8:
	ldr	x9, [x9, _RX_FLAG_MMIC_STRIPPED@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh10:
	adrp	x9, _RX_FLAG_DECRYPTED@GOTPAGE
Lloh11:
	ldr	x9, [x9, _RX_FLAG_DECRYPTED@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [sp, #52]
Lloh13:
	adrp	x23, _WCN36XX_DBG_RX@GOTPAGE
Lloh14:
	ldr	x23, [x23, _WCN36XX_DBG_RX@GOTPAGEOFF]
	ldr	w0, [x23]
	str	x8, [sp]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wcn36xx_dbg
	mov	x0, x19
	bl	_IEEE80211_SKB_RXCB
	add	x1, sp, #40
	mov	w2, #40
	bl	_memcpy
	ldr	w0, [x25]
	bl	_ieee80211_is_beacon
Lloh17:
	adrp	x8, l_.str.2@PAGE
Lloh18:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh19:
	adrp	x9, l_.str.4@PAGE
Lloh20:
	add	x9, x9, l_.str.4@PAGEOFF
	cmp	x0, #0
	csel	x1, x9, x8, eq
Lloh21:
	adrp	x8, _WCN36XX_DBG_BEACON@GOTPAGE
Lloh22:
	ldr	x8, [x8, _WCN36XX_DBG_BEACON@GOTPAGEOFF]
	csel	x8, x23, x8, eq
	ldr	w0, [x8]
	ldr	w8, [x19]
	stp	x21, x22, [sp, #16]
	stp	x19, x8, [sp]
Lloh23:
	adrp	x8, _WCN36XX_DBG_BEACON_DUMP@GOTPAGE
Lloh24:
	ldr	x8, [x8, _WCN36XX_DBG_BEACON_DUMP@GOTPAGEOFF]
	csel	x21, x24, x8, eq
	bl	_wcn36xx_dbg
	ldr	w0, [x21]
	ldr	x2, [x19, #8]
	ldr	w3, [x19]
Lloh25:
	adrp	x1, l_.str.3@PAGE
Lloh26:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wcn36xx_dbg_dump
	ldr	w0, [x20]
	mov	x1, x19
	bl	_ieee80211_rx_irqsafe
	mov	w0, #0
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_WCN36XX_DBG_RX_DUMP,4,2        ; @WCN36XX_DBG_RX_DUMP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BD   <<< "

	.comm	_RX_FLAG_IV_STRIPPED,4,2        ; @RX_FLAG_IV_STRIPPED
	.comm	_RX_FLAG_MMIC_STRIPPED,4,2      ; @RX_FLAG_MMIC_STRIPPED
	.comm	_RX_FLAG_DECRYPTED,4,2          ; @RX_FLAG_DECRYPTED
	.comm	_WCN36XX_DBG_RX,4,2             ; @WCN36XX_DBG_RX
l_.str.1:                               ; @.str.1
	.asciz	"status.flags=%x\n"

	.comm	_WCN36XX_DBG_BEACON,4,2         ; @WCN36XX_DBG_BEACON
l_.str.2:                               ; @.str.2
	.asciz	"beacon skb %p len %d fc %04x sn %d\n"

	.comm	_WCN36XX_DBG_BEACON_DUMP,4,2    ; @WCN36XX_DBG_BEACON_DUMP
l_.str.3:                               ; @.str.3
	.asciz	"SKB <<< "

l_.str.4:                               ; @.str.4
	.asciz	"rx skb %p len %d fc %04x sn %d\n"

.subsections_via_symbols
