	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hdmi_vendor_any_infoframe_unpack
_hdmi_vendor_any_infoframe_unpack:      ## @hdmi_vendor_any_infoframe_unpack
	.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
	movl	(%rsi), %eax
	movq	_HDMI_INFOFRAME_TYPE_VENDOR@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_15
## %bb.1:
	movq	%rsi, %rbx
	cmpl	$1, 4(%rsi)
	jne	LBB0_15
## %bb.2:
	movl	8(%rbx), %r15d
	leal	-5(%r15), %eax
	cmpl	$2, %eax
	jae	LBB0_15
## %bb.3:
	movq	%rdi, %r14
	movq	_HDMI_INFOFRAME_HEADER_SIZE@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	addq	%r15, %rsi
	movq	%rbx, %rdi
	callq	_hdmi_infoframe_checksum
	testq	%rax, %rax
	jne	LBB0_15
## %bb.4:
	movq	(%r12), %r12
	cmpl	$3, (%rbx,%r12,4)
	jne	LBB0_15
## %bb.5:
	cmpl	$12, 4(%rbx,%r12,4)
	jne	LBB0_15
## %bb.6:
	cmpl	$0, 8(%rbx,%r12,4)
	jne	LBB0_15
## %bb.7:
	movl	12(%rbx,%r12,4), %r13d
	cmpl	$96, %r13d
	jl	LBB0_8
LBB0_15:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r14, %rdi
	callq	_hdmi_vendor_infoframe_init
	testl	%eax, %eax
	jne	LBB0_16
## %bb.9:
	sarl	$5, %r13d
	movq	%r15, (%r14)
	xorl	%eax, %eax
	cmpl	$2, %r13d
	je	LBB0_12
## %bb.10:
	cmpl	$1, %r13d
	jne	LBB0_16
## %bb.11:
	movl	16(%rbx,%r12,4), %ecx
	movl	%ecx, 8(%r14)
	jmp	LBB0_16
LBB0_12:
	movl	16(%rbx,%r12,4), %ecx
	sarl	$4, %ecx
	movl	%ecx, 12(%r14)
	movq	_HDMI_3D_STRUCTURE_SIDE_BY_SIDE_HALF@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jl	LBB0_16
## %bb.13:
	cmpl	$6, %r15d
	jne	LBB0_15
## %bb.14:
	movl	20(%rbx,%r12,4), %ecx
	sarl	$4, %ecx
	movl	%ecx, 16(%r14)
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_HDMI_INFOFRAME_TYPE_VENDOR,4,2 ## @HDMI_INFOFRAME_TYPE_VENDOR
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_HDMI_INFOFRAME_HEADER_SIZE,8,3 ## @HDMI_INFOFRAME_HEADER_SIZE
	.comm	_HDMI_3D_STRUCTURE_SIDE_BY_SIDE_HALF,4,2 ## @HDMI_3D_STRUCTURE_SIDE_BY_SIDE_HALF
	.no_dead_strip	_hdmi_vendor_any_infoframe_unpack
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hdmi_vendor_any_infoframe_unpack
_hdmi_vendor_any_infoframe_unpack:      ; @hdmi_vendor_any_infoframe_unpack
	.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
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _HDMI_INFOFRAME_TYPE_VENDOR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HDMI_INFOFRAME_TYPE_VENDOR@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_8
; %bb.1:
	mov	x20, x1
	ldr	w8, [x1, #4]
	cmp	w8, #1
	b.ne	LBB0_8
; %bb.2:
	ldr	w21, [x20, #8]
	sub	w8, w21, #5
	cmp	w8, #2
	b.hs	LBB0_8
; %bb.3:
	mov	x19, x0
Lloh3:
	adrp	x22, _HDMI_INFOFRAME_HEADER_SIZE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _HDMI_INFOFRAME_HEADER_SIZE@GOTPAGEOFF]
	ldr	x8, [x22]
	add	x1, x8, x21
	mov	x0, x20
	bl	_hdmi_infoframe_checksum
	cbnz	x0, LBB0_8
; %bb.4:
	ldr	x8, [x22]
	add	x20, x20, x8, lsl #2
	ldr	w8, [x20]
	cmp	w8, #3
	b.ne	LBB0_8
; %bb.5:
	ldr	w8, [x20, #4]
	cmp	w8, #12
	b.ne	LBB0_8
; %bb.6:
	ldr	w8, [x20, #8]
	cbnz	w8, LBB0_8
; %bb.7:
	ldr	w22, [x20, #12]
	cmp	w22, #96
	b.lt	LBB0_10
LBB0_8:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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
LBB0_10:
	mov	x0, x19
	bl	_hdmi_vendor_infoframe_init
	cbnz	w0, LBB0_9
; %bb.11:
	asr	w8, w22, #5
	str	x21, [x19]
	cmp	w8, #2
	b.eq	LBB0_14
; %bb.12:
	cmp	w8, #1
	b.ne	LBB0_15
; %bb.13:
	mov	w0, #0
	ldr	w8, [x20, #16]
	str	w8, [x19, #8]
	b	LBB0_9
LBB0_14:
	ldr	w8, [x20, #16]
	asr	w8, w8, #4
	str	w8, [x19, #12]
Lloh8:
	adrp	x9, _HDMI_3D_STRUCTURE_SIDE_BY_SIDE_HALF@GOTPAGE
Lloh9:
	ldr	x9, [x9, _HDMI_3D_STRUCTURE_SIDE_BY_SIDE_HALF@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_16
LBB0_15:
	mov	w0, #0
	b	LBB0_9
LBB0_16:
	cmp	w21, #6
	b.ne	LBB0_8
; %bb.17:
	mov	w0, #0
	ldr	w8, [x20, #20]
	asr	w8, w8, #4
	str	w8, [x19, #16]
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_HDMI_INFOFRAME_TYPE_VENDOR,4,2 ; @HDMI_INFOFRAME_TYPE_VENDOR
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_HDMI_INFOFRAME_HEADER_SIZE,8,3 ; @HDMI_INFOFRAME_HEADER_SIZE
	.comm	_HDMI_3D_STRUCTURE_SIDE_BY_SIDE_HALF,4,2 ; @HDMI_3D_STRUCTURE_SIDE_BY_SIDE_HALF
	.no_dead_strip	_hdmi_vendor_any_infoframe_unpack
.subsections_via_symbols
