	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function enable_disp_power_gating_v2_1
_enable_disp_power_gating_v2_1:         ## @enable_disp_power_gating_v2_1
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %eax
	movq	%rdi, %rbx
	movq	_BP_RESULT_FAILURE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	movq	(%rdi), %rcx
	leaq	-28(%rbp), %rsi
	movl	%eax, %edi
	callq	*8(%rcx)
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	(%rbx), %rax
	movl	-28(%rbp), %ebx
	movl	%r14d, %edi
	callq	*(%rax)
	movq	_EnableDispPowerGating@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	shlq	$32, %rbx
	movl	%eax, %esi
	orq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_EXEC_BIOS_CMD_TABLE
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	_BP_RESULT_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movq	_BP_RESULT_BADINPUT@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %r15d
LBB0_5:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BP_RESULT_FAILURE,4,2          ## @BP_RESULT_FAILURE
	.comm	_BP_RESULT_BADINPUT,4,2         ## @BP_RESULT_BADINPUT
	.comm	_EnableDispPowerGating,4,2      ## @EnableDispPowerGating
	.comm	_BP_RESULT_OK,4,2               ## @BP_RESULT_OK
	.no_dead_strip	_enable_disp_power_gating_v2_1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function enable_disp_power_gating_v2_1
_enable_disp_power_gating_v2_1:         ; @enable_disp_power_gating_v2_1
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x2
	mov	x8, x1
	mov	x20, x0
Lloh0:
	adrp	x9, _BP_RESULT_FAILURE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BP_RESULT_FAILURE@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x9]
	ldr	x9, [x0]
	ldr	x9, [x9, #8]
	add	x1, sp, #12
	mov	x0, x8
	blr	x9
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	w20, [sp, #12]
	mov	x0, x19
	blr	x8
Lloh3:
	adrp	x8, _EnableDispPowerGating@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EnableDispPowerGating@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	w1, w0
	bfi	x1, x20, #32, #32
	mov	x0, x8
	mov	x2, #0
	bl	_EXEC_BIOS_CMD_TABLE
Lloh6:
	adrp	x8, _BP_RESULT_OK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BP_RESULT_OK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w0, w21, w8, eq
	b	LBB0_3
LBB0_2:
Lloh9:
	adrp	x8, _BP_RESULT_BADINPUT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BP_RESULT_BADINPUT@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_BP_RESULT_FAILURE,4,2          ; @BP_RESULT_FAILURE
	.comm	_BP_RESULT_BADINPUT,4,2         ; @BP_RESULT_BADINPUT
	.comm	_EnableDispPowerGating,4,2      ; @EnableDispPowerGating
	.comm	_BP_RESULT_OK,4,2               ; @BP_RESULT_OK
	.no_dead_strip	_enable_disp_power_gating_v2_1
.subsections_via_symbols
