	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function anx78xx_send_video_infoframe
_anx78xx_send_video_infoframe:          ## @anx78xx_send_video_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, %r15
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_HDMI_INFOFRAME_HEADER_SIZE@GOTPCREL(%rip), %rax
	movq	_HDMI_AVI_INFOFRAME_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	addl	(%rax), %ebx
	leaq	(,%rbx,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	shll	$2, %ebx
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_hdmi_avi_infoframe_pack
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	(%r14), %rax
	movq	_I2C_IDX_TX_P0@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	movq	_SP_PACKET_SEND_CTRL_REG@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_SP_AVI_IF_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_anx78xx_clear_bits
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	movq	(%r14), %rax
	movq	_I2C_IDX_TX_P2@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	movq	_SP_INFOFRAME_AVI_DB1_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %ecx
	movq	%r12, %rdx
	callq	_regmap_bulk_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	movq	(%r14), %rax
	movq	_I2C_IDX_TX_P0@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	movl	(%r13), %esi
	movq	_SP_AVI_IF_UD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_anx78xx_set_bits
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movq	(%r14), %rax
	movq	_I2C_IDX_TX_P0@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	movl	(%r13), %esi
	movq	_SP_AVI_IF_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_anx78xx_set_bits
	movl	%eax, %ebx
	jmp	LBB0_6
LBB0_1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_DRM_ERROR
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_HDMI_INFOFRAME_HEADER_SIZE,4,2 ## @HDMI_INFOFRAME_HEADER_SIZE
	.comm	_HDMI_AVI_INFOFRAME_SIZE,4,2    ## @HDMI_AVI_INFOFRAME_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to pack AVI infoframe: %d\n"

	.comm	_I2C_IDX_TX_P0,8,3              ## @I2C_IDX_TX_P0
	.comm	_SP_PACKET_SEND_CTRL_REG,4,2    ## @SP_PACKET_SEND_CTRL_REG
	.comm	_SP_AVI_IF_EN,4,2               ## @SP_AVI_IF_EN
	.comm	_I2C_IDX_TX_P2,8,3              ## @I2C_IDX_TX_P2
	.comm	_SP_INFOFRAME_AVI_DB1_REG,4,2   ## @SP_INFOFRAME_AVI_DB1_REG
	.comm	_SP_AVI_IF_UD,4,2               ## @SP_AVI_IF_UD
	.no_dead_strip	_anx78xx_send_video_infoframe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function anx78xx_send_video_infoframe
_anx78xx_send_video_infoframe:          ; @anx78xx_send_video_infoframe
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	sub	sp, sp, #16
	mov	x20, 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, #-72]
Lloh3:
	adrp	x8, _HDMI_INFOFRAME_HEADER_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HDMI_INFOFRAME_HEADER_SIZE@GOTPAGEOFF]
Lloh5:
	adrp	x9, _HDMI_AVI_INFOFRAME_SIZE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _HDMI_AVI_INFOFRAME_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	ldr	w9, [x9]
	add	w8, w9, w8
	lsl	x9, x8, #2
	add	x10, x9, #15
	and	x12, x10, #0x7fffffff0
Lloh9:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh10:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x21, x9, x12
	mov	sp, x21
	lsl	w2, w8, #2
	mov	x0, x1
	mov	x1, x21
	bl	_hdmi_avi_infoframe_pack
	tbnz	w0, #31, LBB0_5
; %bb.1:
	ldr	x8, [x19]
Lloh11:
	adrp	x23, _I2C_IDX_TX_P0@GOTPAGE
Lloh12:
	ldr	x23, [x23, _I2C_IDX_TX_P0@GOTPAGEOFF]
	ldr	x9, [x23]
	ldr	w0, [x8, x9, lsl #2]
Lloh13:
	adrp	x24, _SP_PACKET_SEND_CTRL_REG@GOTPAGE
Lloh14:
	ldr	x24, [x24, _SP_PACKET_SEND_CTRL_REG@GOTPAGEOFF]
	ldr	w1, [x24]
Lloh15:
	adrp	x25, _SP_AVI_IF_EN@GOTPAGE
Lloh16:
	ldr	x25, [x25, _SP_AVI_IF_EN@GOTPAGEOFF]
	ldr	w2, [x25]
	bl	_anx78xx_clear_bits
	mov	x22, x0
	cbnz	w0, LBB0_6
; %bb.2:
	ldr	x8, [x19]
Lloh17:
	adrp	x9, _I2C_IDX_TX_P2@GOTPAGE
Lloh18:
	ldr	x9, [x9, _I2C_IDX_TX_P2@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	ldr	w0, [x8, x9, lsl #2]
Lloh20:
	adrp	x8, _SP_INFOFRAME_AVI_DB1_REG@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SP_INFOFRAME_AVI_DB1_REG@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	ldr	w3, [x20]
	mov	x2, x21
	bl	_regmap_bulk_write
	mov	x22, x0
	cbnz	w0, LBB0_6
; %bb.3:
	ldr	x8, [x19]
	ldr	x9, [x23]
	ldr	w0, [x8, x9, lsl #2]
	ldr	w1, [x24]
Lloh23:
	adrp	x8, _SP_AVI_IF_UD@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SP_AVI_IF_UD@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	bl	_anx78xx_set_bits
	mov	x22, x0
	cbnz	w0, LBB0_6
; %bb.4:
	ldr	x8, [x19]
	ldr	x9, [x23]
	ldr	w0, [x8, x9, lsl #2]
	ldr	w1, [x24]
	ldr	w2, [x25]
	bl	_anx78xx_set_bits
	mov	x22, x0
	b	LBB0_6
LBB0_5:
	mov	x22, x0
Lloh26:
	adrp	x0, l_.str@PAGE
Lloh27:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	bl	_DRM_ERROR
LBB0_6:
	ldur	x8, [x29, #-72]
Lloh28:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh29:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x22
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_HDMI_INFOFRAME_HEADER_SIZE,4,2 ; @HDMI_INFOFRAME_HEADER_SIZE
	.comm	_HDMI_AVI_INFOFRAME_SIZE,4,2    ; @HDMI_AVI_INFOFRAME_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to pack AVI infoframe: %d\n"

	.comm	_I2C_IDX_TX_P0,8,3              ; @I2C_IDX_TX_P0
	.comm	_SP_PACKET_SEND_CTRL_REG,4,2    ; @SP_PACKET_SEND_CTRL_REG
	.comm	_SP_AVI_IF_EN,4,2               ; @SP_AVI_IF_EN
	.comm	_I2C_IDX_TX_P2,8,3              ; @I2C_IDX_TX_P2
	.comm	_SP_INFOFRAME_AVI_DB1_REG,4,2   ; @SP_INFOFRAME_AVI_DB1_REG
	.comm	_SP_AVI_IF_UD,4,2               ; @SP_AVI_IF_UD
	.no_dead_strip	_anx78xx_send_video_infoframe
.subsections_via_symbols
