	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lbs_mac_event_disconnected     ## -- Begin function lbs_mac_event_disconnected
	.p2align	4, 0x90
_lbs_mac_event_disconnected:            ## @lbs_mac_event_disconnected
	.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), %rax
	movq	_LBS_CONNECTED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_msleep_interruptible
	movq	48(%rbx), %rax
	movq	(%rax), %rax
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_lbs_send_disconnect_notification
LBB0_3:
	movl	40(%rbx), %edi
	callq	_netif_stop_queue
	movl	40(%rbx), %edi
	callq	_netif_carrier_off
	leaq	16(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	32(%rbx), %rdi
	callq	_kfree_skb
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%rbx)
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	_LBS_DISCONNECTED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movq	8(%rbx), %rax
	movq	_PS_STATE_FULL_POWER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	leaq	L_.str(%rip), %rdi
	callq	_lbs_deb_cmd
	movq	_PS_MODE_ACTION_EXIT_PS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_lbs_set_ps_mode                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LBS_CONNECTED,8,3              ## @LBS_CONNECTED
	.comm	_NL80211_IFTYPE_STATION,8,3     ## @NL80211_IFTYPE_STATION
	.comm	_LBS_DISCONNECTED,8,3           ## @LBS_DISCONNECTED
	.comm	_PS_STATE_FULL_POWER,8,3        ## @PS_STATE_FULL_POWER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"disconnected, so exit PS mode\n"

	.comm	_PS_MODE_ACTION_EXIT_PS,4,2     ## @PS_MODE_ACTION_EXIT_PS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lbs_mac_event_disconnected     ; -- Begin function lbs_mac_event_disconnected
	.p2align	2
_lbs_mac_event_disconnected:            ; @lbs_mac_event_disconnected
	.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	x8, [x0]
Lloh0:
	adrp	x9, _LBS_CONNECTED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LBS_CONNECTED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	mov	w0, #1000
	bl	_msleep_interruptible
	ldr	x8, [x19, #48]
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _NL80211_IFTYPE_STATION@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NL80211_IFTYPE_STATION@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x19
	mov	x1, x20
	bl	_lbs_send_disconnect_notification
LBB0_3:
	ldr	w0, [x19, #40]
	bl	_netif_stop_queue
	ldr	w0, [x19, #40]
	bl	_netif_carrier_off
	add	x20, x19, #16
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	x0, [x19, #32]
	bl	_kfree_skb
	stp	xzr, xzr, [x19, #24]
	mov	x0, x20
	bl	_spin_unlock_irqrestore
Lloh6:
	adrp	x8, _LBS_DISCONNECTED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LBS_DISCONNECTED@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x8, [x19]
	ldr	x8, [x19, #8]
Lloh9:
	adrp	x9, _PS_STATE_FULL_POWER@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PS_STATE_FULL_POWER@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_lbs_deb_cmd
Lloh14:
	adrp	x8, _PS_MODE_ACTION_EXIT_PS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PS_MODE_ACTION_EXIT_PS@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_lbs_set_ps_mode
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_LBS_CONNECTED,8,3              ; @LBS_CONNECTED
	.comm	_NL80211_IFTYPE_STATION,8,3     ; @NL80211_IFTYPE_STATION
	.comm	_LBS_DISCONNECTED,8,3           ; @LBS_DISCONNECTED
	.comm	_PS_STATE_FULL_POWER,8,3        ; @PS_STATE_FULL_POWER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"disconnected, so exit PS mode\n"

	.comm	_PS_MODE_ACTION_EXIT_PS,4,2     ; @PS_MODE_ACTION_EXIT_PS
.subsections_via_symbols
