	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lbs_set_deep_sleep             ## -- Begin function lbs_set_deep_sleep
	.p2align	4, 0x90
_lbs_set_deep_sleep:                    ## @lbs_set_deep_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	(%rdi), %ecx
	testl	%esi, %esi
	je	LBB0_3
## %bb.1:
	cmpl	$1, %ecx
	jne	LBB0_7
## %bb.2:
	movl	24(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_netdev_err
	jmp	LBB0_9
LBB0_3:
	xorl	%eax, %eax
	testl	%ecx, %ecx
	je	LBB0_10
## %bb.4:
	leaq	L_.str.2(%rip), %rdi
	callq	_lbs_deb_cmd
	xorl	%edi, %edi
	cmpq	$0, 16(%rbx)
	sete	%dil
	callq	_BUG_ON
	movq	%rbx, %rdi
	callq	*16(%rbx)
	testl	%eax, %eax
	jne	LBB0_10
## %bb.5:
	movq	%rbx, %rdi
	callq	_lbs_wait_for_ds_awake
	movl	%eax, %r14d
	movl	$0, %eax
	testl	%r14d, %r14d
	je	LBB0_10
## %bb.6:
	movl	24(%rbx), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_netdev_err
	movl	%r14d, %eax
	jmp	LBB0_10
LBB0_7:
	leaq	L_.str(%rip), %rdi
	callq	_lbs_deb_cmd
	xorl	%edi, %edi
	cmpq	$0, 8(%rbx)
	sete	%dil
	callq	_BUG_ON
	movq	%rbx, %rdi
	callq	*8(%rbx)
	testl	%eax, %eax
	jne	LBB0_10
## %bb.8:
	movl	24(%rbx), %edi
	callq	_netif_stop_queue
	movl	24(%rbx), %edi
	callq	_netif_carrier_off
LBB0_9:
	xorl	%eax, %eax
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"deep sleep: sleep\n"

L_.str.1:                               ## @.str.1
	.asciz	"deep sleep: already enabled\n"

L_.str.2:                               ## @.str.2
	.asciz	"deep sleep: wakeup\n"

L_.str.3:                               ## @.str.3
	.asciz	"deep sleep: wakeup failed\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lbs_set_deep_sleep             ; -- Begin function lbs_set_deep_sleep
	.p2align	2
_lbs_set_deep_sleep:                    ; @lbs_set_deep_sleep
	.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
	mov	x19, x0
	ldr	w8, [x0]
	cbz	w1, LBB0_3
; %bb.1:
	cmp	w8, #1
	b.ne	LBB0_8
; %bb.2:
	ldr	w0, [x19, #24]
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_netdev_err
	b	LBB0_7
LBB0_3:
	cbz	w8, LBB0_7
; %bb.4:
Lloh2:
	adrp	x0, l_.str.2@PAGE
Lloh3:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_lbs_deb_cmd
	ldr	x8, [x19, #16]
	cmp	x8, #0
	cset	w0, eq
	bl	_BUG_ON
	ldr	x8, [x19, #16]
	mov	x0, x19
	blr	x8
	mov	x20, x0
	cbnz	w0, LBB0_10
; %bb.5:
	mov	x0, x19
	bl	_lbs_wait_for_ds_awake
	mov	x20, x0
	cbz	w0, LBB0_10
; %bb.6:
	ldr	w0, [x19, #24]
Lloh4:
	adrp	x1, l_.str.3@PAGE
Lloh5:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_netdev_err
	b	LBB0_10
LBB0_7:
	mov	w20, #0
	b	LBB0_10
LBB0_8:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_lbs_deb_cmd
	ldr	x8, [x19, #8]
	cmp	x8, #0
	cset	w0, eq
	bl	_BUG_ON
	ldr	x8, [x19, #8]
	mov	x0, x19
	blr	x8
	mov	x20, x0
	cbnz	w0, LBB0_10
; %bb.9:
	ldr	w0, [x19, #24]
	bl	_netif_stop_queue
	ldr	w0, [x19, #24]
	bl	_netif_carrier_off
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"deep sleep: sleep\n"

l_.str.1:                               ; @.str.1
	.asciz	"deep sleep: already enabled\n"

l_.str.2:                               ; @.str.2
	.asciz	"deep sleep: wakeup\n"

l_.str.3:                               ; @.str.3
	.asciz	"deep sleep: wakeup failed\n"

.subsections_via_symbols
