	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_cmdline
_parse_cmdline:                         ## @parse_cmdline
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.2:
	movq	%rdx, %rbx
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.4:
	movq	%rdi, %r15
	leaq	-32(%rbp), %rax
	movq	%rsi, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_simple_strtoul
	movq	-32(%rbp), %rsi
	movq	%rax, %rdi
	callq	_handle_unit
	movq	%rax, %r14
	cmpb	$43, (%rbx)
	jne	LBB0_5
## %bb.8:
	incq	%rbx
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_simple_strtoul
	movq	-32(%rbp), %rsi
	movq	%rax, %rdi
	callq	_handle_unit
	movq	%rax, %rbx
	jmp	LBB0_9
LBB0_3:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_unregister_devices
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_16
LBB0_5:
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_simple_strtoul
	movq	-32(%rbp), %rsi
	movq	%rax, %rdi
	callq	_handle_unit
	movq	%rax, %rbx
	subq	%r14, %rbx
	subq	%r14, %rbx
	jb	LBB0_6
LBB0_9:
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	movq	%rbx, %rcx
	callq	_T
	movq	_SLRAM_BLK_SZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rbx, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_10
## %bb.11:
	movq	%rbx, %rax
	xorl	%edx, %edx
	divq	%rcx
	testq	%rdx, %rdx
	je	LBB0_13
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	callq	_E
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_16
LBB0_10:
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
	testq	%rdx, %rdx
	jne	LBB0_6
LBB0_13:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_register_device
	testq	%rax, %rax
	je	LBB0_14
## %bb.15:
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_unregister_devices
	jmp	LBB0_16
LBB0_14:
	xorl	%ebx, %ebx
LBB0_16:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"slram: devname=%s, devstart=0x%lx, devlength=0x%lx\n"

	.comm	_SLRAM_BLK_SZ,8,3               ## @SLRAM_BLK_SZ
L_.str.1:                               ## @.str.1
	.asciz	"slram: Illegal length parameter.\n"

	.no_dead_strip	_parse_cmdline
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_cmdline
_parse_cmdline:                         ; @parse_cmdline
	.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
	cbz	x0, LBB0_5
; %bb.1:
	mov	x8, x1
	cbz	x1, LBB0_5
; %bb.2:
	mov	x21, x2
	cbz	x2, LBB0_5
; %bb.3:
	mov	x19, x0
	add	x1, sp, #8
	mov	x0, x8
	mov	w2, #0
	bl	_simple_strtoul
	ldr	x1, [sp, #8]
	bl	_handle_unit
	mov	x20, x0
	ldrb	w8, [x21]
	cmp	w8, #43
	b.ne	LBB0_6
; %bb.4:
	add	x0, x21, #1
	add	x1, sp, #8
	mov	w2, #0
	bl	_simple_strtoul
	ldr	x1, [sp, #8]
	bl	_handle_unit
	mov	x21, x0
	b	LBB0_7
LBB0_5:
	bl	_unregister_devices
	b	LBB0_9
LBB0_6:
	add	x1, sp, #8
	mov	x0, x21
	mov	w2, #0
	bl	_simple_strtoul
	ldr	x1, [sp, #8]
	bl	_handle_unit
	sub	x8, x0, x20
	subs	x21, x8, x20
	b.lo	LBB0_8
LBB0_7:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x2, x20
	mov	x3, x21
	bl	_T
Lloh2:
	adrp	x8, _SLRAM_BLK_SZ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SLRAM_BLK_SZ@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	udiv	x9, x21, x8
	msub	x8, x9, x8, x21
	cbz	x8, LBB0_11
LBB0_8:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_E
LBB0_9:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_10:
	mov	x0, x19
	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_11:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_register_device
	mov	x19, x0
	cbz	x0, LBB0_10
; %bb.12:
	bl	_unregister_devices
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"slram: devname=%s, devstart=0x%lx, devlength=0x%lx\n"

	.comm	_SLRAM_BLK_SZ,8,3               ; @SLRAM_BLK_SZ
l_.str.1:                               ; @.str.1
	.asciz	"slram: Illegal length parameter.\n"

	.no_dead_strip	_parse_cmdline
.subsections_via_symbols
