	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dce110_update_generic_info_packet
_dce110_update_generic_info_packet:     ## @dce110_update_generic_info_packet
	.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	%rdx, %r13
	movl	%esi, %r14d
	movq	_AFMT_CNTL@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_REG
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%r15), %edi
	movq	_AFMT_AUDIO_CLOCK_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	callq	_REG_UPDATE
LBB0_2:
	movq	_AFMT_VBI_PACKET_CONTROL1@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_REG
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	cmpl	$8, %r14d
	jl	LBB0_5
## %bb.4:
	xorl	%edi, %edi
	callq	_ASSERT
LBB0_5:
	movq	_AFMT_VBI_PACKET_CONTROL@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_AFMT_GENERIC_CONFLICT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	movl	$10, %ecx
	movl	$50, %r8d
	callq	_REG_WAIT
	movl	(%r12), %edi
	movq	_AFMT_GENERIC_CONFLICT_CLR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	callq	_REG_UPDATE
LBB0_6:
	movq	_AFMT_VBI_PACKET_CONTROL@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_REG_READ
	movl	(%r12), %edi
	movq	_AFMT_GENERIC_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edx
	callq	_REG_UPDATE
	movq	_AFMT_GENERIC_HDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_AFMT_GENERIC_HB0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	20(%r13), %ecx
	movq	_AFMT_GENERIC_HB1@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	16(%r13), %r9d
	movq	_AFMT_GENERIC_HB2@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movl	8(%r13), %ebx
	movl	12(%r13), %r11d
	movq	_AFMT_GENERIC_HB3@GOTPCREL(%rip), %rsi
	movl	(%rsi), %eax
	xorl	%esi, %esi
	pushq	%rbx
	pushq	%rax
	pushq	%r11
	pushq	%r10
	callq	_REG_SET_4
	addq	$32, %rsp
	movq	(%r13), %rbx
	movq	_AFMT_GENERIC_0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	callq	_REG_WRITE
	movq	_AFMT_GENERIC_1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%rbx), %esi
	callq	_REG_WRITE
	movq	_AFMT_GENERIC_2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %esi
	callq	_REG_WRITE
	movq	_AFMT_GENERIC_3@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	12(%rbx), %esi
	callq	_REG_WRITE
	movq	_AFMT_GENERIC_4@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%rbx), %esi
	callq	_REG_WRITE
	movq	_AFMT_GENERIC_5@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	20(%rbx), %esi
	callq	_REG_WRITE
	movq	_AFMT_GENERIC_6@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	24(%rbx), %esi
	callq	_REG_WRITE
	movq	_AFMT_GENERIC_7@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	28(%rbx), %esi
	callq	_REG_WRITE
	movl	(%r15), %edi
	callq	_REG
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	(%r12), %edi
	movq	_AFMT_GENERIC0_UPDATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	testl	%r14d, %r14d
	sete	%dl
	movq	_AFMT_GENERIC2_UPDATE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%r8d, %r8d
	cmpl	$2, %r14d
	sete	%r8b
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_REG_UPDATE_2                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AFMT_CNTL,4,2                  ## @AFMT_CNTL
	.comm	_AFMT_AUDIO_CLOCK_EN,4,2        ## @AFMT_AUDIO_CLOCK_EN
	.comm	_AFMT_VBI_PACKET_CONTROL1,4,2   ## @AFMT_VBI_PACKET_CONTROL1
	.comm	_AFMT_VBI_PACKET_CONTROL,4,2    ## @AFMT_VBI_PACKET_CONTROL
	.comm	_AFMT_GENERIC_CONFLICT,4,2      ## @AFMT_GENERIC_CONFLICT
	.comm	_AFMT_GENERIC_CONFLICT_CLR,4,2  ## @AFMT_GENERIC_CONFLICT_CLR
	.comm	_AFMT_GENERIC_INDEX,4,2         ## @AFMT_GENERIC_INDEX
	.comm	_AFMT_GENERIC_HDR,4,2           ## @AFMT_GENERIC_HDR
	.comm	_AFMT_GENERIC_HB0,4,2           ## @AFMT_GENERIC_HB0
	.comm	_AFMT_GENERIC_HB1,4,2           ## @AFMT_GENERIC_HB1
	.comm	_AFMT_GENERIC_HB2,4,2           ## @AFMT_GENERIC_HB2
	.comm	_AFMT_GENERIC_HB3,4,2           ## @AFMT_GENERIC_HB3
	.comm	_AFMT_GENERIC_0,4,2             ## @AFMT_GENERIC_0
	.comm	_AFMT_GENERIC_1,4,2             ## @AFMT_GENERIC_1
	.comm	_AFMT_GENERIC_2,4,2             ## @AFMT_GENERIC_2
	.comm	_AFMT_GENERIC_3,4,2             ## @AFMT_GENERIC_3
	.comm	_AFMT_GENERIC_4,4,2             ## @AFMT_GENERIC_4
	.comm	_AFMT_GENERIC_5,4,2             ## @AFMT_GENERIC_5
	.comm	_AFMT_GENERIC_6,4,2             ## @AFMT_GENERIC_6
	.comm	_AFMT_GENERIC_7,4,2             ## @AFMT_GENERIC_7
	.comm	_AFMT_GENERIC0_UPDATE,4,2       ## @AFMT_GENERIC0_UPDATE
	.comm	_AFMT_GENERIC2_UPDATE,4,2       ## @AFMT_GENERIC2_UPDATE
	.comm	_AFMT_GENERIC0_FRAME_UPDATE,4,2 ## @AFMT_GENERIC0_FRAME_UPDATE
	.comm	_AFMT_GENERIC1_FRAME_UPDATE,4,2 ## @AFMT_GENERIC1_FRAME_UPDATE
	.comm	_AFMT_GENERIC2_FRAME_UPDATE,4,2 ## @AFMT_GENERIC2_FRAME_UPDATE
	.comm	_AFMT_GENERIC3_FRAME_UPDATE,4,2 ## @AFMT_GENERIC3_FRAME_UPDATE
	.comm	_AFMT_GENERIC4_FRAME_UPDATE,4,2 ## @AFMT_GENERIC4_FRAME_UPDATE
	.comm	_AFMT_GENERIC5_FRAME_UPDATE,4,2 ## @AFMT_GENERIC5_FRAME_UPDATE
	.comm	_AFMT_GENERIC6_FRAME_UPDATE,4,2 ## @AFMT_GENERIC6_FRAME_UPDATE
	.comm	_AFMT_GENERIC7_FRAME_UPDATE,4,2 ## @AFMT_GENERIC7_FRAME_UPDATE
	.no_dead_strip	_dce110_update_generic_info_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dce110_update_generic_info_packet
_dce110_update_generic_info_packet:     ; @dce110_update_generic_info_packet
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x2
	mov	x19, x1
Lloh0:
	adrp	x21, _AFMT_CNTL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _AFMT_CNTL@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_REG
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x21]
Lloh2:
	adrp	x8, _AFMT_AUDIO_CLOCK_EN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AFMT_AUDIO_CLOCK_EN@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w2, #1
	bl	_REG_UPDATE
LBB0_2:
Lloh5:
	adrp	x22, _AFMT_VBI_PACKET_CONTROL1@GOTPAGE
Lloh6:
	ldr	x22, [x22, _AFMT_VBI_PACKET_CONTROL1@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_REG
Lloh7:
	adrp	x21, _AFMT_VBI_PACKET_CONTROL@GOTPAGE
Lloh8:
	ldr	x21, [x21, _AFMT_VBI_PACKET_CONTROL@GOTPAGEOFF]
	cbz	x0, LBB0_6
; %bb.3:
	cmp	w19, #8
	b.lt	LBB0_5
; %bb.4:
	mov	w0, #0
	bl	_ASSERT
LBB0_5:
	ldr	w0, [x21]
Lloh9:
	adrp	x8, _AFMT_GENERIC_CONFLICT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AFMT_GENERIC_CONFLICT@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	w2, #0
	mov	w3, #10
	mov	w4, #50
	bl	_REG_WAIT
	ldr	w0, [x21]
Lloh12:
	adrp	x8, _AFMT_GENERIC_CONFLICT_CLR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AFMT_GENERIC_CONFLICT_CLR@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	w2, #1
	bl	_REG_UPDATE
LBB0_6:
	ldr	w0, [x21]
	bl	_REG_READ
	ldr	w0, [x21]
Lloh15:
	adrp	x8, _AFMT_GENERIC_INDEX@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AFMT_GENERIC_INDEX@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_REG_UPDATE
Lloh18:
	adrp	x8, _AFMT_GENERIC_HDR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AFMT_GENERIC_HDR@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x8, _AFMT_GENERIC_HB0@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AFMT_GENERIC_HB0@GOTPAGEOFF]
Lloh23:
	adrp	x9, _AFMT_GENERIC_HB1@GOTPAGE
Lloh24:
	ldr	x9, [x9, _AFMT_GENERIC_HB1@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
Lloh26:
	ldr	w4, [x9]
	ldp	w5, w3, [x20, #16]
Lloh27:
	adrp	x8, _AFMT_GENERIC_HB2@GOTPAGE
Lloh28:
	ldr	x8, [x8, _AFMT_GENERIC_HB2@GOTPAGEOFF]
Lloh29:
	ldr	w6, [x8]
Lloh30:
	adrp	x8, _AFMT_GENERIC_HB3@GOTPAGE
Lloh31:
	ldr	x8, [x8, _AFMT_GENERIC_HB3@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	ldp	w9, w7, [x20, #8]
	stp	w8, w9, [sp]
	mov	w1, #0
	bl	_REG_SET_4
	ldr	x20, [x20]
Lloh33:
	adrp	x8, _AFMT_GENERIC_0@GOTPAGE
Lloh34:
	ldr	x8, [x8, _AFMT_GENERIC_0@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	ldr	w1, [x20]
	bl	_REG_WRITE
Lloh36:
	adrp	x8, _AFMT_GENERIC_1@GOTPAGE
Lloh37:
	ldr	x8, [x8, _AFMT_GENERIC_1@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
	ldr	w1, [x20, #4]
	bl	_REG_WRITE
Lloh39:
	adrp	x8, _AFMT_GENERIC_2@GOTPAGE
Lloh40:
	ldr	x8, [x8, _AFMT_GENERIC_2@GOTPAGEOFF]
Lloh41:
	ldr	w0, [x8]
	ldr	w1, [x20, #8]
	bl	_REG_WRITE
Lloh42:
	adrp	x8, _AFMT_GENERIC_3@GOTPAGE
Lloh43:
	ldr	x8, [x8, _AFMT_GENERIC_3@GOTPAGEOFF]
Lloh44:
	ldr	w0, [x8]
	ldr	w1, [x20, #12]
	bl	_REG_WRITE
Lloh45:
	adrp	x8, _AFMT_GENERIC_4@GOTPAGE
Lloh46:
	ldr	x8, [x8, _AFMT_GENERIC_4@GOTPAGEOFF]
Lloh47:
	ldr	w0, [x8]
	ldr	w1, [x20, #16]
	bl	_REG_WRITE
Lloh48:
	adrp	x8, _AFMT_GENERIC_5@GOTPAGE
Lloh49:
	ldr	x8, [x8, _AFMT_GENERIC_5@GOTPAGEOFF]
Lloh50:
	ldr	w0, [x8]
	ldr	w1, [x20, #20]
	bl	_REG_WRITE
Lloh51:
	adrp	x8, _AFMT_GENERIC_6@GOTPAGE
Lloh52:
	ldr	x8, [x8, _AFMT_GENERIC_6@GOTPAGEOFF]
Lloh53:
	ldr	w0, [x8]
	ldr	w1, [x20, #24]
	bl	_REG_WRITE
Lloh54:
	adrp	x8, _AFMT_GENERIC_7@GOTPAGE
Lloh55:
	ldr	x8, [x8, _AFMT_GENERIC_7@GOTPAGEOFF]
Lloh56:
	ldr	w0, [x8]
	ldr	w1, [x20, #28]
	bl	_REG_WRITE
	ldr	w0, [x22]
	bl	_REG
	cbz	x0, LBB0_8
; %bb.7:
	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
	add	sp, sp, #64
	ret
LBB0_8:
	ldr	w0, [x21]
Lloh57:
	adrp	x8, _AFMT_GENERIC0_UPDATE@GOTPAGE
Lloh58:
	ldr	x8, [x8, _AFMT_GENERIC0_UPDATE@GOTPAGEOFF]
Lloh59:
	ldr	w1, [x8]
	cmp	w19, #0
	cset	w2, eq
Lloh60:
	adrp	x8, _AFMT_GENERIC2_UPDATE@GOTPAGE
Lloh61:
	ldr	x8, [x8, _AFMT_GENERIC2_UPDATE@GOTPAGEOFF]
Lloh62:
	ldr	w3, [x8]
	cmp	w19, #2
	cset	w4, eq
	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
	add	sp, sp, #64
	b	_REG_UPDATE_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh25
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.cfi_endproc
                                        ; -- End function
	.comm	_AFMT_CNTL,4,2                  ; @AFMT_CNTL
	.comm	_AFMT_AUDIO_CLOCK_EN,4,2        ; @AFMT_AUDIO_CLOCK_EN
	.comm	_AFMT_VBI_PACKET_CONTROL1,4,2   ; @AFMT_VBI_PACKET_CONTROL1
	.comm	_AFMT_VBI_PACKET_CONTROL,4,2    ; @AFMT_VBI_PACKET_CONTROL
	.comm	_AFMT_GENERIC_CONFLICT,4,2      ; @AFMT_GENERIC_CONFLICT
	.comm	_AFMT_GENERIC_CONFLICT_CLR,4,2  ; @AFMT_GENERIC_CONFLICT_CLR
	.comm	_AFMT_GENERIC_INDEX,4,2         ; @AFMT_GENERIC_INDEX
	.comm	_AFMT_GENERIC_HDR,4,2           ; @AFMT_GENERIC_HDR
	.comm	_AFMT_GENERIC_HB0,4,2           ; @AFMT_GENERIC_HB0
	.comm	_AFMT_GENERIC_HB1,4,2           ; @AFMT_GENERIC_HB1
	.comm	_AFMT_GENERIC_HB2,4,2           ; @AFMT_GENERIC_HB2
	.comm	_AFMT_GENERIC_HB3,4,2           ; @AFMT_GENERIC_HB3
	.comm	_AFMT_GENERIC_0,4,2             ; @AFMT_GENERIC_0
	.comm	_AFMT_GENERIC_1,4,2             ; @AFMT_GENERIC_1
	.comm	_AFMT_GENERIC_2,4,2             ; @AFMT_GENERIC_2
	.comm	_AFMT_GENERIC_3,4,2             ; @AFMT_GENERIC_3
	.comm	_AFMT_GENERIC_4,4,2             ; @AFMT_GENERIC_4
	.comm	_AFMT_GENERIC_5,4,2             ; @AFMT_GENERIC_5
	.comm	_AFMT_GENERIC_6,4,2             ; @AFMT_GENERIC_6
	.comm	_AFMT_GENERIC_7,4,2             ; @AFMT_GENERIC_7
	.comm	_AFMT_GENERIC0_UPDATE,4,2       ; @AFMT_GENERIC0_UPDATE
	.comm	_AFMT_GENERIC2_UPDATE,4,2       ; @AFMT_GENERIC2_UPDATE
	.comm	_AFMT_GENERIC0_FRAME_UPDATE,4,2 ; @AFMT_GENERIC0_FRAME_UPDATE
	.comm	_AFMT_GENERIC1_FRAME_UPDATE,4,2 ; @AFMT_GENERIC1_FRAME_UPDATE
	.comm	_AFMT_GENERIC2_FRAME_UPDATE,4,2 ; @AFMT_GENERIC2_FRAME_UPDATE
	.comm	_AFMT_GENERIC3_FRAME_UPDATE,4,2 ; @AFMT_GENERIC3_FRAME_UPDATE
	.comm	_AFMT_GENERIC4_FRAME_UPDATE,4,2 ; @AFMT_GENERIC4_FRAME_UPDATE
	.comm	_AFMT_GENERIC5_FRAME_UPDATE,4,2 ; @AFMT_GENERIC5_FRAME_UPDATE
	.comm	_AFMT_GENERIC6_FRAME_UPDATE,4,2 ; @AFMT_GENERIC6_FRAME_UPDATE
	.comm	_AFMT_GENERIC7_FRAME_UPDATE,4,2 ; @AFMT_GENERIC7_FRAME_UPDATE
	.no_dead_strip	_dce110_update_generic_info_packet
.subsections_via_symbols
