	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_analogix_dp_start_aux_transaction ## -- Begin function analogix_dp_start_aux_transaction
	.p2align	4, 0x90
_analogix_dp_start_aux_transaction:     ## @analogix_dp_start_aux_transaction
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_ANALOGIX_DP_AUX_CH_CTL_2@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	8(%r14), %rdi
	callq	_readl
	movq	_AUX_EN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	(%rbx), %rsi
	addq	8(%r14), %rsi
	movl	%eax, %edi
	callq	_writel
	movq	_ANALOGIX_DP_INT_STA@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r14), %rdi
	callq	_readl
	movq	_RPLY_RECEIV@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	testl	%eax, %edi
	jne	LBB0_5
## %bb.1:
	movl	$-1, %ebx
	movq	_DP_TIMEOUT_LOOP_COUNT@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	incl	%ebx
	cmpl	%ebx, (%r15)
	jle	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_ANALOGIX_DP_INT_STA@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r14), %rdi
	callq	_readl
	movl	%eax, %r13d
	movl	$10, %edi
	movl	$11, %esi
	callq	_usleep_range
	movl	(%r12), %edi
	testl	%r13d, %edi
	je	LBB0_2
LBB0_5:
	movq	_ANALOGIX_DP_INT_STA@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	addq	8(%r14), %rsi
	callq	_writel
	movq	(%rbx), %rdi
	addq	8(%r14), %rdi
	callq	_readl
	movq	_AUX_ERR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	8(%r14), %rsi
	testl	%eax, %edi
	je	LBB0_7
## %bb.6:
	addq	(%rbx), %rsi
	callq	_writel
	movq	_EREMOTEIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_7:
	movq	_ANALOGIX_DP_AUX_CH_STA@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	movq	%rsi, %rdi
	callq	_readl
	movq	_AUX_STATUS_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	je	LBB0_8
## %bb.9:
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EREMOTEIO@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_3:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
LBB0_10:
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	xorl	%ebx, %ebx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_ANALOGIX_DP_AUX_CH_CTL_2,8,3   ## @ANALOGIX_DP_AUX_CH_CTL_2
	.comm	_AUX_EN,4,2                     ## @AUX_EN
	.comm	_ANALOGIX_DP_INT_STA,8,3        ## @ANALOGIX_DP_INT_STA
	.comm	_RPLY_RECEIV,4,2                ## @RPLY_RECEIV
	.comm	_DP_TIMEOUT_LOOP_COUNT,4,2      ## @DP_TIMEOUT_LOOP_COUNT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"AUX CH command reply failed!\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_AUX_ERR,4,2                    ## @AUX_ERR
	.comm	_EREMOTEIO,4,2                  ## @EREMOTEIO
	.comm	_ANALOGIX_DP_AUX_CH_STA,8,3     ## @ANALOGIX_DP_AUX_CH_STA
	.comm	_AUX_STATUS_MASK,4,2            ## @AUX_STATUS_MASK
L_.str.1:                               ## @.str.1
	.asciz	"AUX CH error happens: %d\n\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_analogix_dp_start_aux_transaction ; -- Begin function analogix_dp_start_aux_transaction
	.p2align	2
_analogix_dp_start_aux_transaction:     ; @analogix_dp_start_aux_transaction
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x20, _ANALOGIX_DP_AUX_CH_CTL_2@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ANALOGIX_DP_AUX_CH_CTL_2@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
Lloh2:
	adrp	x8, _AUX_EN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AUX_EN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	orr	w0, w8, w0
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19, #8]
Lloh5:
	adrp	x21, _ANALOGIX_DP_INT_STA@GOTPAGE
Lloh6:
	ldr	x21, [x21, _ANALOGIX_DP_INT_STA@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl
	mov	x8, x0
Lloh7:
	adrp	x22, _RPLY_RECEIV@GOTPAGE
Lloh8:
	ldr	x22, [x22, _RPLY_RECEIV@GOTPAGEOFF]
	ldr	w0, [x22]
	tst	w0, w8
	b.ne	LBB0_4
; %bb.1:
	mov	w23, #-1
Lloh9:
	adrp	x24, _DP_TIMEOUT_LOOP_COUNT@GOTPAGE
Lloh10:
	ldr	x24, [x24, _DP_TIMEOUT_LOOP_COUNT@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x24]
	add	w23, w23, #1
	cmp	w8, w23
	b.le	LBB0_9
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19, #8]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl
	mov	x20, x0
	mov	w0, #10
	mov	w1, #11
	bl	_usleep_range
	ldr	w0, [x22]
	tst	w0, w20
	b.eq	LBB0_2
LBB0_4:
	ldr	x8, [x19, #8]
	ldr	x9, [x21]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19, #8]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl
	mov	x8, x0
Lloh11:
	adrp	x9, _AUX_ERR@GOTPAGE
Lloh12:
	ldr	x9, [x9, _AUX_ERR@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x9]
	ldr	x9, [x19, #8]
	tst	w0, w8
	b.eq	LBB0_6
; %bb.5:
	ldr	x8, [x21]
	add	x1, x8, x9
	bl	_writel
	b	LBB0_8
LBB0_6:
Lloh14:
	adrp	x8, _ANALOGIX_DP_AUX_CH_STA@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ANALOGIX_DP_AUX_CH_STA@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	add	x0, x8, x9
	bl	_readl
Lloh17:
	adrp	x8, _AUX_STATUS_MASK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AUX_STATUS_MASK@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	ands	w8, w8, w0
	b.eq	LBB0_12
; %bb.7:
	ldr	w0, [x19]
	str	x8, [sp]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
LBB0_8:
Lloh22:
	adrp	x8, _EREMOTEIO@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EREMOTEIO@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
	ldr	w0, [x19]
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh26:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_12:
	mov	w0, #0
	b	LBB0_11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_ANALOGIX_DP_AUX_CH_CTL_2,8,3   ; @ANALOGIX_DP_AUX_CH_CTL_2
	.comm	_AUX_EN,4,2                     ; @AUX_EN
	.comm	_ANALOGIX_DP_INT_STA,8,3        ; @ANALOGIX_DP_INT_STA
	.comm	_RPLY_RECEIV,4,2                ; @RPLY_RECEIV
	.comm	_DP_TIMEOUT_LOOP_COUNT,4,2      ; @DP_TIMEOUT_LOOP_COUNT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"AUX CH command reply failed!\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_AUX_ERR,4,2                    ; @AUX_ERR
	.comm	_EREMOTEIO,4,2                  ; @EREMOTEIO
	.comm	_ANALOGIX_DP_AUX_CH_STA,8,3     ; @ANALOGIX_DP_AUX_CH_STA
	.comm	_AUX_STATUS_MASK,4,2            ; @AUX_STATUS_MASK
l_.str.1:                               ; @.str.1
	.asciz	"AUX CH error happens: %d\n\n"

.subsections_via_symbols
