	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lbs_queue_event                ## -- Begin function lbs_queue_event
	.p2align	4, 0x90
_lbs_queue_event:                       ## @lbs_queue_event
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	%esi, -20(%rbp)
	leaq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	(%rbx), %rax
	movq	_PS_STATE_SLEEP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_PS_STATE_AWAKE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
LBB0_2:
	leaq	16(%rbx), %rdi
	leaq	-20(%rbp), %rsi
	movl	$4, %edx
	callq	_kfifo_in
	addq	$12, %rbx
	movq	%rbx, %rdi
	callq	_wake_up
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PS_STATE_SLEEP,8,3             ## @PS_STATE_SLEEP
	.comm	_PS_STATE_AWAKE,8,3             ## @PS_STATE_AWAKE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lbs_queue_event                ; -- Begin function lbs_queue_event
	.p2align	2
_lbs_queue_event:                       ; @lbs_queue_event
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x0
	str	w1, [sp, #12]
	add	x19, x0, #8
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _PS_STATE_SLEEP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PS_STATE_SLEEP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _PS_STATE_AWAKE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PS_STATE_AWAKE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [x20]
LBB0_2:
	add	x0, x20, #16
	add	x1, sp, #12
	mov	w2, #4
	bl	_kfifo_in
	add	x0, x20, #12
	bl	_wake_up
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PS_STATE_SLEEP,8,3             ; @PS_STATE_SLEEP
	.comm	_PS_STATE_AWAKE,8,3             ; @PS_STATE_AWAKE
.subsections_via_symbols
