	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_cmd_enh_power_mode     ## -- Begin function mwifiex_cmd_enh_power_mode
	.p2align	4, 0x90
_mwifiex_cmd_enh_power_mode:            ## @mwifiex_cmd_enh_power_mode
	.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	%r8, %r12
	movl	%ecx, %r13d
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_HostCmd_CMD_802_11_PS_MODE_ENH@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_cpu_to_le16
	movq	%rax, 8(%r15)
	movq	_DIS_AUTO_PS@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	je	LBB0_1
## %bb.2:
	movq	_GET_PS@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jne	LBB0_3
LBB0_1:
	movq	%rbx, %rdi
	callq	_cpu_to_le16
	movq	%rax, 24(%r15)
	movslq	%r13d, %rdi
	callq	_cpu_to_le16
	movq	%rax, 16(%r15)
	movq	_S_DS_GEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	addq	$16, %rbx
LBB0_12:
	movq	%rbx, %rdi
	callq	_cpu_to_le16
	movq	%rax, (%r15)
LBB0_13:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_EN_AUTO_PS@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jne	LBB0_13
## %bb.4:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_cpu_to_le16
	movq	%rax, 24(%r15)
	movslq	%r13d, %r12
	movq	%r12, %rdi
	callq	_cpu_to_le16
	movq	%rax, 16(%r15)
	movq	_S_DS_GEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	leaq	(%r15,%rbx,4), %r14
	addq	$64, %r14
	movq	_BITMAP_STA_PS@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_5
## %bb.6:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r12
	movq	_TLV_TYPE_PS_PARAM@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_cpu_to_le16
	movq	%rax, 8(%r14)
	movl	$68, %edi
	callq	_cpu_to_le16
	movq	%rax, (%r14)
	addq	$88, %rbx
	leaq	288(%r14), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movq	_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_mwifiex_dbg
	movq	(%r12), %rdi
	callq	_cpu_to_le16
	movq	%rax, 64(%r14)
	movq	8(%r12), %rdi
	callq	_cpu_to_le16
	movq	%rax, 56(%r14)
	movq	16(%r12), %rdi
	callq	_cpu_to_le16
	movq	%rax, 48(%r14)
	movq	24(%r12), %rdi
	callq	_cpu_to_le16
	movq	%rax, 40(%r14)
	movq	32(%r12), %rdi
	callq	_cpu_to_le16
	movq	%rax, 32(%r14)
	movq	40(%r12), %rdi
	callq	_cpu_to_le16
	movq	%rax, 24(%r14)
	movq	48(%r12), %rdi
	callq	_cpu_to_le16
	movq	%rax, 16(%r14)
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_7
LBB0_5:
	addq	$16, %rbx
LBB0_7:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	_BITMAP_AUTO_DS@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_12
## %bb.8:
	movq	_TLV_TYPE_AUTO_DS_PARAM@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_cpu_to_le16
	movq	%rax, 16(%r14)
	movl	$20, %edi
	callq	_cpu_to_le16
	movq	%rax, 8(%r14)
	testq	%r12, %r12
	je	LBB0_9
## %bb.10:
	movq	(%r12), %r12
	jmp	LBB0_11
LBB0_9:
	xorl	%r12d, %r12d
LBB0_11:
	addq	$24, %rbx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movq	_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	callq	_mwifiex_dbg
	movq	%r12, %rdi
	callq	_cpu_to_le16
	movq	%rax, (%r14)
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_HostCmd_CMD_802_11_PS_MODE_ENH,8,3 ## @HostCmd_CMD_802_11_PS_MODE_ENH
	.comm	_DIS_AUTO_PS,8,3                ## @DIS_AUTO_PS
	.comm	_S_DS_GEN,8,3                   ## @S_DS_GEN
	.comm	_GET_PS,8,3                     ## @GET_PS
	.comm	_EN_AUTO_PS,8,3                 ## @EN_AUTO_PS
	.comm	_BITMAP_STA_PS,4,2              ## @BITMAP_STA_PS
	.comm	_TLV_TYPE_PS_PARAM,8,3          ## @TLV_TYPE_PS_PARAM
	.comm	_CMD,4,2                        ## @CMD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cmd: PS Command: Enter PS\n"

	.comm	_BITMAP_AUTO_DS,4,2             ## @BITMAP_AUTO_DS
	.comm	_TLV_TYPE_AUTO_DS_PARAM,8,3     ## @TLV_TYPE_AUTO_DS_PARAM
L_.str.1:                               ## @.str.1
	.asciz	"cmd: PS Command: Enter Auto Deep Sleep\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_cmd_enh_power_mode     ; -- Begin function mwifiex_cmd_enh_power_mode
	.p2align	2
_mwifiex_cmd_enh_power_mode:            ; @mwifiex_cmd_enh_power_mode
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x4
	mov	x22, x3
	mov	x23, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _HostCmd_CMD_802_11_PS_MODE_ENH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HostCmd_CMD_802_11_PS_MODE_ENH@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
	bl	_cpu_to_le16
	str	x0, [x19, #8]
Lloh3:
	adrp	x8, _DIS_AUTO_PS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DIS_AUTO_PS@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, x23
	b.eq	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _GET_PS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GET_PS@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x8, x23
	b.ne	LBB0_5
LBB0_2:
	mov	x0, x23
	bl	_cpu_to_le16
	str	x0, [x19, #24]
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	sxtw	x0, w22
	bl	_cpu_to_le16
	str	x0, [x19, #16]
Lloh9:
	adrp	x8, _S_DS_GEN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _S_DS_GEN@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	add	x23, x8, #16
LBB0_3:
	mov	x0, x23
	bl	_cpu_to_le16
	str	x0, [x19]
LBB0_4:
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh12:
	adrp	x8, _EN_AUTO_PS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EN_AUTO_PS@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	x8, x23
	b.ne	LBB0_4
; %bb.6:
	mov	x0, x23
	bl	_cpu_to_le16
	str	x0, [x19, #24]
	sxtw	x0, w22
	bl	_cpu_to_le16
	str	x0, [x19, #16]
Lloh15:
	adrp	x8, _S_DS_GEN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _S_DS_GEN@GOTPAGEOFF]
Lloh17:
	ldr	x27, [x8]
	add	x23, x27, #16
	add	x24, x19, x23, lsl #2
Lloh18:
	adrp	x8, _BITMAP_STA_PS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BITMAP_STA_PS@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x25, _CMD@GOTPAGE
Lloh22:
	ldr	x25, [x25, _CMD@GOTPAGEOFF]
	tst	w8, w22
	b.eq	LBB0_8
; %bb.7:
	ldr	x26, [x20]
Lloh23:
	adrp	x8, _TLV_TYPE_PS_PARAM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _TLV_TYPE_PS_PARAM@GOTPAGEOFF]
Lloh25:
	ldr	x0, [x8]
	bl	_cpu_to_le16
	str	x0, [x24, #8]
	mov	w0, #68
	bl	_cpu_to_le16
	str	x0, [x24]
	add	x23, x27, #88
	add	x27, x24, #288
	ldr	x0, [x20]
	ldr	w1, [x25]
Lloh26:
	adrp	x2, l_.str@PAGE
Lloh27:
	add	x2, x2, l_.str@PAGEOFF
	bl	_mwifiex_dbg
	ldr	x0, [x26]
	bl	_cpu_to_le16
	str	x0, [x24, #64]
	ldr	x0, [x26, #8]
	bl	_cpu_to_le16
	str	x0, [x24, #56]
	ldr	x0, [x26, #16]
	bl	_cpu_to_le16
	str	x0, [x24, #48]
	ldr	x0, [x26, #24]
	bl	_cpu_to_le16
	str	x0, [x24, #40]
	ldr	x0, [x26, #32]
	bl	_cpu_to_le16
	str	x0, [x24, #32]
	ldr	x0, [x26, #40]
	bl	_cpu_to_le16
	str	x0, [x24, #24]
	ldr	x0, [x26, #48]
	bl	_cpu_to_le16
	str	x0, [x24, #16]
	mov	x24, x27
LBB0_8:
Lloh28:
	adrp	x8, _BITMAP_AUTO_DS@GOTPAGE
Lloh29:
	ldr	x8, [x8, _BITMAP_AUTO_DS@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_3
; %bb.9:
Lloh31:
	adrp	x8, _TLV_TYPE_AUTO_DS_PARAM@GOTPAGE
Lloh32:
	ldr	x8, [x8, _TLV_TYPE_AUTO_DS_PARAM@GOTPAGEOFF]
Lloh33:
	ldr	x0, [x8]
	bl	_cpu_to_le16
	str	x0, [x24, #16]
	mov	w0, #20
	bl	_cpu_to_le16
	str	x0, [x24, #8]
	add	x23, x23, #24
	cbz	x21, LBB0_11
; %bb.10:
	ldr	x21, [x21]
LBB0_11:
	ldr	x0, [x20]
	ldr	w1, [x25]
Lloh34:
	adrp	x2, l_.str.1@PAGE
Lloh35:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_mwifiex_dbg
	mov	x0, x21
	bl	_cpu_to_le16
	str	x0, [x24]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_HostCmd_CMD_802_11_PS_MODE_ENH,8,3 ; @HostCmd_CMD_802_11_PS_MODE_ENH
	.comm	_DIS_AUTO_PS,8,3                ; @DIS_AUTO_PS
	.comm	_S_DS_GEN,8,3                   ; @S_DS_GEN
	.comm	_GET_PS,8,3                     ; @GET_PS
	.comm	_EN_AUTO_PS,8,3                 ; @EN_AUTO_PS
	.comm	_BITMAP_STA_PS,4,2              ; @BITMAP_STA_PS
	.comm	_TLV_TYPE_PS_PARAM,8,3          ; @TLV_TYPE_PS_PARAM
	.comm	_CMD,4,2                        ; @CMD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cmd: PS Command: Enter PS\n"

	.comm	_BITMAP_AUTO_DS,4,2             ; @BITMAP_AUTO_DS
	.comm	_TLV_TYPE_AUTO_DS_PARAM,8,3     ; @TLV_TYPE_AUTO_DS_PARAM
l_.str.1:                               ; @.str.1
	.asciz	"cmd: PS Command: Enter Auto Deep Sleep\n"

.subsections_via_symbols
