	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cw1200_handle_pspoll
_cw1200_handle_pspoll:                  ## @cw1200_handle_pspoll
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	_CW1200_JOIN_STATUS_AP@GOTPCREL(%rip), %rcx
	movl	$1, %r14d
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.1:
	movq	%rdi, %r13
	movq	(%rsi), %rbx
	movq	24(%rdi), %rax
	movl	(%rax), %edi
	movl	4(%rbx), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_2
LBB0_12:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	xorl	%eax, %eax
	callq	_rcu_read_lock
	movq	24(%r13), %rdi
	movl	(%rbx), %esi
	callq	_ieee80211_find_sta
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movl	(%rax), %r12d
	movl	%r12d, %edi
	callq	_BIT
	movl	%eax, %r15d
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	testl	%r12d, %r12d
	je	LBB0_12
## %bb.5:
	orl	%r15d, 16(%r13)
	movq	8(%r13), %rdi
	movl	%r15d, %esi
	callq	_cw1200_queue_get_num_queued
	testq	%rax, %rax
	jne	LBB0_10
## %bb.6:
	movq	8(%r13), %rdi
	addq	$4, %rdi
	movl	%r15d, %esi
	callq	_cw1200_queue_get_num_queued
	testq	%rax, %rax
	jne	LBB0_10
## %bb.7:
	movq	8(%r13), %rdi
	addq	$8, %rdi
	movl	%r15d, %esi
	callq	_cw1200_queue_get_num_queued
	testq	%rax, %rax
	jne	LBB0_10
## %bb.8:
	movq	8(%r13), %rdi
	addq	$12, %rdi
	movl	%r15d, %esi
	callq	_cw1200_queue_get_num_queued
	testq	%rax, %rax
	je	LBB0_9
LBB0_10:
	movq	%r13, %rdi
	callq	_cw1200_bh_wakeup
	movl	$1, %r14d
	leaq	L_.str.1(%rip), %rsi
LBB0_11:
	leaq	L_.str(%rip), %rdi
	callq	_pr_debug
	jmp	LBB0_12
LBB0_3:
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	jmp	LBB0_12
LBB0_9:
	xorl	%r14d, %r14d
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_CW1200_JOIN_STATUS_AP,8,3      ## @CW1200_JOIN_STATUS_AP
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[RX] PSPOLL: %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"local"

L_.str.2:                               ## @.str.2
	.asciz	"fwd"

	.no_dead_strip	_cw1200_handle_pspoll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cw1200_handle_pspoll
_cw1200_handle_pspoll:                  ; @cw1200_handle_pspoll
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _CW1200_JOIN_STATUS_AP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CW1200_JOIN_STATUS_AP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	x20, [x1]
	ldr	x8, [x0, #24]
	ldr	w0, [x8]
	ldr	w1, [x20, #4]
Lloh3:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_memcmp
	cbz	x0, LBB0_4
LBB0_2:
	mov	w19, #1
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_4:
	bl	_rcu_read_lock
	ldr	x0, [x19, #24]
	ldr	w1, [x20]
	bl	_ieee80211_find_sta
	cbz	x0, LBB0_12
; %bb.5:
	ldr	w21, [x0]
	mov	x0, x21
	bl	_BIT
	mov	x20, x0
	bl	_rcu_read_unlock
	cbz	w21, LBB0_2
; %bb.6:
	ldr	w8, [x19, #16]
	orr	w8, w8, w20
	str	w8, [x19, #16]
	ldr	x0, [x19, #8]
	mov	x1, x20
	bl	_cw1200_queue_get_num_queued
	cbnz	x0, LBB0_10
; %bb.7:
	ldr	x8, [x19, #8]
	add	x0, x8, #4
	mov	x1, x20
	bl	_cw1200_queue_get_num_queued
	cbnz	x0, LBB0_10
; %bb.8:
	ldr	x8, [x19, #8]
	add	x0, x8, #8
	mov	x1, x20
	bl	_cw1200_queue_get_num_queued
	cbnz	x0, LBB0_10
; %bb.9:
	ldr	x8, [x19, #8]
	add	x0, x8, #12
	mov	x1, x20
	bl	_cw1200_queue_get_num_queued
	cbz	x0, LBB0_13
LBB0_10:
	mov	x0, x19
	bl	_cw1200_bh_wakeup
	mov	w19, #1
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_11:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	b	LBB0_3
LBB0_12:
	bl	_rcu_read_unlock
	b	LBB0_2
LBB0_13:
	mov	w19, #0
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_CW1200_JOIN_STATUS_AP,8,3      ; @CW1200_JOIN_STATUS_AP
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[RX] PSPOLL: %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"local"

l_.str.2:                               ; @.str.2
	.asciz	"fwd"

	.no_dead_strip	_cw1200_handle_pspoll
.subsections_via_symbols
