	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cdv_intel_dp_aux_native_read
_cdv_intel_dp_aux_native_read:          ## @cdv_intel_dp_aux_native_read
	.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
	subq	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movq	%rdx, -152(%rbp)                ## 8-byte Spill
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_DP_AUX_NATIVE_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$4, %eax
	movl	%eax, -64(%rbp)
	movzbl	%sil, %eax
	sarl	$8, %esi
	movl	%esi, -60(%rbp)
	movl	%eax, -56(%rbp)
	leal	-1(%r12), %eax
	movl	%eax, -52(%rbp)
	incl	%r12d
	leaq	-64(%rbp), %rsi
	leaq	-144(%rbp), %rcx
	movl	$4, %edx
	movl	%r12d, %r8d
	callq	_cdv_intel_dp_aux_ch
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	movl	%eax, %ebx
	movq	_DP_AUX_NATIVE_REPLY_ACK@GOTPCREL(%rip), %r13
	leaq	-144(%rbp), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	testl	%ebx, %ebx
	js	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-144(%rbp), %eax
	sarl	$4, %eax
	movq	_DP_AUX_NATIVE_REPLY_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	cmpl	(%r13), %eax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_DP_AUX_NATIVE_REPLY_DEFER@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$100, %edi
	callq	_udelay
	movq	%r15, %rdi
	leaq	-64(%rbp), %rsi
	movl	$4, %edx
	movq	%r14, %rcx
	movl	%r12d, %r8d
	callq	_cdv_intel_dp_aux_ch
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
LBB0_7:
	movq	_EPROTO@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_4:
	leaq	-140(%rbp), %rsi
	decl	%ebx
	movq	-152(%rbp), %rdi                ## 8-byte Reload
	movl	%ebx, %edx
	callq	_memcpy
	jmp	LBB0_10
LBB0_8:
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_9:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	movl	%ebx, %eax
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_DP_AUX_NATIVE_READ,4,2         ## @DP_AUX_NATIVE_READ
	.comm	_EPROTO,4,2                     ## @EPROTO
	.comm	_DP_AUX_NATIVE_REPLY_MASK,4,2   ## @DP_AUX_NATIVE_REPLY_MASK
	.comm	_DP_AUX_NATIVE_REPLY_ACK,4,2    ## @DP_AUX_NATIVE_REPLY_ACK
	.comm	_DP_AUX_NATIVE_REPLY_DEFER,4,2  ## @DP_AUX_NATIVE_REPLY_DEFER
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_cdv_intel_dp_aux_native_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cdv_intel_dp_aux_native_read
_cdv_intel_dp_aux_native_read:          ; @cdv_intel_dp_aux_native_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _DP_AUX_NATIVE_READ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DP_AUX_NATIVE_READ@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	w8, w8, #4
	asr	w9, w1, #8
	stp	w8, w9, [sp, #88]
	and	w8, w1, #0xff
	sub	w9, w3, #1
	stp	w8, w9, [sp, #96]
	add	w22, w3, #1
	add	x1, sp, #88
	add	x3, sp, #8
	mov	w2, #4
	mov	x4, x22
	bl	_cdv_intel_dp_aux_ch
	cbz	w0, LBB0_6
; %bb.1:
	mov	x21, x0
Lloh6:
	adrp	x23, _DP_AUX_NATIVE_REPLY_MASK@GOTPAGE
Lloh7:
	ldr	x23, [x23, _DP_AUX_NATIVE_REPLY_MASK@GOTPAGEOFF]
Lloh8:
	adrp	x24, _DP_AUX_NATIVE_REPLY_ACK@GOTPAGE
Lloh9:
	ldr	x24, [x24, _DP_AUX_NATIVE_REPLY_ACK@GOTPAGEOFF]
Lloh10:
	adrp	x25, _DP_AUX_NATIVE_REPLY_DEFER@GOTPAGE
Lloh11:
	ldr	x25, [x25, _DP_AUX_NATIVE_REPLY_DEFER@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	tbnz	w21, #31, LBB0_10
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [sp, #8]
	ldr	w9, [x23]
	and	w8, w9, w8, asr #4
	ldr	w9, [x24]
	cmp	w8, w9
	b.eq	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w9, [x25]
	cmp	w8, w9
	b.ne	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #100
	bl	_udelay
	add	x1, sp, #88
	add	x3, sp, #8
	mov	x0, x20
	mov	w2, #4
	mov	x4, x22
	bl	_cdv_intel_dp_aux_ch
	mov	x21, x0
	cbnz	w0, LBB0_2
LBB0_6:
Lloh12:
	adrp	x8, _EPROTO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EPROTO@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
	add	x8, sp, #8
	add	x1, x8, #4
	sub	w21, w21, #1
	mov	x0, x19
	mov	x2, x21
	bl	_memcpy
	b	LBB0_10
LBB0_8:
Lloh14:
	adrp	x8, _EIO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_10:
	ldur	x8, [x29, #-72]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	mov	x0, x21
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_DP_AUX_NATIVE_READ,4,2         ; @DP_AUX_NATIVE_READ
	.comm	_EPROTO,4,2                     ; @EPROTO
	.comm	_DP_AUX_NATIVE_REPLY_MASK,4,2   ; @DP_AUX_NATIVE_REPLY_MASK
	.comm	_DP_AUX_NATIVE_REPLY_ACK,4,2    ; @DP_AUX_NATIVE_REPLY_ACK
	.comm	_DP_AUX_NATIVE_REPLY_DEFER,4,2  ; @DP_AUX_NATIVE_REPLY_DEFER
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_cdv_intel_dp_aux_native_read
.subsections_via_symbols
