	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wsm_receive_indication
_wsm_receive_indication:                ## @wsm_receive_indication
	.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	%rcx, %r12
	movq	%rdx, %rbx
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rdi
	callq	_WSM_GET32
	movq	%rax, %r13
	movq	%rax, -88(%rbp)
	movq	%rbx, %rdi
	callq	_WSM_GET16
	movl	%eax, -64(%rbp)
	movq	%rbx, %rdi
	callq	_WSM_GET8
	movq	%rax, -72(%rbp)
	movq	%rbx, %rdi
	callq	_WSM_GET8
	movq	%rax, %r14
	movl	%r14d, -96(%rbp)
	movq	%rbx, %rdi
	callq	_WSM_GET32
	movq	%rax, -80(%rbp)
	testl	%r14d, %r14d
	je	LBB0_1
LBB0_3:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, 16(%rax)
	jne	LBB0_5
## %bb.4:
	movl	%r14d, %eax
	shrl	$31, %eax
	addl	%r14d, %eax
	sarl	%eax
	addl	$-110, %eax
	movl	%eax, -96(%rbp)
LBB0_5:
	movq	(%rbx), %r14
	movl	(%r14), %r15d
	subq	8(%rbx), %r14
	movq	(%r12), %rdi
	movq	%r14, %rsi
	callq	_skb_pull
	testq	%r13, %r13
	je	LBB0_6
LBB0_10:
	leaq	-96(%rbp), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movq	%r12, %rcx
	callq	_cw1200_rx_cb
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.11:
	movq	%r14, %rsi
	callq	_skb_push
	jmp	LBB0_12
LBB0_1:
	movq	(%r12), %rax
	movq	(%rax), %r15
	movl	(%r15), %edi
	callq	_ieee80211_is_probe_resp
	testq	%rax, %rax
	jne	LBB0_12
## %bb.2:
	movl	(%r15), %edi
	callq	_ieee80211_is_beacon
	testq	%rax, %rax
	je	LBB0_3
LBB0_12:
	xorl	%eax, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	%r15d, %edi
	callq	_ieee80211_is_deauth
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	_CW1200_JOIN_STATUS_STA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.8:
	leaq	L_.str(%rip), %rdi
	callq	_pr_debug
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_wsm_lock_tx_async
	movl	12(%rbx), %edi
	leaq	8(%rbx), %rsi
	callq	_queue_work
	testq	%rax, %rax
	jg	LBB0_10
## %bb.9:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_wsm_unlock_tx
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_CW1200_JOIN_STATUS_STA,8,3     ## @CW1200_JOIN_STATUS_STA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[WSM] Issue unjoin command (RX).\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_wsm_receive_indication
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wsm_receive_indication
_wsm_receive_indication:                ; @wsm_receive_indication
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	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
	mov	x19, x3
	mov	x23, x2
	mov	x20, x1
	mov	x21, x0
	mov	x0, x2
	bl	_WSM_GET32
	mov	x22, x0
	str	x0, [sp, #16]
	mov	x0, x23
	bl	_WSM_GET16
	str	w0, [sp, #40]
	mov	x0, x23
	bl	_WSM_GET8
	str	x0, [sp, #32]
	mov	x0, x23
	bl	_WSM_GET8
	mov	x24, x0
	str	w24, [sp, #8]
	mov	x0, x23
	bl	_WSM_GET32
	str	x0, [sp, #24]
	cbz	w24, LBB0_6
LBB0_1:
	ldr	w8, [x21, #16]
	cbnz	w8, LBB0_3
; %bb.2:
	cmp	w24, #0
	cinc	w8, w24, lt
	asr	w8, w8, #1
	sub	w8, w8, #110
	str	w8, [sp, #8]
LBB0_3:
	ldp	x8, x9, [x23]
	ldr	w24, [x8]
	sub	x23, x8, x9
	ldr	x0, [x19]
	mov	x1, x23
	bl	_skb_pull
	cbz	x22, LBB0_9
LBB0_4:
	add	x1, sp, #8
	mov	x0, x21
	mov	x2, x20
	mov	x3, x19
	bl	_cw1200_rx_cb
	ldr	x0, [x19]
	cbz	x0, LBB0_8
; %bb.5:
	mov	x1, x23
	bl	_skb_push
	b	LBB0_8
LBB0_6:
	ldr	x8, [x19]
	ldr	x25, [x8]
	ldr	w0, [x25]
	bl	_ieee80211_is_probe_resp
	cbnz	x0, LBB0_8
; %bb.7:
	ldr	w0, [x25]
	bl	_ieee80211_is_beacon
	cbz	x0, LBB0_1
LBB0_8:
	mov	w0, #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
	add	sp, sp, #128
	ret
LBB0_9:
	mov	x0, x24
	bl	_ieee80211_is_deauth
	cbz	x0, LBB0_4
; %bb.10:
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _CW1200_JOIN_STATUS_STA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CW1200_JOIN_STATUS_STA@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.11:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	mov	x0, x21
	bl	_wsm_lock_tx_async
	ldr	w0, [x21, #12]
	add	x1, x21, #8
	bl	_queue_work
	cmp	x0, #0
	b.gt	LBB0_4
; %bb.12:
	mov	x0, x21
	bl	_wsm_unlock_tx
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_CW1200_JOIN_STATUS_STA,8,3     ; @CW1200_JOIN_STATUS_STA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[WSM] Issue unjoin command (RX).\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_wsm_receive_indication
.subsections_via_symbols
