	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_pm_wakeup_card
_mwifiex_pm_wakeup_card:                ## @mwifiex_pm_wakeup_card
	.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, %rbx
	movq	8(%rdi), %rax
	movq	(%rax), %r15
	movq	_EVENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_mwifiex_dbg
	cmpq	$0, (%r15)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_mwifiex_pcie_dev_wakeup_delay
LBB0_2:
	movl	8(%r15), %esi
	movq	_FIRMWARE_READY_PCIE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_mwifiex_write_reg
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	callq	_mwifiex_dbg
	movl	$-1, %r14d
	jmp	LBB0_6
LBB0_4:
	xorl	%r14d, %r14d
	cmpq	$0, (%r15)
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_mwifiex_pcie_dev_wakeup_delay
	movq	_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%rbx, %rdi
	callq	_mwifiex_dbg
	movq	_PS_STATE_AWAKE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EVENT,4,2                      ## @EVENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"event: Wakeup device...\n"

	.comm	_FIRMWARE_READY_PCIE,4,2        ## @FIRMWARE_READY_PCIE
	.comm	_ERROR,4,2                      ## @ERROR
L_.str.1:                               ## @.str.1
	.asciz	"Writing fw_status register failed\n"

	.comm	_INFO,4,2                       ## @INFO
L_.str.2:                               ## @.str.2
	.asciz	"PCIE wakeup: Setting PS_STATE_AWAKE\n"

	.comm	_PS_STATE_AWAKE,4,2             ## @PS_STATE_AWAKE
	.no_dead_strip	_mwifiex_pm_wakeup_card
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwifiex_pm_wakeup_card
_mwifiex_pm_wakeup_card:                ; @mwifiex_pm_wakeup_card
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x20, [x8]
Lloh0:
	adrp	x8, _EVENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EVENT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	bl	_mwifiex_dbg
	ldr	x8, [x20]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_mwifiex_pcie_dev_wakeup_delay
LBB0_2:
	ldr	w1, [x20, #8]
Lloh5:
	adrp	x8, _FIRMWARE_READY_PCIE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FIRMWARE_READY_PCIE@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_mwifiex_write_reg
	cbz	x0, LBB0_4
; %bb.3:
Lloh8:
	adrp	x8, _ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_mwifiex_dbg
	mov	w0, #-1
	b	LBB0_7
LBB0_4:
	ldr	x8, [x20]
	cbz	x8, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_mwifiex_pcie_dev_wakeup_delay
Lloh13:
	adrp	x8, _INFO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _INFO@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x2, l_.str.2@PAGE
Lloh17:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_mwifiex_dbg
	mov	w0, #0
Lloh18:
	adrp	x8, _PS_STATE_AWAKE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PS_STATE_AWAKE@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [x19]
	b	LBB0_7
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_EVENT,4,2                      ; @EVENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"event: Wakeup device...\n"

	.comm	_FIRMWARE_READY_PCIE,4,2        ; @FIRMWARE_READY_PCIE
	.comm	_ERROR,4,2                      ; @ERROR
l_.str.1:                               ; @.str.1
	.asciz	"Writing fw_status register failed\n"

	.comm	_INFO,4,2                       ; @INFO
l_.str.2:                               ; @.str.2
	.asciz	"PCIE wakeup: Setting PS_STATE_AWAKE\n"

	.comm	_PS_STATE_AWAKE,4,2             ; @PS_STATE_AWAKE
	.no_dead_strip	_mwifiex_pm_wakeup_card
.subsections_via_symbols
