	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hwspin_lock_request            ## -- Begin function hwspin_lock_request
	.p2align	4, 0x90
_hwspin_lock_request:                   ## @hwspin_lock_request
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movq	_hwspinlock_tree_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	_HWSPINLOCK_UNUSED@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_hwspinlock_tree@GOTPCREL(%rip), %rdi
	leaq	-8(%rbp), %rsi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_radix_tree_gang_lookup_tag
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	xorl	%edi, %edi
	cmpl	$2, %eax
	setge	%dil
	callq	_WARN_ON
	movq	-8(%rbp), %rdi
	callq	___hwspin_lock_request
	testl	%eax, %eax
	jns	LBB0_4
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_pr_warn
LBB0_3:
	movq	$0, -8(%rbp)
LBB0_4:
	movq	_hwspinlock_tree_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movq	-8(%rbp), %rax
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hwspinlock_tree_lock,4,2       ## @hwspinlock_tree_lock
	.comm	_hwspinlock_tree,4,2            ## @hwspinlock_tree
	.comm	_HWSPINLOCK_UNUSED,4,2          ## @HWSPINLOCK_UNUSED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"a free hwspinlock is not available\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hwspin_lock_request            ; -- Begin function hwspin_lock_request
	.p2align	2
_hwspin_lock_request:                   ; @hwspin_lock_request
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
Lloh0:
	adrp	x0, _hwspinlock_tree_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _hwspinlock_tree_lock@GOTPAGEOFF]
	bl	_mutex_lock
Lloh2:
	adrp	x8, _HWSPINLOCK_UNUSED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HWSPINLOCK_UNUSED@GOTPAGEOFF]
Lloh4:
	ldr	w4, [x8]
Lloh5:
	adrp	x0, _hwspinlock_tree@GOTPAGE
Lloh6:
	ldr	x0, [x0, _hwspinlock_tree@GOTPAGEOFF]
	add	x1, sp, #8
	mov	w2, #0
	mov	w3, #1
	bl	_radix_tree_gang_lookup_tag
	cbz	w0, LBB0_2
; %bb.1:
	cmp	w0, #1
	cset	w0, gt
	bl	_WARN_ON
	ldr	x0, [sp, #8]
	bl	___hwspin_lock_request
	tbz	w0, #31, LBB0_4
	b	LBB0_3
LBB0_2:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_warn
LBB0_3:
	str	xzr, [sp, #8]
LBB0_4:
Lloh9:
	adrp	x0, _hwspinlock_tree_lock@GOTPAGE
Lloh10:
	ldr	x0, [x0, _hwspinlock_tree_lock@GOTPAGEOFF]
	bl	_mutex_unlock
	ldr	x0, [sp, #8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_hwspinlock_tree_lock,4,2       ; @hwspinlock_tree_lock
	.comm	_hwspinlock_tree,4,2            ; @hwspinlock_tree
	.comm	_HWSPINLOCK_UNUSED,4,2          ; @HWSPINLOCK_UNUSED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"a free hwspinlock is not available\n"

.subsections_via_symbols
