	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hdmi_mode_valid
_hdmi_mode_valid:                       ## @hdmi_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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	callq	_connector_to_hdmi
	movq	%rax, %r14
	movl	(%rax), %edi
	movl	16(%rbx), %edx
	movl	8(%rbx), %r8d
	movq	_DRM_MODE_FLAG_INTERLACE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r9d, %r9d
	andl	(%rbx), %eax
	movl	12(%rbx), %ecx
	setne	%r9b
	imull	$1000, 4(%rbx), %eax            ## imm = 0x3E8
	movl	%eax, (%rsp)
	leaq	L_.str(%rip), %rsi
	callq	_DRM_DEV_DEBUG_KMS
	imull	$1000, 4(%rbx), %esi            ## imm = 0x3E8
	movq	%r14, %rdi
	callq	_hdmi_find_phy_conf
	testl	%eax, %eax
	jns	LBB0_1
## %bb.2:
	movq	_MODE_BAD@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_MODE_OK@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"xres=%d, yres=%d, refresh=%d, intl=%d clock=%d\n"

	.comm	_DRM_MODE_FLAG_INTERLACE,4,2    ## @DRM_MODE_FLAG_INTERLACE
	.comm	_MODE_BAD,4,2                   ## @MODE_BAD
	.comm	_MODE_OK,4,2                    ## @MODE_OK
	.no_dead_strip	_hdmi_mode_valid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hdmi_mode_valid
_hdmi_mode_valid:                       ; @hdmi_mode_valid
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	bl	_connector_to_hdmi
	mov	x20, x0
	ldr	w0, [x0]
	ldp	w3, w2, [x19, #12]
	ldp	w10, w4, [x19, #4]
Lloh0:
	adrp	x8, _DRM_MODE_FLAG_INTERLACE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_MODE_FLAG_INTERLACE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x19]
	tst	w8, w9
	cset	w5, ne
	mov	w21, #1000
	mul	w6, w10, w21
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DRM_DEV_DEBUG_KMS
	ldr	w8, [x19, #4]
	mul	w1, w8, w21
	mov	x0, x20
	bl	_hdmi_find_phy_conf
Lloh5:
	adrp	x8, _MODE_BAD@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MODE_BAD@GOTPAGEOFF]
Lloh7:
	adrp	x9, _MODE_OK@GOTPAGE
Lloh8:
	ldr	x9, [x9, _MODE_OK@GOTPAGEOFF]
	cmp	w0, #0
	csel	x8, x8, x9, lt
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"xres=%d, yres=%d, refresh=%d, intl=%d clock=%d\n"

	.comm	_DRM_MODE_FLAG_INTERLACE,4,2    ; @DRM_MODE_FLAG_INTERLACE
	.comm	_MODE_BAD,4,2                   ; @MODE_BAD
	.comm	_MODE_OK,4,2                    ; @MODE_OK
	.no_dead_strip	_hdmi_mode_valid
.subsections_via_symbols
