	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function drm_dp_dpcd_access
_drm_dp_dpcd_access:                    ## @drm_dp_dpcd_access
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, %r12d
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r13
	leaq	-96(%rbp), %r15
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movl	%r12d, -96(%rbp)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -64(%rbp)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, -72(%rbp)
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, -88(%rbp)
	leaq	8(%r13), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	movl	$32, %r14d
	xorl	%r12d, %r12d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%ebx, %ebx
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	subl	(%rax), %ebx
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	testl	%r12d, %r12d
	cmovel	%ebx, %r12d
	decl	%r14d
	je	LBB0_11
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	testl	%ebx, %ebx
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	addl	(%rax), %ebx
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_AUX_RETRY_INTERVAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	leaq	100(%rdi), %rsi
	callq	_usleep_range
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	*(%r13)
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_DP_AUX_NATIVE_REPLY_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-80(%rbp), %eax
	movq	_DP_AUX_NATIVE_REPLY_ACK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%ebx, %eax
	cmpq	-56(%rbp), %rax                 ## 8-byte Folded Reload
	je	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%ebx, %ebx
	movq	_EPROTO@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_11:
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	callq	_DRM_DEBUG_KMS
	movl	%r12d, %ebx
LBB0_12:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_AUX_RETRY_INTERVAL,8,3         ## @AUX_RETRY_INTERVAL
	.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	_EPROTO,4,2                     ## @EPROTO
	.comm	_EIO,4,2                        ## @EIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Too many retries, giving up. First error: %d\n"

	.no_dead_strip	_drm_dp_dpcd_access
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function drm_dp_dpcd_access
_drm_dp_dpcd_access:                    ; @drm_dp_dpcd_access
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x4
	mov	x22, x3
	mov	x21, x2
	mov	x23, x1
	mov	x20, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	str	w21, [sp, #8]
	str	w23, [sp, #40]
	add	x0, x20, #8
	str	x22, [sp, #32]
	str	x19, [sp, #16]
	str	x0, [sp]                        ; 8-byte Folded Spill
	bl	_mutex_lock
	mov	w23, #0
	mov	w22, #0
	mov	w24, #32
Lloh0:
	adrp	x25, _DP_AUX_NATIVE_REPLY_MASK@GOTPAGE
Lloh1:
	ldr	x25, [x25, _DP_AUX_NATIVE_REPLY_MASK@GOTPAGEOFF]
Lloh2:
	adrp	x26, _DP_AUX_NATIVE_REPLY_ACK@GOTPAGE
Lloh3:
	ldr	x26, [x26, _DP_AUX_NATIVE_REPLY_ACK@GOTPAGEOFF]
Lloh4:
	adrp	x28, _EIO@GOTPAGE
Lloh5:
	ldr	x28, [x28, _EIO@GOTPAGEOFF]
Lloh6:
	adrp	x21, _ETIMEDOUT@GOTPAGE
Lloh7:
	ldr	x21, [x21, _ETIMEDOUT@GOTPAGEOFF]
Lloh8:
	adrp	x27, _AUX_RETRY_INTERVAL@GOTPAGE
Lloh9:
	ldr	x27, [x27, _AUX_RETRY_INTERVAL@GOTPAGEOFF]
	b	LBB0_4
LBB0_1:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x28]
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	neg	w23, w8
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	w22, #0
	csel	w22, w23, w22, eq
	subs	w24, w24, #1
	b.eq	LBB0_11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cbz	w23, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x21]
	cmn	w23, w8
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x27]
	add	x1, x0, #100
	bl	_usleep_range
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20]
	add	x1, sp, #8
	mov	x0, x20
	blr	x8
	mov	x23, x0
	tbnz	w0, #31, LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #24]
	ldr	w9, [x25]
	and	w8, w9, w8
	ldr	w9, [x26]
	cmp	w8, w9
	b.ne	LBB0_1
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, w23
	cmp	x8, x19
	b.eq	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh10:
	adrp	x8, _EPROTO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EPROTO@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	b	LBB0_2
LBB0_11:
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	bl	_DRM_DEBUG_KMS
	mov	x23, x22
LBB0_12:
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	bl	_mutex_unlock
	mov	x0, x23
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_AUX_RETRY_INTERVAL,8,3         ; @AUX_RETRY_INTERVAL
	.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	_EPROTO,4,2                     ; @EPROTO
	.comm	_EIO,4,2                        ; @EIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Too many retries, giving up. First error: %d\n"

	.no_dead_strip	_drm_dp_dpcd_access
.subsections_via_symbols
