	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mdfld_dsi_connector_set_property
_mdfld_dsi_connector_set_property:      ## @mdfld_dsi_connector_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	8(%rdi), %r15
	movl	(%rsi), %edi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_13
## %bb.1:
	testq	%r15, %r15
	je	LBB0_13
## %bb.2:
	movq	16(%r15), %rdi
	callq	_to_gma_crtc
	movq	%rax, %r13
	leal	-128(%r14), %eax
	cmpl	$2, %eax
	ja	LBB0_11
## %bb.3:
	testq	%r13, %r13
	je	LBB0_11
## %bb.4:
	leaq	-44(%rbp), %rdx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_drm_object_property_get_value
	testq	%rax, %rax
	je	LBB0_5
LBB0_11:
	movl	$-1, %eax
	jmp	LBB0_18
LBB0_13:
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jne	LBB0_18
## %bb.14:
	testq	%r15, %r15
	je	LBB0_18
## %bb.15:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_drm_object_property_set_value
	movq	%rax, %rcx
	movl	$-1, %eax
	testq	%rcx, %rcx
	jne	LBB0_18
## %bb.16:
	movl	(%r15), %edi
	movl	%r14d, %esi
	callq	_gma_backlight_set
	jmp	LBB0_17
LBB0_5:
	cmpl	%r14d, -44(%rbp)
	jne	LBB0_6
LBB0_17:
	xorl	%eax, %eax
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_drm_object_property_set_value
	testq	%rax, %rax
	jne	LBB0_11
## %bb.7:
	cmpl	$128, -44(%rbp)
	sete	%cl
	cmpl	$128, %r14d
	sete	%al
	cmpq	$0, 8(%r13)
	je	LBB0_17
## %bb.8:
	cmpq	$0, 16(%r13)
	je	LBB0_17
## %bb.9:
	orb	%cl, %al
	movq	%r13, %rsi
	addq	$8, %rsi
	testb	%al, %al
	je	LBB0_12
## %bb.10:
	movq	16(%r15), %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_17
	jmp	LBB0_11
LBB0_12:
	movq	8(%r15), %rax
	movq	%r15, %rdi
	movq	%r13, %rdx
	callq	*(%rax)
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"scaling mode"

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

	.no_dead_strip	_mdfld_dsi_connector_set_property
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mdfld_dsi_connector_set_property
_mdfld_dsi_connector_set_property:      ; @mdfld_dsi_connector_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
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	ldr	x19, [x0, #8]
	ldr	w0, [x1]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cmp	w0, #0
	ccmp	x19, #0, #4, eq
	b.ne	LBB0_4
; %bb.1:
	ldr	w0, [x21]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cmp	w0, #0
	ccmp	x19, #0, #4, eq
	b.eq	LBB0_9
; %bb.2:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_drm_object_property_set_value
	cbnz	x0, LBB0_7
; %bb.3:
	ldr	w0, [x19]
	mov	x1, x20
	bl	_gma_backlight_set
	b	LBB0_9
LBB0_4:
	ldr	x0, [x19, #16]
	bl	_to_gma_crtc
	sub	w8, w20, #128
	cmp	w8, #2
	b.hi	LBB0_7
; %bb.5:
	mov	x23, x0
	cbz	x0, LBB0_7
; %bb.6:
	add	x2, sp, #12
	mov	x0, x22
	mov	x1, x21
	bl	_drm_object_property_get_value
	cbz	x0, LBB0_8
LBB0_7:
	mov	w0, #-1
	b	LBB0_10
LBB0_8:
	ldr	w8, [sp, #12]
	cmp	w8, w20
	b.ne	LBB0_11
LBB0_9:
	mov	w0, #0
LBB0_10:
	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
LBB0_11:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_drm_object_property_set_value
	cbnz	x0, LBB0_7
; %bb.12:
	ldr	w8, [sp, #12]
	cmp	w20, #128
	mov	w9, #128
	ccmp	w8, w9, #4, ne
	cset	w8, eq
	mov	x1, x23
	ldr	x9, [x1, #8]!
	cbz	x9, LBB0_9
; %bb.13:
	ldr	x9, [x23, #16]
	cbz	x9, LBB0_9
; %bb.14:
	cbz	w8, LBB0_16
; %bb.15:
	ldr	x0, [x19, #16]
	ldp	w3, w2, [x0, #8]
	ldr	x8, [x0]
	ldr	w4, [x8]
	bl	_drm_crtc_helper_set_mode
	cbnz	w0, LBB0_9
	b	LBB0_7
LBB0_16:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	mov	x0, x19
	mov	x2, x23
	blr	x8
	b	LBB0_9
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"scaling mode"

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

	.no_dead_strip	_mdfld_dsi_connector_set_property
.subsections_via_symbols
