	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_pspoll
_handle_pspoll:                         ## @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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r15
	movq	_DEBUG_PS2@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	(%rsi), %r14d
	movl	4(%rsi), %r13d
	movl	12(%rsi), %edi
	callq	_ieee80211_has_pm
	xorl	%r8d, %r8d
	testl	%eax, %eax
	setne	%r8b
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%r14d, %edx
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_PDEBUG
	movl	(%r12), %edi
	movl	(%r15), %esi
	callq	_ether_addr_equal
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	8(%r12), %edi
	callq	_le16_to_cpu
	movl	%eax, %r14d
	movl	$15, %edi
	callq	_BIT
	movl	%eax, %r13d
	movl	$14, %edi
	callq	_BIT
	movl	%eax, %ebx
	orl	%r13d, %ebx
	andl	%r14d, %ebx
	movl	$15, %edi
	callq	_BIT
	movl	%eax, %r13d
	movl	$14, %edi
	callq	_BIT
	orl	%r13d, %eax
	cmpl	%eax, %ebx
	jne	LBB0_3
## %bb.5:
	movl	$15, %edi
	callq	_BIT
	movl	%eax, %ebx
	movl	$14, %edi
	callq	_BIT
	orl	%ebx, %eax
	notl	%eax
	andl	%eax, %r14d
	je	LBB0_7
## %bb.6:
	movq	_MAX_AID_TABLE_SIZE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jg	LBB0_7
## %bb.9:
	movq	_DEBUG_PS2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_PDEBUG
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	(%r15), %rdi
	callq	_spin_lock_bh
	movq	(%r15), %rdi
	movl	4(%r12), %esi
	callq	_ap_get_sta
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	%rax, %r13
	leaq	8(%rax), %rbx
	movq	%rbx, %rdi
	callq	_atomic_inc
	movq	(%r15), %rdi
	callq	_spin_unlock_bh
	movl	(%r13), %ecx
	cmpl	%r14d, %ecx
	jne	LBB0_20
## %bb.12:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	%r13, %rbx
	addq	$12, %rbx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_skb_dequeue
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%rax, %r12
	movq	_DEBUG_PS2@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	callq	_skb_queue_len
	movl	%r14d, %edi
	leaq	L_.str.7(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_PDEBUG
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_pspoll_send_buffered
	movq	_WLAN_STA_PS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r13)
	je	LBB0_13
LBB0_15:
	movq	%rbx, %rdi
	callq	_skb_queue_empty
	testq	%rax, %rax
	je	LBB0_19
## %bb.16:
	movq	_WLAN_STA_TIM@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	testl	%eax, 4(%r13)
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jne	LBB0_18
## %bb.17:
	movq	_DEBUG_PS2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.8(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_PDEBUG
LBB0_18:
	movq	%r15, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_hostap_set_tim
	movl	(%r14), %eax
	notl	%eax
	andl	%eax, 4(%r13)
LBB0_19:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_atomic_dec                     ## TAILCALL
LBB0_1:
	movq	_DEBUG_AP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %edx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_8
LBB0_3:
	movq	_DEBUG_PS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
LBB0_4:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PDEBUG                         ## TAILCALL
LBB0_7:
	movq	_DEBUG_PS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%r14d, %edx
LBB0_8:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PDEBUG                         ## TAILCALL
LBB0_10:
	movq	(%r15), %rdi
	callq	_spin_unlock_bh
	movq	_DEBUG_PS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_4
LBB0_20:
	movq	_DEBUG_PS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PDEBUG                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DEBUG_PS2,4,2                  ## @DEBUG_PS2
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"handle_pspoll: BSSID=%pM, TA=%pM PWRMGT=%d\n"

	.comm	_DEBUG_AP,4,2                   ## @DEBUG_AP
L_.str.1:                               ## @.str.1
	.asciz	"handle_pspoll - addr1(BSSID)=%pM not own MAC\n"

	.comm	_DEBUG_PS,4,2                   ## @DEBUG_PS
L_.str.2:                               ## @.str.2
	.asciz	"   PSPOLL and AID[15:14] not set\n"

	.comm	_MAX_AID_TABLE_SIZE,4,2         ## @MAX_AID_TABLE_SIZE
L_.str.3:                               ## @.str.3
	.asciz	"   invalid aid=%d\n"

L_.str.4:                               ## @.str.4
	.asciz	"   aid=%d\n"

L_.str.5:                               ## @.str.5
	.asciz	"   STA not found\n"

L_.str.6:                               ## @.str.6
	.asciz	"   received aid=%i does not match with assoc.aid=%d\n"

L_.str.7:                               ## @.str.7
	.asciz	"Sending buffered frame to STA after PS POLL (buffer_count=%d)\n"

	.comm	_WLAN_STA_PS,4,2                ## @WLAN_STA_PS
	.comm	_WLAN_STA_TIM,4,2               ## @WLAN_STA_TIM
L_.str.8:                               ## @.str.8
	.asciz	"Re-unsetting TIM for aid %d\n"

	.no_dead_strip	_handle_pspoll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_pspoll
_handle_pspoll:                         ; @handle_pspoll
	.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	x21, x1
	mov	x19, x0
	ldr	x22, [x0, #8]
Lloh0:
	adrp	x27, _DEBUG_PS2@GOTPAGE
Lloh1:
	ldr	x27, [x27, _DEBUG_PS2@GOTPAGEOFF]
	ldr	w20, [x27]
	ldr	w0, [x1, #12]
	ldp	w23, w24, [x1]
	bl	_ieee80211_has_pm
	cmp	w0, #0
	cset	w8, ne
	stp	x23, x24, [sp]
	str	x8, [sp, #16]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_PDEBUG
	ldr	w0, [x21]
	ldr	w1, [x22]
	bl	_ether_addr_equal
	cbz	w0, LBB0_14
; %bb.1:
	ldr	w0, [x21, #8]
	bl	_le16_to_cpu
	mov	x20, x0
	mov	w0, #15
	bl	_BIT
	mov	x22, x0
	mov	w0, #14
	bl	_BIT
	orr	w8, w0, w22
	and	w23, w8, w20
	mov	w0, #15
	bl	_BIT
	mov	x22, x0
	mov	w0, #14
	bl	_BIT
	orr	w8, w0, w22
	cmp	w23, w8
	b.ne	LBB0_15
; %bb.2:
	mov	w0, #15
	bl	_BIT
	mov	x22, x0
	mov	w0, #14
	bl	_BIT
	orr	w8, w0, w22
	bics	w20, w20, w8
	b.eq	LBB0_17
; %bb.3:
Lloh4:
	adrp	x8, _MAX_AID_TABLE_SIZE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MAX_AID_TABLE_SIZE@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w20, w8
	b.gt	LBB0_17
; %bb.4:
	ldr	w0, [x27]
	str	x20, [sp]
Lloh7:
	adrp	x1, l_.str.4@PAGE
Lloh8:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_PDEBUG
	ldr	x0, [x19]
	bl	_spin_lock_bh
	ldr	x0, [x19]
	ldr	w1, [x21, #4]
	bl	_ap_get_sta
	cbz	x0, LBB0_18
; %bb.5:
	mov	x21, x0
	add	x22, x0, #8
	mov	x0, x22
	bl	_atomic_inc
	ldr	x0, [x19]
	bl	_spin_unlock_bh
	ldr	w8, [x21]
	cmp	w8, w20
	b.ne	LBB0_19
; %bb.6:
	add	x23, x21, #12
Lloh9:
	adrp	x24, l_.str.7@PAGE
Lloh10:
	add	x24, x24, l_.str.7@PAGEOFF
Lloh11:
	adrp	x28, _WLAN_STA_PS@GOTPAGE
Lloh12:
	ldr	x28, [x28, _WLAN_STA_PS@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	bl	_skb_dequeue
	cbz	x0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x25, x0
	ldr	w26, [x27]
	mov	x0, x23
	bl	_skb_queue_len
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	mov	x0, x26
	mov	x1, x24
	bl	_PDEBUG
	mov	x0, x19
	mov	x1, x21
	mov	x2, x25
	bl	_pspoll_send_buffered
	ldr	w8, [x21, #4]
	ldr	w9, [x28]
	tst	w9, w8
	b.eq	LBB0_7
LBB0_9:
	mov	x0, x23
	bl	_skb_queue_empty
	cbz	x0, LBB0_13
; %bb.10:
	ldr	w8, [x21, #4]
Lloh13:
	adrp	x23, _WLAN_STA_TIM@GOTPAGE
Lloh14:
	ldr	x23, [x23, _WLAN_STA_TIM@GOTPAGEOFF]
	ldr	w9, [x23]
	tst	w9, w8
	b.ne	LBB0_12
; %bb.11:
	ldr	w0, [x27]
	mov	x8, x20
	str	x8, [sp]
Lloh15:
	adrp	x1, l_.str.8@PAGE
Lloh16:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_PDEBUG
LBB0_12:
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_hostap_set_tim
	ldr	w8, [x23]
	ldr	w9, [x21, #4]
	bic	w8, w9, w8
	str	w8, [x21, #4]
LBB0_13:
	mov	x0, 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	_atomic_dec
LBB0_14:
Lloh17:
	adrp	x8, _DEBUG_AP@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DEBUG_AP@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	ldr	w8, [x21]
	str	x8, [sp]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_20
LBB0_15:
Lloh22:
	adrp	x8, _DEBUG_PS@GOTPAGE
Lloh23:
	ldr	x8, [x8, _DEBUG_PS@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_16:
	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	_PDEBUG
LBB0_17:
Lloh27:
	adrp	x8, _DEBUG_PS@GOTPAGE
Lloh28:
	ldr	x8, [x8, _DEBUG_PS@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	str	x20, [sp]
Lloh30:
	adrp	x1, l_.str.3@PAGE
Lloh31:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_20
LBB0_18:
	ldr	x0, [x19]
	bl	_spin_unlock_bh
Lloh32:
	adrp	x8, _DEBUG_PS@GOTPAGE
Lloh33:
	ldr	x8, [x8, _DEBUG_PS@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
Lloh35:
	adrp	x1, l_.str.5@PAGE
Lloh36:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_16
LBB0_19:
Lloh37:
	adrp	x9, _DEBUG_PS@GOTPAGE
Lloh38:
	ldr	x9, [x9, _DEBUG_PS@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x9]
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	stp	x20, x8, [sp]
Lloh40:
	adrp	x1, l_.str.6@PAGE
Lloh41:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_20:
	bl	_PDEBUG
	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
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_DEBUG_PS2,4,2                  ; @DEBUG_PS2
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"handle_pspoll: BSSID=%pM, TA=%pM PWRMGT=%d\n"

	.comm	_DEBUG_AP,4,2                   ; @DEBUG_AP
l_.str.1:                               ; @.str.1
	.asciz	"handle_pspoll - addr1(BSSID)=%pM not own MAC\n"

	.comm	_DEBUG_PS,4,2                   ; @DEBUG_PS
l_.str.2:                               ; @.str.2
	.asciz	"   PSPOLL and AID[15:14] not set\n"

	.comm	_MAX_AID_TABLE_SIZE,4,2         ; @MAX_AID_TABLE_SIZE
l_.str.3:                               ; @.str.3
	.asciz	"   invalid aid=%d\n"

l_.str.4:                               ; @.str.4
	.asciz	"   aid=%d\n"

l_.str.5:                               ; @.str.5
	.asciz	"   STA not found\n"

l_.str.6:                               ; @.str.6
	.asciz	"   received aid=%i does not match with assoc.aid=%d\n"

l_.str.7:                               ; @.str.7
	.asciz	"Sending buffered frame to STA after PS POLL (buffer_count=%d)\n"

	.comm	_WLAN_STA_PS,4,2                ; @WLAN_STA_PS
	.comm	_WLAN_STA_TIM,4,2               ; @WLAN_STA_TIM
l_.str.8:                               ; @.str.8
	.asciz	"Re-unsetting TIM for aid %d\n"

	.no_dead_strip	_handle_pspoll
.subsections_via_symbols
