	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpu_encoder_phys_cmd_enable
_dpu_encoder_phys_cmd_enable:           ## @dpu_encoder_phys_cmd_enable
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_to_dpu_encoder_phys_cmd
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	movq	8(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.4:
	movq	(%rcx), %rdx
	movq	_PINGPONG_0@GOTPCREL(%rip), %rcx
	subq	(%rcx), %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdi
	callq	_DPU_DEBUG_CMDENC
	movq	(%rbx), %rax
	movq	_DPU_ENC_ENABLED@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str(%rip), %rdi
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_DPU_ERROR                      ## TAILCALL
LBB0_6:
	movq	%rbx, %rdi
	callq	_dpu_encoder_phys_cmd_enable_helper
	movq	(%r14), %rax
	movq	%rax, (%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid phys encoder\n"

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

	.comm	_PINGPONG_0,8,3                 ## @PINGPONG_0
	.comm	_DPU_ENC_ENABLED,8,3            ## @DPU_ENC_ENABLED
L_.str.2:                               ## @.str.2
	.asciz	"already enabled\n"

	.no_dead_strip	_dpu_encoder_phys_cmd_enable
.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_enable
_dpu_encoder_phys_cmd_enable:           ; @dpu_encoder_phys_cmd_enable
	.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
	mov	x19, x0
	bl	_to_dpu_encoder_phys_cmd
	cbz	x19, LBB0_4
; %bb.1:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _PINGPONG_0@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PINGPONG_0@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	sub	x2, x8, x9
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_DPU_DEBUG_CMDENC
	ldr	x8, [x19]
Lloh5:
	adrp	x20, _DPU_ENC_ENABLED@GOTPAGE
Lloh6:
	ldr	x20, [x20, _DPU_ENC_ENABLED@GOTPAGEOFF]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.3:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_5
LBB0_4:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_DPU_ERROR
LBB0_6:
	mov	x0, x19
	bl	_dpu_encoder_phys_cmd_enable_helper
	ldr	x8, [x20]
	str	x8, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid phys encoder\n"

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

	.comm	_PINGPONG_0,8,3                 ; @PINGPONG_0
	.comm	_DPU_ENC_ENABLED,8,3            ; @DPU_ENC_ENABLED
l_.str.2:                               ; @.str.2
	.asciz	"already enabled\n"

	.no_dead_strip	_dpu_encoder_phys_cmd_enable
.subsections_via_symbols
