	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dpu_encoder_get_intf_mode      ## -- Begin function dpu_encoder_get_intf_mode
	.p2align	4, 0x90
_dpu_encoder_get_intf_mode:             ## @dpu_encoder_get_intf_mode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	callq	_to_dpu_encoder_virt
	movq	16(%rax), %rcx
	testq	%rcx, %rcx
	jne	LBB0_8
## %bb.3:
	movl	(%rax), %edx
	movq	_INTF_MODE_NONE@GOTPCREL(%rip), %rcx
	testl	%edx, %edx
	jle	LBB0_8
## %bb.4:
	movq	8(%rax), %rax
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax,%rsi,8), %rdi
	testq	%rdi, %rdi
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%rsi
	cmpq	%rsi, %rdx
	jne	LBB0_6
	jmp	LBB0_8
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_DPU_ERROR
	movq	_INTF_MODE_NONE@GOTPCREL(%rip), %rcx
LBB0_8:
	movl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_7:
	movq	%rdi, %rcx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid encoder\n"

	.comm	_INTF_MODE_NONE,4,2             ## @INTF_MODE_NONE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dpu_encoder_get_intf_mode      ; -- Begin function dpu_encoder_get_intf_mode
	.p2align	2
_dpu_encoder_get_intf_mode:             ; @dpu_encoder_get_intf_mode
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	cbz	x0, LBB0_6
; %bb.1:
	bl	_to_dpu_encoder_virt
	ldr	x8, [x0, #16]
	cbnz	x8, LBB0_8
; %bb.2:
	ldr	w9, [x0]
	cmp	w9, #1
	b.lt	LBB0_7
; %bb.3:
	ldr	x10, [x0, #8]
Lloh0:
	adrp	x8, _INTF_MODE_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INTF_MODE_NONE@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10]
	cbnz	x11, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x10, x10, #8
	subs	x9, x9, #1
	b.ne	LBB0_4
	b	LBB0_8
LBB0_6:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DPU_ERROR
LBB0_7:
Lloh4:
	adrp	x8, _INTF_MODE_NONE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _INTF_MODE_NONE@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_9:
	mov	x8, x11
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid encoder\n"

	.comm	_INTF_MODE_NONE,4,2             ; @INTF_MODE_NONE
.subsections_via_symbols
