	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function anx78xx_start
_anx78xx_start:                         ## @anx78xx_start
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	_I2C_IDX_TX_P2@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	movq	_SP_HDCP_PD@GOTPCREL(%rip), %rax
	movq	_SP_AUDIO_PD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_SP_POWERDOWN_CTRL_REG@GOTPCREL(%rip), %rax
	movq	_SP_VIDEO_PD@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	(%rax), %esi
	movq	_SP_LINK_PD@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	callq	_anx78xx_clear_bits
	movq	%r14, %rdi
	callq	_anx78xx_enable_interrupts
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_2
LBB0_3:
	movq	%r14, %rdi
	callq	_anx78xx_rx_initialization
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_2
LBB0_5:
	movq	%r14, %rdi
	callq	_anx78xx_tx_initialization
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rdi
LBB0_2:
	movl	%ebx, %esi
	callq	_DRM_ERROR
	leaq	L_.str.3(%rip), %rdi
	movl	%ebx, %esi
	callq	_DRM_ERROR
	movq	%r14, %rdi
	callq	_anx78xx_poweroff
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	movl	$10000, %edi                    ## imm = 0x2710
	movl	$15000, %esi                    ## imm = 0x3A98
	callq	_usleep_range
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_IDX_TX_P2,8,3              ## @I2C_IDX_TX_P2
	.comm	_SP_POWERDOWN_CTRL_REG,4,2      ## @SP_POWERDOWN_CTRL_REG
	.comm	_SP_HDCP_PD,4,2                 ## @SP_HDCP_PD
	.comm	_SP_AUDIO_PD,4,2                ## @SP_AUDIO_PD
	.comm	_SP_VIDEO_PD,4,2                ## @SP_VIDEO_PD
	.comm	_SP_LINK_PD,4,2                 ## @SP_LINK_PD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to enable interrupts: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed receiver initialization: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed transmitter initialization: %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"Failed SlimPort transmitter initialization: %d\n"

	.no_dead_strip	_anx78xx_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function anx78xx_start
_anx78xx_start:                         ; @anx78xx_start
	.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, _I2C_IDX_TX_P2@GOTPAGE
Lloh1:
	ldr	x9, [x9, _I2C_IDX_TX_P2@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w0, [x8, x9, lsl #2]
Lloh3:
	adrp	x8, _SP_POWERDOWN_CTRL_REG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SP_POWERDOWN_CTRL_REG@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _SP_HDCP_PD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SP_HDCP_PD@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _SP_AUDIO_PD@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SP_AUDIO_PD@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh12:
	adrp	x9, _SP_VIDEO_PD@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SP_VIDEO_PD@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh15:
	adrp	x9, _SP_LINK_PD@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SP_LINK_PD@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w2, w8, w9
	bl	_anx78xx_clear_bits
	mov	x0, x19
	bl	_anx78xx_enable_interrupts
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_6
LBB0_2:
	mov	x0, x19
	bl	_anx78xx_rx_initialization
	cbz	w0, LBB0_4
; %bb.3:
	mov	x20, x0
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_4:
	mov	x0, x19
	bl	_anx78xx_tx_initialization
	mov	x20, x0
	cbz	w0, LBB0_8
; %bb.5:
Lloh22:
	adrp	x0, l_.str.2@PAGE
Lloh23:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_6:
	mov	x1, x20
	bl	_DRM_ERROR
Lloh24:
	adrp	x0, l_.str.3@PAGE
Lloh25:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x20
	bl	_DRM_ERROR
	mov	x0, x19
	bl	_anx78xx_poweroff
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	w0, #10000
	mov	w1, #15000
	bl	_usleep_range
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_IDX_TX_P2,8,3              ; @I2C_IDX_TX_P2
	.comm	_SP_POWERDOWN_CTRL_REG,4,2      ; @SP_POWERDOWN_CTRL_REG
	.comm	_SP_HDCP_PD,4,2                 ; @SP_HDCP_PD
	.comm	_SP_AUDIO_PD,4,2                ; @SP_AUDIO_PD
	.comm	_SP_VIDEO_PD,4,2                ; @SP_VIDEO_PD
	.comm	_SP_LINK_PD,4,2                 ; @SP_LINK_PD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to enable interrupts: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed receiver initialization: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed transmitter initialization: %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"Failed SlimPort transmitter initialization: %d\n"

	.no_dead_strip	_anx78xx_start
.subsections_via_symbols
