	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ttm_read_trylock               ## -- Begin function ttm_read_trylock
	.p2align	4, 0x90
_ttm_read_trylock:                      ## @ttm_read_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movl	(%rdi), %r14d
	leaq	-20(%rbp), %rsi
	callq	___ttm_read_trylock
	movl	%r14d, %edi
	movl	%eax, %esi
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.1:
	callq	_wait_event_interruptible
	movl	%eax, %ebx
	jmp	LBB0_3
LBB0_2:
	callq	_wait_event
	xorl	%ebx, %ebx
LBB0_3:
	xorl	%edi, %edi
	testl	%ebx, %ebx
	setne	%dil
	callq	_unlikely
	movl	-20(%rbp), %edi
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	callq	_BUG_ON
	jmp	LBB0_6
LBB0_5:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	xorl	%eax, %eax
	testl	%edi, %edi
	cmovnel	%eax, %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- 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	_ttm_read_trylock               ; -- Begin function ttm_read_trylock
	.p2align	2
_ttm_read_trylock:                      ; @ttm_read_trylock
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x1
	ldr	w19, [x0]
	add	x1, sp, #12
	bl	___ttm_read_trylock
	mov	x1, x0
	mov	x0, x19
	cbz	w20, LBB0_2
; %bb.1:
	bl	_wait_event_interruptible
	mov	x19, x0
	b	LBB0_3
LBB0_2:
	bl	_wait_event
	mov	w19, #0
LBB0_3:
	cmp	w19, #0
	cset	w0, ne
	bl	_unlikely
	mov	x8, x0
	ldr	w0, [sp, #12]
	cbz	x8, LBB0_5
; %bb.4:
	bl	_BUG_ON
	b	LBB0_6
LBB0_5:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, #0
	csneg	w19, wzr, w8, ne
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
.subsections_via_symbols
