	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lbs_ps_confirm_sleep           ## -- Begin function lbs_ps_confirm_sleep
	.p2align	4, 0x90
_lbs_ps_confirm_sleep:                  ## @lbs_ps_confirm_sleep
	.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, %rbx
	leaq	8(%rdi), %r14
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_spin_lock_irqsave
	cmpq	$0, 40(%rbx)
	je	LBB0_1
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_lbs_deb_host
	cmpq	$0, 32(%rbx)
	je	LBB0_5
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	callq	_lbs_deb_host
	xorl	%r15d, %r15d
LBB0_5:
	leaq	24(%rbx), %rdi
	callq	_kfifo_len
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movq	(%rbx), %rax
	movq	16(%rbx), %rcx
	cmpq	$0, (%rcx,%rax,8)
	je	LBB0_9
LBB0_7:
	leaq	L_.str.2(%rip), %rdi
	callq	_lbs_deb_host
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_spin_unlock_irqrestore
LBB0_8:
	leaq	L_.str.4(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_lbs_deb_host                   ## TAILCALL
LBB0_1:
	movl	$1, %r15d
	cmpq	$0, 32(%rbx)
	jne	LBB0_4
	jmp	LBB0_5
LBB0_9:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_spin_unlock_irqrestore
	testl	%r15d, %r15d
	je	LBB0_8
## %bb.10:
	leaq	L_.str.3(%rip), %rdi
	callq	_lbs_deb_host
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_lbs_send_confirmsleep          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dnld_sent was set\n"

L_.str.1:                               ## @.str.1
	.asciz	"cur_cmd was set\n"

L_.str.2:                               ## @.str.2
	.asciz	"pending events or command responses\n"

L_.str.3:                               ## @.str.3
	.asciz	"sending lbs_ps_confirm_sleep\n"

L_.str.4:                               ## @.str.4
	.asciz	"sleep confirm has been delayed\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lbs_ps_confirm_sleep           ; -- Begin function lbs_ps_confirm_sleep
	.p2align	2
_lbs_ps_confirm_sleep:                  ; @lbs_ps_confirm_sleep
	.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	x19, x0
	add	x20, x0, #8
	mov	x0, x20
	mov	x1, #0
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_7
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_lbs_deb_host
	mov	w21, #0
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_3
LBB0_2:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_lbs_deb_host
	mov	w21, #0
LBB0_3:
	add	x0, x19, #24
	bl	_kfifo_len
	cbnz	x0, LBB0_5
; %bb.4:
	ldr	x8, [x19, #16]
	ldr	x9, [x19]
	ldr	x8, [x8, x9, lsl #3]
	cbz	x8, LBB0_8
LBB0_5:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_lbs_deb_host
	mov	x0, x20
	mov	x1, #0
	bl	_spin_unlock_irqrestore
LBB0_6:
Lloh6:
	adrp	x0, l_.str.4@PAGE
Lloh7:
	add	x0, x0, l_.str.4@PAGEOFF
	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
	b	_lbs_deb_host
LBB0_7:
	mov	w21, #1
	ldr	x8, [x19, #32]
	cbnz	x8, LBB0_2
	b	LBB0_3
LBB0_8:
	mov	x0, x20
	mov	x1, #0
	bl	_spin_unlock_irqrestore
	cbz	w21, LBB0_6
; %bb.9:
Lloh8:
	adrp	x0, l_.str.3@PAGE
Lloh9:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_lbs_deb_host
	mov	x0, x19
	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
	b	_lbs_send_confirmsleep
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dnld_sent was set\n"

l_.str.1:                               ; @.str.1
	.asciz	"cur_cmd was set\n"

l_.str.2:                               ; @.str.2
	.asciz	"pending events or command responses\n"

l_.str.3:                               ; @.str.3
	.asciz	"sending lbs_ps_confirm_sleep\n"

l_.str.4:                               ; @.str.4
	.asciz	"sleep confirm has been delayed\n"

.subsections_via_symbols
