	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dw_hdmi_clear_overflow
_dw_hdmi_clear_overflow:                ## @dw_hdmi_clear_overflow
	.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
	movq	%rdi, %r14
	movl	(%rdi), %eax
	cmpl	$8201, %eax                     ## imm = 0x2009
	jle	LBB0_1
## %bb.5:
	cmpl	$8473, %eax                     ## imm = 0x2119
	jg	LBB0_8
## %bb.6:
	cmpl	$8202, %eax                     ## imm = 0x200A
	je	LBB0_10
## %bb.7:
	cmpl	$8218, %eax                     ## imm = 0x201A
	je	LBB0_10
	jmp	LBB0_13
LBB0_1:
	cmpl	$4874, %eax                     ## imm = 0x130A
	je	LBB0_2
## %bb.3:
	cmpl	$4890, %eax                     ## imm = 0x131A
	je	LBB0_10
## %bb.4:
	cmpl	$4906, %eax                     ## imm = 0x132A
	je	LBB0_10
	jmp	LBB0_13
LBB0_8:
	cmpl	$8490, %eax                     ## imm = 0x212A
	je	LBB0_10
## %bb.9:
	cmpl	$8474, %eax                     ## imm = 0x211A
	jne	LBB0_13
LBB0_10:
	movl	$1, %ebx
LBB0_11:
	movq	_HDMI_MC_SWRSTZ_TMDSSWRST_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	notl	%esi
	movq	_HDMI_MC_SWRSTZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_hdmi_writeb
	movq	_HDMI_FC_INVIDCONF@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_hdmi_readb
	movl	%eax, %r15d
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edx
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_hdmi_writeb
	decl	%ebx
	jne	LBB0_12
LBB0_13:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	$4, %ebx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_HDMI_MC_SWRSTZ_TMDSSWRST_REQ,8,3 ## @HDMI_MC_SWRSTZ_TMDSSWRST_REQ
	.comm	_HDMI_MC_SWRSTZ,4,2             ## @HDMI_MC_SWRSTZ
	.comm	_HDMI_FC_INVIDCONF,4,2          ## @HDMI_FC_INVIDCONF
	.no_dead_strip	_dw_hdmi_clear_overflow
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dw_hdmi_clear_overflow
_dw_hdmi_clear_overflow:                ; @dw_hdmi_clear_overflow
	.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	x19, x0
	ldr	w8, [x0]
	mov	w9, #8201
	cmp	w8, w9
	b.le	LBB0_3
; %bb.1:
	mov	w9, #8473
	cmp	w8, w9
	b.gt	LBB0_5
; %bb.2:
	mov	w9, #8202
	cmp	w8, w9
	mov	w9, #8218
	ccmp	w8, w9, #4, ne
	b.eq	LBB0_6
	b	LBB0_8
LBB0_3:
	mov	w9, #4874
	cmp	w8, w9
	b.eq	LBB0_10
; %bb.4:
	mov	w9, #4890
	cmp	w8, w9
	mov	w9, #4906
	ccmp	w8, w9, #4, ne
	b.eq	LBB0_6
	b	LBB0_8
LBB0_5:
	mov	w9, #8490
	cmp	w8, w9
	mov	w9, #8474
	ccmp	w8, w9, #4, ne
	b.ne	LBB0_8
LBB0_6:
	mov	w22, #1
LBB0_7:
Lloh0:
	adrp	x8, _HDMI_MC_SWRSTZ_TMDSSWRST_REQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HDMI_MC_SWRSTZ_TMDSSWRST_REQ@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mvn	w1, w8
Lloh3:
	adrp	x8, _HDMI_MC_SWRSTZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HDMI_MC_SWRSTZ@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_hdmi_writeb
Lloh6:
	adrp	x21, _HDMI_FC_INVIDCONF@GOTPAGE
Lloh7:
	ldr	x21, [x21, _HDMI_FC_INVIDCONF@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_hdmi_readb
	mov	x20, x0
	ldr	w2, [x21]
	mov	x0, x19
	mov	x1, x20
	bl	_hdmi_writeb
	tbz	w22, #0, LBB0_9
LBB0_8:
	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
	ret
LBB0_9:
	ldr	w2, [x21]
	mov	x0, x19
	mov	x1, x20
	bl	_hdmi_writeb
	ldr	w2, [x21]
	mov	x0, x19
	mov	x1, x20
	bl	_hdmi_writeb
	ldr	w2, [x21]
	mov	x0, x19
	mov	x1, 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	_hdmi_writeb
LBB0_10:
	mov	w22, #0
	b	LBB0_7
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HDMI_MC_SWRSTZ_TMDSSWRST_REQ,8,3 ; @HDMI_MC_SWRSTZ_TMDSSWRST_REQ
	.comm	_HDMI_MC_SWRSTZ,4,2             ; @HDMI_MC_SWRSTZ
	.comm	_HDMI_FC_INVIDCONF,4,2          ; @HDMI_FC_INVIDCONF
	.no_dead_strip	_dw_hdmi_clear_overflow
.subsections_via_symbols
