	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __omap3isp_put
___omap3isp_put:                        ## @__omap3isp_put
	.cfi_startproc
## %bb.0:
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.1:
	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
	movl	%esi, %r15d
	movq	%rdi, %rbx
	leaq	12(%rdi), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	xorl	%edi, %edi
	cmpq	$0, (%rbx)
	sete	%dil
	callq	_BUG_ON
	decq	(%rbx)
	jne	LBB0_8
## %bb.2:
	movq	%rbx, %rdi
	callq	_isp_disable_interrupts
	testl	%r15d, %r15d
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_isp_save_ctx
	movl	$1, 8(%rbx)
LBB0_4:
	leaq	24(%rbx), %rdi
	callq	_media_entity_enum_empty
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	cmpq	$0, 16(%rbx)
	je	LBB0_7
LBB0_6:
	movq	%rbx, %rdi
	callq	_isp_reset
LBB0_7:
	movq	%rbx, %rdi
	callq	_isp_disable_clocks
LBB0_8:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
LBB0_9:
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	___omap3isp_put
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __omap3isp_put
___omap3isp_put:                        ; @__omap3isp_put
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_9
; %bb.1:
	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
	mov	x21, x1
	mov	x20, x0
	add	x19, x0, #12
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x20]
	cmp	x8, #0
	cset	w0, eq
	bl	_BUG_ON
	ldr	x8, [x20]
	subs	x8, x8, #1
	str	x8, [x20]
	b.ne	LBB0_8
; %bb.2:
	mov	x0, x20
	bl	_isp_disable_interrupts
	cbz	w21, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_isp_save_ctx
	mov	w8, #1
	str	w8, [x20, #8]
LBB0_4:
	add	x0, x20, #24
	bl	_media_entity_enum_empty
	cbz	w0, LBB0_6
; %bb.5:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_7
LBB0_6:
	mov	x0, x20
	bl	_isp_reset
LBB0_7:
	mov	x0, x20
	bl	_isp_disable_clocks
LBB0_8:
	mov	x0, x19
	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
	b	_mutex_unlock
LBB0_9:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	___omap3isp_put
.subsections_via_symbols
