	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function radeon_connector_set_property
_radeon_connector_set_property:         ## @radeon_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, %r15
	movq	(%rdi), %rax
	movq	(%rax), %r12
	cmpq	%rsi, 56(%r12)
	je	LBB0_1
LBB0_5:
	cmpq	%rbx, 48(%r12)
	je	LBB0_6
LBB0_9:
	cmpq	%rbx, 40(%r12)
	je	LBB0_10
LBB0_13:
	cmpq	%rbx, 32(%r12)
	je	LBB0_14
LBB0_17:
	cmpq	%rbx, 24(%r12)
	je	LBB0_18
## %bb.22:
	cmpq	%rbx, 16(%r12)
	je	LBB0_23
LBB0_24:
	cmpq	%rbx, 8(%r12)
	jne	LBB0_34
	jmp	LBB0_25
LBB0_1:
	movq	_DRM_MODE_ENCODER_TMDS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_radeon_find_encoder
	testq	%rax, %rax
	je	LBB0_34
## %bb.2:
	movq	%rax, %rdi
	callq	_to_radeon_encoder
	movq	16(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_34
## %bb.3:
	xorl	%edx, %edx
	testl	%r14d, %r14d
	setne	%dl
	cmpl	%edx, (%rcx)
	je	LBB0_5
## %bb.4:
	movl	%edx, (%rcx)
	addq	$12, %rax
	movq	%rax, %rdi
	callq	_radeon_property_change_mode
	jmp	LBB0_5
LBB0_6:
	movq	_DRM_MODE_ENCODER_TMDS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_radeon_find_encoder
	testq	%rax, %rax
	je	LBB0_34
## %bb.7:
	movq	%rax, %rdi
	callq	_to_radeon_encoder
	cmpl	%r14d, (%rax)
	je	LBB0_9
## %bb.8:
	movl	%r14d, (%rax)
	addq	$12, %rax
	movq	%rax, %rdi
	callq	_radeon_property_change_mode
	jmp	LBB0_9
LBB0_10:
	movq	_DRM_MODE_ENCODER_TMDS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_radeon_find_encoder
	testq	%rax, %rax
	je	LBB0_34
## %bb.11:
	movq	%rax, %rdi
	callq	_to_radeon_encoder
	cmpl	%r14d, 4(%rax)
	je	LBB0_13
## %bb.12:
	movl	%r14d, 4(%rax)
	addq	$12, %rax
	movq	%rax, %rdi
	callq	_radeon_property_change_mode
	jmp	LBB0_13
LBB0_14:
	movq	_DRM_MODE_ENCODER_TMDS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_radeon_find_encoder
	testq	%rax, %rax
	je	LBB0_34
## %bb.15:
	movq	%rax, %rdi
	callq	_to_radeon_encoder
	cmpl	%r14d, 8(%rax)
	je	LBB0_17
## %bb.16:
	movl	%r14d, 8(%rax)
	addq	$12, %rax
	movq	%rax, %rdi
	callq	_radeon_property_change_mode
	jmp	LBB0_17
LBB0_18:
	movq	_DRM_MODE_ENCODER_TVDAC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_radeon_find_encoder
	testq	%rax, %rax
	jne	LBB0_20
## %bb.19:
	movq	_DRM_MODE_ENCODER_DAC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_radeon_find_encoder
	testq	%rax, %rax
	je	LBB0_34
LBB0_20:
	movq	%rax, %rdi
	callq	_to_radeon_encoder
	cmpq	$0, 16(%rax)
	je	LBB0_34
## %bb.21:
	movq	%rax, %r13
	movq	%r12, %rdi
	callq	_ASIC_IS_AVIVO
	movq	_radeon_r4xx_atom@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
	movq	16(%r13), %rax
	addq	$4, %rax
	movl	%r14d, (%rax)
	addq	$12, %r13
	movq	%r13, %rdi
	callq	_radeon_property_change_mode
	cmpq	%rbx, 16(%r12)
	jne	LBB0_24
LBB0_23:
	movq	%r15, %rdi
	callq	_to_radeon_connector
	xorl	%ecx, %ecx
	testl	%r14d, %r14d
	setne	%cl
	movl	%ecx, (%rax)
	cmpq	%rbx, 8(%r12)
	jne	LBB0_34
LBB0_25:
	movq	_DRM_MODE_ENCODER_TMDS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_radeon_find_encoder
	testq	%rax, %rax
	je	LBB0_34
## %bb.26:
	movq	%rax, %rdi
	callq	_to_radeon_encoder
	movq	16(%rax), %r15
	testq	%r15, %r15
	je	LBB0_34
## %bb.27:
	movq	%rax, %rbx
	testl	%r14d, %r14d
	je	LBB0_28
LBB0_32:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_radeon_legacy_get_tmds_info_from_table
	jmp	LBB0_33
LBB0_28:
	cmpq	$0, (%r12)
	je	LBB0_30
## %bb.29:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_radeon_atombios_get_tmds_info
	jmp	LBB0_31
LBB0_30:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_radeon_legacy_get_tmds_info_from_combios
LBB0_31:
	testl	%eax, %eax
	je	LBB0_32
LBB0_33:
	addq	$12, %rbx
	movq	%rbx, %rdi
	callq	_radeon_property_change_mode
LBB0_34:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_MODE_ENCODER_TMDS,4,2      ## @DRM_MODE_ENCODER_TMDS
	.comm	_DRM_MODE_ENCODER_TVDAC,4,2     ## @DRM_MODE_ENCODER_TVDAC
	.comm	_DRM_MODE_ENCODER_DAC,4,2       ## @DRM_MODE_ENCODER_DAC
	.comm	_radeon_r4xx_atom,8,3           ## @radeon_r4xx_atom
	.no_dead_strip	_radeon_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 radeon_connector_set_property
_radeon_connector_set_property:         ; @radeon_connector_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	x19, x2
	mov	x22, x1
	mov	x21, x0
	ldr	x8, [x0]
	ldr	x20, [x8]
	ldr	x8, [x20, #56]
	cmp	x8, x1
	b.eq	LBB0_16
LBB0_1:
	ldr	x8, [x20, #48]
	cmp	x8, x22
	b.eq	LBB0_20
LBB0_2:
	ldr	x8, [x20, #40]
	cmp	x8, x22
	b.eq	LBB0_23
LBB0_3:
	ldr	x8, [x20, #32]
	cmp	x8, x22
	b.eq	LBB0_26
LBB0_4:
	ldr	x8, [x20, #24]
	cmp	x8, x22
	b.ne	LBB0_9
; %bb.5:
Lloh0:
	adrp	x8, _DRM_MODE_ENCODER_TVDAC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_MODE_ENCODER_TVDAC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_radeon_find_encoder
	cbnz	x0, LBB0_7
; %bb.6:
Lloh3:
	adrp	x8, _DRM_MODE_ENCODER_DAC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DRM_MODE_ENCODER_DAC@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_radeon_find_encoder
	cbz	x0, LBB0_34
LBB0_7:
	bl	_to_radeon_encoder
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_34
; %bb.8:
	mov	x23, x0
	mov	x0, x20
	bl	_ASIC_IS_AVIVO
Lloh6:
	adrp	x8, _radeon_r4xx_atom@GOTPAGE
Lloh7:
	ldr	x8, [x8, _radeon_r4xx_atom@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	orr	x8, x0, x8
	ldr	x8, [x23, #16]
	str	w19, [x8, #4]!
	add	x0, x23, #12
	bl	_radeon_property_change_mode
LBB0_9:
	ldr	x8, [x20, #16]
	cmp	x8, x22
	b.ne	LBB0_11
; %bb.10:
	mov	x0, x21
	bl	_to_radeon_connector
	cmp	w19, #0
	cset	w8, ne
	str	w8, [x0]
LBB0_11:
	ldr	x8, [x20, #8]
	cmp	x8, x22
	b.ne	LBB0_34
; %bb.12:
Lloh9:
	adrp	x8, _DRM_MODE_ENCODER_TMDS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DRM_MODE_ENCODER_TMDS@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_radeon_find_encoder
	cbz	x0, LBB0_34
; %bb.13:
	bl	_to_radeon_encoder
	ldr	x22, [x0, #16]
	cbz	x22, LBB0_34
; %bb.14:
	mov	x21, x0
	cbz	w19, LBB0_29
LBB0_15:
	mov	x0, x21
	mov	x1, x22
	bl	_radeon_legacy_get_tmds_info_from_table
	b	LBB0_33
LBB0_16:
Lloh12:
	adrp	x8, _DRM_MODE_ENCODER_TMDS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DRM_MODE_ENCODER_TMDS@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_radeon_find_encoder
	cbz	x0, LBB0_34
; %bb.17:
	bl	_to_radeon_encoder
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_34
; %bb.18:
	cmp	w19, #0
	cset	w9, ne
	ldr	w10, [x8]
	cmp	w10, w9
	b.eq	LBB0_1
; %bb.19:
	str	w9, [x8]
	add	x0, x0, #12
	bl	_radeon_property_change_mode
	b	LBB0_1
LBB0_20:
Lloh15:
	adrp	x8, _DRM_MODE_ENCODER_TMDS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DRM_MODE_ENCODER_TMDS@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_radeon_find_encoder
	cbz	x0, LBB0_34
; %bb.21:
	bl	_to_radeon_encoder
	ldr	w8, [x0]
	cmp	w8, w19
	b.eq	LBB0_2
; %bb.22:
	str	w19, [x0], #12
	bl	_radeon_property_change_mode
	b	LBB0_2
LBB0_23:
Lloh18:
	adrp	x8, _DRM_MODE_ENCODER_TMDS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DRM_MODE_ENCODER_TMDS@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_radeon_find_encoder
	cbz	x0, LBB0_34
; %bb.24:
	bl	_to_radeon_encoder
	ldr	w8, [x0, #4]
	cmp	w8, w19
	b.eq	LBB0_3
; %bb.25:
	str	w19, [x0, #4]
	add	x0, x0, #12
	bl	_radeon_property_change_mode
	b	LBB0_3
LBB0_26:
Lloh21:
	adrp	x8, _DRM_MODE_ENCODER_TMDS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _DRM_MODE_ENCODER_TMDS@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_radeon_find_encoder
	cbz	x0, LBB0_34
; %bb.27:
	bl	_to_radeon_encoder
	ldr	w8, [x0, #8]
	cmp	w8, w19
	b.eq	LBB0_4
; %bb.28:
	str	w19, [x0, #8]
	add	x0, x0, #12
	bl	_radeon_property_change_mode
	b	LBB0_4
LBB0_29:
	ldr	x8, [x20]
	cbz	x8, LBB0_31
; %bb.30:
	mov	x0, x21
	mov	x1, x22
	bl	_radeon_atombios_get_tmds_info
	b	LBB0_32
LBB0_31:
	mov	x0, x21
	mov	x1, x22
	bl	_radeon_legacy_get_tmds_info_from_combios
LBB0_32:
	cbz	w0, LBB0_15
LBB0_33:
	add	x0, x21, #12
	bl	_radeon_property_change_mode
LBB0_34:
	mov	w0, #0
	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 AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_MODE_ENCODER_TMDS,4,2      ; @DRM_MODE_ENCODER_TMDS
	.comm	_DRM_MODE_ENCODER_TVDAC,4,2     ; @DRM_MODE_ENCODER_TVDAC
	.comm	_DRM_MODE_ENCODER_DAC,4,2       ; @DRM_MODE_ENCODER_DAC
	.comm	_radeon_r4xx_atom,8,3           ; @radeon_r4xx_atom
	.no_dead_strip	_radeon_connector_set_property
.subsections_via_symbols
