	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hostap_cs_suspend
_hostap_cs_suspend:                     ## @hostap_cs_suspend
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_netdev_priv
	movq	%rax, %r14
	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	%r14, %r14
	je	LBB0_6
## %bb.3:
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	cmpq	$0, (%rax)
	jle	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_netif_stop_queue
	movq	%rbx, %rdi
	callq	_netif_device_detach
LBB0_6:
	movq	%rbx, %rdi
	callq	_prism2_suspend
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	popq	%rbx
	popq	%r14
	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_SUSPEND\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hostap_cs_suspend
_hostap_cs_suspend:                     ; @hostap_cs_suspend
	.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
	ldr	x19, [x0]
	cbz	x19, LBB0_6
; %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_5
; %bb.2:
	ldr	x8, [x20]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	x8, [x8]
	cmp	x8, #1
	b.lt	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_netif_stop_queue
	mov	x0, x19
	bl	_netif_device_detach
LBB0_5:
	mov	x0, x19
	bl	_prism2_suspend
	mov	w0, #0
	b	LBB0_7
LBB0_6:
Lloh8:
	adrp	x8, _ENODEV@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 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_SUSPEND\n"

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