	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_tv_set_property
_intel_tv_set_property:                 ## @intel_tv_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
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	callq	_intel_attached_tv
	movq	%rax, %r12
	movq	16(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	callq	_drm_object_property_set_value
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_17
## %bb.1:
	cmpq	%r14, 32(%r15)
	jne	LBB0_4
## %bb.2:
	movq	(%r12), %rax
	movq	_TV_MARGIN_LEFT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%r13, (%rax,%rcx,8)
	jne	LBB0_3
LBB0_4:
	cmpq	%r14, 24(%r15)
	jne	LBB0_6
## %bb.5:
	movq	(%r12), %rax
	movq	_TV_MARGIN_RIGHT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%r13, (%rax,%rcx,8)
	jne	LBB0_3
LBB0_6:
	cmpq	%r14, 16(%r15)
	jne	LBB0_8
## %bb.7:
	movq	(%r12), %rax
	movq	_TV_MARGIN_TOP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%r13, (%rax,%rcx,8)
	jne	LBB0_3
LBB0_8:
	cmpq	%r14, 8(%r15)
	jne	LBB0_10
## %bb.9:
	movq	(%r12), %rax
	movq	_TV_MARGIN_BOTTOM@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%r13, (%rax,%rcx,8)
	jne	LBB0_3
LBB0_10:
	cmpq	%r14, (%r15)
	jne	LBB0_12
## %bb.11:
	movq	_tv_modes@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	cmpq	%r13, %rax
	jle	LBB0_12
## %bb.13:
	movl	8(%r12), %edi
	movq	(%r14), %rax
	movl	(%rax,%r13,4), %esi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_17
## %bb.14:
	movq	(%r14), %rax
	movl	(%rax,%r13,4), %eax
	movl	%eax, 8(%r12)
	jmp	LBB0_15
LBB0_3:
	movq	%r13, (%rax,%rcx,8)
LBB0_15:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_17
## %bb.16:
	callq	_intel_crtc_restore_mode
	jmp	LBB0_17
LBB0_12:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TV_MARGIN_LEFT,8,3             ## @TV_MARGIN_LEFT
	.comm	_TV_MARGIN_RIGHT,8,3            ## @TV_MARGIN_RIGHT
	.comm	_TV_MARGIN_TOP,8,3              ## @TV_MARGIN_TOP
	.comm	_TV_MARGIN_BOTTOM,8,3           ## @TV_MARGIN_BOTTOM
	.comm	_tv_modes,8,3                   ## @tv_modes
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_intel_tv_set_property
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_tv_set_property
_intel_tv_set_property:                 ; @intel_tv_set_property
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x23, x1
	mov	x19, x0
	ldr	x24, [x0, #8]
	bl	_intel_attached_tv
	mov	x22, x0
	ldr	x20, [x0, #16]
	mov	x0, x19
	mov	x1, x23
	mov	x2, x21
	bl	_drm_object_property_set_value
	mov	x19, x0
	tbnz	w0, #31, LBB0_16
; %bb.1:
	ldr	x8, [x24, #32]
	cmp	x8, x23
	b.ne	LBB0_3
; %bb.2:
	ldr	x8, [x22]
Lloh0:
	adrp	x9, _TV_MARGIN_LEFT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TV_MARGIN_LEFT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x10, [x8, x9, lsl #3]
	cmp	x10, x21
	b.ne	LBB0_13
LBB0_3:
	ldr	x8, [x24, #24]
	cmp	x8, x23
	b.ne	LBB0_5
; %bb.4:
	ldr	x8, [x22]
Lloh3:
	adrp	x9, _TV_MARGIN_RIGHT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TV_MARGIN_RIGHT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	x10, [x8, x9, lsl #3]
	cmp	x10, x21
	b.ne	LBB0_13
LBB0_5:
	ldr	x8, [x24, #16]
	cmp	x8, x23
	b.ne	LBB0_7
; %bb.6:
	ldr	x8, [x22]
Lloh6:
	adrp	x9, _TV_MARGIN_TOP@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TV_MARGIN_TOP@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldr	x10, [x8, x9, lsl #3]
	cmp	x10, x21
	b.ne	LBB0_13
LBB0_7:
	ldr	x8, [x24, #8]
	cmp	x8, x23
	b.ne	LBB0_9
; %bb.8:
	ldr	x8, [x22]
Lloh9:
	adrp	x9, _TV_MARGIN_BOTTOM@GOTPAGE
Lloh10:
	ldr	x9, [x9, _TV_MARGIN_BOTTOM@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	ldr	x10, [x8, x9, lsl #3]
	cmp	x10, x21
	b.ne	LBB0_13
LBB0_9:
	ldr	x8, [x24]
	cmp	x8, x23
	b.ne	LBB0_15
; %bb.10:
Lloh12:
	adrp	x23, _tv_modes@GOTPAGE
Lloh13:
	ldr	x23, [x23, _tv_modes@GOTPAGEOFF]
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	cmp	x0, x21
	b.le	LBB0_15
; %bb.11:
	ldr	w0, [x22, #8]
	ldr	x8, [x23]
	ldr	w1, [x8, x21, lsl #2]
	bl	_strcmp
	cbz	w0, LBB0_16
; %bb.12:
	ldr	x8, [x23]
	ldr	w8, [x8, x21, lsl #2]
	str	w8, [x22, #8]
	cbnz	x20, LBB0_14
	b	LBB0_16
LBB0_13:
	str	x21, [x8, x9, lsl #3]
	cbz	x20, LBB0_16
LBB0_14:
	mov	x0, x20
	bl	_intel_crtc_restore_mode
	b	LBB0_16
LBB0_15:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_16:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_TV_MARGIN_LEFT,8,3             ; @TV_MARGIN_LEFT
	.comm	_TV_MARGIN_RIGHT,8,3            ; @TV_MARGIN_RIGHT
	.comm	_TV_MARGIN_TOP,8,3              ; @TV_MARGIN_TOP
	.comm	_TV_MARGIN_BOTTOM,8,3           ; @TV_MARGIN_BOTTOM
	.comm	_tv_modes,8,3                   ; @tv_modes
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_intel_tv_set_property
.subsections_via_symbols
