	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_omap3isp_hist_init             ## -- Begin function omap3isp_hist_init
	.p2align	4, 0x90
_omap3isp_hist_init:                    ## @omap3isp_hist_init
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	leaq	8(%r12), %r14
	movq	%r12, 40(%r12)
	movq	_HIST_CONFIG_DMA@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.3:
	callq	_dma_cap_zero
	movq	_DMA_SLAVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_dma_cap_set
	leaq	-36(%rbp), %rdi
	callq	_dma_request_chan_by_mask
	movq	%rax, (%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	(%r14), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	je	LBB0_8
## %bb.5:
	movq	$0, 8(%r12)
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
	jmp	LBB0_7
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_6:
	movl	(%r12), %ebx
	movq	8(%r12), %rdi
	callq	_dma_chan_name
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_dev_dbg
LBB0_7:
	movq	_hist_ops@GOTPCREL(%rip), %rax
	movq	%rax, 32(%r12)
	movq	%r15, 24(%r12)
	movq	_V4L2_EVENT_OMAP3ISP_HIST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	leaq	L_.str.2(%rip), %rsi
	movq	_hist_subdev_ops@GOTPCREL(%rip), %rdx
	movq	%r14, %rdi
	callq	_omap3isp_stat_init
	movl	%eax, %ebx
LBB0_8:
	testl	%ebx, %ebx
	je	LBB0_9
## %bb.10:
	movq	(%r14), %rdi
	callq	_IS_ERR_OR_NULL
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	movq	(%r14), %rdi
	callq	_dma_release_channel
LBB0_12:
	movq	%r15, %rdi
	callq	_kfree
	jmp	LBB0_13
LBB0_9:
	xorl	%ebx, %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_HIST_CONFIG_DMA,8,3            ## @HIST_CONFIG_DMA
	.comm	_DMA_SLAVE,4,2                  ## @DMA_SLAVE
	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hist: DMA channel request failed, using PIO\n"

L_.str.1:                               ## @.str.1
	.asciz	"hist: using DMA channel %s\n"

	.comm	_hist_ops,4,2                   ## @hist_ops
	.comm	_V4L2_EVENT_OMAP3ISP_HIST,4,2   ## @V4L2_EVENT_OMAP3ISP_HIST
L_.str.2:                               ## @.str.2
	.asciz	"histogram"

	.comm	_hist_subdev_ops,4,2            ## @hist_subdev_ops
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_omap3isp_hist_init             ; -- Begin function omap3isp_hist_init
	.p2align	2
_omap3isp_hist_init:                    ; @omap3isp_hist_init
	.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, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #4
	bl	_kzalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	add	x20, x21, #8
	str	x21, [x21, #40]
Lloh3:
	adrp	x8, _HIST_CONFIG_DMA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HIST_CONFIG_DMA@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.2:
	bl	_dma_cap_zero
Lloh6:
	adrp	x8, _DMA_SLAVE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DMA_SLAVE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_dma_cap_set
	add	x0, sp, #12
	bl	_dma_request_chan_by_mask
	str	x0, [x20]
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.3:
	ldr	x0, [x20]
	bl	_PTR_ERR
Lloh9:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_8
; %bb.4:
	str	xzr, [x21, #8]
	ldr	w0, [x21]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
	b	LBB0_7
LBB0_5:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_12
LBB0_6:
	ldr	w22, [x21]
	ldr	x0, [x21, #8]
	bl	_dma_chan_name
	mov	x2, x0
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_dev_dbg
LBB0_7:
Lloh19:
	adrp	x8, _hist_ops@GOTPAGE
Lloh20:
	ldr	x8, [x8, _hist_ops@GOTPAGEOFF]
	stp	x19, x8, [x21, #24]
Lloh21:
	adrp	x8, _V4L2_EVENT_OMAP3ISP_HIST@GOTPAGE
Lloh22:
	ldr	x8, [x8, _V4L2_EVENT_OMAP3ISP_HIST@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	w8, [x21, #16]
Lloh24:
	adrp	x1, l_.str.2@PAGE
Lloh25:
	add	x1, x1, l_.str.2@PAGEOFF
Lloh26:
	adrp	x2, _hist_subdev_ops@GOTPAGE
Lloh27:
	ldr	x2, [x2, _hist_subdev_ops@GOTPAGEOFF]
	mov	x0, x20
	bl	_omap3isp_stat_init
LBB0_8:
	mov	x22, x0
	cbz	w0, LBB0_12
; %bb.9:
	ldr	x0, [x20]
	bl	_IS_ERR_OR_NULL
	cbnz	w0, LBB0_11
; %bb.10:
	ldr	x0, [x20]
	bl	_dma_release_channel
LBB0_11:
	mov	x0, x19
	bl	_kfree
LBB0_12:
	mov	x0, x22
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_HIST_CONFIG_DMA,8,3            ; @HIST_CONFIG_DMA
	.comm	_DMA_SLAVE,4,2                  ; @DMA_SLAVE
	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hist: DMA channel request failed, using PIO\n"

l_.str.1:                               ; @.str.1
	.asciz	"hist: using DMA channel %s\n"

	.comm	_hist_ops,4,2                   ; @hist_ops
	.comm	_V4L2_EVENT_OMAP3ISP_HIST,4,2   ; @V4L2_EVENT_OMAP3ISP_HIST
l_.str.2:                               ; @.str.2
	.asciz	"histogram"

	.comm	_hist_subdev_ops,4,2            ; @hist_subdev_ops
.subsections_via_symbols
