	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipu_dp_init                    ## -- Begin function ipu_dp_init
	.p2align	4, 0x90
_ipu_dp_init:                           ## @ipu_dp_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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rsi, %rdi
	movl	$40, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r15, 32(%rax)
	movq	%r12, 24(%rax)
	movq	%rax, (%r12)
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_devm_ioremap
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rbx, %rdi
	addq	$16, %rdi
	callq	_mutex_init
	movq	_IPUV3_NUM_FLOWS@GOTPCREL(%rip), %r8
	cmpl	$0, (%r8)
	jle	LBB0_4
## %bb.5:
	movq	(%rbx), %rdx
	movq	8(%rbx), %r10
	addq	$32, %rdx
	xorl	%eax, %eax
	movq	_IPUV3_COLORSPACE_UNKNOWN@GOTPCREL(%rip), %rdi
	movq	_ipu_dp_flow_base@GOTPCREL(%rip), %r9
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdi), %rsi
	movq	%rsi, (%rdx)
	movq	(%rdi), %rsi
	movq	%rsi, -8(%rdx)
	movl	$1, -16(%rdx)
	movq	(%r9), %rsi
	movq	(%rsi,%rcx,8), %rsi
	addq	%r10, %rsi
	movq	%rsi, -24(%rdx)
	movq	%rbx, -32(%rdx)
	incq	%rcx
	movslq	(%r8), %rsi
	addq	$40, %rdx
	cmpq	%rsi, %rcx
	jl	LBB0_6
	jmp	LBB0_7
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_4:
	xorl	%eax, %eax
LBB0_7:
                                        ## kill: def $eax killed $eax killed $rax
	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	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_IPUV3_NUM_FLOWS,4,2            ## @IPUV3_NUM_FLOWS
	.comm	_IPUV3_COLORSPACE_UNKNOWN,8,3   ## @IPUV3_COLORSPACE_UNKNOWN
	.comm	_ipu_dp_flow_base,8,3           ## @ipu_dp_flow_base
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipu_dp_init                    ; -- Begin function ipu_dp_init
	.p2align	2
_ipu_dp_init:                           ; @ipu_dp_init
	.cfi_startproc
; %bb.0:
	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	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x1
	mov	w1, #40
	bl	_devm_kzalloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	stp	x22, x21, [x0, #24]
	str	x0, [x22]
Lloh3:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x20
	bl	_devm_ioremap
	str	x0, [x19, #8]
	cbz	x0, LBB0_6
; %bb.2:
	add	x0, x19, #16
	bl	_mutex_init
Lloh6:
	adrp	x8, _IPUV3_NUM_FLOWS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IPUV3_NUM_FLOWS@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x9, #0
	ldp	x11, x10, [x19]
	add	x11, x11, #16
Lloh8:
	adrp	x12, _IPUV3_COLORSPACE_UNKNOWN@GOTPAGE
Lloh9:
	ldr	x12, [x12, _IPUV3_COLORSPACE_UNKNOWN@GOTPAGEOFF]
	mov	w13, #1
Lloh10:
	adrp	x14, _ipu_dp_flow_base@GOTPAGE
Lloh11:
	ldr	x14, [x14, _ipu_dp_flow_base@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x15, [x12]
	str	x15, [x11, #16]
	ldr	x15, [x12]
	str	x15, [x11, #8]
	str	w13, [x11]
	ldr	x15, [x14]
	ldr	x15, [x15, x9, lsl #3]
	add	x15, x15, x10
	stp	x19, x15, [x11, #-16]
	add	x9, x9, #1
	ldrsw	x15, [x8]
	add	x11, x11, #40
	cmp	x9, x15
	b.lt	LBB0_4
LBB0_5:
	mov	w0, #0
	b	LBB0_7
LBB0_6:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_IPUV3_NUM_FLOWS,4,2            ; @IPUV3_NUM_FLOWS
	.comm	_IPUV3_COLORSPACE_UNKNOWN,8,3   ; @IPUV3_COLORSPACE_UNKNOWN
	.comm	_ipu_dp_flow_base,8,3           ; @ipu_dp_flow_base
.subsections_via_symbols
