	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pm_send_set_resources          ## -- Begin function pm_send_set_resources
	.p2align	4, 0x90
_pm_send_set_resources:                 ## @pm_send_set_resources
	.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, %r14
	movq	%rdi, %r15
	movq	16(%rdi), %rax
	movl	(%rax), %ebx
	callq	_mutex_lock
	movq	8(%r15), %rdi
	sarl	$2, %ebx
	leaq	-32(%rbp), %rdx
	movl	%ebx, %esi
	callq	*16(%rdi)
	movq	-32(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	16(%r15), %rax
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	*8(%rax)
	movq	8(%r15), %rdi
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	%eax, %r14d
	callq	*(%rdi)
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_5
LBB0_3:
	callq	*8(%rdi)
	xorl	%r14d, %r14d
LBB0_5:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to allocate buffer on kernel queue\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pm_send_set_resources          ; -- Begin function pm_send_set_resources
	.p2align	2
_pm_send_set_resources:                 ; @pm_send_set_resources
	.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
	ldr	x8, [x0, #16]
	ldr	w21, [x8]
	bl	_mutex_lock
	ldr	x0, [x19, #8]
	ldr	x8, [x0, #16]
	asr	w1, w21, #2
	add	x2, sp, #8
	blr	x8
	ldr	x1, [sp, #8]
	cbz	x1, LBB0_3
; %bb.1:
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #8]
	mov	x0, x19
	mov	x2, x20
	blr	x8
	mov	x20, x0
	ldr	x0, [x19, #8]
	cbz	w20, LBB0_4
; %bb.2:
	ldr	x8, [x0]
	b	LBB0_5
LBB0_3:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_6
LBB0_4:
	ldr	x8, [x0, #8]
LBB0_5:
	blr	x8
LBB0_6:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to allocate buffer on kernel queue\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
