	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvkm_dp_enable
_nvkm_dp_enable:                        ## @nvkm_dp_enable
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %r14
	testl	%esi, %esi
	je	LBB0_5
## %bb.1:
	cmpl	$0, (%rbx)
	jne	LBB0_3
## %bb.2:
	leaq	8(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_OUTP_DBG
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_nvkm_i2c_aux_monitor
	movl	$1, (%rbx)
LBB0_3:
	movq	_DPCD_RC00_DPCD_REV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	12(%rbx), %edx
	movq	%r14, %rdi
	movl	$4, %ecx
	callq	_nvkm_rdaux
	testl	%eax, %eax
	je	LBB0_4
LBB0_5:
	cmpl	$0, (%rbx)
	je	LBB0_7
## %bb.6:
	leaq	8(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_OUTP_DBG
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_nvkm_i2c_aux_monitor
	movl	$0, (%rbx)
LBB0_7:
	addq	$4, %rbx
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	jmp	LBB0_8
LBB0_4:
	movl	$1, %r14d
LBB0_8:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"aux power -> always"

	.comm	_DPCD_RC00_DPCD_REV,4,2         ## @DPCD_RC00_DPCD_REV
L_.str.1:                               ## @.str.1
	.asciz	"aux power -> demand"

	.no_dead_strip	_nvkm_dp_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvkm_dp_enable
_nvkm_dp_enable:                        ; @nvkm_dp_enable
	.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	x20, [x0, #16]
	cbz	w1, LBB0_4
; %bb.1:
	ldr	w8, [x19]
	cbnz	w8, LBB0_3
; %bb.2:
	add	x0, x19, #8
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_OUTP_DBG
	mov	w21, #1
	mov	x0, x20
	mov	w1, #1
	bl	_nvkm_i2c_aux_monitor
	str	w21, [x19]
LBB0_3:
Lloh2:
	adrp	x8, _DPCD_RC00_DPCD_REV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DPCD_RC00_DPCD_REV@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	ldr	w2, [x19, #12]
	mov	x0, x20
	mov	w3, #4
	bl	_nvkm_rdaux
	cbz	w0, LBB0_7
LBB0_4:
	ldr	w8, [x19]
	cbz	w8, LBB0_6
; %bb.5:
	add	x0, x19, #8
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_OUTP_DBG
	mov	x0, x20
	mov	w1, #0
	bl	_nvkm_i2c_aux_monitor
	str	wzr, [x19]
LBB0_6:
	add	x0, x19, #4
	mov	w1, #0
	bl	_atomic_set
	mov	w0, #0
	b	LBB0_8
LBB0_7:
	mov	w0, #1
LBB0_8:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"aux power -> always"

	.comm	_DPCD_RC00_DPCD_REV,4,2         ; @DPCD_RC00_DPCD_REV
l_.str.1:                               ; @.str.1
	.asciz	"aux power -> demand"

	.no_dead_strip	_nvkm_dp_enable
.subsections_via_symbols
