	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_dp_aux_unregister_devnode  ## -- Begin function drm_dp_aux_unregister_devnode
	.p2align	4, 0x90
_drm_dp_aux_unregister_devnode:         ## @drm_dp_aux_unregister_devnode
	.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, %r14
	callq	_drm_dp_aux_dev_get_by_aux
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %rbx
	movq	_aux_idr_mutex@GOTPCREL(%rip), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movl	(%rbx), %esi
	movq	_aux_idr@GOTPCREL(%rip), %rdi
	callq	_idr_remove
	movq	%r15, %rdi
	callq	_mutex_unlock
	leaq	16(%rbx), %r15
	movq	%r15, %rdi
	callq	_atomic_dec
	movq	%r15, %rdi
	callq	_atomic_read
	xorl	%esi, %esi
	testl	%eax, %eax
	sete	%sil
	movq	%r15, %rdi
	callq	_wait_var_event
	cmpq	$0, 8(%rbx)
	je	LBB0_3
## %bb.2:
	movl	(%rbx), %esi
	movq	_drm_dp_aux_dev_class@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_drm_dev_major@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MKDEV
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_device_destroy
LBB0_3:
	movl	(%r14), %esi
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG
	addq	$4, %rbx
	movq	_release_drm_dp_aux_dev@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kref_put                       ## TAILCALL
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_aux_idr_mutex,4,2              ## @aux_idr_mutex
	.comm	_aux_idr,4,2                    ## @aux_idr
	.comm	_drm_dp_aux_dev_class,4,2       ## @drm_dp_aux_dev_class
	.comm	_drm_dev_major,4,2              ## @drm_dev_major
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"drm_dp_aux_dev: aux [%s] unregistering\n"

	.comm	_release_drm_dp_aux_dev,4,2     ## @release_drm_dp_aux_dev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_dp_aux_unregister_devnode  ; -- Begin function drm_dp_aux_unregister_devnode
	.p2align	2
_drm_dp_aux_unregister_devnode:         ; @drm_dp_aux_unregister_devnode
	.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
	bl	_drm_dp_aux_dev_get_by_aux
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x21, _aux_idr_mutex@GOTPAGE
Lloh1:
	ldr	x21, [x21, _aux_idr_mutex@GOTPAGEOFF]
	mov	x0, x21
	bl	_mutex_lock
	ldr	w1, [x19]
Lloh2:
	adrp	x0, _aux_idr@GOTPAGE
Lloh3:
	ldr	x0, [x0, _aux_idr@GOTPAGEOFF]
	bl	_idr_remove
	mov	x0, x21
	bl	_mutex_unlock
	add	x21, x19, #16
	mov	x0, x21
	bl	_atomic_dec
	mov	x0, x21
	bl	_atomic_read
	cmp	w0, #0
	cset	w1, eq
	mov	x0, x21
	bl	_wait_var_event
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w1, [x19]
Lloh4:
	adrp	x8, _drm_dp_aux_dev_class@GOTPAGE
Lloh5:
	ldr	x8, [x8, _drm_dp_aux_dev_class@GOTPAGEOFF]
Lloh6:
	ldr	w21, [x8]
Lloh7:
	adrp	x8, _drm_dev_major@GOTPAGE
Lloh8:
	ldr	x8, [x8, _drm_dev_major@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_MKDEV
	mov	x1, x0
	mov	x0, x21
	bl	_device_destroy
LBB0_3:
	ldr	w1, [x20]
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG
	add	x0, x19, #4
Lloh12:
	adrp	x8, _release_drm_dp_aux_dev@GOTPAGE
Lloh13:
	ldr	x8, [x8, _release_drm_dp_aux_dev@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	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	_kref_put
LBB0_4:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_aux_idr_mutex,4,2              ; @aux_idr_mutex
	.comm	_aux_idr,4,2                    ; @aux_idr
	.comm	_drm_dp_aux_dev_class,4,2       ; @drm_dp_aux_dev_class
	.comm	_drm_dev_major,4,2              ; @drm_dev_major
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"drm_dp_aux_dev: aux [%s] unregistering\n"

	.comm	_release_drm_dp_aux_dev,4,2     ; @release_drm_dp_aux_dev
.subsections_via_symbols
