	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pvr2_hdw_cmd_decoder_reset     ## -- Begin function pvr2_hdw_cmd_decoder_reset
	.p2align	4, 0x90
_pvr2_hdw_cmd_decoder_reset:            ## @pvr2_hdw_cmd_decoder_reset
	.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, %r14
	movq	_PVR2_TRACE_INIT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_pvr2_trace
	movq	(%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	leaq	8(%r14), %rdi
	movq	_core@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_reset@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%ebx, %ebx
	xorl	%r8d, %r8d
	callq	_v4l2_device_call_all
	movq	%r14, %rdi
	callq	_pvr2_hdw_cx25840_vbi_hack
	jmp	LBB0_3
LBB0_2:
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_pvr2_trace
	movq	_ENOTTY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_3:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PVR2_TRACE_INIT,4,2            ## @PVR2_TRACE_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Requesting decoder reset"

	.comm	_core,4,2                       ## @core
	.comm	_reset,4,2                      ## @reset
L_.str.1:                               ## @.str.1
	.asciz	"Unable to reset decoder: nothing attached"

	.comm	_ENOTTY,4,2                     ## @ENOTTY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pvr2_hdw_cmd_decoder_reset     ; -- Begin function pvr2_hdw_cmd_decoder_reset
	.p2align	2
_pvr2_hdw_cmd_decoder_reset:            ; @pvr2_hdw_cmd_decoder_reset
	.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
Lloh0:
	adrp	x20, _PVR2_TRACE_INIT@GOTPAGE
Lloh1:
	ldr	x20, [x20, _PVR2_TRACE_INIT@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_pvr2_trace
	ldr	x1, [x19]
	cbz	x1, LBB0_2
; %bb.1:
	add	x0, x19, #8
Lloh4:
	adrp	x8, _core@GOTPAGE
Lloh5:
	ldr	x8, [x8, _core@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
Lloh7:
	adrp	x8, _reset@GOTPAGE
Lloh8:
	ldr	x8, [x8, _reset@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x8]
	mov	w4, #0
	bl	_v4l2_device_call_all
	mov	x0, x19
	bl	_pvr2_hdw_cx25840_vbi_hack
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	ldr	w0, [x20]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_pvr2_trace
Lloh12:
	adrp	x8, _ENOTTY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOTTY@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_PVR2_TRACE_INIT,4,2            ; @PVR2_TRACE_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Requesting decoder reset"

	.comm	_core,4,2                       ; @core
	.comm	_reset,4,2                      ; @reset
l_.str.1:                               ; @.str.1
	.asciz	"Unable to reset decoder: nothing attached"

	.comm	_ENOTTY,4,2                     ; @ENOTTY
.subsections_via_symbols
