	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_enc1_update_generic_info_packet ## -- Begin function enc1_update_generic_info_packet
	.p2align	4, 0x90
_enc1_update_generic_info_packet:       ## @enc1_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movl	%esi, %r14d
	movq	_AFMT_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_AFMT_AUDIO_CLOCK_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	callq	_REG_UPDATE
	cmpl	$8, %r14d
	jl	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	callq	_ASSERT
LBB0_2:
	movq	_AFMT_VBI_PACKET_CONTROL@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_AFMT_GENERIC_CONFLICT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	movl	$10, %ecx
	movl	$50, %r8d
	callq	_REG_WAIT
	movl	(%r15), %edi
	movq	_AFMT_GENERIC_CONFLICT_CLR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	callq	_REG_UPDATE
	movl	(%r15), %edi
	callq	_REG_READ
	movl	(%r15), %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(%r12), %ecx
	movq	_AFMT_GENERIC_HB1@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	16(%r12), %r9d
	movq	_AFMT_GENERIC_HB2@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movl	8(%r12), %eax
	movl	12(%r12), %r11d
	movq	_AFMT_GENERIC_HB3@GOTPCREL(%rip), %rsi
	movl	(%rsi), %ebx
	xorl	%esi, %esi
	pushq	%rax
	pushq	%rbx
	pushq	%r11
	pushq	%r10
	callq	_REG_SET_4
	addq	$32, %rsp
	movq	(%r12), %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
	cmpl	$7, %r14d
	ja	LBB0_3
## %bb.4:
	movslq	%r14d, %rax
	leaq	l_switch.table.enc1_update_generic_info_packet(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movq	_AFMT_VBI_PACKET_CONTROL1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	(%rax), %esi
	movl	$1, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_REG_UPDATE                     ## TAILCALL
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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_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_VBI_PACKET_CONTROL1,4,2   ## @AFMT_VBI_PACKET_CONTROL1
	.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
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.enc1_update_generic_info_packet
l_switch.table.enc1_update_generic_info_packet:
	.quad	_AFMT_GENERIC0_FRAME_UPDATE
	.quad	_AFMT_GENERIC1_FRAME_UPDATE
	.quad	_AFMT_GENERIC2_FRAME_UPDATE
	.quad	_AFMT_GENERIC3_FRAME_UPDATE
	.quad	_AFMT_GENERIC4_FRAME_UPDATE
	.quad	_AFMT_GENERIC5_FRAME_UPDATE
	.quad	_AFMT_GENERIC6_FRAME_UPDATE
	.quad	_AFMT_GENERIC7_FRAME_UPDATE

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_enc1_update_generic_info_packet ; -- Begin function enc1_update_generic_info_packet
	.p2align	2
_enc1_update_generic_info_packet:       ; @enc1_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	x8, _AFMT_CNTL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AFMT_CNTL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _AFMT_AUDIO_CLOCK_EN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AFMT_AUDIO_CLOCK_EN@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w2, #1
	bl	_REG_UPDATE
	cmp	w19, #8
	b.lt	LBB0_2
; %bb.1:
	mov	w0, #0
	bl	_ASSERT
LBB0_2:
Lloh6:
	adrp	x21, _AFMT_VBI_PACKET_CONTROL@GOTPAGE
Lloh7:
	ldr	x21, [x21, _AFMT_VBI_PACKET_CONTROL@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh8:
	adrp	x8, _AFMT_GENERIC_CONFLICT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AFMT_GENERIC_CONFLICT@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	w2, #0
	mov	w3, #10
	mov	w4, #50
	bl	_REG_WAIT
	ldr	w0, [x21]
Lloh11:
	adrp	x8, _AFMT_GENERIC_CONFLICT_CLR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AFMT_GENERIC_CONFLICT_CLR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	w2, #1
	bl	_REG_UPDATE
	ldr	w0, [x21]
	bl	_REG_READ
	ldr	w0, [x21]
Lloh14:
	adrp	x8, _AFMT_GENERIC_INDEX@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AFMT_GENERIC_INDEX@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_REG_UPDATE
Lloh17:
	adrp	x8, _AFMT_GENERIC_HDR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AFMT_GENERIC_HDR@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x8, _AFMT_GENERIC_HB0@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AFMT_GENERIC_HB0@GOTPAGEOFF]
Lloh22:
	adrp	x9, _AFMT_GENERIC_HB1@GOTPAGE
Lloh23:
	ldr	x9, [x9, _AFMT_GENERIC_HB1@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
Lloh25:
	ldr	w4, [x9]
	ldp	w5, w3, [x20, #16]
Lloh26:
	adrp	x8, _AFMT_GENERIC_HB2@GOTPAGE
Lloh27:
	ldr	x8, [x8, _AFMT_GENERIC_HB2@GOTPAGEOFF]
Lloh28:
	ldr	w6, [x8]
Lloh29:
	adrp	x8, _AFMT_GENERIC_HB3@GOTPAGE
Lloh30:
	ldr	x8, [x8, _AFMT_GENERIC_HB3@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	ldp	w9, w7, [x20, #8]
	stp	w8, w9, [sp]
	mov	w1, #0
	bl	_REG_SET_4
	ldr	x20, [x20]
Lloh32:
	adrp	x8, _AFMT_GENERIC_0@GOTPAGE
Lloh33:
	ldr	x8, [x8, _AFMT_GENERIC_0@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	ldr	w1, [x20]
	bl	_REG_WRITE
Lloh35:
	adrp	x8, _AFMT_GENERIC_1@GOTPAGE
Lloh36:
	ldr	x8, [x8, _AFMT_GENERIC_1@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
	ldr	w1, [x20, #4]
	bl	_REG_WRITE
Lloh38:
	adrp	x8, _AFMT_GENERIC_2@GOTPAGE
Lloh39:
	ldr	x8, [x8, _AFMT_GENERIC_2@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
	ldr	w1, [x20, #8]
	bl	_REG_WRITE
Lloh41:
	adrp	x8, _AFMT_GENERIC_3@GOTPAGE
Lloh42:
	ldr	x8, [x8, _AFMT_GENERIC_3@GOTPAGEOFF]
Lloh43:
	ldr	w0, [x8]
	ldr	w1, [x20, #12]
	bl	_REG_WRITE
Lloh44:
	adrp	x8, _AFMT_GENERIC_4@GOTPAGE
Lloh45:
	ldr	x8, [x8, _AFMT_GENERIC_4@GOTPAGEOFF]
Lloh46:
	ldr	w0, [x8]
	ldr	w1, [x20, #16]
	bl	_REG_WRITE
Lloh47:
	adrp	x8, _AFMT_GENERIC_5@GOTPAGE
Lloh48:
	ldr	x8, [x8, _AFMT_GENERIC_5@GOTPAGEOFF]
Lloh49:
	ldr	w0, [x8]
	ldr	w1, [x20, #20]
	bl	_REG_WRITE
Lloh50:
	adrp	x8, _AFMT_GENERIC_6@GOTPAGE
Lloh51:
	ldr	x8, [x8, _AFMT_GENERIC_6@GOTPAGEOFF]
Lloh52:
	ldr	w0, [x8]
	ldr	w1, [x20, #24]
	bl	_REG_WRITE
Lloh53:
	adrp	x8, _AFMT_GENERIC_7@GOTPAGE
Lloh54:
	ldr	x8, [x8, _AFMT_GENERIC_7@GOTPAGEOFF]
Lloh55:
	ldr	w0, [x8]
	ldr	w1, [x20, #28]
	bl	_REG_WRITE
	cmp	w19, #7
	b.hi	LBB0_4
; %bb.3:
Lloh56:
	adrp	x8, l_switch.table.enc1_update_generic_info_packet@PAGE
Lloh57:
	add	x8, x8, l_switch.table.enc1_update_generic_info_packet@PAGEOFF
	ldr	x8, [x8, w19, sxtw #3]
Lloh58:
	adrp	x9, _AFMT_VBI_PACKET_CONTROL1@GOTPAGE
Lloh59:
	ldr	x9, [x9, _AFMT_VBI_PACKET_CONTROL1@GOTPAGEOFF]
Lloh60:
	ldr	w0, [x9]
	ldr	w1, [x8]
	mov	w2, #1
	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
LBB0_4:
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh24
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpAdd	Lloh56, Lloh57
	.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_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_VBI_PACKET_CONTROL1,4,2   ; @AFMT_VBI_PACKET_CONTROL1
	.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
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.enc1_update_generic_info_packet
l_switch.table.enc1_update_generic_info_packet:
	.quad	_AFMT_GENERIC0_FRAME_UPDATE
	.quad	_AFMT_GENERIC1_FRAME_UPDATE
	.quad	_AFMT_GENERIC2_FRAME_UPDATE
	.quad	_AFMT_GENERIC3_FRAME_UPDATE
	.quad	_AFMT_GENERIC4_FRAME_UPDATE
	.quad	_AFMT_GENERIC5_FRAME_UPDATE
	.quad	_AFMT_GENERIC6_FRAME_UPDATE
	.quad	_AFMT_GENERIC7_FRAME_UPDATE

.subsections_via_symbols
