	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sii8620_msc_mr_set_int
_sii8620_msc_mr_set_int:                ## @sii8620_msc_mr_set_int
	.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, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MHL_INT_SIZE@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	movq	%rbx, %rax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	_REG_MHL_INT_0@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	movl	%ebx, %ecx
	callq	_sii8620_read_buf
	movl	(%r13), %esi
	movl	(%r12), %ecx
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_sii8620_write_buf
	movq	_MHL_INT_RCHANGE@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	_MHL_INT_RC_DCAP_CHG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%r15,%rax,4)
	je	LBB0_5
## %bb.1:
	movl	(%r14), %eax
	cmpl	$129, %eax
	je	LBB0_4
## %bb.2:
	cmpl	$128, %eax
	jne	LBB0_5
## %bb.3:
	movq	_MHL_XDC_ECBUS_SPEEDS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_sii8620_mt_read_xdevcap_reg
	movq	_sii8620_got_ecbus_speed@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_sii8620_mt_set_cont
	jmp	LBB0_5
LBB0_4:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_sii8620_mt_read_devcap
LBB0_5:
	movq	(%rbx), %rax
	movl	(%r15,%rax,4), %eax
	movq	_MHL_INT_RC_FEAT_REQ@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	callq	_sii8620_send_features
	movq	(%rbx), %rax
	movl	(%r15,%rax,4), %eax
LBB0_7:
	movq	_MHL_INT_RC_FEAT_COMPLETE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
## %bb.8:
	movl	$1, 4(%r14)
	cmpq	$0, 8(%r14)
	je	LBB0_10
## %bb.9:
	movq	%r14, %rdi
	callq	_sii8620_enable_hpd
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MHL_INT_SIZE,4,2               ## @MHL_INT_SIZE
	.comm	_REG_MHL_INT_0,4,2              ## @REG_MHL_INT_0
	.comm	_MHL_INT_RCHANGE,8,3            ## @MHL_INT_RCHANGE
	.comm	_MHL_INT_RC_DCAP_CHG,4,2        ## @MHL_INT_RC_DCAP_CHG
	.comm	_MHL_XDC_ECBUS_SPEEDS,4,2       ## @MHL_XDC_ECBUS_SPEEDS
	.comm	_sii8620_got_ecbus_speed,4,2    ## @sii8620_got_ecbus_speed
	.comm	_MHL_INT_RC_FEAT_REQ,4,2        ## @MHL_INT_RC_FEAT_REQ
	.comm	_MHL_INT_RC_FEAT_COMPLETE,4,2   ## @MHL_INT_RC_FEAT_COMPLETE
	.no_dead_strip	_sii8620_msc_mr_set_int
.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_set_int
_sii8620_msc_mr_set_int:                ; @sii8620_msc_mr_set_int
	.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
	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, #-40]
Lloh3:
	adrp	x21, _MHL_INT_SIZE@GOTPAGE
Lloh4:
	ldr	x21, [x21, _MHL_INT_SIZE@GOTPAGEOFF]
	ldr	w3, [x21]
	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	x22, _REG_MHL_INT_0@GOTPAGE
Lloh8:
	ldr	x22, [x22, _REG_MHL_INT_0@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x2, x20
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_sii8620_read_buf
	ldr	w1, [x22]
	ldr	w3, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_sii8620_write_buf
Lloh9:
	adrp	x21, _MHL_INT_RCHANGE@GOTPAGE
Lloh10:
	ldr	x21, [x21, _MHL_INT_RCHANGE@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	w8, [x20, x8, lsl #2]
Lloh11:
	adrp	x9, _MHL_INT_RC_DCAP_CHG@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MHL_INT_RC_DCAP_CHG@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.1:
	ldr	w8, [x19]
	cmp	w8, #129
	b.eq	LBB0_4
; %bb.2:
	cmp	w8, #128
	b.ne	LBB0_5
; %bb.3:
Lloh14:
	adrp	x8, _MHL_XDC_ECBUS_SPEEDS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MHL_XDC_ECBUS_SPEEDS@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sii8620_mt_read_xdevcap_reg
Lloh17:
	adrp	x8, _sii8620_got_ecbus_speed@GOTPAGE
Lloh18:
	ldr	x8, [x8, _sii8620_got_ecbus_speed@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sii8620_mt_set_cont
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	mov	w1, #1
	bl	_sii8620_mt_read_devcap
LBB0_5:
	ldr	x8, [x21]
	ldr	w8, [x20, x8, lsl #2]
Lloh20:
	adrp	x9, _MHL_INT_RC_FEAT_REQ@GOTPAGE
Lloh21:
	ldr	x9, [x9, _MHL_INT_RC_FEAT_REQ@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_sii8620_send_features
	ldr	x8, [x21]
	ldr	w8, [x20, x8, lsl #2]
LBB0_7:
Lloh23:
	adrp	x9, _MHL_INT_RC_FEAT_COMPLETE@GOTPAGE
Lloh24:
	ldr	x9, [x9, _MHL_INT_RC_FEAT_COMPLETE@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.8:
	mov	w8, #1
	str	w8, [x19, #4]
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_sii8620_enable_hpd
LBB0_10:
	ldur	x8, [x29, #-40]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	sub	sp, x29, #32
	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_12:
	bl	___stack_chk_fail
	.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	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_MHL_INT_SIZE,4,2               ; @MHL_INT_SIZE
	.comm	_REG_MHL_INT_0,4,2              ; @REG_MHL_INT_0
	.comm	_MHL_INT_RCHANGE,8,3            ; @MHL_INT_RCHANGE
	.comm	_MHL_INT_RC_DCAP_CHG,4,2        ; @MHL_INT_RC_DCAP_CHG
	.comm	_MHL_XDC_ECBUS_SPEEDS,4,2       ; @MHL_XDC_ECBUS_SPEEDS
	.comm	_sii8620_got_ecbus_speed,4,2    ; @sii8620_got_ecbus_speed
	.comm	_MHL_INT_RC_FEAT_REQ,4,2        ; @MHL_INT_RC_FEAT_REQ
	.comm	_MHL_INT_RC_FEAT_COMPLETE,4,2   ; @MHL_INT_RC_FEAT_COMPLETE
	.no_dead_strip	_sii8620_msc_mr_set_int
.subsections_via_symbols
