	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lbs_host_sleep_cfg             ## -- Begin function lbs_host_sleep_cfg
	.p2align	4, 0x90
_lbs_host_sleep_cfg:                    ## @lbs_host_sleep_cfg
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	_EHS_REMOVE_WAKEUP@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	cmpl	$0, 12(%r12)
	cmoveq	%rax, %rbx
LBB0_2:
	movl	$20, %edi
	callq	_cpu_to_le16
	movl	%eax, %r13d
	leaq	-60(%rbp), %r15
	movl	%eax, -60(%rbp)
	movq	%rbx, %rdi
	callq	_cpu_to_le32
	movl	%eax, -48(%rbp)
	movl	8(%r12), %eax
	movl	%eax, -52(%rbp)
	movl	4(%r12), %eax
	movl	%eax, -56(%rbp)
	testq	%r14, %r14
	je	LBB0_4
## %bb.3:
	leaq	-64(%rbp), %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_memcpy
	movl	-60(%rbp), %r13d
	jmp	LBB0_5
LBB0_4:
	movq	_CMD_ACT_ACTION_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
LBB0_5:
	movq	_CMD_802_11_HOST_SLEEP_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r13d, %edi
	callq	_le16_to_cpu
	movq	_lbs_ret_host_sleep_cfg@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	%r12, %rdi
	movl	%ebx, %esi
	movq	%r15, %rdx
	movl	%eax, %ecx
	xorl	%r9d, %r9d
	callq	___lbs_cmd
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_6
## %bb.8:
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_netdev_info
	jmp	LBB0_9
LBB0_6:
	testq	%r14, %r14
	je	LBB0_9
## %bb.7:
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_memcpy
LBB0_9:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EHS_REMOVE_WAKEUP,8,3          ## @EHS_REMOVE_WAKEUP
	.comm	_CMD_ACT_ACTION_NONE,4,2        ## @CMD_ACT_ACTION_NONE
	.comm	_CMD_802_11_HOST_SLEEP_CFG,4,2  ## @CMD_802_11_HOST_SLEEP_CFG
	.comm	_lbs_ret_host_sleep_cfg,4,2     ## @lbs_ret_host_sleep_cfg
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HOST_SLEEP_CFG failed %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lbs_host_sleep_cfg             ; -- Begin function lbs_host_sleep_cfg
	.p2align	2
_lbs_host_sleep_cfg:                    ; @lbs_host_sleep_cfg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x23, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _EHS_REMOVE_WAKEUP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EHS_REMOVE_WAKEUP@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x1
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [x20, #12]
	cmp	w8, #0
	csel	x23, xzr, x23, eq
LBB0_2:
	mov	w0, #20
	bl	_cpu_to_le16
	mov	x22, x0
	add	x8, sp, #8
	orr	x21, x8, #0x4
	str	w0, [sp, #12]
	mov	x0, x23
	bl	_cpu_to_le32
	str	w0, [sp, #24]
	ldur	d0, [x20, #4]
	str	d0, [sp, #16]
	cbz	x19, LBB0_4
; %bb.3:
	add	x0, sp, #8
	mov	x1, x19
	mov	w2, #4
	bl	_memcpy
	ldr	w22, [sp, #12]
	b	LBB0_5
LBB0_4:
Lloh3:
	adrp	x8, _CMD_ACT_ACTION_NONE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CMD_ACT_ACTION_NONE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #8]
LBB0_5:
Lloh6:
	adrp	x8, _CMD_802_11_HOST_SLEEP_CFG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CMD_802_11_HOST_SLEEP_CFG@GOTPAGEOFF]
Lloh8:
	ldr	w23, [x8]
	mov	x0, x22
	bl	_le16_to_cpu
	mov	x3, x0
Lloh9:
	adrp	x8, _lbs_ret_host_sleep_cfg@GOTPAGE
Lloh10:
	ldr	x8, [x8, _lbs_ret_host_sleep_cfg@GOTPAGEOFF]
Lloh11:
	ldr	w4, [x8]
	mov	x0, x20
	mov	x1, x23
	mov	x2, x21
	mov	w5, #0
	bl	___lbs_cmd
	mov	x21, x0
	cbz	w0, LBB0_7
; %bb.6:
	ldr	w0, [x20]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_netdev_info
	b	LBB0_9
LBB0_7:
	cbz	x19, LBB0_9
; %bb.8:
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #4
	bl	_memcpy
LBB0_9:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EHS_REMOVE_WAKEUP,8,3          ; @EHS_REMOVE_WAKEUP
	.comm	_CMD_ACT_ACTION_NONE,4,2        ; @CMD_ACT_ACTION_NONE
	.comm	_CMD_802_11_HOST_SLEEP_CFG,4,2  ; @CMD_802_11_HOST_SLEEP_CFG
	.comm	_lbs_ret_host_sleep_cfg,4,2     ; @lbs_ret_host_sleep_cfg
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HOST_SLEEP_CFG failed %d\n"

.subsections_via_symbols
