	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wsm_set_protected_mgmt_policy
_wsm_set_protected_mgmt_policy:         ## @wsm_set_protected_mgmt_policy
	.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	%rsi, %r15
	movq	%rdi, %r14
	movl	$0, -28(%rbp)
	cmpq	$0, 16(%rsi)
	je	LBB0_1
## %bb.2:
	xorl	%edi, %edi
	callq	_BIT
	movl	%eax, %edi
	callq	___cpu_to_le32
	movl	%eax, %ebx
	movl	%eax, -28(%rbp)
	cmpq	$0, 8(%r15)
	je	LBB0_5
LBB0_4:
	movl	$1, %edi
	callq	_BIT
	movl	%eax, %edi
	callq	___cpu_to_le32
	orl	%eax, %ebx
	movl	%ebx, -28(%rbp)
LBB0_5:
	cmpq	$0, (%r15)
	je	LBB0_7
## %bb.6:
	movl	$2, %edi
	callq	_BIT
	movl	%eax, %edi
	callq	___cpu_to_le32
	orl	%eax, %ebx
	movl	%ebx, -28(%rbp)
LBB0_7:
	movq	_WSM_MIB_ID_PROTECTED_MGMT_POLICY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	movq	%r14, %rdi
	movl	$4, %ecx
	callq	_wsm_write_mib
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	xorl	%ebx, %ebx
	cmpq	$0, 8(%r15)
	jne	LBB0_4
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_WSM_MIB_ID_PROTECTED_MGMT_POLICY,4,2 ## @WSM_MIB_ID_PROTECTED_MGMT_POLICY
	.no_dead_strip	_wsm_set_protected_mgmt_policy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wsm_set_protected_mgmt_policy
_wsm_set_protected_mgmt_policy:         ; @wsm_set_protected_mgmt_policy
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	mov	x19, x0
	str	wzr, [sp, #12]
	ldr	x8, [x1, #16]
	cbz	x8, LBB0_6
; %bb.1:
	mov	w0, #0
	bl	_BIT
	bl	___cpu_to_le32
	mov	x21, x0
	str	w0, [sp, #12]
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_3
LBB0_2:
	mov	w0, #1
	bl	_BIT
	bl	___cpu_to_le32
	orr	w21, w21, w0
	str	w21, [sp, #12]
LBB0_3:
	ldr	x8, [x20]
	cbz	x8, LBB0_5
; %bb.4:
	mov	w0, #2
	bl	_BIT
	bl	___cpu_to_le32
	orr	w8, w21, w0
	str	w8, [sp, #12]
LBB0_5:
Lloh0:
	adrp	x8, _WSM_MIB_ID_PROTECTED_MGMT_POLICY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WSM_MIB_ID_PROTECTED_MGMT_POLICY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	mov	w3, #4
	bl	_wsm_write_mib
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_6:
	mov	w21, #0
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_2
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_WSM_MIB_ID_PROTECTED_MGMT_POLICY,4,2 ; @WSM_MIB_ID_PROTECTED_MGMT_POLICY
	.no_dead_strip	_wsm_set_protected_mgmt_policy
.subsections_via_symbols
