	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_put_minor                  ## -- Begin function drm_put_minor
	.p2align	4, 0x90
_drm_put_minor:                         ## @drm_put_minor
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	(%rdi), %rbx
	movl	8(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG
	movq	(%rbx), %rax
	movq	_DRM_MINOR_LEGACY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_drm_proc_root@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_drm_proc_cleanup
LBB0_2:
	movq	%rbx, %rdi
	callq	_drm_sysfs_device_remove
	movl	8(%rbx), %esi
	movq	_drm_minors_idr@GOTPCREL(%rip), %rdi
	callq	_idr_remove
	movq	%rbx, %rdi
	callq	_kfree
	movq	$0, (%r14)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"release secondary minor %d\n"

	.comm	_DRM_MINOR_LEGACY,8,3           ## @DRM_MINOR_LEGACY
	.comm	_drm_proc_root,4,2              ## @drm_proc_root
	.comm	_drm_minors_idr,4,2             ## @drm_minors_idr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_put_minor                  ; -- Begin function drm_put_minor
	.p2align	2
_drm_put_minor:                         ; @drm_put_minor
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x20, [x0]
	ldr	w1, [x20, #8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _DRM_MINOR_LEGACY@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DRM_MINOR_LEGACY@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _drm_proc_root@GOTPAGE
Lloh6:
	ldr	x8, [x8, _drm_proc_root@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_drm_proc_cleanup
LBB0_2:
	mov	x0, x20
	bl	_drm_sysfs_device_remove
	ldr	w1, [x20, #8]
Lloh8:
	adrp	x0, _drm_minors_idr@GOTPAGE
Lloh9:
	ldr	x0, [x0, _drm_minors_idr@GOTPAGEOFF]
	bl	_idr_remove
	mov	x0, x20
	bl	_kfree
	str	xzr, [x19]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"release secondary minor %d\n"

	.comm	_DRM_MINOR_LEGACY,8,3           ; @DRM_MINOR_LEGACY
	.comm	_drm_proc_root,4,2              ; @drm_proc_root
	.comm	_drm_minors_idr,4,2             ; @drm_minors_idr
.subsections_via_symbols
