	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_msm_hdmi_set_mode              ## -- Begin function msm_hdmi_set_mode
	.p2align	4, 0x90
_msm_hdmi_set_mode:                     ## @msm_hdmi_set_mode
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_spin_lock_irqsave
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.1:
	movq	_HDMI_CTRL_ENABLE@GOTPCREL(%rip), %rax
	movq	_HDMI_CTRL_HDMI@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	orl	(%rax), %ebx
	cmpl	$0, 4(%r14)
	leaq	L_.str.1(%rip), %r15
	jne	LBB0_4
## %bb.2:
	movq	_REG_HDMI_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_hdmi_write
	movl	(%r12), %eax
	notl	%eax
	andl	%eax, %ebx
	jmp	LBB0_4
LBB0_3:
	movq	_HDMI_CTRL_HDMI@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.2(%rip), %r15
LBB0_4:
	movq	_REG_HDMI_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_hdmi_write
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DBG                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HDMI_CTRL_ENABLE,4,2           ## @HDMI_CTRL_ENABLE
	.comm	_HDMI_CTRL_HDMI,4,2             ## @HDMI_CTRL_HDMI
	.comm	_REG_HDMI_CTRL,4,2              ## @REG_HDMI_CTRL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HDMI Core: %s, HDMI_CTRL=0x%08x"

L_.str.1:                               ## @.str.1
	.asciz	"Enable"

L_.str.2:                               ## @.str.2
	.asciz	"Disable"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_msm_hdmi_set_mode              ; -- Begin function msm_hdmi_set_mode
	.p2align	2
_msm_hdmi_set_mode:                     ; @msm_hdmi_set_mode
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x19, x0
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x22, _REG_HDMI_CTRL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _REG_HDMI_CTRL@GOTPAGEOFF]
	cbz	w20, LBB0_4
; %bb.1:
Lloh2:
	adrp	x8, _HDMI_CTRL_ENABLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HDMI_CTRL_ENABLE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
Lloh5:
	adrp	x21, _HDMI_CTRL_HDMI@GOTPAGE
Lloh6:
	ldr	x21, [x21, _HDMI_CTRL_HDMI@GOTPAGEOFF]
	ldr	w10, [x21]
	orr	w20, w10, w8
	cbnz	w9, LBB0_3
; %bb.2:
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x20
	bl	_hdmi_write
	ldr	w8, [x21]
	bic	w20, w20, w8
LBB0_3:
Lloh7:
	adrp	x21, l_.str.1@PAGE
Lloh8:
	add	x21, x21, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_4:
Lloh9:
	adrp	x8, _HDMI_CTRL_HDMI@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HDMI_CTRL_HDMI@GOTPAGEOFF]
Lloh11:
	ldr	w20, [x8]
Lloh12:
	adrp	x21, l_.str.2@PAGE
Lloh13:
	add	x21, x21, l_.str.2@PAGEOFF
LBB0_5:
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x20
	bl	_hdmi_write
	mov	x0, x19
	bl	_spin_unlock_irqrestore
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	mov	x2, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_DBG
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_HDMI_CTRL_ENABLE,4,2           ; @HDMI_CTRL_ENABLE
	.comm	_HDMI_CTRL_HDMI,4,2             ; @HDMI_CTRL_HDMI
	.comm	_REG_HDMI_CTRL,4,2              ; @REG_HDMI_CTRL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HDMI Core: %s, HDMI_CTRL=0x%08x"

l_.str.1:                               ; @.str.1
	.asciz	"Enable"

l_.str.2:                               ; @.str.2
	.asciz	"Disable"

.subsections_via_symbols
