	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lbs_set_ps_mode                ## -- Begin function lbs_set_ps_mode
	.p2align	4, 0x90
_lbs_set_ps_mode:                       ## @lbs_set_ps_mode
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r14
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movl	$24, %edi
	callq	_cpu_to_le16
	movq	%rax, -48(%rbp)
	movl	%ebx, %edi
	callq	_cpu_to_le16
	movq	%rax, -32(%rbp)
	movq	_PS_MODE_ACTION_ENTER_PS@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_lbs_deb_cmd
	movl	$1, %edi
	callq	_cpu_to_le16
	movq	%rax, -40(%rbp)
	jmp	LBB0_4
LBB0_2:
	movq	_PS_MODE_ACTION_EXIT_PS@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_8
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_lbs_deb_cmd
LBB0_4:
	movq	_CMD_802_11_PS_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	testl	%r15d, %r15d
	je	LBB0_6
## %bb.5:
	callq	_lbs_cmd_with_response
	movl	%eax, %r14d
	jmp	LBB0_7
LBB0_6:
	movl	$24, %ecx
	callq	_lbs_cmd_async
	xorl	%r14d, %r14d
	jmp	LBB0_7
LBB0_8:
	leaq	L_.str.2(%rip), %rdi
	xorl	%r14d, %r14d
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_lbs_deb_cmd
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
LBB0_7:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PS_MODE_ACTION_ENTER_PS,4,2    ## @PS_MODE_ACTION_ENTER_PS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PS_MODE: action ENTER_PS\n"

	.comm	_PS_MODE_ACTION_EXIT_PS,4,2     ## @PS_MODE_ACTION_EXIT_PS
L_.str.1:                               ## @.str.1
	.asciz	"PS_MODE: action EXIT_PS\n"

L_.str.2:                               ## @.str.2
	.asciz	"PS_MODE: unknown action 0x%X\n"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_CMD_802_11_PS_MODE,4,2         ## @CMD_802_11_PS_MODE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lbs_set_ps_mode                ; -- Begin function lbs_set_ps_mode
	.p2align	2
_lbs_set_ps_mode:                       ; @lbs_set_ps_mode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x2
	mov	x21, x1
	mov	x19, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	mov	w0, #24
	bl	_cpu_to_le16
	str	x0, [sp, #8]
	mov	x0, x21
	bl	_cpu_to_le16
	str	x0, [sp, #24]
Lloh0:
	adrp	x8, _PS_MODE_ACTION_ENTER_PS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PS_MODE_ACTION_ENTER_PS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_lbs_deb_cmd
	mov	w0, #1
	bl	_cpu_to_le16
	str	x0, [sp, #16]
	b	LBB0_4
LBB0_2:
Lloh5:
	adrp	x8, _PS_MODE_ACTION_EXIT_PS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PS_MODE_ACTION_EXIT_PS@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_7
; %bb.3:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_lbs_deb_cmd
LBB0_4:
Lloh10:
	adrp	x8, _CMD_802_11_PS_MODE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CMD_802_11_PS_MODE@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	cbz	w20, LBB0_6
; %bb.5:
	bl	_lbs_cmd_with_response
	b	LBB0_8
LBB0_6:
	mov	w3, #24
	bl	_lbs_cmd_async
	mov	w0, #0
	b	LBB0_8
LBB0_7:
	str	x21, [sp]
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_lbs_deb_cmd
Lloh15:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_PS_MODE_ACTION_ENTER_PS,4,2    ; @PS_MODE_ACTION_ENTER_PS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PS_MODE: action ENTER_PS\n"

	.comm	_PS_MODE_ACTION_EXIT_PS,4,2     ; @PS_MODE_ACTION_EXIT_PS
l_.str.1:                               ; @.str.1
	.asciz	"PS_MODE: action EXIT_PS\n"

l_.str.2:                               ; @.str.2
	.asciz	"PS_MODE: unknown action 0x%X\n"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_CMD_802_11_PS_MODE,4,2         ; @CMD_802_11_PS_MODE
.subsections_via_symbols
