	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5p_jpeg_remove
_s5p_jpeg_remove:                       ## @s5p_jpeg_remove
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_platform_get_drvdata
	movq	%rax, %r15
	movl	32(%rax), %edi
	callq	_pm_runtime_disable
	movl	28(%r15), %edi
	callq	_video_unregister_device
	movl	24(%r15), %edi
	callq	_video_unregister_device
	movq	%r14, %rdi
	callq	_vb2_dma_contig_clear_max_seg_size
	movl	20(%r15), %edi
	callq	_v4l2_m2m_release
	leaq	16(%r15), %rdi
	callq	_v4l2_device_unregister
	movq	%r14, %rdi
	callq	_pm_runtime_status_suspended
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	8(%r15), %rax
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	jle	LBB0_4
## %bb.2:
	incq	%rbx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leal	-2(%rbx), %eax
	movq	(%r15), %rcx
	movl	(%rcx,%rax,4), %edi
	callq	_clk_disable_unprepare
	decq	%rbx
	cmpq	$1, %rbx
	ja	LBB0_3
LBB0_4:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_s5p_jpeg_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s5p_jpeg_remove
_s5p_jpeg_remove:                       ; @s5p_jpeg_remove
	.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	x20, x0
	bl	_platform_get_drvdata
	mov	x19, x0
	ldr	w0, [x0, #32]
	bl	_pm_runtime_disable
	ldr	w0, [x19, #28]
	bl	_video_unregister_device
	ldr	w0, [x19, #24]
	bl	_video_unregister_device
	mov	x0, x20
	bl	_vb2_dma_contig_clear_max_seg_size
	ldr	w0, [x19, #20]
	bl	_v4l2_m2m_release
	add	x0, x19, #16
	bl	_v4l2_device_unregister
	mov	x0, x20
	bl	_pm_runtime_status_suspended
	cbnz	w0, LBB0_4
; %bb.1:
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	add	x20, x8, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	sub	w8, w20, #2
	ldr	x9, [x19]
	ldr	w0, [x9, w8, uxtw #2]
	bl	_clk_disable_unprepare
	sub	x20, x20, #1
	cmp	x20, #1
	b.hi	LBB0_3
LBB0_4:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_s5p_jpeg_remove
.subsections_via_symbols
