	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shrinker_lock
_shrinker_lock:                         ## @shrinker_lock
	.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, %r15d
	movq	%rdi, %rbx
	callq	_mutex_trylock_recursive
	cmpl	$128, %eax
	je	LBB0_8
## %bb.1:
	cmpl	$130, %eax
	je	LBB0_4
## %bb.2:
	cmpl	$129, %eax
	jne	LBB0_9
## %bb.3:
	movl	$0, (%r14)
	movl	$1, %eax
	jmp	LBB0_10
LBB0_4:
	movl	$0, (%r14)
	movq	_I915_SHRINK_ACTIVE@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_5
## %bb.6:
	movq	_I915_MM_SHRINKER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_mutex_lock_killable_nested
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	(%r14), %eax
	jmp	LBB0_10
LBB0_8:
	movl	$1, (%r14)
	movl	$1, %eax
	jmp	LBB0_10
LBB0_9:
	xorl	%eax, %eax
	callq	_BUG
                                        ## implicit-def: $eax
	jmp	LBB0_10
LBB0_5:
	xorl	%eax, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I915_SHRINK_ACTIVE,4,2         ## @I915_SHRINK_ACTIVE
	.comm	_I915_MM_SHRINKER,4,2           ## @I915_MM_SHRINKER
	.no_dead_strip	_shrinker_lock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function shrinker_lock
_shrinker_lock:                         ; @shrinker_lock
	.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	x19, x2
	mov	x21, x1
	mov	x20, x0
	bl	_mutex_trylock_recursive
	cmp	w0, #128
	b.eq	LBB0_7
; %bb.1:
	cmp	w0, #130
	b.eq	LBB0_4
; %bb.2:
	cmp	w0, #129
	b.ne	LBB0_8
; %bb.3:
	str	wzr, [x19]
	mov	w0, #1
	b	LBB0_10
LBB0_4:
	str	wzr, [x19]
Lloh0:
	adrp	x8, _I915_SHRINK_ACTIVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I915_SHRINK_ACTIVE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_9
; %bb.5:
Lloh3:
	adrp	x8, _I915_MM_SHRINKER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I915_MM_SHRINKER@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_mutex_lock_killable_nested
	cbz	w0, LBB0_7
; %bb.6:
	ldr	w0, [x19]
	b	LBB0_10
LBB0_7:
	mov	w0, #1
	str	w0, [x19]
	b	LBB0_10
LBB0_8:
	bl	_BUG
                                        ; implicit-def: $w0
	b	LBB0_10
LBB0_9:
	mov	w0, #0
LBB0_10:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_I915_SHRINK_ACTIVE,4,2         ; @I915_SHRINK_ACTIVE
	.comm	_I915_MM_SHRINKER,4,2           ; @I915_MM_SHRINKER
	.no_dead_strip	_shrinker_lock
.subsections_via_symbols
