	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lbs_eth_stop
_lbs_eth_stop:                          ## @lbs_eth_stop
	.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
	movq	(%rdi), %rbx
	movq	(%rbx), %rax
	movq	_LBS_CONNECTED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_WLAN_REASON_DEAUTH_LEAVING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_lbs_disconnect
LBB0_2:
	leaq	28(%rbx), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irq
	movq	%r14, %rdi
	callq	_netif_stop_queue
	movq	%r15, %rdi
	callq	_spin_unlock_irq
	movq	%rbx, %rdi
	callq	_lbs_update_mcast
	leaq	24(%rbx), %rdi
	callq	_cancel_delayed_work_sync
	cmpq	$0, 16(%rbx)
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_lbs_scan_done
LBB0_4:
	movl	8(%rbx), %edi
	callq	_netif_carrier_off
	movq	%rbx, %rdi
	callq	_lbs_iface_active
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_lbs_stop_iface
LBB0_6:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LBS_CONNECTED,8,3              ## @LBS_CONNECTED
	.comm	_WLAN_REASON_DEAUTH_LEAVING,4,2 ## @WLAN_REASON_DEAUTH_LEAVING
	.no_dead_strip	_lbs_eth_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lbs_eth_stop
_lbs_eth_stop:                          ; @lbs_eth_stop
	.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	x20, x0
	ldr	x19, [x0]
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _LBS_CONNECTED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LBS_CONNECTED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _WLAN_REASON_DEAUTH_LEAVING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WLAN_REASON_DEAUTH_LEAVING@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_lbs_disconnect
LBB0_2:
	add	x21, x19, #28
	mov	x0, x21
	bl	_spin_lock_irq
	mov	x0, x20
	bl	_netif_stop_queue
	mov	x0, x21
	bl	_spin_unlock_irq
	mov	x0, x19
	bl	_lbs_update_mcast
	add	x0, x19, #24
	bl	_cancel_delayed_work_sync
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_lbs_scan_done
LBB0_4:
	ldr	w0, [x19, #8]
	bl	_netif_carrier_off
	mov	x0, x19
	bl	_lbs_iface_active
	cbnz	w0, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_lbs_stop_iface
LBB0_6:
	mov	w0, #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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_LBS_CONNECTED,8,3              ; @LBS_CONNECTED
	.comm	_WLAN_REASON_DEAUTH_LEAVING,4,2 ; @WLAN_REASON_DEAUTH_LEAVING
	.no_dead_strip	_lbs_eth_stop
.subsections_via_symbols
