	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_omap3isp_stat_enable           ## -- Begin function omap3isp_stat_enable
	.p2align	4, 0x90
_omap3isp_stat_enable:                  ## @omap3isp_stat_enable
	.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	%rsi, %r15
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movl	4(%rax), %edi
	movl	24(%rbx), %edx
	testq	%rsi, %rsi
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rcx
	cmovneq	%rax, %rcx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	leaq	8(%rbx), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	16(%rbx), %rdi
	callq	_spin_lock_irqsave
	testq	%r15, %r15
	je	LBB0_3
## %bb.1:
	cmpl	$0, 28(%rbx)
	jne	LBB0_3
## %bb.2:
	movq	16(%rbx), %rdi
	callq	_spin_unlock_irqrestore
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	16(%rbx), %rax
	movl	4(%rax), %edi
	movl	24(%rbx), %edx
	leaq	L_.str.3(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_3:
	movq	(%rbx), %rax
	testq	%r15, %r15
	je	LBB0_9
## %bb.4:
	movq	_ISPSTAT_DISABLING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.5:
	movq	_ISPSTAT_ENABLED@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_9:
	movq	_ISPSTAT_ENABLING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.10:
	movq	_ISPSTAT_DISABLED@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_7:
	movq	_ISPSTAT_DISABLED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.8:
	movq	_ISPSTAT_ENABLING@GOTPCREL(%rip), %rax
LBB0_6:
	movq	(%rax), %rax
	movq	%rax, (%rbx)
LBB0_13:
	movq	16(%rbx), %rdi
	callq	_spin_unlock_irqrestore
	movq	%r14, %rdi
	callq	_mutex_unlock
	xorl	%ebx, %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_ISPSTAT_ENABLED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.12:
	movq	_ISPSTAT_DISABLING@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movq	%rbx, %rdi
	callq	_isp_stat_buf_clear
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: user wants to %s module.\n"

L_.str.1:                               ## @.str.1
	.asciz	"enable"

L_.str.2:                               ## @.str.2
	.asciz	"disable"

L_.str.3:                               ## @.str.3
	.asciz	"%s: cannot enable module as it's never been successfully configured so far.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ISPSTAT_DISABLING,8,3          ## @ISPSTAT_DISABLING
	.comm	_ISPSTAT_ENABLED,8,3            ## @ISPSTAT_ENABLED
	.comm	_ISPSTAT_DISABLED,8,3           ## @ISPSTAT_DISABLED
	.comm	_ISPSTAT_ENABLING,8,3           ## @ISPSTAT_ENABLING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_omap3isp_stat_enable           ; -- Begin function omap3isp_stat_enable
	.p2align	2
_omap3isp_stat_enable:                  ; @omap3isp_stat_enable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	w0, [x8, #4]
	ldr	w2, [x19, #24]
Lloh0:
	adrp	x8, l_.str.2@PAGE
Lloh1:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh2:
	adrp	x9, l_.str.1@PAGE
Lloh3:
	add	x9, x9, l_.str.1@PAGEOFF
	cmp	x1, #0
	csel	x8, x9, x8, ne
	str	x8, [sp]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	add	x20, x19, #8
	mov	x0, x20
	bl	_mutex_lock
	ldr	x0, [x19, #16]
	bl	_spin_lock_irqsave
	cbz	x21, LBB0_3
; %bb.1:
	ldr	w8, [x19, #28]
	cbnz	w8, LBB0_3
; %bb.2:
	ldr	x0, [x19, #16]
	bl	_spin_unlock_irqrestore
	mov	x0, x20
	bl	_mutex_unlock
	ldr	x8, [x19, #16]
	ldr	w0, [x8, #4]
	ldr	w2, [x19, #24]
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_dbg
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_3:
	ldr	x8, [x19]
	cbz	x21, LBB0_6
; %bb.4:
Lloh11:
	adrp	x9, _ISPSTAT_DISABLING@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ISPSTAT_DISABLING@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.5:
Lloh14:
	adrp	x8, _ISPSTAT_ENABLED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ISPSTAT_ENABLED@GOTPAGEOFF]
	b	LBB0_10
LBB0_6:
Lloh16:
	adrp	x9, _ISPSTAT_ENABLING@GOTPAGE
Lloh17:
	ldr	x9, [x9, _ISPSTAT_ENABLING@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.7:
Lloh19:
	adrp	x8, _ISPSTAT_DISABLED@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ISPSTAT_DISABLED@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
Lloh21:
	adrp	x9, _ISPSTAT_DISABLED@GOTPAGE
Lloh22:
	ldr	x9, [x9, _ISPSTAT_DISABLED@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.9:
Lloh24:
	adrp	x8, _ISPSTAT_ENABLING@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ISPSTAT_ENABLING@GOTPAGEOFF]
LBB0_10:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_11:
	ldr	x0, [x19, #16]
	bl	_spin_unlock_irqrestore
	mov	x0, x20
	bl	_mutex_unlock
	mov	w0, #0
LBB0_12:
	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
	add	sp, sp, #64
	ret
LBB0_13:
Lloh26:
	adrp	x9, _ISPSTAT_ENABLED@GOTPAGE
Lloh27:
	ldr	x9, [x9, _ISPSTAT_ENABLED@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.14:
Lloh29:
	adrp	x8, _ISPSTAT_DISABLING@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ISPSTAT_DISABLING@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
	str	x8, [x19]
	mov	x0, x19
	bl	_isp_stat_buf_clear
	b	LBB0_11
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: user wants to %s module.\n"

l_.str.1:                               ; @.str.1
	.asciz	"enable"

l_.str.2:                               ; @.str.2
	.asciz	"disable"

l_.str.3:                               ; @.str.3
	.asciz	"%s: cannot enable module as it's never been successfully configured so far.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ISPSTAT_DISABLING,8,3          ; @ISPSTAT_DISABLING
	.comm	_ISPSTAT_ENABLED,8,3            ; @ISPSTAT_ENABLED
	.comm	_ISPSTAT_DISABLED,8,3           ; @ISPSTAT_DISABLED
	.comm	_ISPSTAT_ENABLING,8,3           ; @ISPSTAT_ENABLING
.subsections_via_symbols
