	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vcn_v1_0_jpeg_ring_patch_wreg
_vcn_v1_0_jpeg_ring_patch_wreg:         ## @vcn_v1_0_jpeg_ring_patch_wreg
	.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	%ecx, %r14d
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	_UVD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_mmUVD_JRBC_EXTERNAL_REG_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_SOC15_REG_OFFSET
	movq	_PACKETJ_TYPE0@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	movl	%eax, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_PACKETJ
	movq	(%r15), %rcx
	movslq	(%rbx), %rdx
	leal	1(%rdx), %esi
	movl	%esi, (%rbx)
	movl	%eax, (%rcx,%rdx,4)
	leal	-129024(%r12), %edx
	movslq	(%rbx), %rax
	leal	1(%rax), %esi
	movl	%esi, (%rbx)
	cmpl	$10240, %edx                    ## imm = 0x2800
	jb	LBB0_2
## %bb.1:
	movl	%r12d, %edx
	andl	$-512, %edx                     ## imm = 0xFE00
	cmpl	$122880, %edx                   ## imm = 0x1E000
	je	LBB0_2
## %bb.3:
	movl	%r12d, (%rcx,%rax,4)
	xorl	%r12d, %r12d
	jmp	LBB0_4
LBB0_2:
	movl	$0, (%rcx,%rax,4)
	shrl	$2, %r12d
LBB0_4:
	movl	(%r13), %ecx
	movl	%r12d, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_PACKETJ
	movq	(%r15), %rcx
	movslq	(%rbx), %rdx
	leal	1(%rdx), %esi
	movl	%esi, (%rbx)
	movl	%eax, (%rcx,%rdx,4)
	movslq	(%rbx), %rax
	leal	1(%rax), %edx
	movl	%edx, (%rbx)
	movl	%r14d, (%rcx,%rax,4)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UVD,4,2                        ## @UVD
	.comm	_mmUVD_JRBC_EXTERNAL_REG_BASE,4,2 ## @mmUVD_JRBC_EXTERNAL_REG_BASE
	.comm	_PACKETJ_TYPE0,4,2              ## @PACKETJ_TYPE0
	.no_dead_strip	_vcn_v1_0_jpeg_ring_patch_wreg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vcn_v1_0_jpeg_ring_patch_wreg
_vcn_v1_0_jpeg_ring_patch_wreg:         ; @vcn_v1_0_jpeg_ring_patch_wreg
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x3
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _UVD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UVD@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _mmUVD_JRBC_EXTERNAL_REG_BASE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _mmUVD_JRBC_EXTERNAL_REG_BASE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_SOC15_REG_OFFSET
Lloh6:
	adrp	x23, _PACKETJ_TYPE0@GOTPAGE
Lloh7:
	ldr	x23, [x23, _PACKETJ_TYPE0@GOTPAGEOFF]
	ldr	w3, [x23]
	mov	w1, #0
	mov	w2, #0
	bl	_PACKETJ
	ldr	x8, [x21]
	ldrsw	x9, [x20]
	add	w10, w9, #1
	str	w10, [x20]
	str	w0, [x8, x9, lsl #2]
	mov	w9, #2048
	movk	w9, #65534, lsl #16
	add	w10, w22, w9
	ldrsw	x9, [x20]
	add	w11, w9, #1
	str	w11, [x20]
	lsr	w10, w10, #11
	cmp	w10, #5
	b.lo	LBB0_3
; %bb.1:
	and	w10, w22, #0xfffffe00
	cmp	w10, #30, lsl #12               ; =122880
	b.eq	LBB0_3
; %bb.2:
	mov	w0, #0
	str	w22, [x8, x9, lsl #2]
	b	LBB0_4
LBB0_3:
	str	wzr, [x8, x9, lsl #2]
	lsr	w0, w22, #2
LBB0_4:
	ldr	w3, [x23]
	mov	w1, #0
	mov	w2, #0
	bl	_PACKETJ
	ldr	x8, [x21]
	ldrsw	x9, [x20]
	add	w10, w9, #1
	str	w10, [x20]
	str	w0, [x8, x9, lsl #2]
	ldrsw	x9, [x20]
	add	w10, w9, #1
	str	w10, [x20]
	str	w19, [x8, x9, lsl #2]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_UVD,4,2                        ; @UVD
	.comm	_mmUVD_JRBC_EXTERNAL_REG_BASE,4,2 ; @mmUVD_JRBC_EXTERNAL_REG_BASE
	.comm	_PACKETJ_TYPE0,4,2              ; @PACKETJ_TYPE0
	.no_dead_strip	_vcn_v1_0_jpeg_ring_patch_wreg
.subsections_via_symbols
