	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpu_encoder_phys_cmd_prepare_for_kickoff
_dpu_encoder_phys_cmd_prepare_for_kickoff: ## @dpu_encoder_phys_cmd_prepare_for_kickoff
	.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	%rdi, %rbx
	callq	_to_dpu_encoder_phys_cmd
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.1:
	cmpq	$0, 8(%rbx)
	je	LBB0_5
## %bb.2:
	movq	%rax, %r14
	movl	16(%rbx), %edi
	callq	_DRMID
	movl	%eax, %r15d
	movq	8(%rbx), %rax
	movq	(%rax), %r12
	movq	_PINGPONG_0@GOTPCREL(%rip), %r13
	subq	(%r13), %r12
	movq	%rbx, %rdi
	callq	_atomic_read
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	movq	%r12, %rdx
	movl	%eax, %ecx
	callq	_DRM_DEBUG_KMS
	movq	%rbx, %rdi
	callq	__dpu_encoder_phys_cmd_wait_for_idle
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r15d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	movl	16(%rbx), %edi
	callq	_DRMID
	movq	8(%rbx), %rcx
	movq	(%rcx), %rcx
	subq	(%r13), %rcx
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	movl	%r15d, %edx
	callq	_DRM_ERROR
LBB0_4:
	movq	8(%rbx), %rax
	movq	(%rax), %r15
	subq	(%r13), %r15
	movq	%rbx, %rdi
	callq	_atomic_read
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	movl	%eax, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DPU_DEBUG_CMDENC               ## TAILCALL
LBB0_5:
	leaq	L_.str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DPU_ERROR                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid encoder\n"

L_.str.1:                               ## @.str.1
	.asciz	"id:%u pp:%d pending_cnt:%d\n"

	.comm	_PINGPONG_0,8,3                 ## @PINGPONG_0
L_.str.2:                               ## @.str.2
	.asciz	"failed wait_for_idle: id:%u ret:%d pp:%d\n"

L_.str.3:                               ## @.str.3
	.asciz	"pp:%d pending_cnt %d\n"

	.no_dead_strip	_dpu_encoder_phys_cmd_prepare_for_kickoff
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dpu_encoder_phys_cmd_prepare_for_kickoff
_dpu_encoder_phys_cmd_prepare_for_kickoff: ; @dpu_encoder_phys_cmd_prepare_for_kickoff
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	bl	_to_dpu_encoder_phys_cmd
	cbz	x19, LBB0_5
; %bb.1:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_5
; %bb.2:
	mov	x20, x0
	ldr	w0, [x19, #16]
	bl	_DRMID
	mov	x21, x0
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
Lloh0:
	adrp	x23, _PINGPONG_0@GOTPAGE
Lloh1:
	ldr	x23, [x23, _PINGPONG_0@GOTPAGEOFF]
	ldr	x9, [x23]
	sub	x22, x8, x9
	mov	x0, x19
	bl	_atomic_read
	mov	x3, x0
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	mov	x2, x22
	bl	_DRM_DEBUG_KMS
	mov	x0, x19
	bl	__dpu_encoder_phys_cmd_wait_for_idle
	cbz	w0, LBB0_4
; %bb.3:
	mov	x21, x0
	mov	x0, x19
	mov	w1, #0
	bl	_atomic_set
	ldr	w0, [x19, #16]
	bl	_DRMID
	mov	x1, x0
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x9, [x23]
	sub	x3, x8, x9
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x2, x21
	bl	_DRM_ERROR
LBB0_4:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x9, [x23]
	sub	x21, x8, x9
	mov	x0, x19
	bl	_atomic_read
	mov	x3, x0
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_DPU_DEBUG_CMDENC
LBB0_5:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_DPU_ERROR
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid encoder\n"

l_.str.1:                               ; @.str.1
	.asciz	"id:%u pp:%d pending_cnt:%d\n"

	.comm	_PINGPONG_0,8,3                 ; @PINGPONG_0
l_.str.2:                               ; @.str.2
	.asciz	"failed wait_for_idle: id:%u ret:%d pp:%d\n"

l_.str.3:                               ; @.str.3
	.asciz	"pp:%d pending_cnt %d\n"

	.no_dead_strip	_dpu_encoder_phys_cmd_prepare_for_kickoff
.subsections_via_symbols
