	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_connector_init             ## -- Begin function drm_connector_init
	.p2align	4, 0x90
_drm_connector_init:                    ## @drm_connector_init
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	_drm_connector_enum_list@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	callq	_drm_drv_uses_atomic_modeset
	testq	%rax, %rax
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	cmpl	$0, 4(%r12)
	je	LBB0_3
## %bb.4:
	xorl	%edi, %edi
	cmpl	$0, (%r12)
	sete	%dil
	jmp	LBB0_5
LBB0_1:
	xorl	%edi, %edi
	jmp	LBB0_5
LBB0_3:
	movl	$1, %edi
LBB0_5:
	callq	_WARN_ON
	leaq	16(%r13), %rbx
	movq	_DRM_MODE_OBJECT_CONNECTOR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_drm_connector_free@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	callq	___drm_mode_object_add
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_21
## %bb.6:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movslq	-44(%rbp), %rbx                 ## 4-byte Folded Reload
	leaq	96(%r13), %rax
	movq	%rax, 16(%r13)
	movq	%r14, 88(%r13)
	movq	%r12, 80(%r13)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_ida_simple_get
	movq	%rax, %r15
	testl	%r15d, %r15d
	js	LBB0_7
## %bb.8:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rbx,8), %rdi
	addq	$4, %rdi
	movl	%r15d, (%r13)
	movl	%ebx, 4(%r13)
	movl	(%r12), %ecx
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_ida_simple_get
	movq	%rax, %r15
	movl	%r15d, 8(%r13)
	testl	%r15d, %r15d
	js	LBB0_9
## %bb.10:
	movl	(%r12), %edi
	movq	_drm_connector_enum_list@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,8), %edx
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %ecx
	callq	_kasprintf
	movl	%eax, 76(%r13)
	testl	%eax, %eax
	je	LBB0_17
## %bb.11:
	leaq	72(%r13), %rdi
	callq	_INIT_LIST_HEAD
	leaq	68(%r13), %rdi
	callq	_INIT_LIST_HEAD
	leaq	64(%r13), %rdi
	callq	_mutex_init
	xorps	%xmm0, %xmm0
	movups	%xmm0, 48(%r13)
	movq	_connector_status_unknown@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r13)
	movq	_DRM_MODE_PANEL_ORIENTATION_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r13)
	movq	%r13, %rdi
	callq	_drm_connector_get_cmdline_mode
	leaq	24(%r14), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irq
	leaq	32(%r13), %rdi
	leaq	32(%r14), %rsi
	callq	_list_add_tail
	incl	28(%r14)
	movq	%rbx, %rdi
	callq	_spin_unlock_irq
	movq	_DRM_MODE_CONNECTOR_VIRTUAL@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, (%rax)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_14
## %bb.12:
	movq	_DRM_MODE_CONNECTOR_WRITEBACK@GOTPCREL(%rip), %rax
	cmpl	%ecx, (%rax)
	je	LBB0_14
## %bb.13:
	movq	%r13, %rdi
	callq	_drm_connector_attach_edid_property
LBB0_14:
	movl	20(%r14), %esi
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_drm_object_attach_property
	movl	16(%r14), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_drm_object_attach_property
	movl	12(%r14), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_drm_object_attach_property
	movl	8(%r14), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_drm_object_attach_property
	movq	_DRIVER_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_drm_core_check_feature
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movl	4(%r14), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_drm_object_attach_property
LBB0_16:
	movq	$0, 24(%r13)
	jmp	LBB0_21
LBB0_7:
	movq	_drm_connector_enum_list@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,8), %esi
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %edx
	callq	_DRM_DEBUG_KMS
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_20
LBB0_9:
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_ida_simple_remove
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_20
LBB0_17:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	testl	%r15d, %r15d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_18
## %bb.19:
	negl	%r15d
	movl	8(%r13), %esi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_ida_simple_remove
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_ida_simple_remove
LBB0_20:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_drm_mode_object_unregister
LBB0_21:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	xorl	%r15d, %r15d
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_drm_connector_enum_list,8,3    ## @drm_connector_enum_list
	.comm	_DRM_MODE_OBJECT_CONNECTOR,4,2  ## @DRM_MODE_OBJECT_CONNECTOR
	.comm	_drm_connector_free,4,2         ## @drm_connector_free
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to allocate %s connector index: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s-%d"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_connector_status_unknown,4,2   ## @connector_status_unknown
	.comm	_DRM_MODE_PANEL_ORIENTATION_UNKNOWN,4,2 ## @DRM_MODE_PANEL_ORIENTATION_UNKNOWN
	.comm	_DRM_MODE_CONNECTOR_VIRTUAL,4,2 ## @DRM_MODE_CONNECTOR_VIRTUAL
	.comm	_DRM_MODE_CONNECTOR_WRITEBACK,4,2 ## @DRM_MODE_CONNECTOR_WRITEBACK
	.comm	_DRIVER_ATOMIC,4,2              ## @DRIVER_ATOMIC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_connector_init             ; -- Begin function drm_connector_init
	.p2align	2
_drm_connector_init:                    ; @drm_connector_init
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x3
	mov	x24, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x25, _drm_connector_enum_list@GOTPAGE
Lloh1:
	ldr	x25, [x25, _drm_connector_enum_list@GOTPAGEOFF]
	ldr	x26, [x25]
	bl	_drm_drv_uses_atomic_modeset
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w8, [x24, #4]
	cbz	w8, LBB0_3
; %bb.2:
	ldr	w8, [x24]
	cmp	w8, #0
	cset	w0, eq
	b	LBB0_4
LBB0_3:
	mov	w0, #1
LBB0_4:
	bl	_WARN_ON
	add	x21, x20, #16
Lloh2:
	adrp	x8, _DRM_MODE_OBJECT_CONNECTOR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DRM_MODE_OBJECT_CONNECTOR@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x8, _drm_connector_free@GOTPAGE
Lloh6:
	ldr	x8, [x8, _drm_connector_free@GOTPAGEOFF]
Lloh7:
	ldr	w4, [x8]
	mov	x0, x19
	mov	x1, x21
	mov	w3, #0
	bl	___drm_mode_object_add
	mov	x23, x0
	cbnz	w0, LBB0_19
; %bb.5:
	sxtw	x27, w22
	add	x8, x20, #96
	str	x8, [x20, #16]
	stp	x24, x19, [x20, #80]
Lloh8:
	adrp	x28, _GFP_KERNEL@GOTPAGE
Lloh9:
	ldr	x28, [x28, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w3, [x28]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #32
	bl	_ida_simple_get
	mov	x23, x0
	tbnz	w23, #31, LBB0_14
; %bb.6:
	add	x8, x26, w22, sxtw #3
	add	x24, x8, #4
	stp	w23, w22, [x20]
	ldr	w3, [x28]
	mov	x0, x24
	mov	w1, #1
	mov	w2, #0
	bl	_ida_simple_get
	mov	x23, x0
	str	w0, [x20, #8]
	tbnz	w0, #31, LBB0_17
; %bb.7:
	ldr	w0, [x28]
	ldr	x8, [x25]
	lsl	x9, x27, #3
	ldr	w2, [x8, x9]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x3, x23
	bl	_kasprintf
	str	w0, [x20, #76]
	cbz	w0, LBB0_15
; %bb.8:
	add	x0, x20, #72
	bl	_INIT_LIST_HEAD
	add	x0, x20, #68
	bl	_INIT_LIST_HEAD
	add	x0, x20, #64
	bl	_mutex_init
	stp	xzr, xzr, [x20, #48]
Lloh12:
	adrp	x8, _connector_status_unknown@GOTPAGE
Lloh13:
	ldr	x8, [x8, _connector_status_unknown@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _DRM_MODE_PANEL_ORIENTATION_UNKNOWN@GOTPAGE
Lloh16:
	ldr	x9, [x9, _DRM_MODE_PANEL_ORIENTATION_UNKNOWN@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #36]
	mov	x0, x20
	bl	_drm_connector_get_cmdline_mode
	add	x23, x19, #24
	mov	x0, x23
	bl	_spin_lock_irq
	add	x0, x20, #32
	add	x1, x19, #32
	bl	_list_add_tail
	ldr	w8, [x19, #28]
	add	w8, w8, #1
	str	w8, [x19, #28]
	mov	x0, x23
	bl	_spin_unlock_irq
Lloh18:
	adrp	x8, _DRM_MODE_CONNECTOR_VIRTUAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DRM_MODE_CONNECTOR_VIRTUAL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmp	w8, w22
	b.eq	LBB0_11
; %bb.9:
Lloh21:
	adrp	x8, _DRM_MODE_CONNECTOR_WRITEBACK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _DRM_MODE_CONNECTOR_WRITEBACK@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	cmp	w8, w22
	b.eq	LBB0_11
; %bb.10:
	mov	x0, x20
	bl	_drm_connector_attach_edid_property
LBB0_11:
	ldr	w1, [x19, #20]
	mov	x0, x21
	mov	w2, #0
	bl	_drm_object_attach_property
	ldr	w1, [x19, #16]
	mov	x0, x21
	mov	w2, #0
	bl	_drm_object_attach_property
	ldr	w1, [x19, #12]
	mov	x0, x21
	mov	w2, #0
	bl	_drm_object_attach_property
	ldr	w1, [x19, #8]
	mov	x0, x21
	mov	w2, #0
	bl	_drm_object_attach_property
Lloh24:
	adrp	x8, _DRIVER_ATOMIC@GOTPAGE
Lloh25:
	ldr	x8, [x8, _DRIVER_ATOMIC@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_drm_core_check_feature
	cbz	x0, LBB0_13
; %bb.12:
	ldr	w1, [x19, #4]
	mov	x0, x21
	mov	w2, #0
	bl	_drm_object_attach_property
LBB0_13:
	mov	w23, #0
	str	xzr, [x20, #24]
	b	LBB0_19
LBB0_14:
	ldr	x8, [x25]
	lsl	x9, x27, #3
	ldr	w1, [x8, x9]
Lloh27:
	adrp	x0, l_.str@PAGE
Lloh28:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x23
	bl	_DRM_DEBUG_KMS
	b	LBB0_18
LBB0_15:
Lloh29:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	cbz	w8, LBB0_20
; %bb.16:
	neg	w23, w8
	ldr	w1, [x20, #8]
	mov	x0, x24
	bl	_ida_simple_remove
LBB0_17:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_ida_simple_remove
LBB0_18:
	mov	x0, x19
	mov	x1, x21
	bl	_drm_mode_object_unregister
LBB0_19:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_20:
	mov	w23, #0
	b	LBB0_19
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_drm_connector_enum_list,8,3    ; @drm_connector_enum_list
	.comm	_DRM_MODE_OBJECT_CONNECTOR,4,2  ; @DRM_MODE_OBJECT_CONNECTOR
	.comm	_drm_connector_free,4,2         ; @drm_connector_free
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to allocate %s connector index: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s-%d"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_connector_status_unknown,4,2   ; @connector_status_unknown
	.comm	_DRM_MODE_PANEL_ORIENTATION_UNKNOWN,4,2 ; @DRM_MODE_PANEL_ORIENTATION_UNKNOWN
	.comm	_DRM_MODE_CONNECTOR_VIRTUAL,4,2 ; @DRM_MODE_CONNECTOR_VIRTUAL
	.comm	_DRM_MODE_CONNECTOR_WRITEBACK,4,2 ; @DRM_MODE_CONNECTOR_WRITEBACK
	.comm	_DRIVER_ATOMIC,4,2              ; @DRIVER_ATOMIC
.subsections_via_symbols
