	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvkm_dp_init
_nvkm_dp_init:                          ## @nvkm_dp_init
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %r14
	callq	_nvkm_dp
	movq	%rax, %rbx
	movq	8(%rax), %rdi
	addq	$8, %rdi
	callq	_nvkm_notify_put
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	_DCB_CONNECTOR_eDP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.1:
	movq	_DCB_GPIO_PANEL_POWER@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$255, %ecx
	callq	_nvkm_gpio_get
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movl	(%r12), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$255, %ecx
	movl	$1, %r8d
	callq	_nvkm_gpio_set
LBB0_3:
	movl	$300, %edi                      ## imm = 0x12C
	callq	_msleep
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_nvkm_dp_enable
	orl	%r15d, %eax
	jne	LBB0_6
## %bb.4:
	movl	(%r12), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$255, %ecx
	xorl	%r8d, %r8d
	callq	_nvkm_gpio_set
	jmp	LBB0_6
LBB0_5:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_nvkm_dp_enable
LBB0_6:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nvkm_notify_get                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DCB_CONNECTOR_eDP,8,3          ## @DCB_CONNECTOR_eDP
	.comm	_DCB_GPIO_PANEL_POWER,4,2       ## @DCB_GPIO_PANEL_POWER
	.no_dead_strip	_nvkm_dp_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvkm_dp_init
_nvkm_dp_init:                          ; @nvkm_dp_init
	.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
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x20, [x8]
	bl	_nvkm_dp
	mov	x19, x0
	ldr	x8, [x0, #8]
	add	x0, x8, #8
	bl	_nvkm_notify_put
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _DCB_CONNECTOR_eDP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DCB_CONNECTOR_eDP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.1:
Lloh3:
	adrp	x22, _DCB_GPIO_PANEL_POWER@GOTPAGE
Lloh4:
	ldr	x22, [x22, _DCB_GPIO_PANEL_POWER@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x20
	mov	w1, #0
	mov	w3, #255
	bl	_nvkm_gpio_get
	mov	x21, x0
	cbnz	w0, LBB0_3
; %bb.2:
	ldr	w2, [x22]
	mov	x0, x20
	mov	w1, #0
	mov	w3, #255
	mov	w4, #1
	bl	_nvkm_gpio_set
LBB0_3:
	mov	w0, #300
	bl	_msleep
	mov	x0, x19
	mov	w1, #1
	bl	_nvkm_dp_enable
	orr	w8, w0, w21
	cbnz	w8, LBB0_6
; %bb.4:
	ldr	w2, [x22]
	mov	x0, x20
	mov	w1, #0
	mov	w3, #255
	mov	w4, #0
	bl	_nvkm_gpio_set
	b	LBB0_6
LBB0_5:
	mov	x0, x19
	mov	w1, #1
	bl	_nvkm_dp_enable
LBB0_6:
	mov	x0, x19
	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
	b	_nvkm_notify_get
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_DCB_CONNECTOR_eDP,8,3          ; @DCB_CONNECTOR_eDP
	.comm	_DCB_GPIO_PANEL_POWER,4,2       ; @DCB_GPIO_PANEL_POWER
	.no_dead_strip	_nvkm_dp_init
.subsections_via_symbols
