	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hist_reset_mem
_hist_reset_mem:                        ## @hist_reset_mem
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	16(%rdi), %rbx
	movq	_OMAP3_ISP_IOMEM_HIST@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	_ISPHIST_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_isp_reg_writel
	movl	(%r12), %esi
	movq	_ISPHIST_CNT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ISPHIST_CNT_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_isp_reg_set
	movq	_OMAP3ISP_HIST_MEM_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	3(%rax), %r13d
	cmpl	$7, %r13d
	jb	LBB0_3
## %bb.1:
	testl	%eax, %eax
	cmovnsl	%eax, %r13d
	sarl	$2, %r13d
	movq	_ISPHIST_DATA@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %esi
	movl	(%r15), %edx
	movq	%rbx, %rdi
	callq	_isp_reg_readl
	movl	(%r12), %esi
	movl	(%r15), %edx
	movq	%rbx, %rdi
	callq	_isp_reg_readl
	movl	(%r12), %esi
	movl	(%r15), %edx
	movq	%rbx, %rdi
	callq	_isp_reg_readl
	movl	(%r12), %esi
	movl	(%r15), %edx
	movq	%rbx, %rdi
	callq	_isp_reg_readl
	decl	%r13d
	jne	LBB0_2
LBB0_3:
	movl	(%r12), %esi
	movq	_ISPHIST_CNT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ISPHIST_CNT_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_isp_reg_clr
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OMAP3_ISP_IOMEM_HIST,4,2       ## @OMAP3_ISP_IOMEM_HIST
	.comm	_ISPHIST_ADDR,4,2               ## @ISPHIST_ADDR
	.comm	_ISPHIST_CNT,4,2                ## @ISPHIST_CNT
	.comm	_ISPHIST_CNT_CLEAR,4,2          ## @ISPHIST_CNT_CLEAR
	.comm	_OMAP3ISP_HIST_MEM_SIZE,4,2     ## @OMAP3ISP_HIST_MEM_SIZE
	.comm	_ISPHIST_DATA,4,2               ## @ISPHIST_DATA
	.no_dead_strip	_hist_reset_mem
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hist_reset_mem
_hist_reset_mem:                        ; @hist_reset_mem
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldp	x21, x20, [x0, #8]
Lloh0:
	adrp	x22, _OMAP3_ISP_IOMEM_HIST@GOTPAGE
Lloh1:
	ldr	x22, [x22, _OMAP3_ISP_IOMEM_HIST@GOTPAGEOFF]
	ldr	w2, [x22]
Lloh2:
	adrp	x8, _ISPHIST_ADDR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ISPHIST_ADDR@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	mov	x0, x20
	mov	w1, #0
	bl	_isp_reg_writel
	ldr	w1, [x22]
Lloh5:
	adrp	x23, _ISPHIST_CNT@GOTPAGE
Lloh6:
	ldr	x23, [x23, _ISPHIST_CNT@GOTPAGEOFF]
	ldr	w2, [x23]
Lloh7:
	adrp	x24, _ISPHIST_CNT_CLEAR@GOTPAGE
Lloh8:
	ldr	x24, [x24, _ISPHIST_CNT_CLEAR@GOTPAGEOFF]
	ldr	w3, [x24]
	mov	x0, x20
	bl	_isp_reg_set
Lloh9:
	adrp	x8, _OMAP3ISP_HIST_MEM_SIZE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _OMAP3ISP_HIST_MEM_SIZE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	add	w9, w8, #3
	cmp	w9, #7
	b.lo	LBB0_3
; %bb.1:
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w25, w8, #2
Lloh12:
	adrp	x26, _ISPHIST_DATA@GOTPAGE
Lloh13:
	ldr	x26, [x26, _ISPHIST_DATA@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	ldr	w2, [x26]
	mov	x0, x20
	bl	_isp_reg_readl
	ldr	w1, [x22]
	ldr	w2, [x26]
	mov	x0, x20
	bl	_isp_reg_readl
	ldr	w1, [x22]
	ldr	w2, [x26]
	mov	x0, x20
	bl	_isp_reg_readl
	ldr	w1, [x22]
	ldr	w2, [x26]
	mov	x0, x20
	bl	_isp_reg_readl
	subs	w25, w25, #1
	b.ne	LBB0_2
LBB0_3:
	ldr	w1, [x22]
	ldr	w2, [x23]
	ldr	w3, [x24]
	mov	x0, x20
	bl	_isp_reg_clr
	ldr	w8, [x21]
	str	w8, [x19]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_OMAP3_ISP_IOMEM_HIST,4,2       ; @OMAP3_ISP_IOMEM_HIST
	.comm	_ISPHIST_ADDR,4,2               ; @ISPHIST_ADDR
	.comm	_ISPHIST_CNT,4,2                ; @ISPHIST_CNT
	.comm	_ISPHIST_CNT_CLEAR,4,2          ; @ISPHIST_CNT_CLEAR
	.comm	_OMAP3ISP_HIST_MEM_SIZE,4,2     ; @OMAP3ISP_HIST_MEM_SIZE
	.comm	_ISPHIST_DATA,4,2               ; @ISPHIST_DATA
	.no_dead_strip	_hist_reset_mem
.subsections_via_symbols
