	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dp_wa_power_up_0010FA
_dp_wa_power_up_0010FA:                 ## @dp_wa_power_up_0010FA
	.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, %r12
	cmpq	$0, 24(%rdi)
	jne	LBB0_4
## %bb.1:
	movl	%edx, %r14d
	movq	%rsi, %r15
	xorl	%ebx, %ebx
	movq	_DP_DPCD_REV@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_dp_receiver_power_ctrl
	movq	(%r13), %rsi
	movq	%r12, %rdi
	movq	%r15, %rdx
	movl	%r14d, %ecx
	callq	_core_link_read_dpcd
	movq	(%r15), %rax
	movq	%rax, 24(%r12)
	cmpl	$3, %ebx
	ja	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	testq	%rax, %rax
	je	LBB0_2
LBB0_4:
	movq	8(%r12), %rax
	movq	_DISPLAY_DONGLE_DP_VGA_CONVERTER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.5:
	movl	16(%r12), %eax
	andl	$-2, %eax
	cmpl	$128, %eax
	jne	LBB0_7
## %bb.6:
	movl	$1, (%r12)
	jmp	LBB0_8
LBB0_7:
	movl	$0, (%r12)
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DP_DPCD_REV,8,3                ## @DP_DPCD_REV
	.comm	_DP_DOWNSTREAMPORT_PRESENT,8,3  ## @DP_DOWNSTREAMPORT_PRESENT
	.comm	_DISPLAY_DONGLE_DP_VGA_CONVERTER,8,3 ## @DISPLAY_DONGLE_DP_VGA_CONVERTER
	.no_dead_strip	_dp_wa_power_up_0010FA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dp_wa_power_up_0010FA
_dp_wa_power_up_0010FA:                 ; @dp_wa_power_up_0010FA
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	x8, [x0, #24]
	cbnz	x8, LBB0_6
; %bb.1:
	mov	x21, x2
	mov	x20, x1
	mov	x0, x19
	mov	w1, #1
	bl	_dp_receiver_power_ctrl
Lloh0:
	adrp	x22, _DP_DPCD_REV@GOTPAGE
Lloh1:
	ldr	x22, [x22, _DP_DPCD_REV@GOTPAGEOFF]
	ldr	x1, [x22]
	mov	x0, x19
	mov	x2, x20
	mov	x3, x21
	bl	_core_link_read_dpcd
	ldr	x8, [x20]
	str	x8, [x19, #24]
	cbnz	x8, LBB0_6
; %bb.2:
	mov	x0, x19
	mov	w1, #1
	bl	_dp_receiver_power_ctrl
	ldr	x1, [x22]
	mov	x0, x19
	mov	x2, x20
	mov	x3, x21
	bl	_core_link_read_dpcd
	ldr	x8, [x20]
	str	x8, [x19, #24]
	cbnz	x8, LBB0_6
; %bb.3:
	mov	x0, x19
	mov	w1, #1
	bl	_dp_receiver_power_ctrl
	ldr	x1, [x22]
	mov	x0, x19
	mov	x2, x20
	mov	x3, x21
	bl	_core_link_read_dpcd
	ldr	x8, [x20]
	str	x8, [x19, #24]
	cbnz	x8, LBB0_6
; %bb.4:
	mov	x0, x19
	mov	w1, #1
	bl	_dp_receiver_power_ctrl
	ldr	x1, [x22]
	mov	x0, x19
	mov	x2, x20
	mov	x3, x21
	bl	_core_link_read_dpcd
	ldr	x8, [x20]
	str	x8, [x19, #24]
	cbnz	x8, LBB0_6
; %bb.5:
	mov	x0, x19
	mov	w1, #1
	bl	_dp_receiver_power_ctrl
	ldr	x1, [x22]
	mov	x0, x19
	mov	x2, x20
	mov	x3, x21
	bl	_core_link_read_dpcd
	ldr	x8, [x20]
	str	x8, [x19, #24]
LBB0_6:
	ldr	x8, [x19, #8]
Lloh2:
	adrp	x9, _DISPLAY_DONGLE_DP_VGA_CONVERTER@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DISPLAY_DONGLE_DP_VGA_CONVERTER@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.7:
	ldr	w8, [x19, #16]
	and	w8, w8, #0xfffffffe
	cmp	w8, #128
	b.ne	LBB0_9
; %bb.8:
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_10
LBB0_9:
	str	wzr, [x19]
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_DP_DPCD_REV,8,3                ; @DP_DPCD_REV
	.comm	_DP_DOWNSTREAMPORT_PRESENT,8,3  ; @DP_DOWNSTREAMPORT_PRESENT
	.comm	_DISPLAY_DONGLE_DP_VGA_CONVERTER,8,3 ; @DISPLAY_DONGLE_DP_VGA_CONVERTER
	.no_dead_strip	_dp_wa_power_up_0010FA
.subsections_via_symbols
