	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_dp_check_act_status        ## -- Begin function drm_dp_check_act_status
	.p2align	4, 0x90
_drm_dp_check_act_status:               ## @drm_dp_check_act_status
	.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
	xorl	%ebx, %ebx
	movq	_DP_PAYLOAD_TABLE_UPDATE_STATUS@GOTPCREL(%rip), %r13
	leaq	-44(%rbp), %r12
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	movl	(%r13), %esi
	movq	%r12, %rdx
	callq	_drm_dp_dpcd_readb
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	-44(%rbp), %esi
	movq	_DP_PAYLOAD_ACT_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%esi, %eax
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	incl	%ebx
	movl	$100, %edi
	callq	_udelay
	cmpl	$30, %ebx
	jne	LBB0_1
## %bb.5:
	movl	-44(%rbp), %esi
	movq	_DP_PAYLOAD_ACT_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	$30, %ebx
LBB0_6:
	xorl	%r15d, %r15d
	testl	%esi, %eax
	jne	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rdi
	xorl	%r15d, %r15d
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_8
LBB0_2:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
LBB0_8:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DP_PAYLOAD_TABLE_UPDATE_STATUS,4,2 ## @DP_PAYLOAD_TABLE_UPDATE_STATUS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to read payload table status %d\n"

	.comm	_DP_PAYLOAD_ACT_HANDLED,4,2     ## @DP_PAYLOAD_ACT_HANDLED
L_.str.1:                               ## @.str.1
	.asciz	"failed to get ACT bit %d after %d retries\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_dp_check_act_status        ; -- Begin function drm_dp_check_act_status
	.p2align	2
_drm_dp_check_act_status:               ; @drm_dp_check_act_status
	.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
	mov	w21, #0
Lloh0:
	adrp	x23, _DP_PAYLOAD_TABLE_UPDATE_STATUS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _DP_PAYLOAD_TABLE_UPDATE_STATUS@GOTPAGEOFF]
Lloh2:
	adrp	x22, _DP_PAYLOAD_ACT_HANDLED@GOTPAGE
Lloh3:
	ldr	x22, [x22, _DP_PAYLOAD_ACT_HANDLED@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	ldr	w1, [x23]
	add	x2, sp, #12
	bl	_drm_dp_dpcd_readb
	tbnz	w0, #31, LBB0_7
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w1, [sp, #12]
	ldr	w8, [x22]
	tst	w8, w1
	b.ne	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	add	w21, w21, #1
	mov	w0, #100
	bl	_udelay
	cmp	w21, #30
	b.ne	LBB0_1
; %bb.4:
	ldr	w1, [sp, #12]
	ldr	w8, [x22]
	mov	w21, #30
LBB0_5:
	tst	w8, w1
	b.eq	LBB0_8
; %bb.6:
	mov	w20, #0
	b	LBB0_9
LBB0_7:
	mov	x20, x0
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_DRM_DEBUG_KMS
	b	LBB0_9
LBB0_8:
	str	x21, [sp]
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG_KMS
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_9:
	mov	x0, x20
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_DP_PAYLOAD_TABLE_UPDATE_STATUS,4,2 ; @DP_PAYLOAD_TABLE_UPDATE_STATUS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to read payload table status %d\n"

	.comm	_DP_PAYLOAD_ACT_HANDLED,4,2     ; @DP_PAYLOAD_ACT_HANDLED
l_.str.1:                               ; @.str.1
	.asciz	"failed to get ACT bit %d after %d retries\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
