	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hostap_cs_resume
_hostap_cs_resume:                      ## @hostap_cs_resume
	.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
	testq	%r14, %r14
	je	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	_DEBUG_EXTRA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_dev_info@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	callq	_PDEBUG
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.3:
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	(%rax), %r15
	xorl	%ebx, %ebx
	testq	%r15, %r15
	setle	%bl
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_prism2_hw_shutdown
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_prism2_hw_config
	xorl	%ebx, %ebx
	testq	%r15, %r15
	jle	LBB0_7
## %bb.5:
	movq	%r14, %rdi
	callq	_netif_device_attach
	movq	%r14, %rdi
	callq	_netif_start_queue
	jmp	LBB0_7
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_6:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_prism2_hw_shutdown
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_prism2_hw_config
	xorl	%ebx, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_DEBUG_EXTRA,4,2                ## @DEBUG_EXTRA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: CS_EVENT_PM_RESUME\n"

	.comm	_dev_info,4,2                   ## @dev_info
	.no_dead_strip	_hostap_cs_resume
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hostap_cs_resume
_hostap_cs_resume:                      ; @hostap_cs_resume
	.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
	ldr	x19, [x0]
	cbz	x19, LBB0_5
; %bb.1:
	mov	x0, x19
	bl	_netdev_priv
	mov	x20, x0
Lloh0:
	adrp	x8, _DEBUG_EXTRA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEBUG_EXTRA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _dev_info@GOTPAGE
Lloh4:
	ldr	x8, [x8, _dev_info@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_PDEBUG
	cbz	x20, LBB0_6
; %bb.2:
	ldr	x8, [x20]
	cbz	x8, LBB0_6
; %bb.3:
	ldr	x21, [x8]
	cmp	x21, #1
	cset	w20, lt
	mov	x0, x19
	mov	w1, #1
	bl	_prism2_hw_shutdown
	mov	x0, x19
	mov	x1, x20
	bl	_prism2_hw_config
	cmp	x21, #1
	b.lt	LBB0_7
; %bb.4:
	mov	x0, x19
	bl	_netif_device_attach
	mov	x0, x19
	bl	_netif_start_queue
	b	LBB0_7
LBB0_5:
Lloh8:
	adrp	x8, _ENODEV@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_6:
	mov	x0, x19
	mov	w1, #1
	bl	_prism2_hw_shutdown
	mov	x0, x19
	mov	w1, #1
	bl	_prism2_hw_config
LBB0_7:
	mov	w0, #0
LBB0_8:
	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 AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_DEBUG_EXTRA,4,2                ; @DEBUG_EXTRA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: CS_EVENT_PM_RESUME\n"

	.comm	_dev_info,4,2                   ; @dev_info
	.no_dead_strip	_hostap_cs_resume
.subsections_via_symbols
