	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function radeon_set_filp_rights
_radeon_set_filp_rights:                ## @radeon_set_filp_rights
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	movl	(%r14), %eax
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	cmpl	$1, %eax
	jne	LBB0_2
## %bb.3:
	movq	(%r12), %rax
	testq	%rax, %rax
	jne	LBB0_7
## %bb.4:
	movq	%r15, (%r12)
	movq	%r15, %rax
	jmp	LBB0_7
LBB0_5:
	movq	(%r12), %rax
	cmpq	%r15, %rax
	jne	LBB0_7
## %bb.6:
	movq	$0, (%r12)
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_2:
	movq	(%r12), %rax
LBB0_7:
	xorl	%ecx, %ecx
	cmpq	%r15, %rax
	sete	%cl
	movl	%ecx, (%r14)
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_radeon_set_filp_rights
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function radeon_set_filp_rights
_radeon_set_filp_rights:                ; @radeon_set_filp_rights
	.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, x3
	mov	x21, x2
	mov	x22, x1
	ldr	x20, [x0]
	mov	x0, x20
	bl	_mutex_lock
	ldr	w8, [x19]
	cbz	w8, LBB0_4
; %bb.1:
	cmp	w8, #1
	b.ne	LBB0_6
; %bb.2:
	ldr	x8, [x22]
	cbnz	x8, LBB0_7
; %bb.3:
	str	x21, [x22]
	mov	x8, x21
	b	LBB0_7
LBB0_4:
	ldr	x8, [x22]
	cmp	x8, x21
	b.ne	LBB0_7
; %bb.5:
	mov	x8, #0
	str	xzr, [x22]
	b	LBB0_7
LBB0_6:
	ldr	x8, [x22]
LBB0_7:
	cmp	x8, x21
	cset	w8, eq
	str	w8, [x19]
	mov	x0, x20
	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
	b	_mutex_unlock
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_radeon_set_filp_rights
.subsections_via_symbols
