	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function occ_set_user_power_cap
LCPI0_0:
	.long	0                               ## 0x0
	.long	34                              ## 0x22
	.long	0                               ## 0x0
	.long	2                               ## 0x2
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_occ_set_user_power_cap:                ## @occ_set_user_power_cap
	.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	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movl	%esi, %edi
	callq	_cpu_to_be16
	movl	%eax, -68(%rbp)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [0,34,0,2]
	movaps	%xmm0, -64(%rbp)
	leaq	-48(%rbp), %rdi
	leaq	-68(%rbp), %rsi
	movl	$2, %edx
	callq	_memcpy
	movl	-48(%rbp), %eax
	movl	-44(%rbp), %ecx
	addl	%ecx, %eax
	addl	$36, %eax
	movzbl	%al, %ecx
	sarl	$8, %eax
	movl	%eax, -40(%rbp)
	movl	%ecx, -36(%rbp)
	leaq	8(%r14), %r15
	movq	%r15, %rdi
	callq	_mutex_lock_interruptible
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdi
	callq	*(%r14)
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_mutex_unlock
LBB0_2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_occ_set_user_power_cap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function occ_set_user_power_cap
lCPI0_0:
	.long	0                               ; 0x0
	.long	34                              ; 0x22
	.long	0                               ; 0x0
	.long	2                               ; 0x2
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_occ_set_user_power_cap:                ; @occ_set_user_power_cap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	mov	x0, x1
	bl	_cpu_to_be16
	str	w0, [sp, #12]
Lloh3:
	adrp	x8, lCPI0_0@PAGE
Lloh4:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	str	q0, [sp, #16]
	add	x8, sp, #16
	add	x0, x8, #16
	add	x1, sp, #12
	mov	w2, #2
	bl	_memcpy
	ldp	w8, w9, [sp, #32]
	add	w8, w8, w9
	add	w8, w8, #36
	asr	w9, w8, #8
	and	w8, w8, #0xff
	stp	w9, w8, [sp, #40]
	add	x20, x19, #8
	mov	x0, x20
	bl	_mutex_lock_interruptible
	mov	x21, x0
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	x8, [x19]
	add	x1, sp, #16
	mov	x0, x19
	blr	x8
	mov	x21, x0
	mov	x0, x20
	bl	_mutex_unlock
LBB0_2:
	ldur	x8, [x29, #-40]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_occ_set_user_power_cap
.subsections_via_symbols
