	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function inno_hdmi_set_pwr_mode
_inno_hdmi_set_pwr_mode:                ## @inno_hdmi_set_pwr_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	cmpl	$129, %esi
	je	LBB0_3
## %bb.1:
	movl	%esi, %edx
	cmpl	$128, %esi
	jne	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_inno_hdmi_sys_power
	movq	_HDMI_PHY_PRE_EMPHASIS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$111, %edx
	callq	_hdmi_writeb
	movq	_HDMI_PHY_DRIVER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$187, %edx
	callq	_hdmi_writeb
	movq	_HDMI_PHY_SYS_CTL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$21, %edx
	callq	_hdmi_writeb
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$20, %edx
	callq	_hdmi_writeb
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$16, %edx
	callq	_hdmi_writeb
	movq	_HDMI_PHY_CHG_PWR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$15, %edx
	callq	_hdmi_writeb
	movq	_HDMI_PHY_SYNC@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_hdmi_writeb
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_hdmi_writeb
	movq	%rbx, %rdi
	movl	$1, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_inno_hdmi_sys_power            ## TAILCALL
LBB0_3:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_inno_hdmi_sys_power
	movq	_HDMI_PHY_DRIVER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_hdmi_writeb
	movq	_HDMI_PHY_PRE_EMPHASIS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_hdmi_writeb
	movq	_HDMI_PHY_CHG_PWR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_hdmi_writeb
	movq	_HDMI_PHY_SYS_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$21, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_hdmi_writeb                    ## TAILCALL
LBB0_4:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_DRM_DEV_ERROR                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HDMI_PHY_PRE_EMPHASIS,4,2      ## @HDMI_PHY_PRE_EMPHASIS
	.comm	_HDMI_PHY_DRIVER,4,2            ## @HDMI_PHY_DRIVER
	.comm	_HDMI_PHY_SYS_CTL,4,2           ## @HDMI_PHY_SYS_CTL
	.comm	_HDMI_PHY_CHG_PWR,4,2           ## @HDMI_PHY_CHG_PWR
	.comm	_HDMI_PHY_SYNC,4,2              ## @HDMI_PHY_SYNC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown power mode %d\n"

	.no_dead_strip	_inno_hdmi_set_pwr_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function inno_hdmi_set_pwr_mode
_inno_hdmi_set_pwr_mode:                ; @inno_hdmi_set_pwr_mode
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	cmp	w1, #129
	b.eq	LBB0_3
; %bb.1:
	mov	x2, x1
	cmp	w1, #128
	b.ne	LBB0_4
; %bb.2:
	mov	x0, x19
	mov	w1, #0
	bl	_inno_hdmi_sys_power
Lloh0:
	adrp	x8, _HDMI_PHY_PRE_EMPHASIS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HDMI_PHY_PRE_EMPHASIS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #111
	bl	_hdmi_writeb
Lloh3:
	adrp	x8, _HDMI_PHY_DRIVER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HDMI_PHY_DRIVER@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #187
	bl	_hdmi_writeb
Lloh6:
	adrp	x20, _HDMI_PHY_SYS_CTL@GOTPAGE
Lloh7:
	ldr	x20, [x20, _HDMI_PHY_SYS_CTL@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #21
	bl	_hdmi_writeb
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #20
	bl	_hdmi_writeb
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #16
	bl	_hdmi_writeb
Lloh8:
	adrp	x8, _HDMI_PHY_CHG_PWR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HDMI_PHY_CHG_PWR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #15
	bl	_hdmi_writeb
Lloh11:
	adrp	x20, _HDMI_PHY_SYNC@GOTPAGE
Lloh12:
	ldr	x20, [x20, _HDMI_PHY_SYNC@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #0
	bl	_hdmi_writeb
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #1
	bl	_hdmi_writeb
	mov	x0, x19
	mov	w1, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_inno_hdmi_sys_power
LBB0_3:
	mov	x0, x19
	mov	w1, #0
	bl	_inno_hdmi_sys_power
Lloh13:
	adrp	x8, _HDMI_PHY_DRIVER@GOTPAGE
Lloh14:
	ldr	x8, [x8, _HDMI_PHY_DRIVER@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_hdmi_writeb
Lloh16:
	adrp	x8, _HDMI_PHY_PRE_EMPHASIS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _HDMI_PHY_PRE_EMPHASIS@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_hdmi_writeb
Lloh19:
	adrp	x8, _HDMI_PHY_CHG_PWR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _HDMI_PHY_CHG_PWR@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_hdmi_writeb
Lloh22:
	adrp	x8, _HDMI_PHY_SYS_CTL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _HDMI_PHY_SYS_CTL@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #21
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_hdmi_writeb
LBB0_4:
	ldr	w0, [x19]
Lloh25:
	adrp	x1, l_.str@PAGE
Lloh26:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_DRM_DEV_ERROR
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_HDMI_PHY_PRE_EMPHASIS,4,2      ; @HDMI_PHY_PRE_EMPHASIS
	.comm	_HDMI_PHY_DRIVER,4,2            ; @HDMI_PHY_DRIVER
	.comm	_HDMI_PHY_SYS_CTL,4,2           ; @HDMI_PHY_SYS_CTL
	.comm	_HDMI_PHY_CHG_PWR,4,2           ; @HDMI_PHY_CHG_PWR
	.comm	_HDMI_PHY_SYNC,4,2              ; @HDMI_PHY_SYNC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown power mode %d\n"

	.no_dead_strip	_inno_hdmi_set_pwr_mode
.subsections_via_symbols
