	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sii9234_mhl_established
_sii9234_mhl_established:               ## @sii9234_mhl_established
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movq	_MHL_TX_MHLTX_CTL1_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$16, %edx
	callq	_mhl_tx_writeb
	movq	%rbx, %rdi
	movl	$7, %esi
	movl	$50, %edx
	callq	_cbus_writeb
	movq	%rbx, %rdi
	movl	$68, %esi
	movl	$-1, %edx
	movl	$2, %ecx
	callq	_cbus_writebm
	movq	_MHL_TX_DISC_CTRL1_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$-1, %edx
	movl	$1, %ecx
	callq	_mhl_tx_writebm
	movq	_MHL_TX_INTR1_ENABLE_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RSEN_CHANGE_INT_MASK@GOTPCREL(%rip), %rax
	movq	_HPD_CHANGE_INT_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_mhl_tx_writeb
	movq	%rbx, %rdi
	callq	_sii9234_clear_error
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	_ST_MHL_ESTABLISHED@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_ST_FAILURE@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mhl est interrupt\n"

	.comm	_MHL_TX_MHLTX_CTL1_REG,4,2      ## @MHL_TX_MHLTX_CTL1_REG
	.comm	_MHL_TX_DISC_CTRL1_REG,4,2      ## @MHL_TX_DISC_CTRL1_REG
	.comm	_MHL_TX_INTR1_ENABLE_REG,4,2    ## @MHL_TX_INTR1_ENABLE_REG
	.comm	_RSEN_CHANGE_INT_MASK,4,2       ## @RSEN_CHANGE_INT_MASK
	.comm	_HPD_CHANGE_INT_MASK,4,2        ## @HPD_CHANGE_INT_MASK
	.comm	_ST_FAILURE,4,2                 ## @ST_FAILURE
	.comm	_ST_MHL_ESTABLISHED,4,2         ## @ST_MHL_ESTABLISHED
	.no_dead_strip	_sii9234_mhl_established
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sii9234_mhl_established
_sii9234_mhl_established:               ; @sii9234_mhl_established
	.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	w0, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
Lloh2:
	adrp	x8, _MHL_TX_MHLTX_CTL1_REG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MHL_TX_MHLTX_CTL1_REG@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #16
	bl	_mhl_tx_writeb
	mov	x0, x19
	mov	w1, #7
	mov	w2, #50
	bl	_cbus_writeb
	mov	x0, x19
	mov	w1, #68
	mov	w2, #-1
	mov	w3, #2
	bl	_cbus_writebm
Lloh5:
	adrp	x8, _MHL_TX_DISC_CTRL1_REG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MHL_TX_DISC_CTRL1_REG@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #-1
	mov	w3, #1
	bl	_mhl_tx_writebm
Lloh8:
	adrp	x8, _MHL_TX_INTR1_ENABLE_REG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MHL_TX_INTR1_ENABLE_REG@GOTPAGEOFF]
Lloh10:
	adrp	x9, _RSEN_CHANGE_INT_MASK@GOTPAGE
Lloh11:
	ldr	x9, [x9, _RSEN_CHANGE_INT_MASK@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	ldr	w8, [x9]
Lloh14:
	adrp	x9, _HPD_CHANGE_INT_MASK@GOTPAGE
Lloh15:
	ldr	x9, [x9, _HPD_CHANGE_INT_MASK@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_mhl_tx_writeb
	mov	x0, x19
	bl	_sii9234_clear_error
Lloh17:
	adrp	x8, _ST_MHL_ESTABLISHED@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ST_MHL_ESTABLISHED@GOTPAGEOFF]
Lloh19:
	adrp	x9, _ST_FAILURE@GOTPAGE
Lloh20:
	ldr	x9, [x9, _ST_FAILURE@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh12
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mhl est interrupt\n"

	.comm	_MHL_TX_MHLTX_CTL1_REG,4,2      ; @MHL_TX_MHLTX_CTL1_REG
	.comm	_MHL_TX_DISC_CTRL1_REG,4,2      ; @MHL_TX_DISC_CTRL1_REG
	.comm	_MHL_TX_INTR1_ENABLE_REG,4,2    ; @MHL_TX_INTR1_ENABLE_REG
	.comm	_RSEN_CHANGE_INT_MASK,4,2       ; @RSEN_CHANGE_INT_MASK
	.comm	_HPD_CHANGE_INT_MASK,4,2        ; @HPD_CHANGE_INT_MASK
	.comm	_ST_FAILURE,4,2                 ; @ST_FAILURE
	.comm	_ST_MHL_ESTABLISHED,4,2         ; @ST_MHL_ESTABLISHED
	.no_dead_strip	_sii9234_mhl_established
.subsections_via_symbols
