	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_drv_set_power          ## -- Begin function mwifiex_drv_set_power
	.p2align	4, 0x90
_mwifiex_drv_set_power:                 ## @mwifiex_drv_set_power
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	cmpq	$0, (%rsi)
	movq	_MWIFIEX_802_11_POWER_MODE_PSP@GOTPCREL(%rip), %rax
	cmoveq	_MWIFIEX_802_11_POWER_MODE_CAM@GOTPCREL(%rip), %rax
	movq	(%rdi), %rcx
	movl	(%rax), %eax
	movl	%eax, (%rcx)
	movq	_EN_AUTO_PS@GOTPCREL(%rip), %rax
	cmoveq	_DIS_AUTO_PS@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_HostCmd_CMD_802_11_PS_MODE_ENH@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_BITMAP_STA_PS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdx
	xorl	%r8d, %r8d
	movl	$1, %r9d
	callq	_mwifiex_send_cmd
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_DIS_AUTO_PS@GOTPCREL(%rip), %rcx
	movl	$0, %eax
	cmpq	(%rcx), %rbx
	jne	LBB0_2
## %bb.3:
	movl	(%r15), %esi
	movq	_GET_PS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mwifiex_send_cmd               ## TAILCALL
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MWIFIEX_802_11_POWER_MODE_PSP,4,2 ## @MWIFIEX_802_11_POWER_MODE_PSP
	.comm	_MWIFIEX_802_11_POWER_MODE_CAM,4,2 ## @MWIFIEX_802_11_POWER_MODE_CAM
	.comm	_EN_AUTO_PS,8,3                 ## @EN_AUTO_PS
	.comm	_DIS_AUTO_PS,8,3                ## @DIS_AUTO_PS
	.comm	_HostCmd_CMD_802_11_PS_MODE_ENH,4,2 ## @HostCmd_CMD_802_11_PS_MODE_ENH
	.comm	_BITMAP_STA_PS,4,2              ## @BITMAP_STA_PS
	.comm	_GET_PS,8,3                     ## @GET_PS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_drv_set_power          ; -- Begin function mwifiex_drv_set_power
	.p2align	2
_mwifiex_drv_set_power:                 ; @mwifiex_drv_set_power
	.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
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x9, [x1]
Lloh0:
	adrp	x10, _MWIFIEX_802_11_POWER_MODE_CAM@GOTPAGE
Lloh1:
	ldr	x10, [x10, _MWIFIEX_802_11_POWER_MODE_CAM@GOTPAGEOFF]
Lloh2:
	adrp	x11, _MWIFIEX_802_11_POWER_MODE_PSP@GOTPAGE
Lloh3:
	ldr	x11, [x11, _MWIFIEX_802_11_POWER_MODE_PSP@GOTPAGEOFF]
	cmp	x9, #0
	csel	x9, x10, x11, eq
	ldr	w9, [x9]
	str	w9, [x8]
Lloh4:
	adrp	x8, _EN_AUTO_PS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EN_AUTO_PS@GOTPAGEOFF]
Lloh6:
	adrp	x22, _DIS_AUTO_PS@GOTPAGE
Lloh7:
	ldr	x22, [x22, _DIS_AUTO_PS@GOTPAGEOFF]
	csel	x8, x22, x8, eq
	ldr	x20, [x8]
Lloh8:
	adrp	x21, _HostCmd_CMD_802_11_PS_MODE_ENH@GOTPAGE
Lloh9:
	ldr	x21, [x21, _HostCmd_CMD_802_11_PS_MODE_ENH@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh10:
	adrp	x8, _BITMAP_STA_PS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _BITMAP_STA_PS@GOTPAGEOFF]
Lloh12:
	ldr	w3, [x8]
	mov	x2, x20
	mov	x4, #0
	mov	w5, #1
	bl	_mwifiex_send_cmd
	cbnz	w0, LBB0_4
; %bb.1:
	ldr	x8, [x22]
	cmp	x20, x8
	b.ne	LBB0_3
; %bb.2:
	ldr	w1, [x21]
Lloh13:
	adrp	x8, _GET_PS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _GET_PS@GOTPAGEOFF]
Lloh15:
	ldr	x2, [x8]
	mov	x0, x19
	mov	w3, #0
	mov	x4, #0
	mov	w5, #0
	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
	b	_mwifiex_send_cmd
LBB0_3:
	mov	w0, #0
LBB0_4:
	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
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_MWIFIEX_802_11_POWER_MODE_PSP,4,2 ; @MWIFIEX_802_11_POWER_MODE_PSP
	.comm	_MWIFIEX_802_11_POWER_MODE_CAM,4,2 ; @MWIFIEX_802_11_POWER_MODE_CAM
	.comm	_EN_AUTO_PS,8,3                 ; @EN_AUTO_PS
	.comm	_DIS_AUTO_PS,8,3                ; @DIS_AUTO_PS
	.comm	_HostCmd_CMD_802_11_PS_MODE_ENH,4,2 ; @HostCmd_CMD_802_11_PS_MODE_ENH
	.comm	_BITMAP_STA_PS,4,2              ; @BITMAP_STA_PS
	.comm	_GET_PS,8,3                     ; @GET_PS
.subsections_via_symbols
