	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jpeg_v2_0_stop
_jpeg_v2_0_stop:                        ## @jpeg_v2_0_stop
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_UVD@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_mmUVD_JMI_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_SOC15_REG_OFFSET
	movq	_UVD_JMI_CNTL__SOFT_RESET_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%esi, %edx
	notl	%edx
	movl	%eax, %edi
	callq	_WREG32_P
	movq	_VCN@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_mmJPEG_CGC_CTRL@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	xorl	%esi, %esi
	callq	_RREG32_SOC15
	movq	_JPEG_CGC_CTRL__DYN_CLOCK_MODE__SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsl	%ecx, %eax
	movq	_JPEG_CGC_CTRL__CLK_GATE_DLY_TIMER__SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %dl
	movq	_JPEG_CGC_CTRL__CLK_OFF_DELAY__SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$4, %ebx
	shll	%cl, %ebx
	btsl	%edx, %eax
	orl	%eax, %ebx
	movl	(%r12), %edi
	movl	(%r14), %edx
	xorl	%esi, %esi
	movl	%ebx, %ecx
	callq	_WREG32_SOC15
	movl	(%r12), %edi
	movq	_mmJPEG_CGC_GATE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	xorl	%esi, %esi
	callq	_RREG32_SOC15
	movq	_JPEG_CGC_GATE__JPEG_DEC_MASK@GOTPCREL(%rip), %rcx
	movq	_JPEG_CGC_GATE__JPEG2_DEC_MASK@GOTPCREL(%rip), %rdx
	movq	_JPEG_CGC_GATE__JPEG_ENC_MASK@GOTPCREL(%rip), %rsi
	movq	_JPEG_CGC_GATE__JMCIF_MASK@GOTPCREL(%rip), %rdi
	movq	_JPEG_CGC_GATE__JRBBM_MASK@GOTPCREL(%rip), %r8
	orl	(%rcx), %eax
	orl	(%rdx), %eax
	orl	(%rsi), %eax
	orl	(%rdi), %eax
	orl	(%r8), %eax
	movl	(%r12), %edi
	movl	(%rbx), %edx
	xorl	%esi, %esi
	movl	%eax, %ecx
	callq	_WREG32_SOC15
	movl	(%r15), %edi
	movq	_mmUVD_JPEG_POWER_STATUS@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	xorl	%esi, %esi
	callq	_SOC15_REG_OFFSET
	movl	%eax, %edi
	callq	_RREG32
	movq	_UVD_JPEG_POWER_STATUS__JPEG_POWER_STATUS_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	orl	$1, %ebx
	movl	(%r15), %edi
	movl	(%r14), %edx
	xorl	%esi, %esi
	callq	_SOC15_REG_OFFSET
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_WREG32
	movq	_UVD_PGFSM_CONFIG__UVDJ_PWR_CONFIG__SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$2, %ebx
	shll	%cl, %ebx
	movl	$2, %r14d
	movl	(%r15), %edi
	movq	_mmUVD_PGFSM_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_SOC15_REG_OFFSET
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_WREG32
	movl	(%r12), %edi
	movq	_UVD_PGFSM_STATUS__UVDJ_PWR_STATUS__SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r14d
	movq	_mmUVD_PGFSM_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_UVD_PGFSM_STATUS__UVDJ_PWR_STATUS_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%esi, %esi
	movl	%r14d, %ecx
	xorl	%r9d, %r9d
	callq	_SOC15_WAIT_ON_RREG
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UVD,4,2                        ## @UVD
	.comm	_mmUVD_JMI_CNTL,4,2             ## @mmUVD_JMI_CNTL
	.comm	_UVD_JMI_CNTL__SOFT_RESET_MASK,4,2 ## @UVD_JMI_CNTL__SOFT_RESET_MASK
	.comm	_VCN,4,2                        ## @VCN
	.comm	_mmJPEG_CGC_CTRL,4,2            ## @mmJPEG_CGC_CTRL
	.comm	_JPEG_CGC_CTRL__DYN_CLOCK_MODE__SHIFT,4,2 ## @JPEG_CGC_CTRL__DYN_CLOCK_MODE__SHIFT
	.comm	_JPEG_CGC_CTRL__CLK_GATE_DLY_TIMER__SHIFT,4,2 ## @JPEG_CGC_CTRL__CLK_GATE_DLY_TIMER__SHIFT
	.comm	_JPEG_CGC_CTRL__CLK_OFF_DELAY__SHIFT,4,2 ## @JPEG_CGC_CTRL__CLK_OFF_DELAY__SHIFT
	.comm	_mmJPEG_CGC_GATE,4,2            ## @mmJPEG_CGC_GATE
	.comm	_JPEG_CGC_GATE__JPEG_DEC_MASK,4,2 ## @JPEG_CGC_GATE__JPEG_DEC_MASK
	.comm	_JPEG_CGC_GATE__JPEG2_DEC_MASK,4,2 ## @JPEG_CGC_GATE__JPEG2_DEC_MASK
	.comm	_JPEG_CGC_GATE__JPEG_ENC_MASK,4,2 ## @JPEG_CGC_GATE__JPEG_ENC_MASK
	.comm	_JPEG_CGC_GATE__JMCIF_MASK,4,2  ## @JPEG_CGC_GATE__JMCIF_MASK
	.comm	_JPEG_CGC_GATE__JRBBM_MASK,4,2  ## @JPEG_CGC_GATE__JRBBM_MASK
	.comm	_mmUVD_JPEG_POWER_STATUS,4,2    ## @mmUVD_JPEG_POWER_STATUS
	.comm	_UVD_JPEG_POWER_STATUS__JPEG_POWER_STATUS_MASK,4,2 ## @UVD_JPEG_POWER_STATUS__JPEG_POWER_STATUS_MASK
	.comm	_UVD_PGFSM_CONFIG__UVDJ_PWR_CONFIG__SHIFT,4,2 ## @UVD_PGFSM_CONFIG__UVDJ_PWR_CONFIG__SHIFT
	.comm	_mmUVD_PGFSM_CONFIG,4,2         ## @mmUVD_PGFSM_CONFIG
	.comm	_mmUVD_PGFSM_STATUS,4,2         ## @mmUVD_PGFSM_STATUS
	.comm	_UVD_PGFSM_STATUS__UVDJ_PWR_STATUS__SHIFT,4,2 ## @UVD_PGFSM_STATUS__UVDJ_PWR_STATUS__SHIFT
	.comm	_UVD_PGFSM_STATUS__UVDJ_PWR_STATUS_MASK,4,2 ## @UVD_PGFSM_STATUS__UVDJ_PWR_STATUS_MASK
	.no_dead_strip	_jpeg_v2_0_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function jpeg_v2_0_stop
_jpeg_v2_0_stop:                        ; @jpeg_v2_0_stop
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x20, _UVD@GOTPAGE
Lloh1:
	ldr	x20, [x20, _UVD@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh2:
	adrp	x8, _mmUVD_JMI_CNTL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _mmUVD_JMI_CNTL@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_SOC15_REG_OFFSET
Lloh5:
	adrp	x8, _UVD_JMI_CNTL__SOFT_RESET_MASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _UVD_JMI_CNTL__SOFT_RESET_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mvn	w2, w1
	bl	_WREG32_P
Lloh8:
	adrp	x21, _VCN@GOTPAGE
Lloh9:
	ldr	x21, [x21, _VCN@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh10:
	adrp	x19, _mmJPEG_CGC_CTRL@GOTPAGE
Lloh11:
	ldr	x19, [x19, _mmJPEG_CGC_CTRL@GOTPAGEOFF]
	ldr	w2, [x19]
	mov	w1, #0
	bl	_RREG32_SOC15
Lloh12:
	adrp	x8, _JPEG_CGC_CTRL__DYN_CLOCK_MODE__SHIFT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _JPEG_CGC_CTRL__DYN_CLOCK_MODE__SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	mov	w9, #1
	lsl	w8, w9, w8
Lloh15:
	adrp	x10, _JPEG_CGC_CTRL__CLK_GATE_DLY_TIMER__SHIFT@GOTPAGE
Lloh16:
	ldr	x10, [x10, _JPEG_CGC_CTRL__CLK_GATE_DLY_TIMER__SHIFT@GOTPAGEOFF]
	orr	w8, w8, w0
Lloh17:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w8, w8, w9
Lloh18:
	adrp	x9, _JPEG_CGC_CTRL__CLK_OFF_DELAY__SHIFT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _JPEG_CGC_CTRL__CLK_OFF_DELAY__SHIFT@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	mov	w10, #4
	lsl	w9, w10, w9
	orr	w3, w8, w9
	ldr	w0, [x21]
	ldr	w2, [x19]
	mov	w1, #0
	bl	_WREG32_SOC15
	ldr	w0, [x21]
Lloh21:
	adrp	x19, _mmJPEG_CGC_GATE@GOTPAGE
Lloh22:
	ldr	x19, [x19, _mmJPEG_CGC_GATE@GOTPAGEOFF]
	ldr	w2, [x19]
	mov	w1, #0
	bl	_RREG32_SOC15
Lloh23:
	adrp	x8, _JPEG_CGC_GATE__JPEG_DEC_MASK@GOTPAGE
Lloh24:
	ldr	x8, [x8, _JPEG_CGC_GATE__JPEG_DEC_MASK@GOTPAGEOFF]
Lloh25:
	adrp	x9, _JPEG_CGC_GATE__JPEG2_DEC_MASK@GOTPAGE
Lloh26:
	ldr	x9, [x9, _JPEG_CGC_GATE__JPEG2_DEC_MASK@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
Lloh28:
	ldr	w9, [x9]
Lloh29:
	adrp	x10, _JPEG_CGC_GATE__JPEG_ENC_MASK@GOTPAGE
Lloh30:
	ldr	x10, [x10, _JPEG_CGC_GATE__JPEG_ENC_MASK@GOTPAGEOFF]
Lloh31:
	adrp	x11, _JPEG_CGC_GATE__JMCIF_MASK@GOTPAGE
Lloh32:
	ldr	x11, [x11, _JPEG_CGC_GATE__JMCIF_MASK@GOTPAGEOFF]
Lloh33:
	ldr	w10, [x10]
Lloh34:
	ldr	w11, [x11]
Lloh35:
	adrp	x12, _JPEG_CGC_GATE__JRBBM_MASK@GOTPAGE
Lloh36:
	ldr	x12, [x12, _JPEG_CGC_GATE__JRBBM_MASK@GOTPAGEOFF]
Lloh37:
	ldr	w12, [x12]
	orr	w8, w8, w0
	orr	w8, w8, w9
	orr	w8, w8, w10
	orr	w8, w8, w11
	orr	w3, w8, w12
	ldr	w0, [x21]
	ldr	w2, [x19]
	mov	w1, #0
	bl	_WREG32_SOC15
	ldr	w0, [x20]
Lloh38:
	adrp	x22, _mmUVD_JPEG_POWER_STATUS@GOTPAGE
Lloh39:
	ldr	x22, [x22, _mmUVD_JPEG_POWER_STATUS@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	w1, #0
	bl	_SOC15_REG_OFFSET
	bl	_RREG32
Lloh40:
	adrp	x8, _UVD_JPEG_POWER_STATUS__JPEG_POWER_STATUS_MASK@GOTPAGE
Lloh41:
	ldr	x8, [x8, _UVD_JPEG_POWER_STATUS__JPEG_POWER_STATUS_MASK@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	bic	w8, w0, w8
	orr	w19, w8, #0x1
	ldr	w0, [x20]
	ldr	w2, [x22]
	mov	w1, #0
	bl	_SOC15_REG_OFFSET
	mov	x1, x19
	bl	_WREG32
Lloh43:
	adrp	x8, _UVD_PGFSM_CONFIG__UVDJ_PWR_CONFIG__SHIFT@GOTPAGE
Lloh44:
	ldr	x8, [x8, _UVD_PGFSM_CONFIG__UVDJ_PWR_CONFIG__SHIFT@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	mov	w22, #2
	lsl	w19, w22, w8
	ldr	w0, [x20]
Lloh46:
	adrp	x8, _mmUVD_PGFSM_CONFIG@GOTPAGE
Lloh47:
	ldr	x8, [x8, _mmUVD_PGFSM_CONFIG@GOTPAGEOFF]
Lloh48:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_SOC15_REG_OFFSET
	mov	x1, x19
	bl	_WREG32
	ldr	w0, [x21]
Lloh49:
	adrp	x8, _mmUVD_PGFSM_STATUS@GOTPAGE
Lloh50:
	ldr	x8, [x8, _mmUVD_PGFSM_STATUS@GOTPAGEOFF]
Lloh51:
	adrp	x9, _UVD_PGFSM_STATUS__UVDJ_PWR_STATUS__SHIFT@GOTPAGE
Lloh52:
	ldr	x9, [x9, _UVD_PGFSM_STATUS__UVDJ_PWR_STATUS__SHIFT@GOTPAGEOFF]
Lloh53:
	ldr	w2, [x8]
Lloh54:
	ldr	w8, [x9]
	lsl	w3, w22, w8
Lloh55:
	adrp	x8, _UVD_PGFSM_STATUS__UVDJ_PWR_STATUS_MASK@GOTPAGE
Lloh56:
	ldr	x8, [x8, _UVD_PGFSM_STATUS__UVDJ_PWR_STATUS_MASK@GOTPAGEOFF]
Lloh57:
	ldr	w4, [x8]
	mov	w1, #0
	mov	w5, #0
	bl	_SOC15_WAIT_ON_RREG
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh53
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh33
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh27
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_UVD,4,2                        ; @UVD
	.comm	_mmUVD_JMI_CNTL,4,2             ; @mmUVD_JMI_CNTL
	.comm	_UVD_JMI_CNTL__SOFT_RESET_MASK,4,2 ; @UVD_JMI_CNTL__SOFT_RESET_MASK
	.comm	_VCN,4,2                        ; @VCN
	.comm	_mmJPEG_CGC_CTRL,4,2            ; @mmJPEG_CGC_CTRL
	.comm	_JPEG_CGC_CTRL__DYN_CLOCK_MODE__SHIFT,4,2 ; @JPEG_CGC_CTRL__DYN_CLOCK_MODE__SHIFT
	.comm	_JPEG_CGC_CTRL__CLK_GATE_DLY_TIMER__SHIFT,4,2 ; @JPEG_CGC_CTRL__CLK_GATE_DLY_TIMER__SHIFT
	.comm	_JPEG_CGC_CTRL__CLK_OFF_DELAY__SHIFT,4,2 ; @JPEG_CGC_CTRL__CLK_OFF_DELAY__SHIFT
	.comm	_mmJPEG_CGC_GATE,4,2            ; @mmJPEG_CGC_GATE
	.comm	_JPEG_CGC_GATE__JPEG_DEC_MASK,4,2 ; @JPEG_CGC_GATE__JPEG_DEC_MASK
	.comm	_JPEG_CGC_GATE__JPEG2_DEC_MASK,4,2 ; @JPEG_CGC_GATE__JPEG2_DEC_MASK
	.comm	_JPEG_CGC_GATE__JPEG_ENC_MASK,4,2 ; @JPEG_CGC_GATE__JPEG_ENC_MASK
	.comm	_JPEG_CGC_GATE__JMCIF_MASK,4,2  ; @JPEG_CGC_GATE__JMCIF_MASK
	.comm	_JPEG_CGC_GATE__JRBBM_MASK,4,2  ; @JPEG_CGC_GATE__JRBBM_MASK
	.comm	_mmUVD_JPEG_POWER_STATUS,4,2    ; @mmUVD_JPEG_POWER_STATUS
	.comm	_UVD_JPEG_POWER_STATUS__JPEG_POWER_STATUS_MASK,4,2 ; @UVD_JPEG_POWER_STATUS__JPEG_POWER_STATUS_MASK
	.comm	_UVD_PGFSM_CONFIG__UVDJ_PWR_CONFIG__SHIFT,4,2 ; @UVD_PGFSM_CONFIG__UVDJ_PWR_CONFIG__SHIFT
	.comm	_mmUVD_PGFSM_CONFIG,4,2         ; @mmUVD_PGFSM_CONFIG
	.comm	_mmUVD_PGFSM_STATUS,4,2         ; @mmUVD_PGFSM_STATUS
	.comm	_UVD_PGFSM_STATUS__UVDJ_PWR_STATUS__SHIFT,4,2 ; @UVD_PGFSM_STATUS__UVDJ_PWR_STATUS__SHIFT
	.comm	_UVD_PGFSM_STATUS__UVDJ_PWR_STATUS_MASK,4,2 ; @UVD_PGFSM_STATUS__UVDJ_PWR_STATUS_MASK
	.no_dead_strip	_jpeg_v2_0_stop
.subsections_via_symbols
