	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_psb_intel_lvds_set_property    ## -- Begin function psb_intel_lvds_set_property
	.p2align	4, 0x90
_psb_intel_lvds_set_property:           ## @psb_intel_lvds_set_property
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %r12
	movl	$-1, %r14d
	testq	%r12, %r12
	je	LBB0_13
## %bb.1:
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movl	(%rsi), %edi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_5
## %bb.2:
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_10
## %bb.3:
	movl	(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcmp
	xorl	%r14d, %r14d
	testl	%eax, %eax
	jne	LBB0_13
## %bb.4:
	movq	(%r12), %rax
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	*(%rax)
	jmp	LBB0_13
LBB0_5:
	movq	16(%r12), %rdi
	callq	_to_gma_crtc
	leal	-128(%r15), %ecx
	cmpl	$2, %ecx
	ja	LBB0_13
## %bb.6:
	testq	%rax, %rax
	je	LBB0_13
## %bb.7:
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rsi
	callq	_drm_object_property_get_value
	testq	%rax, %rax
	jne	LBB0_13
## %bb.8:
	cmpl	%r15d, -44(%rbp)
	je	LBB0_12
## %bb.14:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_drm_object_property_set_value
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	testq	%rax, %rax
	jne	LBB0_13
## %bb.15:
	cmpq	$0, (%rsi)
	je	LBB0_12
## %bb.16:
	cmpq	$0, 8(%rsi)
	je	LBB0_12
## %bb.17:
	movq	16(%r12), %rdi
	movl	12(%rdi), %edx
	movl	8(%rdi), %ecx
	movq	(%rdi), %rax
	movl	(%rax), %r8d
	callq	_drm_crtc_helper_set_mode
	testl	%eax, %eax
	jne	LBB0_12
	jmp	LBB0_13
LBB0_10:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_drm_object_property_set_value
	testq	%rax, %rax
	jne	LBB0_13
## %bb.11:
	movl	8(%r12), %edi
	movl	%r15d, %esi
	callq	_gma_backlight_set
LBB0_12:
	xorl	%r14d, %r14d
LBB0_13:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"scaling mode"

L_.str.1:                               ## @.str.1
	.asciz	"backlight"

L_.str.2:                               ## @.str.2
	.asciz	"DPMS"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_psb_intel_lvds_set_property    ; -- Begin function psb_intel_lvds_set_property
	.p2align	2
_psb_intel_lvds_set_property:           ; @psb_intel_lvds_set_property
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	x19, [x0, #8]
	cbz	x19, LBB0_14
; %bb.1:
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	ldr	w0, [x1]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_5
; %bb.2:
	ldr	w0, [x21]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_13
; %bb.3:
	ldr	w0, [x21]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strcmp
	cbnz	w0, LBB0_16
; %bb.4:
	ldr	x8, [x19]
	ldr	x8, [x8]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	b	LBB0_16
LBB0_5:
	ldr	x0, [x19, #16]
	bl	_to_gma_crtc
	sub	w8, w20, #128
	cmp	w8, #2
	b.hi	LBB0_14
; %bb.6:
	mov	x23, x0
	cbz	x0, LBB0_14
; %bb.7:
	add	x2, sp, #12
	mov	x0, x22
	mov	x1, x21
	bl	_drm_object_property_get_value
	cbnz	x0, LBB0_14
; %bb.8:
	ldr	w8, [sp, #12]
	cmp	w8, w20
	b.eq	LBB0_16
; %bb.9:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_drm_object_property_set_value
	cbnz	x0, LBB0_14
; %bb.10:
	ldr	x8, [x23]
	cbz	x8, LBB0_16
; %bb.11:
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_16
; %bb.12:
	ldr	x0, [x19, #16]
	ldp	w3, w2, [x0, #8]
	ldr	x8, [x0]
	ldr	w4, [x8]
	mov	x1, x23
	bl	_drm_crtc_helper_set_mode
	cbnz	w0, LBB0_16
	b	LBB0_14
LBB0_13:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_drm_object_property_set_value
	cbz	x0, LBB0_15
LBB0_14:
	mov	w0, #-1
	b	LBB0_17
LBB0_15:
	ldr	w0, [x19, #8]
	mov	x1, x20
	bl	_gma_backlight_set
LBB0_16:
	mov	w0, #0
LBB0_17:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"scaling mode"

l_.str.1:                               ; @.str.1
	.asciz	"backlight"

l_.str.2:                               ; @.str.2
	.asciz	"DPMS"

.subsections_via_symbols
