	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sii9234_rgnd_ready_irq
_sii9234_rgnd_ready_irq:                ## @sii9234_rgnd_ready_irq
	.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	(%rdi), %rax
	movq	_ST_D3@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	movl	8(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movq	%rbx, %rdi
	callq	_sii9234_hw_reset
	movq	%rbx, %rdi
	callq	_sii9234_reset
	testl	%eax, %eax
	js	LBB0_3
## %bb.2:
	movq	_ST_RGND_INIT@GOTPCREL(%rip), %r15
	jmp	LBB0_10
LBB0_4:
	movq	_ST_RGND_INIT@GOTPCREL(%rip), %r12
	movslq	(%r12), %rcx
	movq	_ST_FAILURE@GOTPCREL(%rip), %r15
	cmpq	%rcx, %rax
	jne	LBB0_10
## %bb.5:
	movq	_MHL_TX_STAT2_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_mhl_tx_readb
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_sii9234_clear_error
	testq	%rax, %rax
	jne	LBB0_10
## %bb.6:
	movq	_RGND_INTP_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r14d
	movq	_RGND_INTP_1K@GOTPCREL(%rip), %rax
	movl	8(%rbx), %edi
	cmpl	(%rax), %r14d
	jne	LBB0_7
## %bb.8:
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_dbg
	movq	_MHL_TX_DISC_CTRL4_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$-1, %edx
	movl	$140, %ecx
	callq	_mhl_tx_writebm
	movq	_MHL_TX_DISC_CTRL5_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$119, %edx
	callq	_mhl_tx_writeb
	movq	_MHL_TX_DISC_CTRL6_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$-1, %edx
	movl	$5, %ecx
	callq	_mhl_tx_writebm
	movq	%rbx, %rdi
	callq	_sii9234_clear_error
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	movq	_T_SRC_VBUS_CBUS_TO_STABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msleep
	movq	_ST_RGND_1K@GOTPCREL(%rip), %r15
	jmp	LBB0_10
LBB0_3:
	movl	8(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	movq	_ST_FAILURE@GOTPCREL(%rip), %r15
LBB0_10:
	movl	(%r15), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_warn
	movq	%r12, %r15
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_ST_D3,8,3                      ## @ST_D3
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RGND_READY_INT\n"

L_.str.1:                               ## @.str.1
	.asciz	"sii9234_reset() failed\n"

	.comm	_ST_FAILURE,4,2                 ## @ST_FAILURE
	.comm	_ST_RGND_INIT,4,2               ## @ST_RGND_INIT
	.comm	_MHL_TX_STAT2_REG,4,2           ## @MHL_TX_STAT2_REG
	.comm	_RGND_INTP_MASK,4,2             ## @RGND_INTP_MASK
	.comm	_RGND_INTP_1K,4,2               ## @RGND_INTP_1K
L_.str.2:                               ## @.str.2
	.asciz	"RGND is not 1k\n"

L_.str.3:                               ## @.str.3
	.asciz	"RGND 1K!!\n"

	.comm	_MHL_TX_DISC_CTRL4_REG,4,2      ## @MHL_TX_DISC_CTRL4_REG
	.comm	_MHL_TX_DISC_CTRL5_REG,4,2      ## @MHL_TX_DISC_CTRL5_REG
	.comm	_MHL_TX_DISC_CTRL6_REG,4,2      ## @MHL_TX_DISC_CTRL6_REG
	.comm	_T_SRC_VBUS_CBUS_TO_STABLE,4,2  ## @T_SRC_VBUS_CBUS_TO_STABLE
	.comm	_ST_RGND_1K,4,2                 ## @ST_RGND_1K
	.no_dead_strip	_sii9234_rgnd_ready_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sii9234_rgnd_ready_irq
_sii9234_rgnd_ready_irq:                ; @sii9234_rgnd_ready_irq
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _ST_D3@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ST_D3@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldr	w0, [x19, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	mov	x0, x19
	bl	_sii9234_hw_reset
	mov	x0, x19
	bl	_sii9234_reset
	tbnz	w0, #31, LBB0_8
LBB0_2:
Lloh5:
	adrp	x8, _ST_RGND_INIT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ST_RGND_INIT@GOTPAGEOFF]
	b	LBB0_10
LBB0_3:
Lloh7:
	adrp	x9, _ST_RGND_INIT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _ST_RGND_INIT@GOTPAGEOFF]
Lloh9:
	ldrsw	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.4:
Lloh10:
	adrp	x8, _MHL_TX_STAT2_REG@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MHL_TX_STAT2_REG@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_mhl_tx_readb
	mov	x20, x0
	mov	x0, x19
	bl	_sii9234_clear_error
	cbnz	x0, LBB0_9
; %bb.5:
Lloh13:
	adrp	x8, _RGND_INTP_MASK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _RGND_INTP_MASK@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	and	w8, w8, w20
Lloh16:
	adrp	x9, _RGND_INTP_1K@GOTPAGE
Lloh17:
	ldr	x9, [x9, _RGND_INTP_1K@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	ldr	w0, [x19, #8]
	cmp	w8, w9
	b.ne	LBB0_11
; %bb.6:
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_dbg
Lloh21:
	adrp	x8, _MHL_TX_DISC_CTRL4_REG@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MHL_TX_DISC_CTRL4_REG@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #-1
	mov	w3, #140
	bl	_mhl_tx_writebm
Lloh24:
	adrp	x8, _MHL_TX_DISC_CTRL5_REG@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MHL_TX_DISC_CTRL5_REG@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #119
	bl	_mhl_tx_writeb
Lloh27:
	adrp	x8, _MHL_TX_DISC_CTRL6_REG@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MHL_TX_DISC_CTRL6_REG@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #-1
	mov	w3, #5
	bl	_mhl_tx_writebm
	mov	x0, x19
	bl	_sii9234_clear_error
	cbnz	x0, LBB0_9
; %bb.7:
Lloh30:
	adrp	x8, _T_SRC_VBUS_CBUS_TO_STABLE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _T_SRC_VBUS_CBUS_TO_STABLE@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	bl	_msleep
Lloh33:
	adrp	x8, _ST_RGND_1K@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ST_RGND_1K@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
	ldr	w0, [x19, #8]
Lloh35:
	adrp	x1, l_.str.1@PAGE
Lloh36:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
LBB0_9:
Lloh37:
	adrp	x8, _ST_FAILURE@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ST_FAILURE@GOTPAGEOFF]
LBB0_10:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_11:
Lloh39:
	adrp	x1, l_.str.2@PAGE
Lloh40:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_warn
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_ST_D3,8,3                      ; @ST_D3
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RGND_READY_INT\n"

l_.str.1:                               ; @.str.1
	.asciz	"sii9234_reset() failed\n"

	.comm	_ST_FAILURE,4,2                 ; @ST_FAILURE
	.comm	_ST_RGND_INIT,4,2               ; @ST_RGND_INIT
	.comm	_MHL_TX_STAT2_REG,4,2           ; @MHL_TX_STAT2_REG
	.comm	_RGND_INTP_MASK,4,2             ; @RGND_INTP_MASK
	.comm	_RGND_INTP_1K,4,2               ; @RGND_INTP_1K
l_.str.2:                               ; @.str.2
	.asciz	"RGND is not 1k\n"

l_.str.3:                               ; @.str.3
	.asciz	"RGND 1K!!\n"

	.comm	_MHL_TX_DISC_CTRL4_REG,4,2      ; @MHL_TX_DISC_CTRL4_REG
	.comm	_MHL_TX_DISC_CTRL5_REG,4,2      ; @MHL_TX_DISC_CTRL5_REG
	.comm	_MHL_TX_DISC_CTRL6_REG,4,2      ; @MHL_TX_DISC_CTRL6_REG
	.comm	_T_SRC_VBUS_CBUS_TO_STABLE,4,2  ; @T_SRC_VBUS_CBUS_TO_STABLE
	.comm	_ST_RGND_1K,4,2                 ; @ST_RGND_1K
	.no_dead_strip	_sii9234_rgnd_ready_irq
.subsections_via_symbols
