	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r13d
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r12
	callq	_drm_modeset_lock_all
	leaq	8(%rbx), %r15
	movq	_DRM_MODE_OBJECT_CONNECTOR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_drm_mode_object_get
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	leaq	72(%rbx), %rax
	movq	%rax, 8(%rbx)
	movq	%r12, 64(%rbx)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 56(%rbx)
	movl	%r13d, (%rbx)
	movq	_drm_connector_enum_list@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r13d, %r13
	movq	(%rax,%r13,8), %rcx
	incq	%rcx
	movq	%rcx, (%rax,%r13,8)
	movq	%rcx, 48(%rbx)
	leaq	40(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	36(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	32(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	movq	$0, 24(%rbx)
	movq	_connector_status_unknown@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	addq	$16, %rbx
	leaq	12(%r12), %rsi
	movq	%rbx, %rdi
	callq	_list_add_tail
	incl	8(%r12)
	movq	_DRM_MODE_CONNECTOR_VIRTUAL@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	je	LBB0_3
## %bb.2:
	movl	4(%r12), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_drm_object_attach_property
LBB0_3:
	movl	(%r12), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_drm_object_attach_property
LBB0_4:
	movq	%r12, %rdi
	callq	_drm_modeset_unlock_all
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_MODE_OBJECT_CONNECTOR,4,2  ## @DRM_MODE_OBJECT_CONNECTOR
	.comm	_drm_connector_enum_list,8,3    ## @drm_connector_enum_list
	.comm	_connector_status_unknown,4,2   ## @connector_status_unknown
	.comm	_DRM_MODE_CONNECTOR_VIRTUAL,4,2 ## @DRM_MODE_CONNECTOR_VIRTUAL
.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	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x22, x3
	mov	x24, x2
	mov	x23, x1
	mov	x19, x0
	bl	_drm_modeset_lock_all
	add	x21, x23, #8
Lloh0:
	adrp	x8, _DRM_MODE_OBJECT_CONNECTOR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_MODE_OBJECT_CONNECTOR@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x21
	bl	_drm_mode_object_get
	mov	x20, x0
	cbnz	w0, LBB0_4
; %bb.1:
	add	x8, x23, #72
	str	x8, [x23, #8]
	str	x19, [x23, #64]
	str	w22, [x23]
Lloh3:
	adrp	x8, _drm_connector_enum_list@GOTPAGE
Lloh4:
	ldr	x8, [x8, _drm_connector_enum_list@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	sbfiz	x9, x22, #3, #32
	ldr	x10, [x8, x9]
	add	x10, x10, #1
	str	x10, [x8, x9]
	stp	x10, x24, [x23, #48]
	add	x0, x23, #40
	bl	_INIT_LIST_HEAD
	add	x0, x23, #36
	bl	_INIT_LIST_HEAD
	add	x0, x23, #32
	bl	_INIT_LIST_HEAD
	str	xzr, [x23, #24]
Lloh6:
	adrp	x8, _connector_status_unknown@GOTPAGE
Lloh7:
	ldr	x8, [x8, _connector_status_unknown@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x23, #20]
	add	x0, x23, #16
	add	x1, x19, #12
	bl	_list_add_tail
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
Lloh9:
	adrp	x8, _DRM_MODE_CONNECTOR_VIRTUAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DRM_MODE_CONNECTOR_VIRTUAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w8, w22
	b.eq	LBB0_3
; %bb.2:
	ldr	w1, [x19, #4]
	mov	x0, x21
	mov	w2, #0
	bl	_drm_object_attach_property
LBB0_3:
	ldr	w1, [x19]
	mov	x0, x21
	mov	w2, #0
	bl	_drm_object_attach_property
LBB0_4:
	mov	x0, x19
	bl	_drm_modeset_unlock_all
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_MODE_OBJECT_CONNECTOR,4,2  ; @DRM_MODE_OBJECT_CONNECTOR
	.comm	_drm_connector_enum_list,8,3    ; @drm_connector_enum_list
	.comm	_connector_status_unknown,4,2   ; @connector_status_unknown
	.comm	_DRM_MODE_CONNECTOR_VIRTUAL,4,2 ; @DRM_MODE_CONNECTOR_VIRTUAL
.subsections_via_symbols
