	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pvr2_encoder_prep_config
_pvr2_encoder_prep_config:              ## @pvr2_encoder_prep_config
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	(%rdi), %rax
	xorl	%r8d, %r8d
	cmpq	$0, (%rax)
	setne	%r8b
	movq	_CX2341X_ENC_MISC@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	$0, (%rsp)
	movl	$4, %edx
	movl	$3, %ecx
	xorl	%r9d, %r9d
	xorl	%eax, %eax
	callq	_pvr2_encoder_vcmd
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%r14), %esi
	movl	$0, (%rsp)
	movq	%r12, %rdi
	movl	$4, %edx
	movl	$8, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	xorl	%eax, %eax
	callq	_pvr2_encoder_vcmd
	movl	%eax, %r15d
	movl	(%r14), %esi
	movl	$0, (%rsp)
	movq	%r12, %rdi
	movl	$4, %edx
	xorl	%ecx, %ecx
	movl	$3, %r8d
	xorl	%r9d, %r9d
	xorl	%eax, %eax
	callq	_pvr2_encoder_vcmd
	movl	%eax, %r13d
	orl	%r15d, %r13d
	movl	(%r14), %esi
	movl	$0, (%rsp)
	movq	%r12, %rdi
	movl	$4, %edx
	movl	$15, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	xorl	%eax, %eax
	callq	_pvr2_encoder_vcmd
	movl	%eax, %ebx
	orl	%r13d, %ebx
	movl	(%r14), %esi
	movq	%r12, %rdi
	movl	$2, %edx
	movl	$4, %ecx
	movl	$1, %r8d
	xorl	%eax, %eax
	callq	_pvr2_encoder_vcmd
	orl	%ebx, %eax
	orl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CX2341X_ENC_MISC,4,2           ## @CX2341X_ENC_MISC
	.no_dead_strip	_pvr2_encoder_prep_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pvr2_encoder_prep_config
_pvr2_encoder_prep_config:              ; @pvr2_encoder_prep_config
	.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	x19, x0
	ldr	x8, [x0]
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w4, ne
Lloh0:
	adrp	x21, _CX2341X_ENC_MISC@GOTPAGE
Lloh1:
	ldr	x21, [x21, _CX2341X_ENC_MISC@GOTPAGEOFF]
	ldr	w1, [x21]
	stp	xzr, xzr, [sp]
	mov	w2, #4
	mov	w3, #3
	bl	_pvr2_encoder_vcmd
	mov	x20, x0
	ldr	w1, [x21]
	stp	xzr, xzr, [sp]
	mov	x0, x19
	mov	w2, #4
	mov	w3, #8
	mov	w4, #0
	bl	_pvr2_encoder_vcmd
	orr	w20, w0, w20
	ldr	w1, [x21]
	stp	xzr, xzr, [sp]
	mov	x0, x19
	mov	w2, #4
	mov	w3, #0
	mov	w4, #3
	bl	_pvr2_encoder_vcmd
	orr	w20, w20, w0
	ldr	w1, [x21]
	stp	xzr, xzr, [sp]
	mov	x0, x19
	mov	w2, #4
	mov	w3, #15
	mov	w4, #0
	bl	_pvr2_encoder_vcmd
	orr	w20, w20, w0
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #2
	mov	w3, #4
	mov	w4, #1
	bl	_pvr2_encoder_vcmd
	orr	w0, w20, w0
	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 AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CX2341X_ENC_MISC,4,2           ; @CX2341X_ENC_MISC
	.no_dead_strip	_pvr2_encoder_prep_config
.subsections_via_symbols
