	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zx_hdmi_infoframe_trans
_zx_hdmi_infoframe_trans:               ## @zx_hdmi_infoframe_trans
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_ZX_HDMI_INFOFRAME_SIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	_TPI_INFO_FSEL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_hdmi_writeb
	movl	(%rbx), %edx
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_hdmi_infoframe_pack
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_7
## %bb.1:
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	je	LBB0_4
## %bb.2:
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	xorl	%ebx, %ebx
	movq	_TPI_INFO_B0@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rsi
	addq	%rbx, %rsi
	movl	(%r13,%rbx,4), %edx
	movq	%r15, %rdi
	callq	_hdmi_writeb
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_3
LBB0_4:
	movq	_TPI_INFO_EN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_TPI_INFO_TRANS_RPT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	%ecx, %edx
	callq	_hdmi_writeb_mask
	movl	(%rbx), %esi
	movq	_TPI_INFO_TRANS_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	%ecx, %edx
	callq	_hdmi_writeb_mask
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_5
LBB0_7:
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_DRM_DEV_ERROR
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.6:
	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	_ZX_HDMI_INFOFRAME_SIZE,4,2     ## @ZX_HDMI_INFOFRAME_SIZE
	.comm	_TPI_INFO_FSEL,8,3              ## @TPI_INFO_FSEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to pack infoframe: %d\n"

	.comm	_TPI_INFO_B0,8,3                ## @TPI_INFO_B0
	.comm	_TPI_INFO_EN,4,2                ## @TPI_INFO_EN
	.comm	_TPI_INFO_TRANS_RPT,4,2         ## @TPI_INFO_TRANS_RPT
	.comm	_TPI_INFO_TRANS_EN,4,2          ## @TPI_INFO_TRANS_EN
	.no_dead_strip	_zx_hdmi_infoframe_trans
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zx_hdmi_infoframe_trans
_zx_hdmi_infoframe_trans:               ; @zx_hdmi_infoframe_trans
	.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	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, #-56]
Lloh3:
	adrp	x22, _ZX_HDMI_INFOFRAME_SIZE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _ZX_HDMI_INFOFRAME_SIZE@GOTPAGEOFF]
	ldr	w8, [x22]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x21, x9, x8
	mov	sp, x21
Lloh7:
	adrp	x8, _TPI_INFO_FSEL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TPI_INFO_FSEL@GOTPAGEOFF]
Lloh9:
	ldr	x1, [x8]
	bl	_hdmi_writeb
	ldr	w2, [x22]
	mov	x0, x20
	mov	x1, x21
	bl	_hdmi_infoframe_pack
	mov	x20, x0
	tbnz	w0, #31, LBB0_5
; %bb.1:
	cbz	w20, LBB0_4
; %bb.2:
	mov	x22, #0
	mov	w23, w20
Lloh10:
	adrp	x24, _TPI_INFO_B0@GOTPAGE
Lloh11:
	ldr	x24, [x24, _TPI_INFO_B0@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	add	x1, x22, x8
	ldr	w2, [x21, x22, lsl #2]
	mov	x0, x19
	bl	_hdmi_writeb
	add	x22, x22, #1
	cmp	x23, x22
	b.ne	LBB0_3
LBB0_4:
Lloh12:
	adrp	x21, _TPI_INFO_EN@GOTPAGE
Lloh13:
	ldr	x21, [x21, _TPI_INFO_EN@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh14:
	adrp	x8, _TPI_INFO_TRANS_RPT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TPI_INFO_TRANS_RPT@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x2
	bl	_hdmi_writeb_mask
	ldr	w1, [x21]
Lloh17:
	adrp	x8, _TPI_INFO_TRANS_EN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _TPI_INFO_TRANS_EN@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x2
	bl	_hdmi_writeb_mask
	b	LBB0_6
LBB0_5:
	ldr	w0, [x19]
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_DRM_DEV_ERROR
LBB0_6:
	ldur	x8, [x29, #-56]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x20
	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_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_ZX_HDMI_INFOFRAME_SIZE,4,2     ; @ZX_HDMI_INFOFRAME_SIZE
	.comm	_TPI_INFO_FSEL,8,3              ; @TPI_INFO_FSEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to pack infoframe: %d\n"

	.comm	_TPI_INFO_B0,8,3                ; @TPI_INFO_B0
	.comm	_TPI_INFO_EN,4,2                ; @TPI_INFO_EN
	.comm	_TPI_INFO_TRANS_RPT,4,2         ; @TPI_INFO_TRANS_RPT
	.comm	_TPI_INFO_TRANS_EN,4,2          ; @TPI_INFO_TRANS_EN
	.no_dead_strip	_zx_hdmi_infoframe_trans
.subsections_via_symbols
