	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sii8620_irq_disc
_sii8620_irq_disc:                      ## @sii8620_irq_disc
	.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, %rbx
	movq	_REG_CBUS_DISC_INTR0@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_sii8620_readb
	movl	%eax, %r14d
	movq	_VAL_CBUS_MHL_DISCON@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_sii8620_mhl_disconnected
LBB0_2:
	movq	_BIT_RGND_READY_INT@GOTPCREL(%rip), %r12
	testl	%r14d, (%r12)
	je	LBB0_6
## %bb.3:
	movq	_REG_DISC_STAT2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_sii8620_readb
	movq	_MSK_DISC_STAT2_RGND@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_VAL_RGND_1K@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_sii8620_mhl_discover
	jmp	LBB0_6
LBB0_5:
	movq	_REG_DISC_CTRL9@GOTPCREL(%rip), %rax
	movq	_BIT_DISC_CTRL9_WAKE_DRVFLT@GOTPCREL(%rip), %rcx
	movq	_BIT_DISC_CTRL9_NOMHL_EST@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movl	(%rax), %esi
	movq	_BIT_DISC_CTRL9_WAKE_PULSE_BYPASS@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_BIT_CBUS_MHL3_DISCON_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	orl	(%r12), %r8d
	movq	_REG_CBUS_DISC_INTR0_MASK@GOTPCREL(%rip), %rax
	movq	_BIT_CBUS_MHL12_DISCON_INT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r8d
	movl	(%rax), %ecx
	movq	_BIT_NOT_MHL_EST_INT@GOTPCREL(%rip), %rax
	orl	(%rax), %r8d
	movq	%rbx, %rdi
	callq	_sii8620_write_seq_static
LBB0_6:
	movq	_BIT_MHL_EST_INT@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	_sii8620_mhl_init
LBB0_8:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sii8620_write                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_CBUS_DISC_INTR0,4,2        ## @REG_CBUS_DISC_INTR0
	.comm	_VAL_CBUS_MHL_DISCON,4,2        ## @VAL_CBUS_MHL_DISCON
	.comm	_BIT_RGND_READY_INT,4,2         ## @BIT_RGND_READY_INT
	.comm	_REG_DISC_STAT2,4,2             ## @REG_DISC_STAT2
	.comm	_MSK_DISC_STAT2_RGND,4,2        ## @MSK_DISC_STAT2_RGND
	.comm	_VAL_RGND_1K,4,2                ## @VAL_RGND_1K
	.comm	_REG_DISC_CTRL9,4,2             ## @REG_DISC_CTRL9
	.comm	_BIT_DISC_CTRL9_WAKE_DRVFLT,4,2 ## @BIT_DISC_CTRL9_WAKE_DRVFLT
	.comm	_BIT_DISC_CTRL9_NOMHL_EST,4,2   ## @BIT_DISC_CTRL9_NOMHL_EST
	.comm	_BIT_DISC_CTRL9_WAKE_PULSE_BYPASS,4,2 ## @BIT_DISC_CTRL9_WAKE_PULSE_BYPASS
	.comm	_REG_CBUS_DISC_INTR0_MASK,4,2   ## @REG_CBUS_DISC_INTR0_MASK
	.comm	_BIT_CBUS_MHL3_DISCON_INT,4,2   ## @BIT_CBUS_MHL3_DISCON_INT
	.comm	_BIT_CBUS_MHL12_DISCON_INT,4,2  ## @BIT_CBUS_MHL12_DISCON_INT
	.comm	_BIT_NOT_MHL_EST_INT,4,2        ## @BIT_NOT_MHL_EST_INT
	.comm	_BIT_MHL_EST_INT,4,2            ## @BIT_MHL_EST_INT
	.no_dead_strip	_sii8620_irq_disc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sii8620_irq_disc
_sii8620_irq_disc:                      ; @sii8620_irq_disc
	.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_CBUS_DISC_INTR0@GOTPAGE
Lloh1:
	ldr	x21, [x21, _REG_CBUS_DISC_INTR0@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_sii8620_readb
	mov	x20, x0
Lloh2:
	adrp	x8, _VAL_CBUS_MHL_DISCON@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VAL_CBUS_MHL_DISCON@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_sii8620_mhl_disconnected
LBB0_2:
Lloh5:
	adrp	x22, _BIT_RGND_READY_INT@GOTPAGE
Lloh6:
	ldr	x22, [x22, _BIT_RGND_READY_INT@GOTPAGEOFF]
	ldr	w8, [x22]
	tst	w8, w20
	b.eq	LBB0_6
; %bb.3:
Lloh7:
	adrp	x8, _REG_DISC_STAT2@GOTPAGE
Lloh8:
	ldr	x8, [x8, _REG_DISC_STAT2@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sii8620_readb
Lloh10:
	adrp	x8, _MSK_DISC_STAT2_RGND@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MSK_DISC_STAT2_RGND@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh13:
	adrp	x9, _VAL_RGND_1K@GOTPAGE
Lloh14:
	ldr	x9, [x9, _VAL_RGND_1K@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_sii8620_mhl_discover
	b	LBB0_6
LBB0_5:
Lloh16:
	adrp	x8, _REG_DISC_CTRL9@GOTPAGE
Lloh17:
	ldr	x8, [x8, _REG_DISC_CTRL9@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x8, _BIT_DISC_CTRL9_WAKE_DRVFLT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _BIT_DISC_CTRL9_WAKE_DRVFLT@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _BIT_DISC_CTRL9_NOMHL_EST@GOTPAGE
Lloh23:
	ldr	x9, [x9, _BIT_DISC_CTRL9_NOMHL_EST@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh25:
	adrp	x9, _BIT_DISC_CTRL9_WAKE_PULSE_BYPASS@GOTPAGE
Lloh26:
	ldr	x9, [x9, _BIT_DISC_CTRL9_WAKE_PULSE_BYPASS@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	orr	w2, w8, w9
Lloh28:
	adrp	x8, _REG_CBUS_DISC_INTR0_MASK@GOTPAGE
Lloh29:
	ldr	x8, [x8, _REG_CBUS_DISC_INTR0_MASK@GOTPAGEOFF]
Lloh30:
	ldr	w3, [x8]
	ldr	w8, [x22]
Lloh31:
	adrp	x9, _BIT_CBUS_MHL3_DISCON_INT@GOTPAGE
Lloh32:
	ldr	x9, [x9, _BIT_CBUS_MHL3_DISCON_INT@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh34:
	adrp	x9, _BIT_CBUS_MHL12_DISCON_INT@GOTPAGE
Lloh35:
	ldr	x9, [x9, _BIT_CBUS_MHL12_DISCON_INT@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh37:
	adrp	x9, _BIT_NOT_MHL_EST_INT@GOTPAGE
Lloh38:
	ldr	x9, [x9, _BIT_NOT_MHL_EST_INT@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	orr	w4, w8, w9
	mov	x0, x19
	bl	_sii8620_write_seq_static
LBB0_6:
Lloh40:
	adrp	x8, _BIT_MHL_EST_INT@GOTPAGE
Lloh41:
	ldr	x8, [x8, _BIT_MHL_EST_INT@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_sii8620_mhl_init
LBB0_8:
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_CBUS_DISC_INTR0,4,2        ; @REG_CBUS_DISC_INTR0
	.comm	_VAL_CBUS_MHL_DISCON,4,2        ; @VAL_CBUS_MHL_DISCON
	.comm	_BIT_RGND_READY_INT,4,2         ; @BIT_RGND_READY_INT
	.comm	_REG_DISC_STAT2,4,2             ; @REG_DISC_STAT2
	.comm	_MSK_DISC_STAT2_RGND,4,2        ; @MSK_DISC_STAT2_RGND
	.comm	_VAL_RGND_1K,4,2                ; @VAL_RGND_1K
	.comm	_REG_DISC_CTRL9,4,2             ; @REG_DISC_CTRL9
	.comm	_BIT_DISC_CTRL9_WAKE_DRVFLT,4,2 ; @BIT_DISC_CTRL9_WAKE_DRVFLT
	.comm	_BIT_DISC_CTRL9_NOMHL_EST,4,2   ; @BIT_DISC_CTRL9_NOMHL_EST
	.comm	_BIT_DISC_CTRL9_WAKE_PULSE_BYPASS,4,2 ; @BIT_DISC_CTRL9_WAKE_PULSE_BYPASS
	.comm	_REG_CBUS_DISC_INTR0_MASK,4,2   ; @REG_CBUS_DISC_INTR0_MASK
	.comm	_BIT_CBUS_MHL3_DISCON_INT,4,2   ; @BIT_CBUS_MHL3_DISCON_INT
	.comm	_BIT_CBUS_MHL12_DISCON_INT,4,2  ; @BIT_CBUS_MHL12_DISCON_INT
	.comm	_BIT_NOT_MHL_EST_INT,4,2        ; @BIT_NOT_MHL_EST_INT
	.comm	_BIT_MHL_EST_INT,4,2            ; @BIT_MHL_EST_INT
	.no_dead_strip	_sii8620_irq_disc
.subsections_via_symbols
