	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sii8620_irq_g2wb
_sii8620_irq_g2wb:                      ## @sii8620_irq_g2wb
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_REG_MDT_INT_0@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_sii8620_readb
	movl	%eax, %ebx
	movq	_BIT_MDT_IDLE_AFTER_HAWB_DISABLE@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_3
## %bb.1:
	movq	%r14, %rdi
	callq	_sii8620_is_mhl3
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_RCHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MHL_INT_REG
	movq	_MHL_INT_RC_FEAT_COMPLETE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_sii8620_mt_set_int
LBB0_3:
	movq	_BIT_MDT_RFIFO_DATA_RDY@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_sii8620_read_burst
LBB0_5:
	movq	_BIT_MDT_XFIFO_EMPTY@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_7
## %bb.6:
	movq	_REG_MDT_XMIT_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_sii8620_write
LBB0_7:
	movl	(%r15), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sii8620_write                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_MDT_INT_0,4,2              ## @REG_MDT_INT_0
	.comm	_BIT_MDT_IDLE_AFTER_HAWB_DISABLE,4,2 ## @BIT_MDT_IDLE_AFTER_HAWB_DISABLE
	.comm	_RCHANGE,4,2                    ## @RCHANGE
	.comm	_MHL_INT_RC_FEAT_COMPLETE,4,2   ## @MHL_INT_RC_FEAT_COMPLETE
	.comm	_BIT_MDT_RFIFO_DATA_RDY,4,2     ## @BIT_MDT_RFIFO_DATA_RDY
	.comm	_BIT_MDT_XFIFO_EMPTY,4,2        ## @BIT_MDT_XFIFO_EMPTY
	.comm	_REG_MDT_XMIT_CTRL,4,2          ## @REG_MDT_XMIT_CTRL
	.no_dead_strip	_sii8620_irq_g2wb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sii8620_irq_g2wb
_sii8620_irq_g2wb:                      ; @sii8620_irq_g2wb
	.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
Lloh0:
	adrp	x21, _REG_MDT_INT_0@GOTPAGE
Lloh1:
	ldr	x21, [x21, _REG_MDT_INT_0@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_sii8620_readb
	mov	x20, x0
Lloh2:
	adrp	x8, _BIT_MDT_IDLE_AFTER_HAWB_DISABLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BIT_MDT_IDLE_AFTER_HAWB_DISABLE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_sii8620_is_mhl3
	cbz	x0, LBB0_3
; %bb.2:
Lloh5:
	adrp	x8, _RCHANGE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RCHANGE@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_MHL_INT_REG
	mov	x1, x0
Lloh8:
	adrp	x8, _MHL_INT_RC_FEAT_COMPLETE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MHL_INT_RC_FEAT_COMPLETE@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_sii8620_mt_set_int
LBB0_3:
Lloh11:
	adrp	x8, _BIT_MDT_RFIFO_DATA_RDY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BIT_MDT_RFIFO_DATA_RDY@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_sii8620_read_burst
LBB0_5:
Lloh14:
	adrp	x8, _BIT_MDT_XFIFO_EMPTY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BIT_MDT_XFIFO_EMPTY@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_7
; %bb.6:
Lloh17:
	adrp	x8, _REG_MDT_XMIT_CTRL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _REG_MDT_XMIT_CTRL@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_sii8620_write
LBB0_7:
	ldr	w1, [x21]
	mov	x0, x19
	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	_sii8620_write
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_MDT_INT_0,4,2              ; @REG_MDT_INT_0
	.comm	_BIT_MDT_IDLE_AFTER_HAWB_DISABLE,4,2 ; @BIT_MDT_IDLE_AFTER_HAWB_DISABLE
	.comm	_RCHANGE,4,2                    ; @RCHANGE
	.comm	_MHL_INT_RC_FEAT_COMPLETE,4,2   ; @MHL_INT_RC_FEAT_COMPLETE
	.comm	_BIT_MDT_RFIFO_DATA_RDY,4,2     ; @BIT_MDT_RFIFO_DATA_RDY
	.comm	_BIT_MDT_XFIFO_EMPTY,4,2        ; @BIT_MDT_XFIFO_EMPTY
	.comm	_REG_MDT_XMIT_CTRL,4,2          ; @REG_MDT_XMIT_CTRL
	.no_dead_strip	_sii8620_irq_g2wb
.subsections_via_symbols
