	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function a10hdmi_detect_hdmi_vsdb
_a10hdmi_detect_hdmi_vsdb:              ## @a10hdmi_detect_hdmi_vsdb
	.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	_EXT_TAG@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rdi,%rax,4), %edx
	movq	_CEA_TAG_ID@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpl	(%rcx), %edx
	jne	LBB0_9
## %bb.1:
	movq	%rdi, %r15
	movq	_CEA_DATA_OFF@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rdi,%rcx,4), %r13d
	movq	_CEA_DATA_START@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	cmpl	%r14d, %r13d
	jg	LBB0_2
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	addl	%ebx, %r14d
	cmpl	%r13d, %r14d
	jge	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%r14d, %rbx
	movl	(%r15,%rbx,4), %edi
	callq	_BLOCK_TAG
	movl	%eax, %r12d
	movl	(%r15,%rbx,4), %edi
	callq	_BLOCK_LEN
	movl	%eax, %ebx
	leal	(%rbx,%r14), %eax
	cmpl	%r13d, %eax
	jge	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%r14d
	movq	_BLOCK_TAG_VSDB@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_HDMI_VSDB_MINLEN@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jl	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r14d, %rax
	leaq	(%r15,%rax,4), %rdi
	movq	_HDMI_OUI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HDMI_OUI_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movl	$1, %eax
	jmp	LBB0_9
LBB0_8:
	xorl	%eax, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EXT_TAG,8,3                    ## @EXT_TAG
	.comm	_CEA_TAG_ID,4,2                 ## @CEA_TAG_ID
	.comm	_CEA_DATA_OFF,8,3               ## @CEA_DATA_OFF
	.comm	_CEA_DATA_START,4,2             ## @CEA_DATA_START
	.comm	_BLOCK_TAG_VSDB,4,2             ## @BLOCK_TAG_VSDB
	.comm	_HDMI_VSDB_MINLEN,4,2           ## @HDMI_VSDB_MINLEN
	.comm	_HDMI_OUI,4,2                   ## @HDMI_OUI
	.comm	_HDMI_OUI_LEN,4,2               ## @HDMI_OUI_LEN
	.no_dead_strip	_a10hdmi_detect_hdmi_vsdb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function a10hdmi_detect_hdmi_vsdb
_a10hdmi_detect_hdmi_vsdb:              ; @a10hdmi_detect_hdmi_vsdb
	.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
Lloh0:
	adrp	x8, _EXT_TAG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EXT_TAG@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w8, [x0, x8, lsl #2]
Lloh3:
	adrp	x9, _CEA_TAG_ID@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CEA_TAG_ID@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_8
; %bb.1:
	mov	x19, x0
Lloh6:
	adrp	x8, _CEA_DATA_OFF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CEA_DATA_OFF@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	w22, [x0, x8, lsl #2]
Lloh9:
	adrp	x8, _CEA_DATA_START@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CEA_DATA_START@GOTPAGEOFF]
Lloh11:
	ldr	w27, [x8]
	cmp	w22, w27
	b.le	LBB0_8
; %bb.2:
Lloh12:
	adrp	x23, _BLOCK_TAG_VSDB@GOTPAGE
Lloh13:
	ldr	x23, [x23, _BLOCK_TAG_VSDB@GOTPAGEOFF]
Lloh14:
	adrp	x24, _HDMI_VSDB_MINLEN@GOTPAGE
Lloh15:
	ldr	x24, [x24, _HDMI_VSDB_MINLEN@GOTPAGEOFF]
Lloh16:
	adrp	x25, _HDMI_OUI@GOTPAGE
Lloh17:
	ldr	x25, [x25, _HDMI_OUI@GOTPAGEOFF]
Lloh18:
	adrp	x26, _HDMI_OUI_LEN@GOTPAGE
Lloh19:
	ldr	x26, [x26, _HDMI_OUI_LEN@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w27, w27, w20
	cmp	w27, w22
	b.ge	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sbfiz	x20, x27, #2, #32
	ldr	w0, [x19, x20]
	bl	_BLOCK_TAG
	mov	x21, x0
	ldr	w0, [x19, x20]
	bl	_BLOCK_LEN
	add	w8, w0, w27
	cmp	w8, w22
	b.ge	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x20, x0
	sxtw	x8, w27
	ldr	w9, [x23]
	ldr	w10, [x24]
	add	x27, x8, #1
	cmp	w21, w9
	ccmp	w0, w10, #8, eq
	b.lt	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x0, x19, x27, lsl #2
	ldr	w1, [x25]
	ldr	w2, [x26]
	bl	_memcmp
	cbnz	x0, LBB0_3
; %bb.7:
	mov	w0, #1
	b	LBB0_9
LBB0_8:
	mov	w0, #0
LBB0_9:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EXT_TAG,8,3                    ; @EXT_TAG
	.comm	_CEA_TAG_ID,4,2                 ; @CEA_TAG_ID
	.comm	_CEA_DATA_OFF,8,3               ; @CEA_DATA_OFF
	.comm	_CEA_DATA_START,4,2             ; @CEA_DATA_START
	.comm	_BLOCK_TAG_VSDB,4,2             ; @BLOCK_TAG_VSDB
	.comm	_HDMI_VSDB_MINLEN,4,2           ; @HDMI_VSDB_MINLEN
	.comm	_HDMI_OUI,4,2                   ; @HDMI_OUI
	.comm	_HDMI_OUI_LEN,4,2               ; @HDMI_OUI_LEN
	.no_dead_strip	_a10hdmi_detect_hdmi_vsdb
.subsections_via_symbols
