	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function platram_probe
_platram_probe:                         ## @platram_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
	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
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	(%r14), %r12
	testq	%r12, %r12
	je	LBB0_5
## %bb.1:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$80, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	%rax, %r15
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_platform_set_drvdata
	movq	%r14, 72(%r15)
	movq	%r12, 64(%r15)
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movq	%rax, %rbx
	movq	(%rax), %rcx
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	(%rbx), %rax
	movq	%rax, 48(%r15)
	movq	%rbx, %rdi
	callq	_resource_size
	movl	%eax, 40(%r15)
	movq	32(%r12), %rcx
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.4:
	movq	8(%r14), %rdx
	jmp	LBB0_10
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_7:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %ebx
	jmp	LBB0_22
LBB0_8:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_9:
	movq	8(%r14), %rdx
	movq	%rdx, %rcx
LBB0_10:
	movq	%rcx, 24(%r15)
	movl	24(%r12), %ecx
	movl	%ecx, 44(%r15)
	movq	(%rbx), %rdi
	movl	%eax, %esi
	callq	_request_mem_region
	movq	%rax, 56(%r15)
	testq	%rax, %rax
	je	LBB0_18
## %bb.11:
	movq	(%rbx), %rdi
	movl	40(%r15), %esi
	callq	_ioremap
	movq	%rax, 32(%r15)
	movl	40(%r15), %ecx
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_dev_dbg
	cmpq	$0, 32(%r15)
	je	LBB0_19
## %bb.12:
	movq	%r15, %r13
	addq	$24, %r13
	movq	%r13, %rdi
	callq	_simple_map_init
	leaq	L_.str.8(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	(%r12), %rbx
	testq	%rbx, %rbx
	je	LBB0_24
## %bb.13:
	movq	8(%r15), %rax
	testq	%rax, %rax
	jne	LBB0_26
## %bb.14:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_29
## %bb.15:
	addq	$8, %rbx
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rsi
	callq	_do_map_probe
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	jne	LBB0_25
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	(%rbx), %rdi
	addq	$8, %rbx
	testq	%rdi, %rdi
	jne	LBB0_16
	jmp	LBB0_25
LBB0_18:
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_20
LBB0_19:
	leaq	L_.str.7(%rip), %rsi
LBB0_20:
	movq	%r14, %rdi
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_21:
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_platram_remove
LBB0_22:
	negl	%ebx
LBB0_23:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	leaq	L_.str.9(%rip), %rdi
	movq	%r13, %rsi
	callq	_do_map_probe
	movq	%rax, 8(%r15)
LBB0_25:
	testq	%rax, %rax
	je	LBB0_30
LBB0_26:
	movq	_THIS_MODULE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax)
	movq	%r14, (%rax)
	movq	_PLATRAM_RW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_platram_setrw
	movq	8(%r15), %rdi
	callq	_add_mtd_device
	testq	%rax, %rax
	je	LBB0_28
## %bb.27:
	leaq	L_.str.11(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	jne	LBB0_22
LBB0_28:
	leaq	L_.str.12(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	xorl	%ebx, %ebx
	jmp	LBB0_23
LBB0_29:
	xorl	%eax, %eax
	testq	%rax, %rax
	jne	LBB0_26
LBB0_30:
	leaq	L_.str.10(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"probe entered\n"

L_.str.1:                               ## @.str.1
	.asciz	"no platform data supplied\n"

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

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
L_.str.3:                               ## @.str.3
	.asciz	"no memory resource specified\n"

L_.str.4:                               ## @.str.4
	.asciz	"got platform resource %p (0x%llx)\n"

L_.str.5:                               ## @.str.5
	.asciz	"failed to request memory region\n"

	.comm	_EIO,4,2                        ## @EIO
L_.str.6:                               ## @.str.6
	.asciz	"virt %p, %lu bytes\n"

L_.str.7:                               ## @.str.7
	.asciz	"failed to ioremap() region\n"

L_.str.8:                               ## @.str.8
	.asciz	"initialised map, probing for mtd\n"

L_.str.9:                               ## @.str.9
	.asciz	"map_ram"

L_.str.10:                              ## @.str.10
	.asciz	"failed to probe for map_ram\n"

	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_PLATRAM_RW,4,2                 ## @PLATRAM_RW
L_.str.11:                              ## @.str.11
	.asciz	"add_mtd_device() failed\n"

L_.str.12:                              ## @.str.12
	.asciz	"registered mtd device\n"

	.no_dead_strip	_platram_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function platram_probe
_platram_probe:                         ; @platram_probe
	.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	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	ldr	x22, [x19]
	cbz	x22, LBB0_5
; %bb.1:
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w0, #80
	bl	_kzalloc
	cbz	x0, LBB0_6
; %bb.2:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	stp	x22, x19, [x20, #64]
Lloh5:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	cbz	x0, LBB0_8
; %bb.3:
	mov	x21, x0
	ldr	x8, [x0]
	stp	x0, x8, [sp]
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	ldr	x8, [x21]
	str	x8, [x20, #48]
	mov	x0, x21
	bl	_resource_size
	mov	x1, x0
	str	w0, [x20, #40]
	ldr	x8, [x22, #32]
	cbz	x8, LBB0_9
; %bb.4:
	ldr	x2, [x19, #8]
	b	LBB0_10
LBB0_5:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh12:
	adrp	x8, _ENOENT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_7:
	ldr	w20, [x8]
	b	LBB0_22
LBB0_8:
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh20:
	adrp	x8, _ENOENT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_21
LBB0_9:
	ldr	x2, [x19, #8]
	mov	x8, x2
LBB0_10:
	str	x8, [x20, #24]
	ldr	w8, [x22, #24]
	str	w8, [x20, #44]
	ldr	x0, [x21]
	bl	_request_mem_region
	str	x0, [x20, #56]
	cbz	x0, LBB0_18
; %bb.11:
	ldr	x0, [x21]
	ldr	w1, [x20, #40]
	bl	_ioremap
	str	x0, [x20, #32]
	ldr	w8, [x20, #40]
	stp	x0, x8, [sp]
Lloh22:
	adrp	x1, l_.str.6@PAGE
Lloh23:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_19
; %bb.12:
	add	x21, x20, #24
	mov	x0, x21
	bl	_simple_map_init
Lloh24:
	adrp	x1, l_.str.8@PAGE
Lloh25:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	ldr	x9, [x22]
	cbz	x9, LBB0_24
; %bb.13:
	ldr	x0, [x20, #8]
	cbnz	x0, LBB0_26
; %bb.14:
	ldr	x8, [x9]
	cbz	x8, LBB0_30
; %bb.15:
	add	x22, x9, #8
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x8
	mov	x1, x21
	bl	_do_map_probe
	str	x0, [x20, #8]
	cbnz	x0, LBB0_25
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	x8, [x22], #8
	cbnz	x8, LBB0_16
	b	LBB0_25
LBB0_18:
Lloh26:
	adrp	x1, l_.str.5@PAGE
Lloh27:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_20
LBB0_19:
Lloh28:
	adrp	x1, l_.str.7@PAGE
Lloh29:
	add	x1, x1, l_.str.7@PAGEOFF
LBB0_20:
	mov	x0, x19
	bl	_dev_err
Lloh30:
	adrp	x8, _EIO@GOTPAGE
Lloh31:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_21:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_platram_remove
LBB0_22:
	neg	w0, w20
LBB0_23:
	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
LBB0_24:
Lloh32:
	adrp	x0, l_.str.9@PAGE
Lloh33:
	add	x0, x0, l_.str.9@PAGEOFF
	mov	x1, x21
	bl	_do_map_probe
	str	x0, [x20, #8]
LBB0_25:
	cbz	x0, LBB0_31
LBB0_26:
Lloh34:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	str	w8, [x0, #8]
	str	x19, [x0]
Lloh37:
	adrp	x8, _PLATRAM_RW@GOTPAGE
Lloh38:
	ldr	x8, [x8, _PLATRAM_RW@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_platram_setrw
	ldr	x0, [x20, #8]
	bl	_add_mtd_device
	cbz	x0, LBB0_29
; %bb.27:
Lloh40:
	adrp	x1, l_.str.11@PAGE
Lloh41:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh42:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh43:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	cbz	w8, LBB0_29
; %bb.28:
	neg	w0, w8
	b	LBB0_23
LBB0_29:
Lloh45:
	adrp	x1, l_.str.12@PAGE
Lloh46:
	add	x1, x1, l_.str.12@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	w0, #0
	b	LBB0_23
LBB0_30:
	mov	x0, #0
	cbnz	x0, LBB0_26
LBB0_31:
Lloh47:
	adrp	x1, l_.str.10@PAGE
Lloh48:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh49:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh50:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_21
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpAdd	Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"probe entered\n"

l_.str.1:                               ; @.str.1
	.asciz	"no platform data supplied\n"

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

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
l_.str.3:                               ; @.str.3
	.asciz	"no memory resource specified\n"

l_.str.4:                               ; @.str.4
	.asciz	"got platform resource %p (0x%llx)\n"

l_.str.5:                               ; @.str.5
	.asciz	"failed to request memory region\n"

	.comm	_EIO,4,2                        ; @EIO
l_.str.6:                               ; @.str.6
	.asciz	"virt %p, %lu bytes\n"

l_.str.7:                               ; @.str.7
	.asciz	"failed to ioremap() region\n"

l_.str.8:                               ; @.str.8
	.asciz	"initialised map, probing for mtd\n"

l_.str.9:                               ; @.str.9
	.asciz	"map_ram"

l_.str.10:                              ; @.str.10
	.asciz	"failed to probe for map_ram\n"

	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_PLATRAM_RW,4,2                 ; @PLATRAM_RW
l_.str.11:                              ; @.str.11
	.asciz	"add_mtd_device() failed\n"

l_.str.12:                              ; @.str.12
	.asciz	"registered mtd device\n"

	.no_dead_strip	_platram_probe
.subsections_via_symbols
