	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___hwspin_trylock               ## -- Begin function __hwspin_trylock
	.p2align	4, 0x90
___hwspin_trylock:                      ## @__hwspin_trylock
	.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	%rdx, %r14
	movl	%esi, %ebx
	movq	%rdi, %r15
	xorl	%edi, %edi
	testq	%r15, %r15
	sete	%dil
	callq	_BUG_ON
	testq	%r14, %r14
	sete	%al
	cmpl	$129, %ebx
	sete	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_BUG_ON
	addl	$-128, %ebx
	cmpl	$3, %ebx
	ja	LBB0_4
## %bb.1:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_2:
	movq	(%r14), %rsi
	movq	%r15, %rdi
	callq	_spin_trylock_irqsave
	testl	%eax, %eax
	jne	LBB0_7
	jmp	LBB0_6
LBB0_4:
	movq	%r15, %rdi
	callq	_spin_trylock
	testl	%eax, %eax
	jne	LBB0_7
	jmp	LBB0_6
LBB0_3:
	movq	%r15, %rdi
	callq	_spin_trylock_irq
	testl	%eax, %eax
	je	LBB0_6
LBB0_7:
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movq	%r15, %rdi
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_8
## %bb.13:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_mb
	jmp	LBB0_14
LBB0_8:
	cmpl	$3, %ebx
	ja	LBB0_12
## %bb.9:
	leaq	LJTI0_1(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_10:
	movq	(%r14), %rsi
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	jmp	LBB0_6
LBB0_12:
	movq	%r15, %rdi
	callq	_spin_unlock
	jmp	LBB0_6
LBB0_11:
	movq	%r15, %rdi
	callq	_spin_unlock_irq
LBB0_6:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_2
	.long	L0_0_set_3
	.long	L0_0_set_7
.set L0_1_set_6, LBB0_6-LJTI0_1
.set L0_1_set_10, LBB0_10-LJTI0_1
.set L0_1_set_11, LBB0_11-LJTI0_1
LJTI0_1:
	.long	L0_1_set_6
	.long	L0_1_set_10
	.long	L0_1_set_11
	.long	L0_1_set_6
	.end_data_region
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___hwspin_trylock               ; -- Begin function __hwspin_trylock
	.p2align	2
___hwspin_trylock:                      ; @__hwspin_trylock
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x2
	mov	x21, x1
	mov	x19, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_BUG_ON
	cmp	w21, #129
	ccmp	x20, #0, #0, eq
	cset	w0, eq
	bl	_BUG_ON
	sub	w21, w21, #128
	cmp	w21, #3
	b.hi	LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, lJTI0_0@PAGE
Lloh1:
	add	x8, x8, lJTI0_0@PAGEOFF
	adr	x9, LBB0_2
	ldrb	w10, [x8, x21]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_2:
	ldr	x1, [x20]
	mov	x0, x19
	bl	_spin_trylock_irqsave
	cbnz	w0, LBB0_5
	b	LBB0_12
LBB0_3:
	mov	x0, x19
	bl	_spin_trylock
	cbnz	w0, LBB0_5
	b	LBB0_12
LBB0_4:
	mov	x0, x19
	bl	_spin_trylock_irq
	cbz	w0, LBB0_12
LBB0_5:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	cbz	w0, LBB0_7
; %bb.6:
	bl	_mb
	mov	w0, #0
	b	LBB0_13
LBB0_7:
	cmp	w21, #3
	b.hi	LBB0_10
; %bb.8:
Lloh2:
	adrp	x8, lJTI0_1@PAGE
Lloh3:
	add	x8, x8, lJTI0_1@PAGEOFF
	adr	x9, LBB0_9
	ldrb	w10, [x8, x21]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_9:
	ldr	x1, [x20]
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	b	LBB0_12
LBB0_10:
	mov	x0, x19
	bl	_spin_unlock
	b	LBB0_12
LBB0_11:
	mov	x0, x19
	bl	_spin_unlock_irq
LBB0_12:
Lloh4:
	adrp	x8, _EBUSY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
lJTI0_1:
	.byte	(LBB0_12-LBB0_9)>>2
	.byte	(LBB0_9-LBB0_9)>>2
	.byte	(LBB0_11-LBB0_9)>>2
	.byte	(LBB0_12-LBB0_9)>>2
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
.subsections_via_symbols
