	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_p54_set_ps                     ## -- Begin function p54_set_ps
	.p2align	4, 0x90
_p54_set_ps:                            ## @p54_set_ps
	.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, %r12
	movq	8(%rdi), %rax
	movq	_IEEE80211_CONF_PS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_3
## %bb.1:
	cmpl	$0, 16(%r12)
	je	LBB0_2
LBB0_3:
	movq	_P54_PSM_CAM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_4
LBB0_2:
	movq	_P54_PSM@GOTPCREL(%rip), %rax
	movq	_P54_PSM_BEACON_TIMEOUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	_P54_PSM_DTIM@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_P54_PSM_CHECKSUM@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_P54_PSM_MCBC@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
LBB0_4:
	movq	_P54_HDR_FLAG_CONTROL_OPSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_P54_CONTROL_TYPE_PSM@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r12, %rdi
	movl	$48, %edx
	callq	_p54_alloc_skb
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r15
	movq	%rax, %rdi
	movl	$48, %esi
	callq	_skb_put
	movq	%rax, %r13
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_cpu_to_le16
	movq	%rax, 40(%r13)
	movl	(%r12), %edi
	callq	_cpu_to_le16
	movq	%rax, 32(%r13)
	movq	24(%r13), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movl	4(%rax), %edi
	callq	_cpu_to_le16
	movq	24(%r13), %rcx
	movq	%rax, 8(%rcx,%rbx)
	movl	$1, %edi
	callq	_cpu_to_le16
	movq	24(%r13), %rdi
	movq	%rax, (%rdi,%rbx)
	incq	%r14
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	addq	$16, %rbx
	cmpq	%rax, %r14
	jb	LBB0_8
LBB0_9:
	movabsq	$4294967496, %rax               ## imm = 0x1000000C8
	movq	%rax, (%r13)
	movq	$0, 16(%r13)
	movq	_WLAN_EID_TIM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%r13), %rcx
	movl	%eax, (%rcx)
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_p54_tx
	movq	_P54_PSM_CAM@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	cmpl	(%rax), %edx
	setne	%cl
	movl	%ecx, 4(%r12)
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_CONF_PS,4,2          ## @IEEE80211_CONF_PS
	.comm	_P54_PSM,4,2                    ## @P54_PSM
	.comm	_P54_PSM_BEACON_TIMEOUT,4,2     ## @P54_PSM_BEACON_TIMEOUT
	.comm	_P54_PSM_DTIM,4,2               ## @P54_PSM_DTIM
	.comm	_P54_PSM_CHECKSUM,4,2           ## @P54_PSM_CHECKSUM
	.comm	_P54_PSM_MCBC,4,2               ## @P54_PSM_MCBC
	.comm	_P54_PSM_CAM,4,2                ## @P54_PSM_CAM
	.comm	_P54_HDR_FLAG_CONTROL_OPSET,4,2 ## @P54_HDR_FLAG_CONTROL_OPSET
	.comm	_P54_CONTROL_TYPE_PSM,4,2       ## @P54_CONTROL_TYPE_PSM
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_WLAN_EID_TIM,4,2               ## @WLAN_EID_TIM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function p54_set_ps
lCPI0_0:
	.long	200                             ; 0xc8
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_p54_set_ps
	.p2align	2
_p54_set_ps:                            ; @p54_set_ps
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x0
	ldr	x8, [x0, #8]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _IEEE80211_CONF_PS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEEE80211_CONF_PS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x23, _P54_PSM_CAM@GOTPAGE
Lloh4:
	ldr	x23, [x23, _P54_PSM_CAM@GOTPAGEOFF]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_3
LBB0_2:
	ldr	w20, [x23]
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x8, _P54_PSM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _P54_PSM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _P54_PSM_BEACON_TIMEOUT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _P54_PSM_BEACON_TIMEOUT@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh11:
	adrp	x9, _P54_PSM_DTIM@GOTPAGE
Lloh12:
	ldr	x9, [x9, _P54_PSM_DTIM@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh14:
	adrp	x9, _P54_PSM_CHECKSUM@GOTPAGE
Lloh15:
	ldr	x9, [x9, _P54_PSM_CHECKSUM@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh17:
	adrp	x9, _P54_PSM_MCBC@GOTPAGE
Lloh18:
	ldr	x9, [x9, _P54_PSM_MCBC@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w20, w8, w9
LBB0_4:
Lloh20:
	adrp	x8, _P54_HDR_FLAG_CONTROL_OPSET@GOTPAGE
Lloh21:
	ldr	x8, [x8, _P54_HDR_FLAG_CONTROL_OPSET@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x8, _P54_CONTROL_TYPE_PSM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _P54_CONTROL_TYPE_PSM@GOTPAGEOFF]
Lloh25:
	ldr	w3, [x8]
Lloh26:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh27:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh28:
	ldr	w4, [x8]
	mov	x0, x19
	mov	w2, #48
	bl	_p54_alloc_skb
	cbz	x0, LBB0_9
; %bb.5:
	mov	x21, x0
	mov	w1, #48
	bl	_skb_put
	mov	x22, x0
	mov	x0, x20
	bl	_cpu_to_le16
	str	x0, [x22, #40]
	ldr	w0, [x19]
	bl	_cpu_to_le16
	str	x0, [x22, #32]
	ldr	x0, [x22, #24]
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_8
; %bb.6:
	mov	x24, #0
	mov	x25, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	w0, [x8, #4]
	bl	_cpu_to_le16
	ldr	x8, [x22, #24]
	add	x8, x8, x24
	str	x0, [x8, #8]
	mov	w0, #1
	bl	_cpu_to_le16
	ldr	x8, [x22, #24]
	str	x0, [x8, x24]
	add	x25, x25, #1
	mov	x0, x8
	bl	_ARRAY_SIZE
	add	x24, x24, #16
	cmp	x25, w0, uxtw
	b.lo	LBB0_7
LBB0_8:
	str	xzr, [x22, #16]
Lloh29:
	adrp	x8, lCPI0_0@PAGE
Lloh30:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x22]
Lloh31:
	adrp	x8, _WLAN_EID_TIM@GOTPAGE
Lloh32:
	ldr	x8, [x8, _WLAN_EID_TIM@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	ldr	x9, [x22, #8]
	str	w8, [x9]
	mov	x0, x19
	mov	x1, x21
	bl	_p54_tx
	mov	w0, #0
	ldr	w8, [x23]
	cmp	w20, w8
	cset	w8, ne
	str	w8, [x19, #4]
	b	LBB0_10
LBB0_9:
Lloh34:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdrp	Lloh29, Lloh31
	.loh AdrpLdr	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_CONF_PS,4,2          ; @IEEE80211_CONF_PS
	.comm	_P54_PSM,4,2                    ; @P54_PSM
	.comm	_P54_PSM_BEACON_TIMEOUT,4,2     ; @P54_PSM_BEACON_TIMEOUT
	.comm	_P54_PSM_DTIM,4,2               ; @P54_PSM_DTIM
	.comm	_P54_PSM_CHECKSUM,4,2           ; @P54_PSM_CHECKSUM
	.comm	_P54_PSM_MCBC,4,2               ; @P54_PSM_MCBC
	.comm	_P54_PSM_CAM,4,2                ; @P54_PSM_CAM
	.comm	_P54_HDR_FLAG_CONTROL_OPSET,4,2 ; @P54_HDR_FLAG_CONTROL_OPSET
	.comm	_P54_CONTROL_TYPE_PSM,4,2       ; @P54_CONTROL_TYPE_PSM
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_WLAN_EID_TIM,4,2               ; @WLAN_EID_TIM
.subsections_via_symbols
