	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hdmi_spd_infoframe_pack        ## -- Begin function hdmi_spd_infoframe_pack
	.p2align	4, 0x90
_hdmi_spd_infoframe_pack:               ## @hdmi_spd_infoframe_pack
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_HDMI_INFOFRAME_HEADER_SIZE@GOTPCREL(%rip), %r12
	movq	(%rdi), %rbx
	addq	(%r12), %rbx
	cmpq	%rdx, %rbx
	jbe	LBB0_2
## %bb.1:
	movq	_ENOSPC@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subq	(%rax), %rbx
	jmp	LBB0_3
LBB0_2:
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	%rsi, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	8(%r15), %rax
	movq	%rax, (%r14)
	movq	16(%r15), %rax
	movq	%rax, 8(%r14)
	movq	(%r15), %rax
	movq	%rax, 16(%r14)
	movq	$0, 24(%r14)
	movq	(%r12), %r12
	leaq	(%r14,%r12,8), %rdi
	movl	36(%r15), %esi
	movl	$4, %edx
	callq	_memcpy
	leaq	(%r14,%r12,8), %rdi
	addq	$64, %rdi
	movl	32(%r15), %esi
	movl	$4, %edx
	callq	_memcpy
	movq	24(%r15), %rax
	movq	%rax, 192(%r14,%r12,8)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_hdmi_infoframe_set_checksum
LBB0_3:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HDMI_INFOFRAME_HEADER_SIZE,8,3 ## @HDMI_INFOFRAME_HEADER_SIZE
	.comm	_ENOSPC,8,3                     ## @ENOSPC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hdmi_spd_infoframe_pack        ; -- Begin function hdmi_spd_infoframe_pack
	.p2align	2
_hdmi_spd_infoframe_pack:               ; @hdmi_spd_infoframe_pack
	.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
Lloh0:
	adrp	x22, _HDMI_INFOFRAME_HEADER_SIZE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _HDMI_INFOFRAME_HEADER_SIZE@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	x9, [x0]
	add	x19, x9, x8
	cmp	x19, x2
	b.ls	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	neg	x19, x8
	b	LBB0_3
LBB0_2:
	mov	x20, x1
	mov	x21, x0
	mov	x0, x1
	mov	w1, #0
	bl	_memset
	ldr	x8, [x21, #8]
	str	x8, [x20]
	ldr	x8, [x21, #16]
	str	x8, [x20, #8]
	ldr	x8, [x21]
	stp	x8, xzr, [x20, #16]
	ldr	x8, [x22]
	add	x22, x20, x8, lsl #3
	ldr	w1, [x21, #36]
	mov	x0, x22
	mov	w2, #4
	bl	_memcpy
	add	x0, x22, #64
	ldr	w1, [x21, #32]
	mov	w2, #4
	bl	_memcpy
	ldr	x8, [x21, #24]
	str	x8, [x22, #192]
	mov	x0, x20
	mov	x1, x19
	bl	_hdmi_infoframe_set_checksum
LBB0_3:
	mov	x0, x19
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_HDMI_INFOFRAME_HEADER_SIZE,8,3 ; @HDMI_INFOFRAME_HEADER_SIZE
	.comm	_ENOSPC,8,3                     ; @ENOSPC
.subsections_via_symbols
