	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_msm_hdmi_modeset_init          ## -- Begin function msm_hdmi_modeset_init
	.p2align	4, 0x90
_msm_hdmi_modeset_init:                 ## @msm_hdmi_modeset_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
	movq	%rdx, %r13
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	8(%rsi), %r14
	movq	24(%rdi), %r15
	movq	%rsi, 48(%rdi)
	movq	%rdx, 40(%rdi)
	addq	$32, %rdi
	callq	_hdmi_audio_infoframe_init
	movq	%rbx, %rdi
	callq	_msm_hdmi_bridge_init
	movq	%rax, 16(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	16(%rbx), %rdi
	callq	_PTR_ERR
	movl	%eax, %r14d
	movq	(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_DRM_DEV_ERROR
	jmp	LBB0_2
LBB0_5:
	movq	%rbx, %rdi
	callq	_msm_hdmi_connector_init
	movq	%rax, 8(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	movq	8(%rbx), %rdi
	callq	_PTR_ERR
	movl	%eax, %r14d
	movq	(%r12), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_DRM_DEV_ERROR
	movq	$0, 8(%rbx)
	jmp	LBB0_7
LBB0_9:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movl	(%r15), %edi
	xorl	%esi, %esi
	callq	_irq_of_parse_and_map
	movl	%eax, %r14d
	movl	%eax, (%rbx)
	testl	%eax, %eax
	js	LBB0_10
## %bb.12:
	movq	_msm_hdmi_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IRQF_TRIGGER_HIGH@GOTPCREL(%rip), %rax
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	leaq	L_.str.3(%rip), %r8
	movq	%r15, %rdi
	movl	%r14d, %esi
	movq	%rbx, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	js	LBB0_13
## %bb.14:
	movq	8(%rbx), %rdi
	callq	_msm_hdmi_hpd_enable
	testl	%eax, %eax
	js	LBB0_15
## %bb.16:
	movq	16(%rbx), %rax
	movq	%rax, (%r13)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	24(%rdi), %rcx
	movslq	16(%rdi), %rdx
	leal	1(%rdx), %esi
	movl	%esi, 16(%rdi)
	movq	%rax, (%rcx,%rdx,8)
	movq	8(%rbx), %rax
	movq	8(%rdi), %rcx
	movslq	(%rdi), %rdx
	leal	1(%rdx), %esi
	movl	%esi, (%rdi)
	movq	%rax, (%rcx,%rdx,8)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_platform_set_drvdata
	xorl	%r14d, %r14d
	jmp	LBB0_17
LBB0_10:
	movq	(%r12), %rdi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_11
LBB0_13:
	movl	%eax, %r14d
	movq	(%r12), %rdi
	movl	(%rbx), %edx
	leaq	L_.str.4(%rip), %rsi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_DRM_DEV_ERROR
	jmp	LBB0_7
LBB0_15:
	movl	%eax, %r14d
	movq	24(%rbx), %rdi
	leaq	L_.str.5(%rip), %rsi
LBB0_11:
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_DRM_DEV_ERROR
LBB0_7:
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.8:
	callq	_msm_hdmi_bridge_destroy
LBB0_2:
	movq	$0, 16(%rbx)
LBB0_3:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_17
## %bb.4:
	movq	(%rdi), %rax
	callq	*(%rax)
	movq	$0, 8(%rbx)
LBB0_17:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to create HDMI bridge: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to create HDMI connector: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed to get irq: %d\n"

	.comm	_msm_hdmi_irq,4,2               ## @msm_hdmi_irq
	.comm	_IRQF_TRIGGER_HIGH,4,2          ## @IRQF_TRIGGER_HIGH
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
L_.str.3:                               ## @.str.3
	.asciz	"hdmi_isr"

L_.str.4:                               ## @.str.4
	.asciz	"failed to request IRQ%u: %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"failed to enable HPD: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_msm_hdmi_modeset_init          ; -- Begin function msm_hdmi_modeset_init
	.p2align	2
_msm_hdmi_modeset_init:                 ; @msm_hdmi_modeset_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x23, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x24, [x1, #8]
	ldr	x21, [x0, #24]
	stp	x2, x1, [x0, #40]
	add	x0, x0, #32
	bl	_hdmi_audio_infoframe_init
	mov	x0, x19
	bl	_msm_hdmi_bridge_init
	str	x0, [x19, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x0, [x19, #16]
	bl	_PTR_ERR
	mov	x20, x0
	ldr	x0, [x22]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_DRM_DEV_ERROR
	b	LBB0_14
LBB0_2:
	mov	x0, x19
	bl	_msm_hdmi_connector_init
	str	x0, [x19, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x0, [x19, #8]
	bl	_PTR_ERR
	mov	x20, x0
	ldr	x0, [x22]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_DRM_DEV_ERROR
	str	xzr, [x19, #8]
	ldr	x0, [x19, #16]
	cbnz	x0, LBB0_13
	b	LBB0_15
LBB0_4:
	ldr	w0, [x21]
	mov	w1, #0
	bl	_irq_of_parse_and_map
	mov	x20, x0
	str	w0, [x19]
	tbnz	w0, #31, LBB0_8
; %bb.5:
Lloh4:
	adrp	x8, _msm_hdmi_irq@GOTPAGE
Lloh5:
	ldr	x8, [x8, _msm_hdmi_irq@GOTPAGEOFF]
Lloh6:
	adrp	x9, _IRQF_TRIGGER_HIGH@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IRQF_TRIGGER_HIGH@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	ldr	w8, [x9]
Lloh10:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w3, w9, w8
Lloh13:
	adrp	x4, l_.str.3@PAGE
Lloh14:
	add	x4, x4, l_.str.3@PAGEOFF
	mov	x0, x21
	mov	x1, x20
	mov	x5, x19
	bl	_devm_request_irq
	tbnz	w0, #31, LBB0_9
; %bb.6:
	ldr	x0, [x19, #8]
	bl	_msm_hdmi_hpd_enable
	tbnz	w0, #31, LBB0_10
; %bb.7:
	ldr	x8, [x19, #16]
	str	x8, [x23]
	ldr	x9, [x24, #24]
	ldrsw	x10, [x24, #16]
	add	w11, w10, #1
	str	w11, [x24, #16]
	str	x8, [x9, x10, lsl #3]
	ldr	x8, [x19, #8]
	ldr	x9, [x24, #8]
	ldrsw	x10, [x24]
	add	w11, w10, #1
	str	w11, [x24]
	str	x8, [x9, x10, lsl #3]
	mov	x0, x21
	mov	x1, x19
	bl	_platform_set_drvdata
	mov	w20, #0
	b	LBB0_17
LBB0_8:
	ldr	x0, [x22]
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_9:
	mov	x20, x0
	ldr	x0, [x22]
	ldr	w2, [x19]
	str	x20, [sp]
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_12
LBB0_10:
	mov	x20, x0
	ldr	x0, [x19, #24]
Lloh19:
	adrp	x1, l_.str.5@PAGE
Lloh20:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_11:
	mov	x2, x20
LBB0_12:
	bl	_DRM_DEV_ERROR
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_15
LBB0_13:
	bl	_msm_hdmi_bridge_destroy
LBB0_14:
	str	xzr, [x19, #16]
LBB0_15:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_17
; %bb.16:
	ldr	x8, [x0]
	ldr	x8, [x8]
	blr	x8
	str	xzr, [x19, #8]
LBB0_17:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh8
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to create HDMI bridge: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to create HDMI connector: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed to get irq: %d\n"

	.comm	_msm_hdmi_irq,4,2               ; @msm_hdmi_irq
	.comm	_IRQF_TRIGGER_HIGH,4,2          ; @IRQF_TRIGGER_HIGH
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
l_.str.3:                               ; @.str.3
	.asciz	"hdmi_isr"

l_.str.4:                               ; @.str.4
	.asciz	"failed to request IRQ%u: %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"failed to enable HPD: %d\n"

.subsections_via_symbols
