	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dw_hdmi_bridge_attach
_dw_hdmi_bridge_attach:                 ## @dw_hdmi_bridge_attach
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	movq	16(%rdi), %r12
	leaq	24(%r12), %r14
	movl	$1, 24(%r12)
	movq	_DRM_CONNECTOR_POLL_HPD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r12)
	movq	_dw_hdmi_connector_helper_funcs@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_drm_connector_helper_add
	movl	(%rbx), %edi
	movq	_DRM_MODE_CONNECTOR_HDMIA@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	20(%r12), %r8d
	movq	_dw_hdmi_connector_funcs@GOTPCREL(%rip), %rdx
	movq	%r14, %rsi
	callq	_drm_connector_init_with_ddc
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_drm_connector_attach_encoder
	leaq	-40(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_cec_fill_conn_info_from_drm
	movl	16(%r12), %edi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_cec_notifier_conn_register
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	%r15, 8(%r12)
	movq	%r12, %rdi
	callq	_mutex_unlock
	jmp	LBB0_3
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_3:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_CONNECTOR_POLL_HPD,4,2     ## @DRM_CONNECTOR_POLL_HPD
	.comm	_dw_hdmi_connector_helper_funcs,4,2 ## @dw_hdmi_connector_helper_funcs
	.comm	_dw_hdmi_connector_funcs,4,2    ## @dw_hdmi_connector_funcs
	.comm	_DRM_MODE_CONNECTOR_HDMIA,4,2   ## @DRM_MODE_CONNECTOR_HDMIA
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_dw_hdmi_bridge_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dw_hdmi_bridge_attach
_dw_hdmi_bridge_attach:                 ; @dw_hdmi_bridge_attach
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x0
	ldp	x21, x19, [x0, #8]
	mov	w8, #1
	mov	x22, x19
	str	w8, [x22, #24]!
Lloh0:
	adrp	x8, _DRM_CONNECTOR_POLL_HPD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_CONNECTOR_POLL_HPD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #28]
Lloh3:
	adrp	x1, _dw_hdmi_connector_helper_funcs@GOTPAGE
Lloh4:
	ldr	x1, [x1, _dw_hdmi_connector_helper_funcs@GOTPAGEOFF]
	mov	x0, x22
	bl	_drm_connector_helper_add
	ldr	w0, [x20]
Lloh5:
	adrp	x8, _DRM_MODE_CONNECTOR_HDMIA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DRM_MODE_CONNECTOR_HDMIA@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	ldr	w4, [x19, #20]
Lloh8:
	adrp	x2, _dw_hdmi_connector_funcs@GOTPAGE
Lloh9:
	ldr	x2, [x2, _dw_hdmi_connector_funcs@GOTPAGEOFF]
	mov	x1, x22
	bl	_drm_connector_init_with_ddc
	mov	x0, x22
	mov	x1, x21
	bl	_drm_connector_attach_encoder
	add	x0, sp, #8
	mov	x1, x22
	bl	_cec_fill_conn_info_from_drm
	ldr	w0, [x19, #16]
	add	x2, sp, #8
	mov	x1, #0
	bl	_cec_notifier_conn_register
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	bl	_mutex_lock
	str	x20, [x19, #8]
	mov	x0, x19
	bl	_mutex_unlock
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_CONNECTOR_POLL_HPD,4,2     ; @DRM_CONNECTOR_POLL_HPD
	.comm	_dw_hdmi_connector_helper_funcs,4,2 ; @dw_hdmi_connector_helper_funcs
	.comm	_dw_hdmi_connector_funcs,4,2    ; @dw_hdmi_connector_funcs
	.comm	_DRM_MODE_CONNECTOR_HDMIA,4,2   ; @DRM_MODE_CONNECTOR_HDMIA
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_dw_hdmi_bridge_attach
.subsections_via_symbols
