	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pvr2_decoder_enable
_pvr2_decoder_enable:                   ## @pvr2_decoder_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	%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
	movl	%esi, %r12d
	movq	%rdi, %r14
	movq	_PVR2_TRACE_CHIPS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	testl	%esi, %esi
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_pvr2_trace
	leaq	16(%r14), %rbx
	movq	_video@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_s_stream@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%r12d, %r8d
	callq	_v4l2_device_call_all
	movq	_audio@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r13), %ecx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%r12d, %r8d
	callq	_v4l2_device_call_all
	cmpq	$0, 8(%r14)
	jne	LBB0_4
## %bb.1:
	cmpl	$0, (%r14)
	jne	LBB0_3
## %bb.2:
	movq	_PVR2_TRACE_ERROR_LEGS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_pvr2_trace
	movl	$1, (%r14)
	leaq	L_.str.4(%rip), %rdi
	movl	$1, %esi
	callq	_trace_stbit
LBB0_3:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_4:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PVR2_TRACE_CHIPS,4,2           ## @PVR2_TRACE_CHIPS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"subdev v4l2 stream=%s"

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

L_.str.2:                               ## @.str.2
	.asciz	"off"

	.comm	_video,4,2                      ## @video
	.comm	_s_stream,4,2                   ## @s_stream
	.comm	_audio,4,2                      ## @audio
	.comm	_PVR2_TRACE_ERROR_LEGS,4,2      ## @PVR2_TRACE_ERROR_LEGS
L_.str.3:                               ## @.str.3
	.asciz	"***WARNING*** No decoder present"

L_.str.4:                               ## @.str.4
	.asciz	"flag_decoder_missed"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_pvr2_decoder_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pvr2_decoder_enable
_pvr2_decoder_enable:                   ; @pvr2_decoder_enable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _PVR2_TRACE_CHIPS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PVR2_TRACE_CHIPS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, l_.str.1@PAGE
Lloh4:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh5:
	adrp	x9, l_.str.2@PAGE
Lloh6:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w1, #0
	csel	x8, x9, x8, eq
	str	x8, [sp]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_pvr2_trace
	add	x21, x19, #16
Lloh9:
	adrp	x8, _video@GOTPAGE
Lloh10:
	ldr	x8, [x8, _video@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
Lloh12:
	adrp	x22, _s_stream@GOTPAGE
Lloh13:
	ldr	x22, [x22, _s_stream@GOTPAGEOFF]
	ldr	w3, [x22]
	mov	x0, x21
	mov	w1, #0
	mov	x4, x20
	bl	_v4l2_device_call_all
Lloh14:
	adrp	x8, _audio@GOTPAGE
Lloh15:
	ldr	x8, [x8, _audio@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	ldr	w3, [x22]
	mov	x0, x21
	mov	w1, #0
	mov	x4, x20
	bl	_v4l2_device_call_all
	mov	w0, #0
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_4
; %bb.1:
	ldr	w8, [x19]
	cbnz	w8, LBB0_3
; %bb.2:
Lloh17:
	adrp	x8, _PVR2_TRACE_ERROR_LEGS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PVR2_TRACE_ERROR_LEGS@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_pvr2_trace
	mov	w8, #1
	str	w8, [x19]
Lloh22:
	adrp	x0, l_.str.4@PAGE
Lloh23:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	w1, #1
	bl	_trace_stbit
LBB0_3:
Lloh24:
	adrp	x8, _EIO@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_PVR2_TRACE_CHIPS,4,2           ; @PVR2_TRACE_CHIPS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"subdev v4l2 stream=%s"

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

l_.str.2:                               ; @.str.2
	.asciz	"off"

	.comm	_video,4,2                      ; @video
	.comm	_s_stream,4,2                   ; @s_stream
	.comm	_audio,4,2                      ; @audio
	.comm	_PVR2_TRACE_ERROR_LEGS,4,2      ; @PVR2_TRACE_ERROR_LEGS
l_.str.3:                               ; @.str.3
	.asciz	"***WARNING*** No decoder present"

l_.str.4:                               ; @.str.4
	.asciz	"flag_decoder_missed"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_pvr2_decoder_enable
.subsections_via_symbols
