	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipu_image_convert_init         ## -- Begin function ipu_image_convert_init
	.p2align	4, 0x90
_ipu_image_convert_init:                ## @ipu_image_convert_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	%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	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rsi, %rdi
	movl	$16, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, (%r14)
	movq	%r14, 8(%rax)
	movq	_IC_NUM_TASKS@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	jle	LBB0_5
## %bb.3:
	movl	$20, %ebx
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %r15
	leaq	(%r15,%rbx), %r13
	movl	%r14d, -20(%r15,%rbx)
	movq	%rax, 20(%r15,%rbx)
	movq	_image_convert_dma_chan@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	%r12, %rax
	movq	%rax, 12(%r15,%rbx)
	movq	$-1, -16(%r15,%rbx)
	leaq	(%r15,%rbx), %rdi
	addq	$4, %rdi
	callq	_spin_lock_init
	movq	%r13, %rdi
	callq	_INIT_LIST_HEAD
	leaq	(%r15,%rbx), %rdi
	addq	$-4, %rdi
	callq	_INIT_LIST_HEAD
	leaq	(%r15,%rbx), %rdi
	addq	$-8, %rdi
	callq	_INIT_LIST_HEAD
	movq	_IC_NUM_TASKS@GOTPCREL(%rip), %rax
	incq	%r14
	movslq	(%rax), %rax
	addq	$4, %r12
	addq	$48, %rbx
	cmpq	%rax, %r14
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	jl	LBB0_4
LBB0_5:
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IC_NUM_TASKS,4,2               ## @IC_NUM_TASKS
	.comm	_image_convert_dma_chan,8,3     ## @image_convert_dma_chan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipu_image_convert_init         ; -- Begin function ipu_image_convert_init
	.p2align	2
_ipu_image_convert_init:                ; @ipu_image_convert_init
	.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	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x1
	mov	w1, #16
	bl	_devm_kzalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	str	x0, [x20]
	str	x20, [x0, #8]
Lloh3:
	adrp	x20, _IC_NUM_TASKS@GOTPAGE
Lloh4:
	ldr	x20, [x20, _IC_NUM_TASKS@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x21, #0
	mov	x22, #0
	mov	w23, #40
Lloh5:
	adrp	x24, _image_convert_dma_chan@GOTPAGE
Lloh6:
	ldr	x24, [x24, _image_convert_dma_chan@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	add	x25, x8, x23
	stur	w22, [x25, #-40]
	str	x19, [x25]
	ldr	x8, [x24]
	add	x8, x8, x21
	stur	x8, [x25, #-8]
	movi.2d	v0, #0xffffffffffffffff
	stur	d0, [x25, #-36]
	sub	x0, x25, #16
	bl	_spin_lock_init
	sub	x0, x25, #20
	bl	_INIT_LIST_HEAD
	sub	x0, x25, #24
	bl	_INIT_LIST_HEAD
	sub	x0, x25, #28
	bl	_INIT_LIST_HEAD
	add	x22, x22, #1
	ldrsw	x8, [x20]
	add	x21, x21, #4
	add	x23, x23, #48
	cmp	x22, x8
	b.lt	LBB0_3
LBB0_4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IC_NUM_TASKS,4,2               ; @IC_NUM_TASKS
	.comm	_image_convert_dma_chan,8,3     ; @image_convert_dma_chan
.subsections_via_symbols
