	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hwspin_lock_register_single
_hwspin_lock_register_single:           ## @hwspin_lock_register_single
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_hwspinlock_tree_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	_hwspinlock_tree@GOTPCREL(%rip), %rdi
	movl	%ebx, %esi
	movq	%r14, %rdx
	callq	_radix_tree_insert
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movq	_EEXIST@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	jne	LBB0_4
## %bb.2:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_pr_err
	jmp	LBB0_4
LBB0_3:
	movq	_HWSPINLOCK_UNUSED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_hwspinlock_tree@GOTPCREL(%rip), %rdi
	movl	%ebx, %esi
	callq	_radix_tree_tag_set
	xorl	%edi, %edi
	cmpq	%r14, %rax
	setne	%dil
	callq	_WARN_ON
LBB0_4:
	movq	_hwspinlock_tree_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hwspinlock_tree_lock,4,2       ## @hwspinlock_tree_lock
	.comm	_hwspinlock_tree,4,2            ## @hwspinlock_tree
	.comm	_EEXIST,4,2                     ## @EEXIST
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hwspinlock id %d already exists!\n"

	.comm	_HWSPINLOCK_UNUSED,4,2          ## @HWSPINLOCK_UNUSED
	.no_dead_strip	_hwspin_lock_register_single
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hwspin_lock_register_single
_hwspin_lock_register_single:           ; @hwspin_lock_register_single
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x0, _hwspinlock_tree_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _hwspinlock_tree_lock@GOTPAGEOFF]
	bl	_mutex_lock
Lloh2:
	adrp	x0, _hwspinlock_tree@GOTPAGE
Lloh3:
	ldr	x0, [x0, _hwspinlock_tree@GOTPAGEOFF]
	mov	x1, x19
	mov	x2, x20
	bl	_radix_tree_insert
	cbz	w0, LBB0_3
; %bb.1:
Lloh4:
	adrp	x8, _EEXIST@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_4
; %bb.2:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_pr_err
	b	LBB0_4
LBB0_3:
Lloh9:
	adrp	x8, _HWSPINLOCK_UNUSED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HWSPINLOCK_UNUSED@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
Lloh12:
	adrp	x0, _hwspinlock_tree@GOTPAGE
Lloh13:
	ldr	x0, [x0, _hwspinlock_tree@GOTPAGEOFF]
	mov	x1, x19
	bl	_radix_tree_tag_set
	cmp	x0, x20
	cset	w0, ne
	bl	_WARN_ON
LBB0_4:
Lloh14:
	adrp	x0, _hwspinlock_tree_lock@GOTPAGE
Lloh15:
	ldr	x0, [x0, _hwspinlock_tree_lock@GOTPAGEOFF]
	bl	_mutex_unlock
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_hwspinlock_tree_lock,4,2       ; @hwspinlock_tree_lock
	.comm	_hwspinlock_tree,4,2            ; @hwspinlock_tree
	.comm	_EEXIST,4,2                     ; @EEXIST
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hwspinlock id %d already exists!\n"

	.comm	_HWSPINLOCK_UNUSED,4,2          ; @HWSPINLOCK_UNUSED
	.no_dead_strip	_hwspin_lock_register_single
.subsections_via_symbols
