	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpu_encoder_phys_cmd_wait_for_commit_done
_dpu_encoder_phys_cmd_wait_for_commit_done: ## @dpu_encoder_phys_cmd_wait_for_commit_done
	.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
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	callq	_to_dpu_encoder_phys_cmd
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_dpu_encoder_phys_cmd_is_master
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	__dpu_encoder_phys_cmd_wait_for_ctl_start
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
LBB0_4:
	xorl	%ebx, %ebx
	cmpq	$0, (%r15)
	je	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	callq	_dpu_encoder_phys_cmd_prepare_for_kickoff
	jmp	LBB0_6
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_dpu_encoder_phys_cmd_wait_for_commit_done
.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_wait_for_commit_done
_dpu_encoder_phys_cmd_wait_for_commit_done: ; @dpu_encoder_phys_cmd_wait_for_commit_done
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	bl	_to_dpu_encoder_phys_cmd
	mov	x20, x0
	mov	x0, x19
	bl	_dpu_encoder_phys_cmd_is_master
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	__dpu_encoder_phys_cmd_wait_for_ctl_start
	cbnz	w0, LBB0_7
LBB0_3:
	ldr	x8, [x20]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_dpu_encoder_phys_cmd_prepare_for_kickoff
LBB0_5:
	mov	w0, #0
	b	LBB0_7
LBB0_6:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_dpu_encoder_phys_cmd_wait_for_commit_done
.subsections_via_symbols
