	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function venc_bind
_venc_bind:                             ## @venc_bind
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_dss_get_device
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_dev_get_drvdata
	movq	%rax, %rbx
	movq	%r14, 8(%rax)
	movq	%rax, %rdi
	callq	_venc_runtime_get
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_VENC_REV_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_venc_read_reg
	movzbl	%al, %edx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_dbg
	movq	%rbx, %rdi
	callq	_venc_runtime_put
	movq	_venc_dump_regs@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rcx
	callq	_dss_debugfs_create_file
	movl	%eax, (%rbx)
LBB0_2:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VENC_REV_ID,4,2                ## @VENC_REV_ID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"OMAP VENC rev %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"venc"

	.comm	_venc_dump_regs,4,2             ## @venc_dump_regs
	.no_dead_strip	_venc_bind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function venc_bind
_venc_bind:                             ; @venc_bind
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x22, x0
	mov	x0, x1
	bl	_dss_get_device
	mov	x20, x0
	mov	x0, x22
	bl	_dev_get_drvdata
	mov	x19, x0
	str	x20, [x0, #8]
	bl	_venc_runtime_get
	mov	x21, x0
	cbnz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _VENC_REV_ID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VENC_REV_ID@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_venc_read_reg
	and	w2, w0, #0xff
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_dev_dbg
	mov	x0, x19
	bl	_venc_runtime_put
Lloh5:
	adrp	x8, _venc_dump_regs@GOTPAGE
Lloh6:
	ldr	x8, [x8, _venc_dump_regs@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x3, x19
	bl	_dss_debugfs_create_file
	str	w0, [x19]
LBB0_2:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VENC_REV_ID,4,2                ; @VENC_REV_ID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"OMAP VENC rev %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"venc"

	.comm	_venc_dump_regs,4,2             ; @venc_dump_regs
	.no_dead_strip	_venc_bind
.subsections_via_symbols
