	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function psb_intel_lvds_set_power
_psb_intel_lvds_set_power:              ## @psb_intel_lvds_set_power
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	8(%rdi), %r15
	movl	$1, %esi
	callq	_gma_power_begin
	testl	%eax, %eax
	je	LBB0_8
## %bb.1:
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.2:
	movq	_PP_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_REG_READ
	movq	_POWER_TARGET_ON@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_REG_WRITE
	movq	_PP_STATUS@GOTPCREL(%rip), %r12
	movq	_PP_ON@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	callq	_REG_READ
	testl	%eax, (%rbx)
	je	LBB0_3
## %bb.4:
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_psb_intel_lvds_set_backlight
	jmp	LBB0_7
LBB0_8:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
LBB0_5:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_psb_intel_lvds_set_backlight
	movq	_PP_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_REG_READ
	movq	_POWER_TARGET_ON@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movl	%ebx, %edi
	callq	_REG_WRITE
	movq	_PP_STATUS@GOTPCREL(%rip), %r15
	movq	_PP_ON@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	callq	_REG_READ
	testl	%eax, (%rbx)
	jne	LBB0_6
LBB0_7:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gma_power_end                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"set power, chip off!\n"

	.comm	_PP_CONTROL,4,2                 ## @PP_CONTROL
	.comm	_POWER_TARGET_ON,4,2            ## @POWER_TARGET_ON
	.comm	_PP_STATUS,4,2                  ## @PP_STATUS
	.comm	_PP_ON,4,2                      ## @PP_ON
	.no_dead_strip	_psb_intel_lvds_set_power
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function psb_intel_lvds_set_power
_psb_intel_lvds_set_power:              ; @psb_intel_lvds_set_power
	.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	x20, x1
	mov	x19, x0
	ldr	x21, [x0, #8]
	mov	w1, #1
	bl	_gma_power_begin
	cbz	w0, LBB0_5
; %bb.1:
	cbz	w20, LBB0_6
; %bb.2:
Lloh0:
	adrp	x8, _PP_CONTROL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PP_CONTROL@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	mov	x0, x20
	bl	_REG_READ
Lloh3:
	adrp	x8, _POWER_TARGET_ON@GOTPAGE
Lloh4:
	ldr	x8, [x8, _POWER_TARGET_ON@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	orr	w1, w8, w0
	mov	x0, x20
	bl	_REG_WRITE
Lloh6:
	adrp	x20, _PP_STATUS@GOTPAGE
Lloh7:
	ldr	x20, [x20, _PP_STATUS@GOTPAGEOFF]
Lloh8:
	adrp	x22, _PP_ON@GOTPAGE
Lloh9:
	ldr	x22, [x22, _PP_ON@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	bl	_REG_READ
	ldr	w8, [x22]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.4:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_psb_intel_lvds_set_backlight
	b	LBB0_8
LBB0_5:
	ldr	w0, [x19]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	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	_dev_err
LBB0_6:
	mov	x0, x19
	mov	w1, #0
	bl	_psb_intel_lvds_set_backlight
Lloh12:
	adrp	x8, _PP_CONTROL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PP_CONTROL@GOTPAGEOFF]
Lloh14:
	ldr	w20, [x8]
	mov	x0, x20
	bl	_REG_READ
Lloh15:
	adrp	x8, _POWER_TARGET_ON@GOTPAGE
Lloh16:
	ldr	x8, [x8, _POWER_TARGET_ON@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	bic	w1, w0, w8
	mov	x0, x20
	bl	_REG_WRITE
Lloh18:
	adrp	x20, _PP_STATUS@GOTPAGE
Lloh19:
	ldr	x20, [x20, _PP_STATUS@GOTPAGEOFF]
Lloh20:
	adrp	x21, _PP_ON@GOTPAGE
Lloh21:
	ldr	x21, [x21, _PP_ON@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	bl	_REG_READ
	ldr	w8, [x21]
	tst	w8, w0
	b.ne	LBB0_7
LBB0_8:
	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	_gma_power_end
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set power, chip off!\n"

	.comm	_PP_CONTROL,4,2                 ; @PP_CONTROL
	.comm	_POWER_TARGET_ON,4,2            ; @POWER_TARGET_ON
	.comm	_PP_STATUS,4,2                  ; @PP_STATUS
	.comm	_PP_ON,4,2                      ; @PP_ON
	.no_dead_strip	_psb_intel_lvds_set_power
.subsections_via_symbols
