	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ti_sci_put_handle              ## -- Begin function ti_sci_put_handle
	.p2align	4, 0x90
_ti_sci_put_handle:                     ## @ti_sci_put_handle
	.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
	movq	%rdi, %rbx
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.7:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.3:
	movq	%rbx, %rdi
	callq	_handle_to_ti_sci_info
	movq	%rax, %rbx
	movq	_ti_sci_list_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	xorl	%edi, %edi
	cmpl	$0, (%rbx)
	sete	%dil
	callq	_WARN_ON
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	decl	(%rbx)
LBB0_5:
	movq	_ti_sci_list_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ti_sci_list_mutex,4,2          ## @ti_sci_list_mutex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ti_sci_put_handle              ; -- Begin function ti_sci_put_handle
	.p2align	2
_ti_sci_put_handle:                     ; @ti_sci_put_handle
	.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
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_2:
	cbz	x19, LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_handle_to_ti_sci_info
	mov	x19, x0
Lloh0:
	adrp	x0, _ti_sci_list_mutex@GOTPAGE
Lloh1:
	ldr	x0, [x0, _ti_sci_list_mutex@GOTPAGEOFF]
	bl	_mutex_lock
	ldr	w8, [x19]
	cmp	w8, #0
	cset	w0, eq
	bl	_WARN_ON
	cbnz	w0, LBB0_5
; %bb.4:
	ldr	w8, [x19]
	sub	w8, w8, #1
	str	w8, [x19]
LBB0_5:
Lloh2:
	adrp	x0, _ti_sci_list_mutex@GOTPAGE
Lloh3:
	ldr	x0, [x0, _ti_sci_list_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
	mov	w0, #0
	b	LBB0_7
LBB0_6:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ti_sci_list_mutex,4,2          ; @ti_sci_list_mutex
.subsections_via_symbols
