	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hdmi_config_vendor_specific_infoframe
_hdmi_config_vendor_specific_infoframe: ## @hdmi_config_vendor_specific_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	%r12
	pushq	%rbx
	subq	$64, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rdx
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	leaq	4(%rdi), %rsi
	leaq	-88(%rbp), %rdi
	callq	_drm_hdmi_vendor_infoframe_from_display_mode
	testq	%rax, %rax
	js	LBB0_6
## %bb.1:
	leaq	-88(%rbp), %rdi
	leaq	-80(%rbp), %rsi
	movl	$40, %edx
	callq	_hdmi_vendor_infoframe_pack
	testq	%rax, %rax
	js	LBB0_2
## %bb.3:
	movq	_HDMI_FC_DATAUTO0@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	_HDMI_FC_DATAUTO0_VSD_OFFSET@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	movq	_HDMI_FC_DATAUTO0_VSD_MASK@GOTPCREL(%rip), %r12
	movl	(%r12), %r8d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_hdmi_mask_writeb
	movl	-72(%rbp), %esi
	movq	_HDMI_FC_VSDSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_hdmi_writeb
	movl	-64(%rbp), %esi
	movq	_HDMI_FC_VSDIEEEID0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_hdmi_writeb
	movl	-60(%rbp), %esi
	movq	_HDMI_FC_VSDIEEEID1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_hdmi_writeb
	movl	-56(%rbp), %esi
	movq	_HDMI_FC_VSDIEEEID2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_hdmi_writeb
	movl	-52(%rbp), %esi
	movq	_HDMI_FC_VSDPAYLOAD0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_hdmi_writeb
	movl	-48(%rbp), %esi
	movq	_HDMI_FC_VSDPAYLOAD1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_hdmi_writeb
	movq	-88(%rbp), %rax
	movq	_HDMI_3D_STRUCTURE_SIDE_BY_SIDE_HALF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_5
## %bb.4:
	movl	-44(%rbp), %esi
	movq	_HDMI_FC_VSDPAYLOAD2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_hdmi_writeb
LBB0_5:
	movq	_HDMI_FC_DATAUTO1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_hdmi_writeb
	movq	_HDMI_FC_DATAUTO2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$17, %esi
	callq	_hdmi_writeb
	movl	(%r14), %edx
	movl	(%r15), %ecx
	movl	(%r12), %r8d
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_hdmi_mask_writeb
	jmp	LBB0_6
LBB0_2:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdx
	callq	_dev_err
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	addq	$64, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to pack vendor infoframe: %zd\n"

	.comm	_HDMI_FC_DATAUTO0,4,2           ## @HDMI_FC_DATAUTO0
	.comm	_HDMI_FC_DATAUTO0_VSD_OFFSET,4,2 ## @HDMI_FC_DATAUTO0_VSD_OFFSET
	.comm	_HDMI_FC_DATAUTO0_VSD_MASK,4,2  ## @HDMI_FC_DATAUTO0_VSD_MASK
	.comm	_HDMI_FC_VSDSIZE,4,2            ## @HDMI_FC_VSDSIZE
	.comm	_HDMI_FC_VSDIEEEID0,4,2         ## @HDMI_FC_VSDIEEEID0
	.comm	_HDMI_FC_VSDIEEEID1,4,2         ## @HDMI_FC_VSDIEEEID1
	.comm	_HDMI_FC_VSDIEEEID2,4,2         ## @HDMI_FC_VSDIEEEID2
	.comm	_HDMI_FC_VSDPAYLOAD0,4,2        ## @HDMI_FC_VSDPAYLOAD0
	.comm	_HDMI_FC_VSDPAYLOAD1,4,2        ## @HDMI_FC_VSDPAYLOAD1
	.comm	_HDMI_3D_STRUCTURE_SIDE_BY_SIDE_HALF,8,3 ## @HDMI_3D_STRUCTURE_SIDE_BY_SIDE_HALF
	.comm	_HDMI_FC_VSDPAYLOAD2,4,2        ## @HDMI_FC_VSDPAYLOAD2
	.comm	_HDMI_FC_DATAUTO1,4,2           ## @HDMI_FC_DATAUTO1
	.comm	_HDMI_FC_DATAUTO2,4,2           ## @HDMI_FC_DATAUTO2
	.no_dead_strip	_hdmi_config_vendor_specific_infoframe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hdmi_config_vendor_specific_infoframe
_hdmi_config_vendor_specific_infoframe: ; @hdmi_config_vendor_specific_infoframe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x2, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	add	x1, x0, #4
	add	x0, sp, #8
	bl	_drm_hdmi_vendor_infoframe_from_display_mode
	tbnz	x0, #63, LBB0_6
; %bb.1:
	add	x0, sp, #8
	add	x1, sp, #16
	mov	w2, #40
	bl	_hdmi_vendor_infoframe_pack
	tbnz	x0, #63, LBB0_5
; %bb.2:
Lloh3:
	adrp	x20, _HDMI_FC_DATAUTO0@GOTPAGE
Lloh4:
	ldr	x20, [x20, _HDMI_FC_DATAUTO0@GOTPAGEOFF]
	ldr	w2, [x20]
Lloh5:
	adrp	x21, _HDMI_FC_DATAUTO0_VSD_OFFSET@GOTPAGE
Lloh6:
	ldr	x21, [x21, _HDMI_FC_DATAUTO0_VSD_OFFSET@GOTPAGEOFF]
	ldr	w3, [x21]
Lloh7:
	adrp	x22, _HDMI_FC_DATAUTO0_VSD_MASK@GOTPAGE
Lloh8:
	ldr	x22, [x22, _HDMI_FC_DATAUTO0_VSD_MASK@GOTPAGEOFF]
	ldr	w4, [x22]
	mov	x0, x19
	mov	w1, #0
	bl	_hdmi_mask_writeb
	ldr	w1, [sp, #24]
Lloh9:
	adrp	x8, _HDMI_FC_VSDSIZE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HDMI_FC_VSDSIZE@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_hdmi_writeb
	ldr	w1, [sp, #32]
Lloh12:
	adrp	x8, _HDMI_FC_VSDIEEEID0@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HDMI_FC_VSDIEEEID0@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_hdmi_writeb
	ldr	w1, [sp, #36]
Lloh15:
	adrp	x8, _HDMI_FC_VSDIEEEID1@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HDMI_FC_VSDIEEEID1@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_hdmi_writeb
	ldr	w1, [sp, #40]
Lloh18:
	adrp	x8, _HDMI_FC_VSDIEEEID2@GOTPAGE
Lloh19:
	ldr	x8, [x8, _HDMI_FC_VSDIEEEID2@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_hdmi_writeb
	ldr	w1, [sp, #44]
Lloh21:
	adrp	x8, _HDMI_FC_VSDPAYLOAD0@GOTPAGE
Lloh22:
	ldr	x8, [x8, _HDMI_FC_VSDPAYLOAD0@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_hdmi_writeb
	ldr	w1, [sp, #48]
Lloh24:
	adrp	x8, _HDMI_FC_VSDPAYLOAD1@GOTPAGE
Lloh25:
	ldr	x8, [x8, _HDMI_FC_VSDPAYLOAD1@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_hdmi_writeb
	ldr	x8, [sp, #8]
Lloh27:
	adrp	x9, _HDMI_3D_STRUCTURE_SIDE_BY_SIDE_HALF@GOTPAGE
Lloh28:
	ldr	x9, [x9, _HDMI_3D_STRUCTURE_SIDE_BY_SIDE_HALF@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_4
; %bb.3:
	ldr	w1, [sp, #52]
Lloh30:
	adrp	x8, _HDMI_FC_VSDPAYLOAD2@GOTPAGE
Lloh31:
	ldr	x8, [x8, _HDMI_FC_VSDPAYLOAD2@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_hdmi_writeb
LBB0_4:
Lloh33:
	adrp	x8, _HDMI_FC_DATAUTO1@GOTPAGE
Lloh34:
	ldr	x8, [x8, _HDMI_FC_DATAUTO1@GOTPAGEOFF]
Lloh35:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #1
	bl	_hdmi_writeb
Lloh36:
	adrp	x8, _HDMI_FC_DATAUTO2@GOTPAGE
Lloh37:
	ldr	x8, [x8, _HDMI_FC_DATAUTO2@GOTPAGEOFF]
Lloh38:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #17
	bl	_hdmi_writeb
	ldr	w2, [x20]
	ldr	w3, [x21]
	ldr	w4, [x22]
	mov	x0, x19
	mov	w1, #1
	bl	_hdmi_mask_writeb
	b	LBB0_6
LBB0_5:
	mov	x2, x0
	ldr	w0, [x19]
Lloh39:
	adrp	x1, l_.str@PAGE
Lloh40:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_6:
	ldur	x8, [x29, #-40]
Lloh41:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh42:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh43:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to pack vendor infoframe: %zd\n"

	.comm	_HDMI_FC_DATAUTO0,4,2           ; @HDMI_FC_DATAUTO0
	.comm	_HDMI_FC_DATAUTO0_VSD_OFFSET,4,2 ; @HDMI_FC_DATAUTO0_VSD_OFFSET
	.comm	_HDMI_FC_DATAUTO0_VSD_MASK,4,2  ; @HDMI_FC_DATAUTO0_VSD_MASK
	.comm	_HDMI_FC_VSDSIZE,4,2            ; @HDMI_FC_VSDSIZE
	.comm	_HDMI_FC_VSDIEEEID0,4,2         ; @HDMI_FC_VSDIEEEID0
	.comm	_HDMI_FC_VSDIEEEID1,4,2         ; @HDMI_FC_VSDIEEEID1
	.comm	_HDMI_FC_VSDIEEEID2,4,2         ; @HDMI_FC_VSDIEEEID2
	.comm	_HDMI_FC_VSDPAYLOAD0,4,2        ; @HDMI_FC_VSDPAYLOAD0
	.comm	_HDMI_FC_VSDPAYLOAD1,4,2        ; @HDMI_FC_VSDPAYLOAD1
	.comm	_HDMI_3D_STRUCTURE_SIDE_BY_SIDE_HALF,8,3 ; @HDMI_3D_STRUCTURE_SIDE_BY_SIDE_HALF
	.comm	_HDMI_FC_VSDPAYLOAD2,4,2        ; @HDMI_FC_VSDPAYLOAD2
	.comm	_HDMI_FC_DATAUTO1,4,2           ; @HDMI_FC_DATAUTO1
	.comm	_HDMI_FC_DATAUTO2,4,2           ; @HDMI_FC_DATAUTO2
	.no_dead_strip	_hdmi_config_vendor_specific_infoframe
.subsections_via_symbols
