	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sii8620_msc_mr_write_stat
_sii8620_msc_mr_write_stat:             ## @sii8620_msc_mr_write_stat
	.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	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MHL_DST_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r15, %rax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	_MHL_XDS_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	_REG_MHL_STAT_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	movl	%r15d, %ecx
	callq	_sii8620_read_buf
	movq	_REG_MHL_EXTSTAT_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %ecx
	movq	%rbx, %rdi
	movq	%r12, %rdx
	callq	_sii8620_read_buf
	movq	(%rbx), %rdi
	movq	_MHL_DST_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	callq	_sii8620_update_array
	movq	8(%rbx), %rdi
	movl	(%r13), %edx
	movq	%r12, %rsi
	callq	_sii8620_update_array
	movq	(%rbx), %rax
	movq	_MHL_DST_CONNECTED_RDY@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%r14,%rcx,4), %edx
	andl	(%rax,%rcx,4), %edx
	movq	_MHL_DST_CONN_DCAP_RDY@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_sii8620_status_dcap_ready
	movq	%rbx, %rdi
	callq	_sii8620_is_mhl3
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_sii8620_mt_read_devcap
LBB0_3:
	movq	_MHL_DST_LINK_MODE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_MHL_DST_LM_PATH_ENABLED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%r14,%rax,4)
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_sii8620_status_changed_path
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MHL_DST_SIZE,4,2               ## @MHL_DST_SIZE
	.comm	_MHL_XDS_SIZE,4,2               ## @MHL_XDS_SIZE
	.comm	_REG_MHL_STAT_0,4,2             ## @REG_MHL_STAT_0
	.comm	_REG_MHL_EXTSTAT_0,4,2          ## @REG_MHL_EXTSTAT_0
	.comm	_MHL_DST_CONNECTED_RDY,8,3      ## @MHL_DST_CONNECTED_RDY
	.comm	_MHL_DST_CONN_DCAP_RDY,4,2      ## @MHL_DST_CONN_DCAP_RDY
	.comm	_MHL_DST_LINK_MODE,8,3          ## @MHL_DST_LINK_MODE
	.comm	_MHL_DST_LM_PATH_ENABLED,4,2    ## @MHL_DST_LM_PATH_ENABLED
	.no_dead_strip	_sii8620_msc_mr_write_stat
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sii8620_msc_mr_write_stat
_sii8620_msc_mr_write_stat:             ; @sii8620_msc_mr_write_stat
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x22, _MHL_DST_SIZE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _MHL_DST_SIZE@GOTPAGEOFF]
	ldr	w3, [x22]
	lsl	x8, x3, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x20, x9, x8
	mov	sp, x20
Lloh7:
	adrp	x23, _MHL_XDS_SIZE@GOTPAGE
Lloh8:
	ldr	x23, [x23, _MHL_XDS_SIZE@GOTPAGEOFF]
	ldr	w8, [x23]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh9:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh10:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x21, x9, x8
	mov	sp, x21
Lloh11:
	adrp	x8, _REG_MHL_STAT_0@GOTPAGE
Lloh12:
	ldr	x8, [x8, _REG_MHL_STAT_0@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x2, x20
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_sii8620_read_buf
Lloh14:
	adrp	x8, _REG_MHL_EXTSTAT_0@GOTPAGE
Lloh15:
	ldr	x8, [x8, _REG_MHL_EXTSTAT_0@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	ldr	w3, [x23]
	mov	x0, x19
	mov	x2, x21
	bl	_sii8620_read_buf
	ldr	x0, [x19]
	ldr	w2, [x22]
	mov	x1, x20
	bl	_sii8620_update_array
	ldr	x0, [x19, #8]
	ldr	w2, [x23]
	mov	x1, x21
	bl	_sii8620_update_array
	ldr	x8, [x19]
Lloh17:
	adrp	x9, _MHL_DST_CONNECTED_RDY@GOTPAGE
Lloh18:
	ldr	x9, [x9, _MHL_DST_CONNECTED_RDY@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	lsl	x9, x9, #2
	ldr	w8, [x8, x9]
	ldr	w9, [x20, x9]
	and	w8, w9, w8
Lloh20:
	adrp	x9, _MHL_DST_CONN_DCAP_RDY@GOTPAGE
Lloh21:
	ldr	x9, [x9, _MHL_DST_CONN_DCAP_RDY@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w8, w9
	b.eq	LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_sii8620_status_dcap_ready
	mov	x0, x19
	bl	_sii8620_is_mhl3
	cbnz	w0, LBB0_3
; %bb.2:
	mov	x0, x19
	mov	w1, #0
	bl	_sii8620_mt_read_devcap
LBB0_3:
Lloh23:
	adrp	x8, _MHL_DST_LINK_MODE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MHL_DST_LINK_MODE@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	ldr	w8, [x20, x8, lsl #2]
Lloh26:
	adrp	x9, _MHL_DST_LM_PATH_ENABLED@GOTPAGE
Lloh27:
	ldr	x9, [x9, _MHL_DST_LM_PATH_ENABLED@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_sii8620_status_changed_path
LBB0_5:
	ldur	x8, [x29, #-56]
Lloh29:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh30:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	sub	sp, x29, #48
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_MHL_DST_SIZE,4,2               ; @MHL_DST_SIZE
	.comm	_MHL_XDS_SIZE,4,2               ; @MHL_XDS_SIZE
	.comm	_REG_MHL_STAT_0,4,2             ; @REG_MHL_STAT_0
	.comm	_REG_MHL_EXTSTAT_0,4,2          ; @REG_MHL_EXTSTAT_0
	.comm	_MHL_DST_CONNECTED_RDY,8,3      ; @MHL_DST_CONNECTED_RDY
	.comm	_MHL_DST_CONN_DCAP_RDY,4,2      ; @MHL_DST_CONN_DCAP_RDY
	.comm	_MHL_DST_LINK_MODE,8,3          ; @MHL_DST_LINK_MODE
	.comm	_MHL_DST_LM_PATH_ENABLED,4,2    ; @MHL_DST_LM_PATH_ENABLED
	.no_dead_strip	_sii8620_msc_mr_write_stat
.subsections_via_symbols
