	.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_write
_cdv_intel_dp_aux_native_write:         ## @cdv_intel_dp_aux_native_write
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$-1, %eax
	cmpl	$16, %ecx
	jg	LBB0_8
## %bb.1:
	movl	%ecx, %r14d
	movq	%rdi, %r15
	movq	_DP_AUX_NATIVE_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$4, %eax
	movl	%eax, -128(%rbp)
	movl	%esi, %eax
	sarl	$8, %eax
	movl	%eax, -124(%rbp)
	movzbl	%sil, %eax
	movl	%eax, -120(%rbp)
	leal	-1(%r14), %eax
	movl	%eax, -116(%rbp)
	leaq	-112(%rbp), %rdi
	movq	%rdx, %rsi
	movl	%ecx, %edx
	callq	_memcpy
	leal	4(%r14), %ebx
	leaq	-128(%rbp), %rsi
	leaq	-132(%rbp), %rcx
	movq	%r15, %rdi
	movl	%ebx, %edx
	movl	$1, %r8d
	callq	_cdv_intel_dp_aux_ch
	testl	%eax, %eax
	js	LBB0_8
## %bb.2:
	leaq	-128(%rbp), %r12
	leaq	-132(%rbp), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	-132(%rbp), %eax
	sarl	$4, %eax
	movl	%eax, -132(%rbp)
	movq	_DP_AUX_NATIVE_REPLY_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_DP_AUX_NATIVE_REPLY_ACK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_DP_AUX_NATIVE_REPLY_DEFER@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$100, %edi
	callq	_udelay
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	movq	%r13, %rcx
	movl	$1, %r8d
	callq	_cdv_intel_dp_aux_ch
	testl	%eax, %eax
	jns	LBB0_3
	jmp	LBB0_8
LBB0_4:
	movl	%r14d, %eax
	jmp	LBB0_8
LBB0_7:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_10
## %bb.9:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_DP_AUX_NATIVE_WRITE,4,2        ## @DP_AUX_NATIVE_WRITE
	.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_write
.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_write
_cdv_intel_dp_aux_native_write:         ; @cdv_intel_dp_aux_native_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	cmp	w3, #16
	b.le	LBB0_2
; %bb.1:
	mov	w19, #-1
	b	LBB0_9
LBB0_2:
	mov	x19, x3
	mov	x20, x0
Lloh3:
	adrp	x8, _DP_AUX_NATIVE_WRITE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DP_AUX_NATIVE_WRITE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	w8, w8, #4
	asr	w9, w1, #8
	stp	w8, w9, [sp, #8]
	and	w8, w1, #0xff
	sub	w9, w3, #1
	stp	w8, w9, [sp, #16]
	add	x8, sp, #8
	add	x0, x8, #16
	mov	x1, x2
	mov	x2, x3
	bl	_memcpy
	add	w21, w19, #4
	add	x1, sp, #8
	add	x3, sp, #4
	mov	x0, x20
	mov	x2, x21
	mov	w4, #1
	bl	_cdv_intel_dp_aux_ch
	tbnz	w0, #31, LBB0_7
; %bb.3:
Lloh6:
	adrp	x22, _DP_AUX_NATIVE_REPLY_MASK@GOTPAGE
Lloh7:
	ldr	x22, [x22, _DP_AUX_NATIVE_REPLY_MASK@GOTPAGEOFF]
Lloh8:
	adrp	x23, _DP_AUX_NATIVE_REPLY_ACK@GOTPAGE
Lloh9:
	ldr	x23, [x23, _DP_AUX_NATIVE_REPLY_ACK@GOTPAGEOFF]
Lloh10:
	adrp	x24, _DP_AUX_NATIVE_REPLY_DEFER@GOTPAGE
Lloh11:
	ldr	x24, [x24, _DP_AUX_NATIVE_REPLY_DEFER@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [sp, #4]
	asr	w8, w8, #4
	str	w8, [sp, #4]
	ldr	w9, [x22]
	and	w8, w9, w8
	ldr	w9, [x23]
	cmp	w8, w9
	b.eq	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x24]
	cmp	w8, w9
	b.ne	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #100
	bl	_udelay
	add	x1, sp, #8
	add	x3, sp, #4
	mov	x0, x20
	mov	x2, x21
	mov	w4, #1
	bl	_cdv_intel_dp_aux_ch
	tbz	w0, #31, LBB0_4
LBB0_7:
	mov	x19, x0
	b	LBB0_9
LBB0_8:
Lloh12:
	adrp	x8, _EIO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_9:
	ldur	x8, [x29, #-56]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	mov	x0, x19
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_DP_AUX_NATIVE_WRITE,4,2        ; @DP_AUX_NATIVE_WRITE
	.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_write
.subsections_via_symbols
