	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_dp_aux_register_devnode    ## -- Begin function drm_dp_aux_register_devnode
	.p2align	4, 0x90
_drm_dp_aux_register_devnode:           ## @drm_dp_aux_register_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_alloc_drm_dp_aux_dev
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.5:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_drm_dp_aux_dev_class@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	4(%r14), %r12d
	movq	_drm_dev_major@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	callq	_MKDEV
	movl	(%rbx), %r9d
	leaq	L_.str(%rip), %r8
	movl	%r15d, %edi
	movl	%r12d, %esi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_device_create
	movq	%rax, 8(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	8(%rbx), %rdi
	callq	_PTR_ERR
	movl	%eax, %r15d
	movq	$0, 8(%rbx)
	movq	%r14, %rdi
	callq	_drm_dp_aux_unregister_devnode
	movl	%r15d, %eax
	jmp	LBB0_4
LBB0_3:
	movl	(%r14), %esi
	movl	(%rbx), %edx
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_DEBUG
	xorl	%eax, %eax
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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%d"

L_.str.1:                               ## @.str.1
	.asciz	"drm_dp_aux_dev: aux [%s] registered as minor %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_dp_aux_register_devnode    ; -- Begin function drm_dp_aux_register_devnode
	.p2align	2
_drm_dp_aux_register_devnode:           ; @drm_dp_aux_register_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	x19, x0
	bl	_alloc_drm_dp_aux_dev
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	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	_PTR_ERR
LBB0_2:
Lloh0:
	adrp	x8, _drm_dp_aux_dev_class@GOTPAGE
Lloh1:
	ldr	x8, [x8, _drm_dp_aux_dev_class@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	ldr	w22, [x19, #4]
Lloh3:
	adrp	x8, _drm_dev_major@GOTPAGE
Lloh4:
	ldr	x8, [x8, _drm_dev_major@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	w1, [x20]
	bl	_MKDEV
	mov	x2, x0
	ldr	w5, [x20]
Lloh6:
	adrp	x4, l_.str@PAGE
Lloh7:
	add	x4, x4, l_.str@PAGEOFF
	mov	x0, x21
	mov	x1, x22
	mov	x3, #0
	bl	_device_create
	str	x0, [x20, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x0, [x20, #8]
	bl	_PTR_ERR
	mov	x21, x0
	str	xzr, [x20, #8]
	mov	x0, x19
	bl	_drm_dp_aux_unregister_devnode
	mov	x0, x21
	b	LBB0_5
LBB0_4:
	ldr	w1, [x19]
	ldr	w2, [x20]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG
	mov	w0, #0
LBB0_5:
	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 AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.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%d"

l_.str.1:                               ; @.str.1
	.asciz	"drm_dp_aux_dev: aux [%s] registered as minor %d\n"

.subsections_via_symbols
