	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _dpu_encoder_trigger_flush
__dpu_encoder_trigger_flush:            ## @_dpu_encoder_trigger_flush
	.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
	cmpl	$0, 16(%rsi)
	je	LBB0_1
## %bb.3:
	movq	%rsi, %r15
	movq	8(%rsi), %rbx
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.4:
	cmpq	$0, 16(%rbx)
	je	LBB0_5
## %bb.6:
	movl	%edx, %r14d
	movq	%rdi, %r12
	movq	_UINT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r15, %rdi
	callq	_dpu_encoder_phys_inc_pending
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testl	%r14d, %r14d
	je	LBB0_9
## %bb.7:
	movq	24(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	*%rax
LBB0_9:
	movq	%rbx, %rdi
	callq	*16(%rbx)
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	%rbx, %rdi
	callq	*%rax
	movl	%eax, %r13d
LBB0_11:
	movq	%r12, %rdi
	callq	_DRMID
	movl	(%r15), %esi
	movl	(%rbx), %ecx
	movl	%eax, %edi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r14d, %r8d
	movl	%r13d, %r9d
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_trace_dpu_enc_trigger_flush    ## TAILCALL
LBB0_1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_2
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DPU_ERROR                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_UINT_MAX,4,2                   ## @UINT_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid pingpong hw\n"

L_.str.1:                               ## @.str.1
	.asciz	"missing trigger cb\n"

	.no_dead_strip	__dpu_encoder_trigger_flush
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _dpu_encoder_trigger_flush
__dpu_encoder_trigger_flush:            ; @_dpu_encoder_trigger_flush
	.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
	ldr	w8, [x1, #16]
	cbz	w8, LBB0_9
; %bb.1:
	mov	x20, x1
	ldr	x21, [x1, #8]
	cbz	x21, LBB0_10
; %bb.2:
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_10
; %bb.3:
	mov	x19, x2
	mov	x22, x0
Lloh0:
	adrp	x8, _UINT_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UINT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	mov	x0, x20
	bl	_dpu_encoder_phys_inc_pending
	mov	x24, x0
	cbz	w19, LBB0_6
; %bb.4:
	ldr	x8, [x21, #24]
	cbz	x8, LBB0_6
; %bb.5:
	mov	x0, x21
	mov	x1, x19
	blr	x8
LBB0_6:
	ldr	x8, [x21, #16]
	mov	x0, x21
	blr	x8
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_8
; %bb.7:
	mov	x0, x21
	blr	x8
	mov	x23, x0
LBB0_8:
	mov	x0, x22
	bl	_DRMID
	ldr	w1, [x20]
	ldr	w3, [x21]
	mov	x2, x24
	mov	x4, x19
	mov	x5, x23
	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	_trace_dpu_enc_trigger_flush
LBB0_9:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_11
LBB0_10:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_11:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_UINT_MAX,4,2                   ; @UINT_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid pingpong hw\n"

l_.str.1:                               ; @.str.1
	.asciz	"missing trigger cb\n"

	.no_dead_strip	__dpu_encoder_trigger_flush
.subsections_via_symbols
