	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_sdvo_get_avi_infoframe
_intel_sdvo_get_avi_infoframe:          ## @intel_sdvo_get_avi_infoframe
	.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, %r13
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_AVI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_HDMI_INFOFRAME_SIZE
	movl	%eax, %ebx
	movl	%eax, %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	cmpl	$0, 16(%r13)
	je	LBB0_9
## %bb.1:
	leaq	8(%r13), %r14
	movq	_SDVO_HBUF_INDEX_AVI_IF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shll	$2, %ebx
	movq	%r12, %rdi
	movq	%r15, %rdx
	movl	%ebx, %ecx
	callq	_intel_sdvo_read_infoframe
	testq	%rax, %rax
	js	LBB0_2
## %bb.4:
	je	LBB0_9
## %bb.5:
	movq	%rax, %rbx
	movq	_HDMI_INFOFRAME_TYPE_AVI@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_intel_hdmi_infoframe_enable
	orl	%eax, (%r13)
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_hdmi_infoframe_unpack
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str(%rip), %rdi
LBB0_3:
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	(%r14), %rsi
	movq	(%r12), %rdx
	cmpq	%rdx, %rsi
	je	LBB0_9
## %bb.8:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	jmp	LBB0_9
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AVI,4,2                        ## @AVI
	.comm	_SDVO_HBUF_INDEX_AVI_IF,4,2     ## @SDVO_HBUF_INDEX_AVI_IF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to read AVI infoframe\n"

	.comm	_HDMI_INFOFRAME_TYPE_AVI,8,3    ## @HDMI_INFOFRAME_TYPE_AVI
L_.str.1:                               ## @.str.1
	.asciz	"Failed to unpack AVI infoframe\n"

L_.str.2:                               ## @.str.2
	.asciz	"Found the wrong infoframe type 0x%x (expected 0x%02x)\n"

	.no_dead_strip	_intel_sdvo_get_avi_infoframe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_sdvo_get_avi_infoframe
_intel_sdvo_get_avi_infoframe:          ; @intel_sdvo_get_avi_infoframe
	.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
	sub	sp, sp, #16
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _AVI@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AVI@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_HDMI_INFOFRAME_SIZE
	mov	w8, w0
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_7
; %bb.1:
Lloh8:
	adrp	x8, _SDVO_HBUF_INDEX_AVI_IF@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SDVO_HBUF_INDEX_AVI_IF@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	lsl	w3, w0, #2
	mov	x0, x21
	mov	x2, x20
	bl	_intel_sdvo_read_infoframe
	tbnz	x0, #63, LBB0_5
; %bb.2:
	mov	x21, x0
	cbz	x0, LBB0_7
; %bb.3:
	add	x22, x19, #8
Lloh11:
	adrp	x23, _HDMI_INFOFRAME_TYPE_AVI@GOTPAGE
Lloh12:
	ldr	x23, [x23, _HDMI_INFOFRAME_TYPE_AVI@GOTPAGEOFF]
	ldr	x0, [x23]
	bl	_intel_hdmi_infoframe_enable
	ldr	w8, [x19]
	orr	w8, w8, w0
	str	w8, [x19]
	mov	x0, x22
	mov	x1, x20
	mov	x2, x21
	bl	_hdmi_infoframe_unpack
	cbz	w0, LBB0_9
; %bb.4:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_5:
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
LBB0_6:
	bl	_DRM_DEBUG_KMS
LBB0_7:
	ldur	x8, [x29, #-56]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.8:
	sub	sp, x29, #48
	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
LBB0_9:
	ldr	x8, [x22]
	ldr	x9, [x23]
	cmp	x8, x9
	b.eq	LBB0_7
; %bb.10:
	stp	x8, x9, [sp, #-16]!
Lloh20:
	adrp	x0, l_.str.2@PAGE
Lloh21:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DRM_DEBUG_KMS
	add	sp, sp, #16
	b	LBB0_7
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_AVI,4,2                        ; @AVI
	.comm	_SDVO_HBUF_INDEX_AVI_IF,4,2     ; @SDVO_HBUF_INDEX_AVI_IF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to read AVI infoframe\n"

	.comm	_HDMI_INFOFRAME_TYPE_AVI,8,3    ; @HDMI_INFOFRAME_TYPE_AVI
l_.str.1:                               ; @.str.1
	.asciz	"Failed to unpack AVI infoframe\n"

l_.str.2:                               ; @.str.2
	.asciz	"Found the wrong infoframe type 0x%x (expected 0x%02x)\n"

	.no_dead_strip	_intel_sdvo_get_avi_infoframe
.subsections_via_symbols
