	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_eml_sink
_create_eml_sink:                       ## @create_eml_sink
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_SIGNAL_TYPE_VIRTUAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	movq	16(%rdi), %rdi
	movq	%rdi, -16(%rbp)
	movq	40(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	(%rax), %rsi
	movq	%rsi, 56(%rbx)
	movl	(%rsi), %edx
	incl	%edx
	movq	_EDID_LENGTH@GOTPCREL(%rip), %rax
	imull	(%rax), %edx
	leaq	-24(%rbp), %rcx
	callq	_dc_link_add_remote_sink
	movq	%rax, 8(%rbx)
	movq	24(%rbx), %rcx
	movq	_DRM_FORCE_ON@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_4
## %bb.3:
	movq	16(%rbx), %rcx
	movq	(%rcx), %rcx
	testq	%rcx, %rcx
	cmovneq	%rcx, %rax
	movq	%rax, (%rbx)
	movq	%rax, %rdi
	callq	_dc_sink_retain
	jmp	LBB0_4
LBB0_1:
	movl	48(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
	movq	_DRM_FORCE_OFF@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
	movl	$0, 32(%rbx)
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SIGNAL_TYPE_VIRTUAL,4,2        ## @SIGNAL_TYPE_VIRTUAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No EDID firmware found on connector: %s ,forcing to OFF!\n"

	.comm	_DRM_FORCE_OFF,8,3              ## @DRM_FORCE_OFF
	.comm	_EDID_LENGTH,4,2                ## @EDID_LENGTH
	.comm	_DRM_FORCE_ON,8,3               ## @DRM_FORCE_ON
	.no_dead_strip	_create_eml_sink
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_eml_sink
_create_eml_sink:                       ; @create_eml_sink
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _SIGNAL_TYPE_VIRTUAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIGNAL_TYPE_VIRTUAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp]
	ldr	x0, [x0, #16]
	str	x0, [sp, #8]
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x1, [x8]
	str	x1, [x19, #56]
	ldr	w8, [x1]
Lloh3:
	adrp	x9, _EDID_LENGTH@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EDID_LENGTH@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	madd	w2, w9, w8, w9
	mov	x3, sp
	bl	_dc_link_add_remote_sink
	str	x0, [x19, #8]
	ldr	x8, [x19, #24]
Lloh6:
	adrp	x9, _DRM_FORCE_ON@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DRM_FORCE_ON@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	cmp	x8, #0
	csel	x0, x0, x8, eq
	str	x0, [x19]
	bl	_dc_sink_retain
	b	LBB0_4
LBB0_3:
	ldr	w1, [x19, #48]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
Lloh11:
	adrp	x8, _DRM_FORCE_OFF@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DRM_FORCE_OFF@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	str	x8, [x19, #24]
	str	wzr, [x19, #32]
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_SIGNAL_TYPE_VIRTUAL,4,2        ; @SIGNAL_TYPE_VIRTUAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No EDID firmware found on connector: %s ,forcing to OFF!\n"

	.comm	_DRM_FORCE_OFF,8,3              ; @DRM_FORCE_OFF
	.comm	_EDID_LENGTH,4,2                ; @EDID_LENGTH
	.comm	_DRM_FORCE_ON,8,3               ; @DRM_FORCE_ON
	.no_dead_strip	_create_eml_sink
.subsections_via_symbols
