	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function register_device
_register_device:                       ## @register_device
	.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	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$72, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %rbx
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_ioremap
	movl	%eax, 20(%rbx)
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movq	%r12, (%rbx)
	movq	%r15, 8(%rbx)
	movq	_MTD_CAP_RAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%rbx)
	movq	_phram_erase@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%rbx)
	movq	_phram_point@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	movq	_phram_unpoint@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	movq	_phram_read@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	_phram_write@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	_MTD_RAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movl	$1, 16(%rbx)
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	callq	_add_mtd_device
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_err
	movl	20(%rbx), %edi
	callq	_iounmap
	jmp	LBB0_5
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
LBB0_5:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_6:
	negl	%r14d
LBB0_7:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	addq	$64, %rbx
	movq	_phram_list@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_list_add_tail
	xorl	%r14d, %r14d
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_EIO,4,2                        ## @EIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ioremap failed\n"

	.comm	_MTD_CAP_RAM,4,2                ## @MTD_CAP_RAM
	.comm	_phram_erase,4,2                ## @phram_erase
	.comm	_phram_point,4,2                ## @phram_point
	.comm	_phram_unpoint,4,2              ## @phram_unpoint
	.comm	_phram_read,4,2                 ## @phram_read
	.comm	_phram_write,4,2                ## @phram_write
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_MTD_RAM,4,2                    ## @MTD_RAM
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_EAGAIN,4,2                     ## @EAGAIN
L_.str.1:                               ## @.str.1
	.asciz	"Failed to register new device\n"

	.comm	_phram_list,4,2                 ## @phram_list
	.no_dead_strip	_register_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function register_device
_register_device:                       ; @register_device
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #72
	bl	_kzalloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
Lloh6:
	adrp	x8, _EIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh8:
	ldr	w23, [x8]
	mov	x0, x22
	mov	x1, x20
	bl	_ioremap
	str	w0, [x19, #20]
	cbz	w0, LBB0_4
; %bb.2:
	stp	x21, x20, [x19]
Lloh9:
	adrp	x8, _MTD_CAP_RAM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MTD_CAP_RAM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _phram_erase@GOTPAGE
Lloh13:
	ldr	x9, [x9, _phram_erase@GOTPAGEOFF]
	str	w8, [x19, #56]
Lloh14:
	ldr	w8, [x9]
Lloh15:
	adrp	x9, _phram_point@GOTPAGE
Lloh16:
	ldr	x9, [x9, _phram_point@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #48]
Lloh18:
	adrp	x8, _phram_unpoint@GOTPAGE
Lloh19:
	ldr	x8, [x8, _phram_unpoint@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _phram_read@GOTPAGE
Lloh22:
	ldr	x9, [x9, _phram_read@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #40]
Lloh24:
	adrp	x8, _phram_write@GOTPAGE
Lloh25:
	ldr	x8, [x8, _phram_write@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _THIS_MODULE@GOTPAGE
Lloh28:
	ldr	x9, [x9, _THIS_MODULE@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
Lloh30:
	adrp	x10, _MTD_RAM@GOTPAGE
Lloh31:
	ldr	x10, [x10, _MTD_RAM@GOTPAGEOFF]
	stp	w9, w8, [x19, #32]
Lloh32:
	ldr	w8, [x10]
Lloh33:
	adrp	x9, _PAGE_SIZE@GOTPAGE
Lloh34:
	ldr	x9, [x9, _PAGE_SIZE@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #24]
	mov	w8, #1
	str	w8, [x19, #16]
Lloh36:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh37:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh38:
	ldr	w23, [x8]
	mov	x0, x19
	bl	_add_mtd_device
	cbz	x0, LBB0_8
; %bb.3:
Lloh39:
	adrp	x0, l_.str.1@PAGE
Lloh40:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
	ldr	w0, [x19, #20]
	bl	_iounmap
	b	LBB0_5
LBB0_4:
Lloh41:
	adrp	x0, l_.str@PAGE
Lloh42:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
LBB0_5:
	mov	x0, x19
	bl	_kfree
LBB0_6:
	neg	w0, w23
LBB0_7:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_8:
	add	x0, x19, #64
Lloh43:
	adrp	x1, _phram_list@GOTPAGE
Lloh44:
	ldr	x1, [x1, _phram_list@GOTPAGEOFF]
	bl	_list_add_tail
	mov	w0, #0
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_EIO,4,2                        ; @EIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ioremap failed\n"

	.comm	_MTD_CAP_RAM,4,2                ; @MTD_CAP_RAM
	.comm	_phram_erase,4,2                ; @phram_erase
	.comm	_phram_point,4,2                ; @phram_point
	.comm	_phram_unpoint,4,2              ; @phram_unpoint
	.comm	_phram_read,4,2                 ; @phram_read
	.comm	_phram_write,4,2                ; @phram_write
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_MTD_RAM,4,2                    ; @MTD_RAM
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_EAGAIN,4,2                     ; @EAGAIN
l_.str.1:                               ; @.str.1
	.asciz	"Failed to register new device\n"

	.comm	_phram_list,4,2                 ; @phram_list
	.no_dead_strip	_register_device
.subsections_via_symbols
