	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipu_pre_remove
_ipu_pre_remove:                        ## @ipu_pre_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	callq	_platform_get_drvdata
	movq	%rax, %rbx
	movq	_ipu_pre_list_mutex@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	leaq	16(%rbx), %rdi
	callq	_list_del
	movq	_available_pres@GOTPCREL(%rip), %rax
	decl	(%rax)
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	12(%rbx), %edi
	callq	_clk_disable_unprepare
	movq	(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movl	8(%rbx), %edi
	movq	_IPU_PRE_MAX_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IPU_PRE_NUM_SCANLINES@GOTPCREL(%rip), %rax
	imull	(%rax), %edx
	shll	$2, %edx
	callq	_gen_pool_free
LBB0_2:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ipu_pre_list_mutex,4,2         ## @ipu_pre_list_mutex
	.comm	_available_pres,4,2             ## @available_pres
	.comm	_IPU_PRE_MAX_WIDTH,4,2          ## @IPU_PRE_MAX_WIDTH
	.comm	_IPU_PRE_NUM_SCANLINES,4,2      ## @IPU_PRE_NUM_SCANLINES
	.no_dead_strip	_ipu_pre_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipu_pre_remove
_ipu_pre_remove:                        ; @ipu_pre_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
	bl	_platform_get_drvdata
	mov	x19, x0
Lloh0:
	adrp	x20, _ipu_pre_list_mutex@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ipu_pre_list_mutex@GOTPAGEOFF]
	mov	x0, x20
	bl	_mutex_lock
	add	x0, x19, #16
	bl	_list_del
Lloh2:
	adrp	x8, _available_pres@GOTPAGE
Lloh3:
	ldr	x8, [x8, _available_pres@GOTPAGEOFF]
	ldr	w9, [x8]
	sub	w9, w9, #1
	str	w9, [x8]
	mov	x0, x20
	bl	_mutex_unlock
	ldr	w0, [x19, #12]
	bl	_clk_disable_unprepare
	ldr	x1, [x19]
	cbz	x1, LBB0_2
; %bb.1:
	ldr	w0, [x19, #8]
Lloh4:
	adrp	x8, _IPU_PRE_MAX_WIDTH@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IPU_PRE_MAX_WIDTH@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _IPU_PRE_NUM_SCANLINES@GOTPAGE
Lloh8:
	ldr	x9, [x9, _IPU_PRE_NUM_SCANLINES@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	mul	w8, w8, w9
	lsl	w2, w8, #2
	bl	_gen_pool_free
LBB0_2:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ipu_pre_list_mutex,4,2         ; @ipu_pre_list_mutex
	.comm	_available_pres,4,2             ; @available_pres
	.comm	_IPU_PRE_MAX_WIDTH,4,2          ; @IPU_PRE_MAX_WIDTH
	.comm	_IPU_PRE_NUM_SCANLINES,4,2      ; @IPU_PRE_NUM_SCANLINES
	.no_dead_strip	_ipu_pre_remove
.subsections_via_symbols
