	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function edp_connector_mode_valid
_edp_connector_mode_valid:              ## @edp_connector_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	%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	%rsi, %r14
	movq	%rdi, %r15
	callq	_to_edp_connector
	movq	(%rax), %r13
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movq	(%rax), %rdi
	movslq	(%r14), %rax
	imulq	$1000, %rax, %rbx               ## imm = 0x3E8
	movq	(%rdi), %rax
	movl	4(%r13), %edx
	movq	%rbx, %rsi
	callq	*(%rax)
	movq	%rax, %r12
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	_DBG
	movq	_MODE_CLOCK_RANGE@GOTPCREL(%rip), %rax
	cmpq	%rbx, %r12
	jne	LBB0_5
## %bb.1:
	movl	(%r13), %edi
	movl	(%r14), %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%rax, %rbx
	callq	_msm_edp_ctrl_pixel_clock_valid
	testl	%eax, %eax
	movq	%rbx, %rax
	je	LBB0_5
## %bb.2:
	cmpl	$9, (%r15)
	jl	LBB0_3
## %bb.4:
	movq	_MODE_BAD@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_MODE_OK@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"requested=%ld, actual=%ld"

	.comm	_MODE_CLOCK_RANGE,4,2           ## @MODE_CLOCK_RANGE
	.comm	_MODE_BAD,4,2                   ## @MODE_BAD
	.comm	_MODE_OK,4,2                    ## @MODE_OK
	.no_dead_strip	_edp_connector_mode_valid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function edp_connector_mode_valid
_edp_connector_mode_valid:              ; @edp_connector_mode_valid
	.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	x20, x1
	mov	x19, x0
	bl	_to_edp_connector
	ldr	x23, [x0]
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x0, [x8]
	ldrsw	x8, [x20]
	mov	w9, #1000
	mul	x21, x8, x9
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	w2, [x23, #4]
	mov	x1, x21
	blr	x8
	mov	x22, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	mov	x2, x22
	bl	_DBG
	cmp	x22, x21
	b.ne	LBB0_3
; %bb.1:
	ldr	w0, [x23]
	ldr	w1, [x20]
	mov	x2, #0
	mov	x3, #0
	bl	_msm_edp_ctrl_pixel_clock_valid
	cbz	w0, LBB0_3
; %bb.2:
	ldr	w8, [x19]
Lloh2:
	adrp	x9, _MODE_OK@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MODE_OK@GOTPAGEOFF]
Lloh4:
	adrp	x10, _MODE_BAD@GOTPAGE
Lloh5:
	ldr	x10, [x10, _MODE_BAD@GOTPAGEOFF]
	cmp	w8, #8
	csel	x8, x10, x9, gt
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x8, _MODE_CLOCK_RANGE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MODE_CLOCK_RANGE@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x8]
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"requested=%ld, actual=%ld"

	.comm	_MODE_CLOCK_RANGE,4,2           ; @MODE_CLOCK_RANGE
	.comm	_MODE_BAD,4,2                   ; @MODE_BAD
	.comm	_MODE_OK,4,2                    ; @MODE_OK
	.no_dead_strip	_edp_connector_mode_valid
.subsections_via_symbols
