	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amdgpu_connector_lvds_mode_valid
_amdgpu_connector_lvds_mode_valid:      ## @amdgpu_connector_lvds_mode_valid
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	callq	_amdgpu_connector_best_single_encoder
	movq	_MODE_PANEL@GOTPCREL(%rip), %r14
	cmpl	$320, (%rbx)                    ## imm = 0x140
	jl	LBB0_9
## %bb.1:
	cmpl	$240, 4(%rbx)
	jl	LBB0_9
## %bb.2:
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movq	%rax, %rdi
	callq	_to_amdgpu_encoder
	movl	(%rbx), %ecx
	movl	8(%rax), %edx
	cmpl	%edx, %ecx
	jg	LBB0_9
## %bb.4:
	movl	4(%rbx), %esi
	movl	12(%rax), %edi
	cmpl	%edi, %esi
	jg	LBB0_9
## %bb.5:
	movq	(%rax), %rax
	movq	_RMX_OFF@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jne	LBB0_8
## %bb.6:
	cmpl	%edx, %ecx
	jne	LBB0_9
## %bb.7:
	cmpl	%edi, %esi
	jne	LBB0_9
LBB0_8:
	movq	_MODE_OK@GOTPCREL(%rip), %r14
LBB0_9:
	movl	(%r14), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MODE_PANEL,4,2                 ## @MODE_PANEL
	.comm	_RMX_OFF,8,3                    ## @RMX_OFF
	.comm	_MODE_OK,4,2                    ## @MODE_OK
	.no_dead_strip	_amdgpu_connector_lvds_mode_valid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amdgpu_connector_lvds_mode_valid
_amdgpu_connector_lvds_mode_valid:      ; @amdgpu_connector_lvds_mode_valid
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	bl	_amdgpu_connector_best_single_encoder
	ldr	w8, [x19]
	cmp	w8, #320
	b.lt	LBB0_5
; %bb.1:
	ldr	w8, [x19, #4]
	cmp	w8, #240
	b.lt	LBB0_5
; %bb.2:
	cbz	x0, LBB0_10
; %bb.3:
	bl	_to_amdgpu_encoder
	ldr	w9, [x19]
	ldr	w10, [x0, #8]
	cmp	w9, w10
	b.gt	LBB0_5
; %bb.4:
	ldr	w11, [x19, #4]
	ldr	w12, [x0, #12]
	cmp	w11, w12
	b.le	LBB0_7
LBB0_5:
Lloh0:
	adrp	x8, _MODE_PANEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MODE_PANEL@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldr	x8, [x0]
Lloh2:
	adrp	x13, _RMX_OFF@GOTPAGE
Lloh3:
	ldr	x13, [x13, _RMX_OFF@GOTPAGEOFF]
Lloh4:
	ldr	x13, [x13]
	cmp	x8, x13
	b.ne	LBB0_10
; %bb.8:
Lloh5:
	adrp	x8, _MODE_PANEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MODE_PANEL@GOTPAGEOFF]
	cmp	w9, w10
	b.ne	LBB0_6
; %bb.9:
	cmp	w11, w12
	b.ne	LBB0_6
LBB0_10:
Lloh7:
	adrp	x8, _MODE_OK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MODE_OK@GOTPAGEOFF]
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MODE_PANEL,4,2                 ; @MODE_PANEL
	.comm	_RMX_OFF,8,3                    ; @RMX_OFF
	.comm	_MODE_OK,4,2                    ; @MODE_OK
	.no_dead_strip	_amdgpu_connector_lvds_mode_valid
.subsections_via_symbols
