	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s3c24xx_nand_probe
_s3c24xx_nand_probe:                    ## @s3c24xx_nand_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_to_nand_plat
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_platform_get_device_id
	movl	(%rax), %r15d
	leaq	L_.str(%rip), %rdi
	xorl	%r13d, %r13d
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_pr_debug
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$72, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$72, %edx
	callq	_memset
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_platform_set_drvdata
	leaq	64(%r12), %rbx
	movq	%r12, %rdi
	addq	$68, %rdi
	callq	_spin_lock_init
	movq	%rbx, %rdi
	callq	_init_waitqueue_head
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_clk_get
	movl	%eax, 16(%r12)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_1:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_4:
	subl	(%rax), %r13d
LBB0_5:
	movq	%r14, %rdi
	callq	_s3c24xx_nand_remove
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	testl	%r13d, %r13d
	cmovnel	%r13d, %ebx
LBB0_30:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	16(%r12), %edi
	callq	_clk_enable
	movq	8(%r14), %r13
	movl	(%r13), %ebx
	movl	4(%r13), %edi
	subl	%edi, %ebx
	incl	%ebx
	movl	4(%r14), %edx
	movl	%ebx, %esi
	callq	_request_mem_region
	movq	%rax, 56(%r12)
	testq	%rax, %rax
	je	LBB0_7
## %bb.9:
	movq	%r14, 48(%r12)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 40(%r12)
	movl	4(%r13), %edi
	movl	%ebx, %esi
	callq	_ioremap
	movq	%rax, 32(%r12)
	movl	%r15d, (%r12)
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	movq	%rax, %rdx
	callq	_dev_dbg
	movq	%r12, %rdi
	callq	_s3c2410_nand_inithw
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.12:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	movq	8(%rax), %r13
	movl	(%rax), %ebx
	jmp	LBB0_15
LBB0_7:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	jmp	LBB0_4
LBB0_10:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	jmp	LBB0_4
LBB0_13:
	movl	$1, %ebx
	xorl	%r13d, %r13d
LBB0_15:
	movl	%ebx, 4(%r12)
	leal	(,%rbx,8), %eax
	leal	(%rax,%rax,8), %r15d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_kmalloc
	movq	%rax, 24(%r12)
	testq	%rax, %rax
	je	LBB0_16
## %bb.17:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	%r15d, %edx
	callq	_memset
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	testl	%ebx, %ebx
	jle	LBB0_25
## %bb.18:
	movq	24(%r12), %rbx
	xorl	%r15d, %r15d
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_19 Depth=1
	leaq	4(%r13), %rax
	testq	%r13, %r13
	cmovneq	%rax, %r13
	incl	%r15d
	addq	$72, %rbx
	cmpl	%r15d, -48(%rbp)                ## 4-byte Folded Reload
	je	LBB0_25
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	leaq	L_.str.7(%rip), %rdi
	movl	%r15d, %esi
	movq	%rbx, %rdx
	movq	%r12, %rcx
	xorl	%eax, %eax
	callq	_pr_debug
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	callq	_s3c2410_nand_init_chip
	leaq	20(%rbx), %r14
	testq	%r13, %r13
	je	LBB0_20
## %bb.21:                              ##   in Loop: Header=BB0_19 Depth=1
	movl	(%r13), %esi
	jmp	LBB0_22
LBB0_20:                                ##   in Loop: Header=BB0_19 Depth=1
	movl	$1, %esi
LBB0_22:                                ##   in Loop: Header=BB0_19 Depth=1
	movq	%r14, %rdi
	callq	_nand_scan_ident
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	jne	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_s3c2410_nand_update_chip
	movq	%r14, %rdi
	callq	_nand_scan_tail
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	callq	_s3c2410_nand_add_partition
	jmp	LBB0_24
LBB0_25:
	movq	%r12, %rdi
	callq	_s3c2410_nand_cpufreq_register
	testl	%eax, %eax
	js	LBB0_26
## %bb.27:
	movq	%r12, %rdi
	callq	_allow_clk_stop
	testq	%rax, %rax
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	je	LBB0_29
## %bb.28:
	leaq	L_.str.9(%rip), %rsi
	callq	_dev_info
	movl	16(%r12), %edi
	callq	_clk_disable
LBB0_29:
	leaq	L_.str.10(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_pr_debug
	jmp	LBB0_30
LBB0_16:
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	jmp	LBB0_4
LBB0_26:
	movl	%eax, %r13d
	leaq	L_.str.8(%rip), %rsi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"s3c2410_nand_probe(%p)\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.1:                               ## @.str.1
	.asciz	"no memory for flash info\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.2:                               ## @.str.2
	.asciz	"nand"

L_.str.3:                               ## @.str.3
	.asciz	"failed to get clock\n"

	.comm	_ENOENT,4,2                     ## @ENOENT
L_.str.4:                               ## @.str.4
	.asciz	"cannot reserve register region\n"

	.comm	_EIO,4,2                        ## @EIO
L_.str.5:                               ## @.str.5
	.asciz	"mapped registers at %p\n"

L_.str.6:                               ## @.str.6
	.asciz	"failed to allocate mtd storage\n"

L_.str.7:                               ## @.str.7
	.asciz	"initialising set %d (%p, info %p)\n"

L_.str.8:                               ## @.str.8
	.asciz	"failed to init cpufreq support\n"

L_.str.9:                               ## @.str.9
	.asciz	"clock idle support enabled\n"

L_.str.10:                              ## @.str.10
	.asciz	"initialised ok\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_s3c24xx_nand_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s3c24xx_nand_probe
_s3c24xx_nand_probe:                    ; @s3c24xx_nand_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	bl	_to_nand_plat
	mov	x21, x0
	mov	x0, x19
	bl	_platform_get_device_id
	ldr	w24, [x0]
	str	x19, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
Lloh2:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	w0, #72
	bl	_kmalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	mov	w1, #0
	mov	w2, #72
	bl	_memset
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	add	x22, x20, #64
	add	x0, x20, #68
	bl	_spin_lock_init
	mov	x0, x22
	bl	_init_waitqueue_head
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_clk_get
	str	w0, [x20, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.2:
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_3:
	mov	x0, x19
	bl	_dev_err
Lloh8:
	adrp	x8, _ENOENT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_5:
	mov	x0, x19
	bl	_dev_err
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_7:
	mov	x0, x19
	bl	_s3c24xx_nand_remove
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w22, #0
	csneg	w0, w22, w8, ne
LBB0_8:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_9:
	ldr	w0, [x20, #16]
	bl	_clk_enable
	ldr	x25, [x19, #8]
	ldp	w8, w0, [x25]
	sub	w8, w8, w0
	add	w22, w8, #1
	ldr	w2, [x19, #4]
	mov	x1, x22
	bl	_request_mem_region
	str	x0, [x20, #56]
	cbz	x0, LBB0_14
; %bb.10:
	stp	x21, x19, [x20, #40]
	ldr	w0, [x25, #4]
	mov	x1, x22
	bl	_ioremap
	str	x0, [x20, #32]
	str	w24, [x20]
	cbz	x0, LBB0_15
; %bb.11:
	mov	x2, x0
Lloh17:
	adrp	x1, l_.str.5@PAGE
Lloh18:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	mov	x0, x20
	bl	_s3c2410_nand_inithw
	mov	x22, x0
	cbnz	w0, LBB0_7
; %bb.12:
	cbz	x21, LBB0_16
; %bb.13:
	ldr	x22, [x21, #8]
	ldr	w25, [x21]
	b	LBB0_17
LBB0_14:
Lloh19:
	adrp	x1, l_.str.4@PAGE
Lloh20:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_3
LBB0_15:
Lloh21:
	adrp	x1, l_.str.4@PAGE
Lloh22:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh23:
	adrp	x8, _EIO@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_6
LBB0_16:
	mov	x22, #0
	mov	w25, #1
LBB0_17:
	str	w25, [x20, #4]
	add	w8, w25, w25, lsl #3
	lsl	w21, w8, #3
	ldr	w1, [x23]
	mov	x0, x21
	bl	_kmalloc
	str	x0, [x20, #24]
	cbz	x0, LBB0_30
; %bb.18:
	mov	w1, #0
	mov	x2, x21
	bl	_memset
	cmp	w25, #1
	b.lt	LBB0_26
; %bb.19:
	mov	w26, #0
	ldr	x21, [x20, #24]
Lloh25:
	adrp	x23, l_.str.7@PAGE
Lloh26:
	add	x23, x23, l_.str.7@PAGEOFF
	b	LBB0_21
LBB0_20:                                ;   in Loop: Header=BB0_21 Depth=1
	add	x8, x22, #4
	cmp	x22, #0
	csel	x22, xzr, x8, eq
	add	w26, w26, #1
	add	x21, x21, #72
	cmp	w25, w26
	b.eq	LBB0_26
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	stp	x21, x20, [sp, #8]
	str	x26, [sp]
	mov	x0, x23
	bl	_pr_debug
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_s3c2410_nand_init_chip
	cbz	x22, LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
	ldr	w1, [x22]
	b	LBB0_24
LBB0_23:                                ;   in Loop: Header=BB0_21 Depth=1
	mov	w1, #1
LBB0_24:                                ;   in Loop: Header=BB0_21 Depth=1
	add	x24, x21, #20
	mov	x0, x24
	bl	_nand_scan_ident
	str	x0, [x21, #8]
	cbnz	x0, LBB0_20
; %bb.25:                               ;   in Loop: Header=BB0_21 Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_s3c2410_nand_update_chip
	mov	x0, x24
	bl	_nand_scan_tail
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_s3c2410_nand_add_partition
	b	LBB0_20
LBB0_26:
	mov	x0, x20
	bl	_s3c2410_nand_cpufreq_register
	tbnz	w0, #31, LBB0_31
; %bb.27:
	mov	x0, x20
	bl	_allow_clk_stop
	cbz	x0, LBB0_29
; %bb.28:
Lloh27:
	adrp	x1, l_.str.9@PAGE
Lloh28:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	ldr	w0, [x20, #16]
	bl	_clk_disable
LBB0_29:
Lloh29:
	adrp	x0, l_.str.10@PAGE
Lloh30:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_pr_debug
	mov	w0, #0
	b	LBB0_8
LBB0_30:
Lloh31:
	adrp	x1, l_.str.6@PAGE
Lloh32:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_5
LBB0_31:
	mov	x22, x0
Lloh33:
	adrp	x1, l_.str.8@PAGE
Lloh34:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_7
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"s3c2410_nand_probe(%p)\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.1:                               ; @.str.1
	.asciz	"no memory for flash info\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.2:                               ; @.str.2
	.asciz	"nand"

l_.str.3:                               ; @.str.3
	.asciz	"failed to get clock\n"

	.comm	_ENOENT,4,2                     ; @ENOENT
l_.str.4:                               ; @.str.4
	.asciz	"cannot reserve register region\n"

	.comm	_EIO,4,2                        ; @EIO
l_.str.5:                               ; @.str.5
	.asciz	"mapped registers at %p\n"

l_.str.6:                               ; @.str.6
	.asciz	"failed to allocate mtd storage\n"

l_.str.7:                               ; @.str.7
	.asciz	"initialising set %d (%p, info %p)\n"

l_.str.8:                               ; @.str.8
	.asciz	"failed to init cpufreq support\n"

l_.str.9:                               ; @.str.9
	.asciz	"clock idle support enabled\n"

l_.str.10:                              ; @.str.10
	.asciz	"initialised ok\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_s3c24xx_nand_probe
.subsections_via_symbols
