	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cdv_power_up
_cdv_power_up:                          ## @cdv_power_up
	.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), %rbx
	movq	_PSB_APM_CMD@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	(%rbx), %rdi
	callq	_inl
	movq	_PSB_PWRGT_GFX_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	movl	%r14d, %edi
	notl	%edi
	andl	%eax, %edi
	movq	_PSB_PWRGT_GFX_ON@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	(%r15), %rsi
	addq	(%rbx), %rsi
	callq	_outl
	movq	_PSB_APM_STS@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	(%rbx), %rdi
	callq	_inl
	andl	%r14d, %eax
	movq	_PSB_PWRGT_GFX_D0@GOTPCREL(%rip), %r12
	cmpl	(%r12), %eax
	je	LBB0_6
## %bb.1:
	movl	$10, %edi
	callq	_udelay
	movq	(%r15), %rdi
	addq	(%rbx), %rdi
	callq	_inl
	andl	%r14d, %eax
	cmpl	(%r12), %eax
	je	LBB0_6
## %bb.2:
	movl	$10, %edi
	callq	_udelay
	movq	(%r15), %rdi
	addq	(%rbx), %rdi
	callq	_inl
	andl	%r14d, %eax
	cmpl	(%r12), %eax
	je	LBB0_6
## %bb.3:
	movl	$10, %edi
	callq	_udelay
	movq	(%r15), %rdi
	addq	(%rbx), %rdi
	callq	_inl
	andl	%r14d, %eax
	cmpl	(%r12), %eax
	je	LBB0_6
## %bb.4:
	movl	$10, %edi
	callq	_udelay
	movq	(%r15), %rdi
	addq	(%rbx), %rdi
	callq	_inl
	andl	%r14d, %eax
	cmpl	(%r12), %eax
	je	LBB0_6
## %bb.5:
	movl	$10, %edi
	callq	_udelay
LBB0_6:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PSB_APM_CMD,8,3                ## @PSB_APM_CMD
	.comm	_PSB_PWRGT_GFX_MASK,4,2         ## @PSB_PWRGT_GFX_MASK
	.comm	_PSB_PWRGT_GFX_ON,4,2           ## @PSB_PWRGT_GFX_ON
	.comm	_PSB_APM_STS,8,3                ## @PSB_APM_STS
	.comm	_PSB_PWRGT_GFX_D0,4,2           ## @PSB_PWRGT_GFX_D0
	.no_dead_strip	_cdv_power_up
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cdv_power_up
_cdv_power_up:                          ; @cdv_power_up
	.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	x19, [x0]
	ldr	x8, [x19]
Lloh0:
	adrp	x21, _PSB_APM_CMD@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PSB_APM_CMD@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_inl
Lloh2:
	adrp	x8, _PSB_PWRGT_GFX_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PSB_PWRGT_GFX_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w20, [x8]
Lloh5:
	adrp	x8, _PSB_PWRGT_GFX_ON@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PSB_PWRGT_GFX_ON@GOTPAGEOFF]
	bic	w9, w0, w20
Lloh7:
	ldr	w8, [x8]
	orr	w0, w9, w8
	ldr	x8, [x19]
	ldr	x9, [x21]
	add	x1, x9, x8
	bl	_outl
	ldr	x8, [x19]
Lloh8:
	adrp	x21, _PSB_APM_STS@GOTPAGE
Lloh9:
	ldr	x21, [x21, _PSB_APM_STS@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_inl
	and	w8, w0, w20
Lloh10:
	adrp	x22, _PSB_PWRGT_GFX_D0@GOTPAGE
Lloh11:
	ldr	x22, [x22, _PSB_PWRGT_GFX_D0@GOTPAGEOFF]
	ldr	w9, [x22]
	cmp	w8, w9
	b.eq	LBB0_6
; %bb.1:
	mov	w0, #10
	bl	_udelay
	ldr	x8, [x19]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_inl
	and	w8, w0, w20
	ldr	w9, [x22]
	cmp	w8, w9
	b.eq	LBB0_6
; %bb.2:
	mov	w0, #10
	bl	_udelay
	ldr	x8, [x19]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_inl
	and	w8, w0, w20
	ldr	w9, [x22]
	cmp	w8, w9
	b.eq	LBB0_6
; %bb.3:
	mov	w0, #10
	bl	_udelay
	ldr	x8, [x19]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_inl
	and	w8, w0, w20
	ldr	w9, [x22]
	cmp	w8, w9
	b.eq	LBB0_6
; %bb.4:
	mov	w0, #10
	bl	_udelay
	ldr	x8, [x19]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_inl
	and	w8, w0, w20
	ldr	w9, [x22]
	cmp	w8, w9
	b.eq	LBB0_6
; %bb.5:
	mov	w0, #10
	bl	_udelay
LBB0_6:
	mov	w0, #0
	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	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PSB_APM_CMD,8,3                ; @PSB_APM_CMD
	.comm	_PSB_PWRGT_GFX_MASK,4,2         ; @PSB_PWRGT_GFX_MASK
	.comm	_PSB_PWRGT_GFX_ON,4,2           ; @PSB_PWRGT_GFX_ON
	.comm	_PSB_APM_STS,8,3                ; @PSB_APM_STS
	.comm	_PSB_PWRGT_GFX_D0,4,2           ; @PSB_PWRGT_GFX_D0
	.no_dead_strip	_cdv_power_up
.subsections_via_symbols
