	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hdmi_audio_infoframe_unpack
_hdmi_audio_infoframe_unpack:           ## @hdmi_audio_infoframe_unpack
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	(%rsi), %eax
	movq	_HDMI_INFOFRAME_TYPE_AUDIO@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_3
## %bb.1:
	movq	%rsi, %rbx
	cmpl	$1, 4(%rsi)
	jne	LBB0_3
## %bb.2:
	movl	8(%rbx), %eax
	movq	_HDMI_AUDIO_INFOFRAME_SIZE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_3
## %bb.4:
	movq	%rdi, %r14
	movq	_AUDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_HDMI_INFOFRAME_SIZE
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_hdmi_infoframe_checksum
	testq	%rax, %rax
	je	LBB0_5
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movq	%r14, %rdi
	callq	_hdmi_audio_infoframe_init
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	_HDMI_INFOFRAME_HEADER_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movl	(%rbx,%rax,4), %ecx
	andl	$7, %ecx
	movl	%ecx, (%r14)
	movl	(%rbx,%rax,4), %ecx
	shrl	$4, %ecx
	andl	$15, %ecx
	movl	%ecx, 4(%r14)
	movl	4(%rbx,%rax,4), %ecx
	andl	$3, %ecx
	movl	%ecx, 8(%r14)
	movl	4(%rbx,%rax,4), %ecx
	shrl	$2, %ecx
	andl	$7, %ecx
	movl	%ecx, 12(%r14)
	movl	8(%rbx,%rax,4), %ecx
	andl	$31, %ecx
	movl	%ecx, 16(%r14)
	movl	12(%rbx,%rax,4), %ecx
	movl	%ecx, 20(%r14)
	movl	16(%rbx,%rax,4), %ecx
	shrl	$3, %ecx
	andl	$15, %ecx
	movl	%ecx, 24(%r14)
	movl	16(%rbx,%rax,4), %eax
	shrl	$7, %eax
	andl	$1, %eax
	movl	%eax, 28(%r14)
	xorl	%eax, %eax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_HDMI_INFOFRAME_TYPE_AUDIO,4,2  ## @HDMI_INFOFRAME_TYPE_AUDIO
	.comm	_HDMI_AUDIO_INFOFRAME_SIZE,4,2  ## @HDMI_AUDIO_INFOFRAME_SIZE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AUDIO,4,2                      ## @AUDIO
	.comm	_HDMI_INFOFRAME_HEADER_SIZE,4,2 ## @HDMI_INFOFRAME_HEADER_SIZE
	.no_dead_strip	_hdmi_audio_infoframe_unpack
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hdmi_audio_infoframe_unpack
_hdmi_audio_infoframe_unpack:           ; @hdmi_audio_infoframe_unpack
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _HDMI_INFOFRAME_TYPE_AUDIO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HDMI_INFOFRAME_TYPE_AUDIO@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.1:
	mov	x20, x1
	ldr	w8, [x1, #4]
	cmp	w8, #1
	b.ne	LBB0_4
; %bb.2:
	ldr	w8, [x20, #8]
Lloh3:
	adrp	x9, _HDMI_AUDIO_INFOFRAME_SIZE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HDMI_AUDIO_INFOFRAME_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.3:
	mov	x19, x0
Lloh6:
	adrp	x8, _AUDIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AUDIO@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_HDMI_INFOFRAME_SIZE
	mov	x1, x0
	mov	x0, x20
	bl	_hdmi_infoframe_checksum
	cbz	x0, LBB0_6
LBB0_4:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	x0, x19
	bl	_hdmi_audio_infoframe_init
	cbnz	w0, LBB0_5
; %bb.7:
Lloh12:
	adrp	x8, _HDMI_INFOFRAME_HEADER_SIZE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HDMI_INFOFRAME_HEADER_SIZE@GOTPAGEOFF]
Lloh14:
	ldrsw	x8, [x8]
	add	x8, x20, x8, lsl #2
	ldr	w9, [x8]
	and	w9, w9, #0x7
	str	w9, [x19]
	ldr	w9, [x8]
	ubfx	w9, w9, #4, #4
	str	w9, [x19, #4]
	ldr	w9, [x8, #4]
	and	w9, w9, #0x3
	str	w9, [x19, #8]
	ldr	w9, [x8, #4]
	ubfx	w9, w9, #2, #3
	str	w9, [x19, #12]
	ldr	w9, [x8, #8]
	and	w9, w9, #0x1f
	str	w9, [x19, #16]
	ldr	w9, [x8, #12]
	str	w9, [x19, #20]
	ldr	w9, [x8, #16]
	ubfx	w9, w9, #3, #4
	str	w9, [x19, #24]
	ldr	w8, [x8, #16]
	ubfx	w8, w8, #7, #1
	str	w8, [x19, #28]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_HDMI_INFOFRAME_TYPE_AUDIO,4,2  ; @HDMI_INFOFRAME_TYPE_AUDIO
	.comm	_HDMI_AUDIO_INFOFRAME_SIZE,4,2  ; @HDMI_AUDIO_INFOFRAME_SIZE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AUDIO,4,2                      ; @AUDIO
	.comm	_HDMI_INFOFRAME_HEADER_SIZE,4,2 ; @HDMI_INFOFRAME_HEADER_SIZE
	.no_dead_strip	_hdmi_audio_infoframe_unpack
.subsections_via_symbols
