	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pvr2_encoder_adjust            ## -- Begin function pvr2_encoder_adjust
	.p2align	4, 0x90
_pvr2_encoder_adjust:                   ## @pvr2_encoder_adjust
	.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
	movq	_pvr2_encoder_cmd@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	cmpl	$0, (%rdi)
	leaq	8(%rdi), %rax
	cmovneq	%rax, %rdx
	leaq	4(%rdi), %rcx
	callq	_cx2341x_update
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	_PVR2_TRACE_ERROR_LEGS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	callq	_pvr2_trace
	jmp	LBB0_3
LBB0_2:
	movl	4(%rbx), %eax
	movl	%eax, 8(%rbx)
	movl	$1, (%rbx)
LBB0_3:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pvr2_encoder_cmd,4,2           ## @pvr2_encoder_cmd
	.comm	_PVR2_TRACE_ERROR_LEGS,4,2      ## @PVR2_TRACE_ERROR_LEGS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error from cx2341x module code=%d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pvr2_encoder_adjust            ; -- Begin function pvr2_encoder_adjust
	.p2align	2
_pvr2_encoder_adjust:                   ; @pvr2_encoder_adjust
	.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	x8, _pvr2_encoder_cmd@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pvr2_encoder_cmd@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x3, x0
	ldr	w8, [x3], #4
	add	x9, x0, #8
	cmp	w8, #0
	csel	x2, xzr, x9, eq
	bl	_cx2341x_update
	mov	x20, x0
	cbz	w0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _PVR2_TRACE_ERROR_LEGS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PVR2_TRACE_ERROR_LEGS@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_pvr2_trace
	b	LBB0_3
LBB0_2:
	ldr	w8, [x19, #4]
	str	w8, [x19, #8]
	mov	w8, #1
	str	w8, [x19]
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_pvr2_encoder_cmd,4,2           ; @pvr2_encoder_cmd
	.comm	_PVR2_TRACE_ERROR_LEGS,4,2      ; @PVR2_TRACE_ERROR_LEGS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error from cx2341x module code=%d"

.subsections_via_symbols
