	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dce6_afmt_write_latency_fields ## -- Begin function dce6_afmt_write_latency_fields
	.p2align	4, 0x90
_dce6_afmt_write_latency_fields:        ## @dce6_afmt_write_latency_fields
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	callq	_to_radeon_encoder
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.1:
	cmpl	$0, 8(%rbx)
	je	LBB0_10
## %bb.2:
	cmpq	$0, (%rbx)
	je	LBB0_10
## %bb.3:
	movq	_DRM_MODE_FLAG_INTERLACE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	16(%r15), %rax
	testl	%ecx, (%r14)
	je	LBB0_6
## %bb.4:
	cmpq	$0, 8(%rax)
	je	LBB0_8
## %bb.5:
	movq	8(%r15), %rax
	movl	4(%rax), %edi
	callq	_VIDEO_LIPSYNC
	movl	%eax, %r14d
	movq	(%r15), %rax
	movl	4(%rax), %r15d
	jmp	LBB0_9
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.7:
	movq	8(%r15), %rax
	movl	(%rax), %edi
	callq	_VIDEO_LIPSYNC
	movl	%eax, %r14d
	movq	(%r15), %rax
	movl	(%rax), %r15d
	jmp	LBB0_9
LBB0_8:
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	callq	_VIDEO_LIPSYNC
	movl	%eax, %r14d
LBB0_9:
	movl	%r15d, %edi
	callq	_AUDIO_LIPSYNC
	orl	%eax, %r14d
	movq	(%rbx), %rax
	movl	(%rax), %edi
	movq	_AZ_F0_CODEC_PIN_CONTROL_RESPONSE_LIPSYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WREG32_ENDPOINT                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_MODE_FLAG_INTERLACE,4,2    ## @DRM_MODE_FLAG_INTERLACE
	.comm	_AZ_F0_CODEC_PIN_CONTROL_RESPONSE_LIPSYNC,4,2 ## @AZ_F0_CODEC_PIN_CONTROL_RESPONSE_LIPSYNC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dce6_afmt_write_latency_fields ; -- Begin function dce6_afmt_write_latency_fields
	.p2align	2
_dce6_afmt_write_latency_fields:        ; @dce6_afmt_write_latency_fields
	.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
	mov	x20, x2
	mov	x19, x1
	bl	_to_radeon_encoder
	ldr	x21, [x0]
	cbz	x21, LBB0_6
; %bb.1:
	ldr	w8, [x21, #8]
	cbz	w8, LBB0_6
; %bb.2:
	ldr	x8, [x21]
	cbz	x8, LBB0_6
; %bb.3:
	ldr	w9, [x20]
Lloh0:
	adrp	x8, _DRM_MODE_FLAG_INTERLACE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_MODE_FLAG_INTERLACE@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x8]
	ldr	x8, [x19, #16]
	tst	w10, w9
	b.eq	LBB0_7
; %bb.4:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_9
; %bb.5:
	ldr	x8, [x19, #8]
	ldr	w0, [x8, #4]
	bl	_VIDEO_LIPSYNC
	mov	x20, x0
	ldr	x8, [x19]
	ldr	w0, [x8, #4]
	b	LBB0_10
LBB0_6:
	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
LBB0_7:
	ldr	x8, [x8]
	cbz	x8, LBB0_9
; %bb.8:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	bl	_VIDEO_LIPSYNC
	mov	x20, x0
	ldr	x8, [x19]
	ldr	w0, [x8]
	b	LBB0_10
LBB0_9:
	mov	w0, #0
	bl	_VIDEO_LIPSYNC
	mov	x20, x0
	mov	w0, #0
LBB0_10:
	bl	_AUDIO_LIPSYNC
	orr	w2, w0, w20
	ldr	x8, [x21]
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _AZ_F0_CODEC_PIN_CONTROL_RESPONSE_LIPSYNC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AZ_F0_CODEC_PIN_CONTROL_RESPONSE_LIPSYNC@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	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
	b	_WREG32_ENDPOINT
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_MODE_FLAG_INTERLACE,4,2    ; @DRM_MODE_FLAG_INTERLACE
	.comm	_AZ_F0_CODEC_PIN_CONTROL_RESPONSE_LIPSYNC,4,2 ; @AZ_F0_CODEC_PIN_CONTROL_RESPONSE_LIPSYNC
.subsections_via_symbols
