	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_system_sleep_private_enable ## -- Begin function hb_system_sleep_private_enable
	.p2align	4, 0x90
_hb_system_sleep_private_enable:        ## @hb_system_sleep_private_enable
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	cmpl	$-1, %edi
	je	LBB0_4
## %bb.2:
	callq	_IOPMAssertionRelease
	movq	_kIOReturnSuccess@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.3:
	movl	(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	movl	$3, %edi
	callq	_hb_deep_log
	movl	$-1, (%rbx)
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_5:
	leaq	L_.str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_hb_error                       ## TAILCALL
LBB0_6:
	leaq	L_.str.2(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_hb_log                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hb_system_sleep: opaque is NULL"

	.comm	_kIOReturnSuccess,8,3           ## @kIOReturnSuccess
L_.str.1:                               ## @.str.1
	.asciz	"hb_system_sleep: assertion %d released, sleep allowed"

L_.str.2:                               ## @.str.2
	.asciz	"hb_system_sleep: failed to allow system sleep"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_system_sleep_private_enable ; -- Begin function hb_system_sleep_private_enable
	.p2align	2
_hb_system_sleep_private_enable:        ; @hb_system_sleep_private_enable
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	ldr	w0, [x0]
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.2:
	bl	_IOPMAssertionRelease
Lloh0:
	adrp	x8, _kIOReturnSuccess@GOTPAGE
Lloh1:
	ldr	x8, [x8, _kIOReturnSuccess@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.3:
	ldr	w2, [x19]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #3
	bl	_hb_deep_log
	mov	w8, #-1
	str	w8, [x19]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_hb_error
LBB0_6:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_hb_log
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hb_system_sleep: opaque is NULL"

	.comm	_kIOReturnSuccess,8,3           ; @kIOReturnSuccess
l_.str.1:                               ; @.str.1
	.asciz	"hb_system_sleep: assertion %d released, sleep allowed"

l_.str.2:                               ; @.str.2
	.asciz	"hb_system_sleep: failed to allow system sleep"

.subsections_via_symbols
