	.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, %r13
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	%r13, %rdi
	callq	_dev_get_platdata
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%r13, %rdi
	callq	_dev_get_platdata
	movq	%rax, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$56, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	%rax, %r15
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_platform_set_drvdata
	movq	%r13, 48(%r15)
	movq	%r14, 40(%r15)
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%rax, %rbx
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movl	%eax, 20(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movl	20(%r15), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
LBB0_4:
	movq	%r13, %rdi
	callq	_platram_remove
	jmp	LBB0_8
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_7:
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%r15, %r12
	addq	$8, %r12
	movq	(%rbx), %rcx
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	(%rbx), %rax
	movq	%rax, 32(%r15)
	movq	%rbx, %rdi
	callq	_resource_size
	movl	%eax, 16(%r15)
	movq	32(%r14), %rcx
	testq	%rcx, %rcx
	jne	LBB0_11
## %bb.10:
	movq	8(%r13), %rcx
LBB0_11:
	movq	%rcx, 8(%r15)
	movl	24(%r14), %ecx
	movl	%ecx, 24(%r15)
	movl	20(%r15), %edx
	leaq	L_.str.4(%rip), %rsi
	movq	%r13, %rdi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	%r12, %rdi
	callq	_simple_map_init
	leaq	L_.str.5(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	(%r14), %rbx
	testq	%rbx, %rbx
	je	LBB0_17
## %bb.12:
	movq	(%r15), %rax
	testq	%rax, %rax
	jne	LBB0_19
## %bb.13:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_24
## %bb.14:
	addq	$8, %rbx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rsi
	callq	_do_map_probe
	movq	%rax, (%r15)
	testq	%rax, %rax
	jne	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	(%rbx), %rdi
	addq	$8, %rbx
	testq	%rdi, %rdi
	jne	LBB0_15
	jmp	LBB0_18
LBB0_17:
	leaq	L_.str.6(%rip), %rdi
	movq	%r12, %rsi
	callq	_do_map_probe
	movq	%rax, (%r15)
LBB0_18:
	testq	%rax, %rax
	je	LBB0_25
LBB0_19:
	movq	%r13, (%rax)
	movq	_PLATRAM_RW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_platram_setrw
	movq	(%r15), %rdi
	movl	20(%r14), %esi
	movl	16(%r14), %ecx
	movq	8(%r14), %r8
	xorl	%edx, %edx
	callq	_mtd_device_parse_register
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_21
## %bb.20:
	leaq	L_.str.8(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_info
LBB0_21:
	cmpq	$0, 8(%r14)
	je	LBB0_8
## %bb.22:
	movq	(%r15), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_mtd_device_register
	testl	%eax, %eax
	je	LBB0_8
## %bb.23:
	movl	%eax, %r14d
	leaq	L_.str.9(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	movl	%r14d, %ebx
	jmp	LBB0_8
LBB0_24:
	xorl	%eax, %eax
	testq	%rax, %rax
	jne	LBB0_19
LBB0_25:
	leaq	L_.str.7(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_4
	.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
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
L_.str.2:                               ## @.str.2
	.asciz	"failed to ioremap() region\n"

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

L_.str.4:                               ## @.str.4
	.asciz	"virt %p, %lu bytes\n"

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

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

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

	.comm	_PLATRAM_RW,4,2                 ## @PLATRAM_RW
L_.str.8:                               ## @.str.8
	.asciz	"registered mtd device\n"

L_.str.9:                               ## @.str.9
	.asciz	"failed to register the entire 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, #80
	.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
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	mov	x0, x19
	bl	_dev_get_platdata
	cbz	x0, LBB0_5
; %bb.1:
	mov	x0, x19
	bl	_dev_get_platdata
	mov	x20, x0
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w0, #56
	bl	_kzalloc
	cbz	x0, LBB0_6
; %bb.2:
	mov	x21, x0
	mov	x0, x19
	mov	x1, x21
	bl	_platform_set_drvdata
	stp	x20, x19, [x21, #40]
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
	mov	x23, x0
	mov	x0, x19
	mov	x1, x23
	bl	_devm_ioremap_resource
	str	w0, [x21, #20]
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.3:
	ldr	w0, [x21, #20]
	bl	_PTR_ERR
	mov	x22, x0
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_4:
	mov	x0, x19
	bl	_platram_remove
	b	LBB0_8
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	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_8:
	mov	x0, x22
	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
	add	sp, sp, #80
	ret
LBB0_9:
	add	x22, x21, #8
	ldr	x8, [x23]
	stp	x23, x8, [sp]
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	ldr	x8, [x23]
	str	x8, [x21, #32]
	mov	x0, x23
	bl	_resource_size
                                        ; kill: def $w0 killed $w0 def $x0
	str	w0, [x21, #16]
	ldr	x8, [x20, #32]
	cbnz	x8, LBB0_11
; %bb.10:
	ldr	x8, [x19, #8]
LBB0_11:
	str	x8, [x21, #8]
	ldr	w8, [x20, #24]
	str	w8, [x21, #24]
	ldr	w8, [x21, #20]
	stp	x8, x0, [sp]
Lloh18:
	adrp	x1, l_.str.4@PAGE
Lloh19:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	mov	x0, x22
	bl	_simple_map_init
Lloh20:
	adrp	x1, l_.str.5@PAGE
Lloh21:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	ldr	x9, [x20]
	cbz	x9, LBB0_17
; %bb.12:
	ldr	x0, [x21]
	cbnz	x0, LBB0_19
; %bb.13:
	ldr	x8, [x9]
	cbz	x8, LBB0_24
; %bb.14:
	add	x23, x9, #8
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x8
	mov	x1, x22
	bl	_do_map_probe
	str	x0, [x21]
	cbnz	x0, LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x8, [x23], #8
	cbnz	x8, LBB0_15
	b	LBB0_18
LBB0_17:
Lloh22:
	adrp	x0, l_.str.6@PAGE
Lloh23:
	add	x0, x0, l_.str.6@PAGEOFF
	mov	x1, x22
	bl	_do_map_probe
	str	x0, [x21]
LBB0_18:
	cbz	x0, LBB0_25
LBB0_19:
	str	x19, [x0]
Lloh24:
	adrp	x8, _PLATRAM_RW@GOTPAGE
Lloh25:
	ldr	x8, [x8, _PLATRAM_RW@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_platram_setrw
	ldr	x0, [x21]
	ldp	w3, w1, [x20, #16]
	ldr	x4, [x20, #8]
	mov	x2, #0
	bl	_mtd_device_parse_register
	mov	x22, x0
	cbnz	w0, LBB0_21
; %bb.20:
Lloh27:
	adrp	x1, l_.str.8@PAGE
Lloh28:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_dev_info
LBB0_21:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_8
; %bb.22:
	ldr	x0, [x21]
	mov	x1, #0
	mov	w2, #0
	bl	_mtd_device_register
	mov	x22, x0
	cbz	w0, LBB0_8
; %bb.23:
Lloh29:
	adrp	x1, l_.str.9@PAGE
Lloh30:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_8
LBB0_24:
	mov	x0, #0
	cbnz	x0, LBB0_19
LBB0_25:
Lloh31:
	adrp	x1, l_.str.7@PAGE
Lloh32:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh33:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_4
	.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	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh31, Lloh32
	.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
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
l_.str.2:                               ; @.str.2
	.asciz	"failed to ioremap() region\n"

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

l_.str.4:                               ; @.str.4
	.asciz	"virt %p, %lu bytes\n"

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

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

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

	.comm	_PLATRAM_RW,4,2                 ; @PLATRAM_RW
l_.str.8:                               ; @.str.8
	.asciz	"registered mtd device\n"

l_.str.9:                               ; @.str.9
	.asciz	"failed to register the entire device\n"

	.no_dead_strip	_platram_probe
.subsections_via_symbols
