	.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, %r12
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_slram_mtdlist@GOTPCREL(%rip), %rax
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rbx
	movq	(%rax), %rcx
	leaq	8(%rcx), %rax
	testq	%rcx, %rcx
	jne	LBB0_1
## %bb.2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	$16, %edi
	callq	_kmalloc
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movl	(%r13), %esi
	movl	$4, %edi
	callq	_kzalloc
	movq	(%rbx), %rcx
	movq	%rax, (%rcx)
	movq	(%rbx), %rax
	movq	$0, 8(%rax)
	movq	(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.6:
	movl	(%r13), %esi
	movl	$8, %edi
	callq	_kzalloc
	movq	(%rbx), %rcx
	movq	(%rcx), %rcx
	movq	%rax, 24(%rcx)
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	cmpq	$0, 24(%rdi)
	jne	LBB0_8
## %bb.7:
	callq	_kfree
	movq	(%rbx), %rax
	movq	$0, (%rax)
	movq	(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
LBB0_8:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_ioremap
	movq	(%rbx), %rcx
	movq	(%rcx), %rcx
	movq	24(%rcx), %rdx
	movl	%eax, 4(%rdx)
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	addl	%r12d, %eax
	movl	%eax, (%rdx)
	movq	%r15, (%rcx)
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	movq	%r12, 8(%rdi)
	movq	_MTD_CAP_RAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%rdi)
	movq	_slram_erase@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 60(%rdi)
	movq	_slram_point@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%rdi)
	movq	_slram_unpoint@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%rdi)
	movq	_slram_read@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rdi)
	movq	_slram_write@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rdi)
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rdi)
	movq	_MTD_RAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rdi)
	movq	_SLRAM_BLK_SZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rdi)
	movl	$1, 16(%rdi)
	callq	_add_mtd_device
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	leaq	L_.str.2(%rip), %rdi
	callq	_E
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	24(%rax), %rax
	movl	4(%rax), %edi
	callq	_iounmap
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	24(%rax), %rdi
	callq	_kfree
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	callq	_kfree
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	leaq	L_.str(%rip), %rdi
	callq	_E
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_13:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	leaq	L_.str.1(%rip), %rdi
	callq	_E
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_12:
	addq	%r14, %r12
	shrq	$10, %r14
	shrq	$10, %r12
	leaq	L_.str.3(%rip), %rdi
	xorl	%r13d, %r13d
	movq	%r15, %rsi
	movq	%r14, %rdx
	movq	%r12, %rcx
	xorl	%eax, %eax
	callq	_T
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	24(%rax), %rax
	movslq	4(%rax), %rsi
	movslq	(%rax), %rdx
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_T
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_slram_mtdlist,8,3              ## @slram_mtdlist
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"slram: Cannot allocate new MTD device.\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"slram: ioremap failed\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_MTD_CAP_RAM,4,2                ## @MTD_CAP_RAM
	.comm	_slram_erase,4,2                ## @slram_erase
	.comm	_slram_point,4,2                ## @slram_point
	.comm	_slram_unpoint,4,2              ## @slram_unpoint
	.comm	_slram_read,4,2                 ## @slram_read
	.comm	_slram_write,4,2                ## @slram_write
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_MTD_RAM,4,2                    ## @MTD_RAM
	.comm	_SLRAM_BLK_SZ,4,2               ## @SLRAM_BLK_SZ
L_.str.2:                               ## @.str.2
	.asciz	"slram: Failed to register new device\n"

	.comm	_EAGAIN,4,2                     ## @EAGAIN
L_.str.3:                               ## @.str.3
	.asciz	"slram: Registered device %s from %luKiB to %luKiB\n"

L_.str.4:                               ## @.str.4
	.asciz	"slram: Mapped from 0x%p to 0x%p\n"

	.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:
	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	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _slram_mtdlist@GOTPAGE
Lloh1:
	ldr	x8, [x8, _slram_mtdlist@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x22, x8
	ldr	x9, [x8]
	add	x8, x9, #8
	cbnz	x9, LBB0_1
; %bb.2:
Lloh2:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	w0, #16
	bl	_kmalloc
	str	x0, [x22]
	cbz	x0, LBB0_9
; %bb.3:
	ldr	w1, [x23]
	mov	w0, #4
	bl	_kzalloc
	ldr	x8, [x22]
	str	x0, [x8]
	ldr	x8, [x22]
	str	xzr, [x8, #8]
	ldr	x8, [x22]
	ldr	x8, [x8]
	cbz	x8, LBB0_9
; %bb.4:
	ldr	w1, [x23]
	mov	w0, #8
	bl	_kzalloc
	ldr	x8, [x22]
	ldr	x8, [x8]
	str	x0, [x8, #24]
	ldr	x8, [x22]
	ldr	x0, [x8]
	ldr	x8, [x0, #24]
	cbnz	x8, LBB0_6
; %bb.5:
	bl	_kfree
	ldr	x8, [x22]
	str	xzr, [x8]
	ldr	x8, [x22]
	ldr	x8, [x8]
	cbz	x8, LBB0_9
LBB0_6:
	mov	x0, x21
	mov	x1, x20
	bl	_ioremap
	ldr	x8, [x22]
	ldr	x8, [x8]
	ldr	x9, [x8, #24]
	str	w0, [x9, #4]
	cbz	w0, LBB0_12
; %bb.7:
	add	w10, w0, w20
	str	w10, [x9]
	str	x19, [x8]
	ldr	x8, [x22]
	ldr	x0, [x8]
	str	x20, [x0, #8]
Lloh4:
	adrp	x8, _MTD_CAP_RAM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MTD_CAP_RAM@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [x0, #64]
Lloh7:
	adrp	x8, _slram_erase@GOTPAGE
Lloh8:
	ldr	x8, [x8, _slram_erase@GOTPAGEOFF]
Lloh9:
	adrp	x9, _slram_point@GOTPAGE
Lloh10:
	ldr	x9, [x9, _slram_point@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #56]
Lloh13:
	adrp	x8, _slram_unpoint@GOTPAGE
Lloh14:
	ldr	x8, [x8, _slram_unpoint@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _slram_read@GOTPAGE
Lloh17:
	ldr	x9, [x9, _slram_read@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #48]
Lloh19:
	adrp	x8, _slram_write@GOTPAGE
Lloh20:
	ldr	x8, [x8, _slram_write@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _THIS_MODULE@GOTPAGE
Lloh23:
	ldr	x9, [x9, _THIS_MODULE@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #40]
Lloh25:
	adrp	x8, _MTD_RAM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MTD_RAM@GOTPAGEOFF]
Lloh27:
	adrp	x9, _SLRAM_BLK_SZ@GOTPAGE
Lloh28:
	ldr	x9, [x9, _SLRAM_BLK_SZ@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
Lloh30:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #32]
	mov	w8, #1
	str	w8, [x0, #16]
	bl	_add_mtd_device
	cbz	x0, LBB0_13
; %bb.8:
Lloh31:
	adrp	x0, l_.str.2@PAGE
Lloh32:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_E
	ldr	x8, [x22]
	ldr	x8, [x8]
	ldr	x8, [x8, #24]
	ldr	w0, [x8, #4]
	bl	_iounmap
	ldr	x8, [x22]
	ldr	x8, [x8]
	ldr	x0, [x8, #24]
	bl	_kfree
	ldr	x8, [x22]
	ldr	x0, [x8]
	bl	_kfree
Lloh33:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh34:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh35:
	adrp	x0, l_.str@PAGE
Lloh36:
	add	x0, x0, l_.str@PAGEOFF
	bl	_E
Lloh37:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	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_12:
Lloh39:
	adrp	x0, l_.str.1@PAGE
Lloh40:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_E
Lloh41:
	adrp	x8, _EIO@GOTPAGE
Lloh42:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_10
LBB0_13:
	lsr	x2, x21, #10
	add	x8, x20, x21
	lsr	x8, x8, #10
	str	x8, [sp]
Lloh43:
	adrp	x0, l_.str.3@PAGE
Lloh44:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x19
	bl	_T
	ldr	x8, [x22]
	ldr	x8, [x8]
	ldr	x8, [x8, #24]
	ldpsw	x2, x1, [x8]
Lloh45:
	adrp	x0, l_.str.4@PAGE
Lloh46:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_T
	mov	w0, #0
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh29
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh11
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_slram_mtdlist,8,3              ; @slram_mtdlist
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"slram: Cannot allocate new MTD device.\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"slram: ioremap failed\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_MTD_CAP_RAM,4,2                ; @MTD_CAP_RAM
	.comm	_slram_erase,4,2                ; @slram_erase
	.comm	_slram_point,4,2                ; @slram_point
	.comm	_slram_unpoint,4,2              ; @slram_unpoint
	.comm	_slram_read,4,2                 ; @slram_read
	.comm	_slram_write,4,2                ; @slram_write
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_MTD_RAM,4,2                    ; @MTD_RAM
	.comm	_SLRAM_BLK_SZ,4,2               ; @SLRAM_BLK_SZ
l_.str.2:                               ; @.str.2
	.asciz	"slram: Failed to register new device\n"

	.comm	_EAGAIN,4,2                     ; @EAGAIN
l_.str.3:                               ; @.str.3
	.asciz	"slram: Registered device %s from %luKiB to %luKiB\n"

l_.str.4:                               ; @.str.4
	.asciz	"slram: Mapped from 0x%p to 0x%p\n"

	.no_dead_strip	_register_device
.subsections_via_symbols
