	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i915_dpcd_show
_i915_dpcd_show:                        ## @i915_dpcd_show
	.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)
	movq	%rdi, -120(%rbp)                ## 8-byte Spill
	movq	(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_intel_attached_encoder
	movq	%rax, %rdi
	callq	_enc_to_intel_dp
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movq	%rbx, -136(%rbp)                ## 8-byte Spill
	movq	(%rbx), %rax
	movq	_connector_status_connected@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.1:
	movq	_i915_dpcd_debug@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_14
## %bb.2:
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%edi, %edi
	cmpq	$65, %r13
	setae	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_9
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r14
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$24, %r15
	cmpq	%rax, %r14
	jge	LBB0_14
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rbx
	movl	(%rbx,%r15), %eax
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	subl	4(%rbx,%r15), %eax
	incl	%eax
	movslq	%eax, %r13
	cmpq	$0, 16(%rbx,%r15)
	jne	LBB0_7
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rbx,%r15), %r13
	testq	%r13, %r13
	movl	$1, %eax
	cmoveq	%rax, %r13
	cmpq	$0, 16(%rbx,%r15)
	je	LBB0_8
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-136(%rbp), %rax                ## 8-byte Reload
	movq	8(%rax), %rax
	movq	_DRM_MODE_CONNECTOR_eDP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	4(%rbx,%r15), %esi
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	leaq	-112(%rbp), %r12
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	_drm_dp_dpcd_read
	movl	4(%rbx,%r15), %edx
	testq	%rax, %rax
	js	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %ecx
	movq	%r12, %r8
	xorl	%eax, %eax
	callq	_seq_printf
	jmp	LBB0_12
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	leaq	L_.str(%rip), %rsi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_seq_printf
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_i915_dpcd_debug@GOTPCREL(%rip), %r12
	jmp	LBB0_13
LBB0_17:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_15
LBB0_14:
	xorl	%eax, %eax
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_18
## %bb.16:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_connector_status_connected,8,3 ## @connector_status_connected
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_i915_dpcd_debug,8,3            ## @i915_dpcd_debug
	.comm	_DRM_MODE_CONNECTOR_eDP,8,3     ## @DRM_MODE_CONNECTOR_eDP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%04x: ERROR %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"%04x: %*ph\n"

	.no_dead_strip	_i915_dpcd_show
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i915_dpcd_show
_i915_dpcd_show:                        ; @i915_dpcd_show
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #72]
	ldr	x20, [x0]
	mov	x0, x20
	bl	_intel_attached_encoder
	bl	_enc_to_intel_dp
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _connector_status_connected@GOTPAGE
Lloh4:
	ldr	x9, [x9, _connector_status_connected@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.1:
	mov	x21, x0
Lloh6:
	adrp	x25, _i915_dpcd_debug@GOTPAGE
Lloh7:
	ldr	x25, [x25, _i915_dpcd_debug@GOTPAGEOFF]
	ldr	x0, [x25]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_15
; %bb.2:
	mov	x26, #0
	mov	x27, #0
Lloh8:
	adrp	x22, _DRM_MODE_CONNECTOR_eDP@GOTPAGE
Lloh9:
	ldr	x22, [x22, _DRM_MODE_CONNECTOR_eDP@GOTPAGEOFF]
Lloh10:
	adrp	x23, l_.str.1@PAGE
Lloh11:
	add	x23, x23, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	cmp	x24, #64
	cset	w0, hi
	bl	_WARN_ON
	cbz	x0, LBB0_10
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x27, x27, #1
	ldr	x0, [x25]
	bl	_ARRAY_SIZE
	add	x26, x26, #24
	cmp	x27, w0, sxtw
	b.ge	LBB0_15
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x28, [x25]
	ldr	w8, [x28, x26]
	cbz	w8, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x9, x28, x26
	ldr	w9, [x9, #4]
	sub	w8, w8, w9
	add	w8, w8, #1
	sxtw	x24, w8
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x28, x26
	ldr	x8, [x8, #8]
	cmp	x8, #0
	csinc	x24, x8, xzr, ne
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x28, x26
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20, #8]
	ldr	x9, [x22]
	cmp	x8, x9
	b.eq	LBB0_3
	b	LBB0_4
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x28, x28, x26
	ldr	w1, [x28, #4]
	add	x2, sp, #8
	mov	x0, x21
	mov	x3, x24
	bl	_drm_dp_dpcd_read
	mov	x3, x0
	ldr	w2, [x28, #4]
	tbnz	x0, #63, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	add	x8, sp, #8
	str	x8, [sp]
	mov	x0, x19
	mov	x1, x23
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_seq_printf
	b	LBB0_4
LBB0_14:
Lloh14:
	adrp	x8, _ENODEV@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_16
LBB0_15:
	mov	w0, #0
LBB0_16:
	ldr	x8, [sp, #72]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_connector_status_connected,8,3 ; @connector_status_connected
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_i915_dpcd_debug,8,3            ; @i915_dpcd_debug
	.comm	_DRM_MODE_CONNECTOR_eDP,8,3     ; @DRM_MODE_CONNECTOR_eDP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%04x: ERROR %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"%04x: %*ph\n"

	.no_dead_strip	_i915_dpcd_show
.subsections_via_symbols
