	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_master_release             ## -- Begin function drm_master_release
	.p2align	4, 0x90
_drm_master_release:                    ## @drm_master_release
	.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	%rdi, %rbx
	movq	(%rdi), %r15
	movq	24(%rdi), %rax
	movq	(%rax), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	16(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	(%rbx), %rdi
	callq	_idr_remove
LBB0_2:
	movq	%rbx, %rdi
	callq	_drm_is_current_master
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_drm_legacy_lock_master_cleanup
	movq	8(%r14), %rax
	cmpq	(%rbx), %rax
	jne	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_drm_drop_master
LBB0_5:
	movq	_DRIVER_MODESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_drm_core_check_feature
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	cmpq	$0, 8(%rbx)
	je	LBB0_8
## %bb.7:
	movq	%r15, %rdi
	callq	_drm_lease_revoke
LBB0_8:
	cmpq	$0, (%rbx)
	je	LBB0_10
## %bb.9:
	movq	%rbx, %rdi
	callq	_drm_master_put
LBB0_10:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DRIVER_MODESET,4,2             ## @DRIVER_MODESET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_master_release             ; -- Begin function drm_master_release
	.p2align	2
_drm_master_release:                    ; @drm_master_release
	.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, x0
	ldr	x8, [x0, #24]
	ldr	x19, [x8]
	ldr	x21, [x0]
	mov	x0, x19
	bl	_mutex_lock
	ldr	x1, [x20, #16]
	cbz	x1, LBB0_2
; %bb.1:
	ldr	x0, [x20]
	bl	_idr_remove
LBB0_2:
	mov	x0, x20
	bl	_drm_is_current_master
	cbz	w0, LBB0_5
; %bb.3:
	mov	x0, x19
	mov	x1, x21
	bl	_drm_legacy_lock_master_cleanup
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x19
	mov	x1, x20
	bl	_drm_drop_master
LBB0_5:
Lloh0:
	adrp	x8, _DRIVER_MODESET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRIVER_MODESET@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_drm_core_check_feature
	cbz	x0, LBB0_8
; %bb.6:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_8
; %bb.7:
	mov	x0, x21
	bl	_drm_lease_revoke
LBB0_8:
	ldr	x8, [x20]
	cbz	x8, LBB0_10
; %bb.9:
	mov	x0, x20
	bl	_drm_master_put
LBB0_10:
	mov	x0, x19
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DRIVER_MODESET,4,2             ; @DRIVER_MODESET
.subsections_via_symbols
