	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function drm_match_hdmi_mode
_drm_match_hdmi_mode:                   ## @drm_match_hdmi_mode
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, (%rdi)
	je	LBB0_7
## %bb.1:
	movq	%rdi, %r14
	movq	_DRM_MODE_MATCH_TIMINGS@GOTPCREL(%rip), %rax
	movq	_DRM_MODE_MATCH_FLAGS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	_edid_4k_modes@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_ARRAY_SIZE
	cmpq	$2, %rax
	jb	LBB0_7
## %bb.2:
	movl	$1, %r12d
	movl	$4, %r13d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_drm_mode_match
	testq	%rax, %rax
	jne	LBB0_8
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r12
	movq	_edid_4k_modes@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_ARRAY_SIZE
	addq	$4, %r13
	cmpq	%rax, %r12
	jae	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rbx
	movl	(%rbx,%r12,4), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	addq	%r13, %rbx
	movq	%rbx, %rdi
	callq	_hdmi_mode_alternate_clock
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	(%r14), %edi
	callq	_KHZ2PICOS
	movq	%r14, %r15
	movq	%rax, %r14
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_KHZ2PICOS
	cmpq	%rax, %r14
	movq	%r15, %r14
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r14), %edi
	callq	_KHZ2PICOS
	movq	%rax, %r14
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_KHZ2PICOS
	cmpq	%rax, %r14
	movq	%r15, %r14
	je	LBB0_5
	jmp	LBB0_6
LBB0_7:
	xorl	%r12d, %r12d
LBB0_8:
	movq	%r12, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_MODE_MATCH_TIMINGS,4,2     ## @DRM_MODE_MATCH_TIMINGS
	.comm	_DRM_MODE_MATCH_FLAGS,4,2       ## @DRM_MODE_MATCH_FLAGS
	.comm	_edid_4k_modes,8,3              ## @edid_4k_modes
	.no_dead_strip	_drm_match_hdmi_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function drm_match_hdmi_mode
_drm_match_hdmi_mode:                   ; @drm_match_hdmi_mode
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	w8, [x0]
	cbz	w8, LBB0_7
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _DRM_MODE_MATCH_TIMINGS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_MODE_MATCH_TIMINGS@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
Lloh3:
	adrp	x8, _DRM_MODE_MATCH_FLAGS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DRM_MODE_MATCH_FLAGS@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
Lloh6:
	adrp	x26, _edid_4k_modes@GOTPAGE
Lloh7:
	ldr	x26, [x26, _edid_4k_modes@GOTPAGEOFF]
	ldr	x0, [x26]
	bl	_ARRAY_SIZE
	cmp	x0, #2
	b.lo	LBB0_7
; %bb.2:
	orr	w21, w21, w20
	mov	w20, #1
	mov	w27, #4
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	bl	_drm_mode_match
	cbnz	x0, LBB0_8
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x20, x20, #1
	ldr	x0, [x26]
	bl	_ARRAY_SIZE
	add	x27, x27, #4
	cmp	x20, x0
	b.hs	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x26]
	add	x22, x8, x27
	ldr	w24, [x8, x20, lsl #2]
	mov	x0, x22
	bl	_hdmi_mode_alternate_clock
	mov	x23, x0
	ldr	w0, [x19]
	bl	_KHZ2PICOS
	mov	x25, x0
	mov	x0, x24
	bl	_KHZ2PICOS
	cmp	x25, x0
	b.eq	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x19]
	bl	_KHZ2PICOS
	mov	x24, x0
	mov	x0, x23
	bl	_KHZ2PICOS
	cmp	x24, x0
	b.eq	LBB0_3
	b	LBB0_4
LBB0_7:
	mov	x20, #0
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_MODE_MATCH_TIMINGS,4,2     ; @DRM_MODE_MATCH_TIMINGS
	.comm	_DRM_MODE_MATCH_FLAGS,4,2       ; @DRM_MODE_MATCH_FLAGS
	.comm	_edid_4k_modes,8,3              ; @edid_4k_modes
	.no_dead_strip	_drm_match_hdmi_mode
.subsections_via_symbols
