	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipu_pre_probe
_ipu_pre_probe:                         ## @ipu_pre_probe
	.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	%rdi, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$40, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rax, %r14
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movl	%eax, 32(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	32(%r14), %edi
	jmp	LBB0_5
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_clk_get
	movl	%eax, 16(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movl	16(%r14), %edi
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_6:
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_of_gen_pool_get
	movl	%eax, 28(%r14)
	testl	%eax, %eax
	je	LBB0_12
## %bb.7:
	movq	_IPU_PRE_MAX_WIDTH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_IPU_PRE_NUM_SCANLINES@GOTPCREL(%rip), %rcx
	imull	(%rcx), %esi
	shll	$2, %esi
	movq	%r14, %rdx
	addq	$24, %rdx
	movl	%eax, %edi
	callq	_gen_pool_dma_alloc
	movl	%eax, 20(%r14)
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	16(%r14), %edi
	callq	_clk_prepare_enable
	movq	%r15, 8(%r14)
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	movq	_ipu_pre_list_mutex@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	_ipu_pre_list@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_list_add
	movq	_available_pres@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	%rbx, %rdi
	callq	_mutex_unlock
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_10:
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"axi"

L_.str.1:                               ## @.str.1
	.asciz	"fsl,iram"

	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
	.comm	_IPU_PRE_MAX_WIDTH,4,2          ## @IPU_PRE_MAX_WIDTH
	.comm	_IPU_PRE_NUM_SCANLINES,4,2      ## @IPU_PRE_NUM_SCANLINES
	.comm	_ipu_pre_list_mutex,4,2         ## @ipu_pre_list_mutex
	.comm	_ipu_pre_list,4,2               ## @ipu_pre_list
	.comm	_available_pres,4,2             ## @available_pres
	.no_dead_strip	_ipu_pre_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipu_pre_probe
_ipu_pre_probe:                         ; @ipu_pre_probe
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #40
	bl	_devm_kzalloc
	cbz	x0, LBB0_9
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_platform_get_resource
	mov	x1, x0
	mov	x0, x20
	bl	_devm_ioremap_resource
	str	w0, [x19, #32]
	bl	_IS_ERR
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w0, [x19, #32]
	b	LBB0_5
LBB0_3:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_devm_clk_get
	str	w0, [x19, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.4:
	ldr	w0, [x19, #16]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_6:
	ldr	w0, [x20]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #0
	bl	_of_gen_pool_get
	str	w0, [x19, #28]
	cbz	w0, LBB0_12
; %bb.7:
Lloh10:
	adrp	x8, _IPU_PRE_MAX_WIDTH@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IPU_PRE_MAX_WIDTH@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _IPU_PRE_NUM_SCANLINES@GOTPAGE
Lloh14:
	ldr	x9, [x9, _IPU_PRE_NUM_SCANLINES@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	mul	w8, w8, w9
	lsl	w1, w8, #2
	add	x2, x19, #24
	bl	_gen_pool_dma_alloc
	str	w0, [x19, #20]
	cbz	w0, LBB0_9
; %bb.8:
	ldr	w0, [x19, #16]
	bl	_clk_prepare_enable
	str	x20, [x19, #8]
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
Lloh16:
	adrp	x20, _ipu_pre_list_mutex@GOTPAGE
Lloh17:
	ldr	x20, [x20, _ipu_pre_list_mutex@GOTPAGEOFF]
	mov	x0, x20
	bl	_mutex_lock
Lloh18:
	adrp	x1, _ipu_pre_list@GOTPAGE
Lloh19:
	ldr	x1, [x1, _ipu_pre_list@GOTPAGEOFF]
	mov	x0, x19
	bl	_list_add
Lloh20:
	adrp	x8, _available_pres@GOTPAGE
Lloh21:
	ldr	x8, [x8, _available_pres@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	mov	x0, x20
	bl	_mutex_unlock
	mov	w0, #0
	b	LBB0_11
LBB0_9:
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_12:
Lloh24:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"axi"

l_.str.1:                               ; @.str.1
	.asciz	"fsl,iram"

	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
	.comm	_IPU_PRE_MAX_WIDTH,4,2          ; @IPU_PRE_MAX_WIDTH
	.comm	_IPU_PRE_NUM_SCANLINES,4,2      ; @IPU_PRE_NUM_SCANLINES
	.comm	_ipu_pre_list_mutex,4,2         ; @ipu_pre_list_mutex
	.comm	_ipu_pre_list,4,2               ; @ipu_pre_list
	.comm	_available_pres,4,2             ; @available_pres
	.no_dead_strip	_ipu_pre_probe
.subsections_via_symbols
