	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cdv_hdmi_set_property
_cdv_hdmi_set_property:                 ## @cdv_hdmi_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, %r13
	movq	%rdi, %rbx
	movq	8(%rdi), %r12
	movl	(%rsi), %edi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jne	LBB0_17
## %bb.1:
	testq	%r12, %r12
	je	LBB0_17
## %bb.2:
	movq	8(%r12), %rdi
	callq	_to_gma_crtc
	movq	%rax, %r15
	leal	-128(%r14), %eax
	cmpl	$2, %eax
	ja	LBB0_6
## %bb.3:
	testq	%r15, %r15
	je	LBB0_6
## %bb.4:
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_drm_object_property_get_value
	testq	%rax, %rax
	je	LBB0_8
LBB0_6:
	movl	$-1, %eax
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	xorl	%eax, %eax
	cmpl	%r14d, -44(%rbp)
	je	LBB0_17
## %bb.9:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	%r14d, %edx
	callq	_drm_object_property_set_value
	testq	%rax, %rax
	jne	LBB0_6
## %bb.11:
	cmpl	$128, -44(%rbp)
	sete	%cl
	cmpl	$128, %r14d
	sete	%al
	cmpq	$0, 8(%r15)
	je	LBB0_16
## %bb.12:
	cmpq	$0, 16(%r15)
	je	LBB0_16
## %bb.13:
	orb	%cl, %al
	movq	%r15, %rsi
	addq	$8, %rsi
	testb	%al, %al
	je	LBB0_15
## %bb.14:
	movq	8(%r12), %rdi
	movl	12(%rdi), %edx
	movl	8(%rdi), %ecx
	movq	(%rdi), %rax
	movl	(%rax), %r8d
	callq	_drm_crtc_helper_set_mode
	movl	%eax, %ecx
	movl	$-1, %eax
	testl	%ecx, %ecx
	jne	LBB0_16
	jmp	LBB0_17
LBB0_15:
	movq	(%r12), %rax
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	*(%rax)
LBB0_16:
	xorl	%eax, %eax
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"scaling mode"

	.no_dead_strip	_cdv_hdmi_set_property
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cdv_hdmi_set_property
_cdv_hdmi_set_property:                 ; @cdv_hdmi_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	x21, x2
	mov	x22, x1
	mov	x23, 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_2
LBB0_1:
	mov	w0, #0
	b	LBB0_6
LBB0_2:
	ldr	x0, [x19, #8]
	bl	_to_gma_crtc
	mov	x20, x0
	sub	w8, w21, #128
	mov	w0, #-1
	cmp	w8, #2
	b.hi	LBB0_6
; %bb.3:
	cbz	x20, LBB0_6
; %bb.4:
	add	x2, sp, #12
	mov	x0, x23
	mov	x1, x22
	bl	_drm_object_property_get_value
	cbz	x0, LBB0_7
LBB0_5:
	mov	w0, #-1
LBB0_6:
	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_7:
	ldr	w8, [sp, #12]
	cmp	w8, w21
	b.eq	LBB0_1
; %bb.8:
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	bl	_drm_object_property_set_value
	cbnz	x0, LBB0_5
; %bb.9:
	ldr	w8, [sp, #12]
	cmp	w21, #128
	mov	w9, #128
	ccmp	w8, w9, #4, ne
	cset	w8, eq
	mov	x1, x20
	ldr	x9, [x1, #8]!
	cbz	x9, LBB0_1
; %bb.10:
	ldr	x9, [x20, #16]
	cbz	x9, LBB0_1
; %bb.11:
	cbz	w8, LBB0_13
; %bb.12:
	ldr	x0, [x19, #8]
	ldp	w3, w2, [x0, #8]
	ldr	x8, [x0]
	ldr	w4, [x8]
	bl	_drm_crtc_helper_set_mode
	cbnz	w0, LBB0_1
	b	LBB0_5
LBB0_13:
	ldr	x8, [x19]
	ldr	x8, [x8]
	mov	x0, x19
	mov	x2, x20
	blr	x8
	b	LBB0_1
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"scaling mode"

	.no_dead_strip	_cdv_hdmi_set_property
.subsections_via_symbols
