	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function editlist_save_desc
_editlist_save_desc:                    ## @editlist_save_desc
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $r9d killed $r9d def $r9
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	movl	%r8d, -72(%rbp)                 ## 4-byte Spill
	movl	%ecx, %ebx
	movl	%edx, %r14d
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	%esi, -52(%rbp)
	movq	_MAX_DATA_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	shlq	$2, %r15
	movq	%r15, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	_editlist_changed@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_8
## %bb.1:
	movl	32(%rbp), %eax
	movl	24(%rbp), %r10d
	movl	16(%rbp), %r11d
	leaq	-52(%rbp), %rsi
	movq	%r12, %rdi
	xorl	%edx, %edx
	movl	%r14d, %ecx
	movl	%ebx, -68(%rbp)                 ## 4-byte Spill
	movl	%ebx, %r8d
	movl	-72(%rbp), %r9d                 ## 4-byte Reload
	pushq	%r15
	pushq	%r13
	pushq	%rax
	pushq	%r10
	pushq	%r11
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	callq	_mode_sense
	addq	$48, %rsp
	cmpl	$6, -52(%rbp)
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	jne	LBB0_4
## %bb.2:
	leaq	24(%r13), %rbx
	movq	(%r13), %rdi
	movq	$0, 16(%r13)
	movq	(%r12), %rax
	movq	_T_SEQUENTIAL@GOTPCREL(%rip), %rcx
	movl	$24, %r14d
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.3:
	movq	$0, 8(%r13)
	jmp	LBB0_7
LBB0_4:
	leaq	16(%r13), %rbx
	movl	12(%r13), %edi
	callq	_scsi_2btoul
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	8(%r13), %esi
	xorl	%edi, %edi
	callq	_scsi_ulto2b
	movq	(%r12), %rax
	movq	_T_SEQUENTIAL@GOTPCREL(%rip), %rcx
	movl	$16, %r14d
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.5:
	movq	$0, (%r13)
LBB0_6:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
LBB0_7:
	movq	%rbx, %r12
	movq	%rbx, %rax
	subq	%r13, %rax
	shrq	$2, %rax
	subl	%eax, %r15d
	movl	%r15d, %esi
	callq	_MIN
	movq	%rax, %rbx
	movq	_format@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_editentry_save@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	xorl	%r8d, %r8d
	callq	_buff_encode_visit
	movq	_PAGE_CTRL_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	shll	%cl, %eax
	movl	-52(%rbp), %esi
	cltq
	movq	_SMS_PAGE_CTRL_SAVED@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	%rax, (%rcx)
	sete	%dl
	addq	%rbx, %r14
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	16(%rbp), %ecx
                                        ## kill: def $ecx killed $ecx killed $rcx
	movl	24(%rbp), %r8d
                                        ## kill: def $r8d killed $r8d killed $r8
	movl	32(%rbp), %r9d
                                        ## kill: def $r9d killed $r9d killed $r9
	pushq	%r14
	pushq	%r13
	callq	_mode_select
	addq	$16, %rsp
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_DATA_SIZE,4,2              ## @MAX_DATA_SIZE
	.comm	_editlist_changed,4,2           ## @editlist_changed
	.comm	_T_SEQUENTIAL,8,3               ## @T_SEQUENTIAL
	.comm	_format,4,2                     ## @format
	.comm	_editentry_save,4,2             ## @editentry_save
	.comm	_PAGE_CTRL_SHIFT,8,3            ## @PAGE_CTRL_SHIFT
	.comm	_SMS_PAGE_CTRL_SAVED,8,3        ## @SMS_PAGE_CTRL_SAVED
	.no_dead_strip	_editlist_save_desc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function editlist_save_desc
_editlist_save_desc:                    ; @editlist_save_desc
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x19, x7
	mov	x20, x6
	mov	x6, x5
	mov	x5, x4
	mov	x22, x3
	mov	x3, x2
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	stur	w1, [x29, #-92]
Lloh3:
	adrp	x8, _MAX_DATA_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_DATA_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x25, x8, #2
	mov	x9, x25
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x25, #15
	and	x9, x9, #0x7fffffff0
	sub	x23, x8, x9
	mov	sp, x23
Lloh8:
	adrp	x8, _editlist_changed@GOTPAGE
Lloh9:
	ldr	x8, [x8, _editlist_changed@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cbz	w8, LBB0_9
; %bb.1:
	ldr	w24, [x29, #16]
	sub	sp, sp, #32
	str	x23, [sp, #8]
	sub	x1, x29, #92
	stp	w19, w24, [sp]
	str	w25, [sp, #16]
	mov	x0, x21
	mov	w2, #0
	mov	x4, x22
	mov	x7, x20
	bl	_mode_sense
	add	sp, sp, #32
	ldur	w8, [x29, #-92]
	cmp	w8, #6
	b.ne	LBB0_5
; %bb.2:
	add	x26, x23, #24
	ldr	x27, [x23]
	str	xzr, [x23, #16]
	ldr	x8, [x21]
Lloh11:
	adrp	x9, _T_SEQUENTIAL@GOTPAGE
Lloh12:
	ldr	x9, [x9, _T_SEQUENTIAL@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.3:
	str	xzr, [x23, #8]
LBB0_4:
	mov	w28, #24
	b	LBB0_8
LBB0_5:
	add	x26, x23, #16
	ldr	w0, [x23, #12]
	bl	_scsi_2btoul
	mov	x27, x0
	ldr	w1, [x23, #8]
	mov	w0, #0
	bl	_scsi_ulto2b
	ldr	x8, [x21]
Lloh14:
	adrp	x9, _T_SEQUENTIAL@GOTPAGE
Lloh15:
	ldr	x9, [x9, _T_SEQUENTIAL@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_7
; %bb.6:
	str	xzr, [x23]
LBB0_7:
	mov	w28, #16
LBB0_8:
	sub	x8, x26, x23
	lsr	x8, x8, #2
	sub	w1, w25, w8
	mov	x0, x27
	bl	_MIN
	mov	x25, x0
Lloh17:
	adrp	x8, _format@GOTPAGE
Lloh18:
	ldr	x8, [x8, _format@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
Lloh20:
	adrp	x8, _editentry_save@GOTPAGE
Lloh21:
	ldr	x8, [x8, _editentry_save@GOTPAGEOFF]
Lloh22:
	ldr	w3, [x8]
	mov	x0, x26
	mov	x1, x25
	mov	w4, #0
	bl	_buff_encode_visit
	ldur	w1, [x29, #-92]
Lloh23:
	adrp	x8, _PAGE_CTRL_SHIFT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _PAGE_CTRL_SHIFT@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	lsl	w8, w22, w8
Lloh26:
	adrp	x9, _SMS_PAGE_CTRL_SAVED@GOTPAGE
Lloh27:
	ldr	x9, [x9, _SMS_PAGE_CTRL_SAVED@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, w8, sxtw
	cset	w2, eq
	add	x7, x25, x28
	mov	x0, x21
	mov	x3, x20
	mov	x4, x19
	mov	x5, x24
	mov	x6, x23
	bl	_mode_select
LBB0_9:
	ldur	x8, [x29, #-88]
Lloh29:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh30:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_DATA_SIZE,4,2              ; @MAX_DATA_SIZE
	.comm	_editlist_changed,4,2           ; @editlist_changed
	.comm	_T_SEQUENTIAL,8,3               ; @T_SEQUENTIAL
	.comm	_format,4,2                     ; @format
	.comm	_editentry_save,4,2             ; @editentry_save
	.comm	_PAGE_CTRL_SHIFT,8,3            ; @PAGE_CTRL_SHIFT
	.comm	_SMS_PAGE_CTRL_SAVED,8,3        ; @SMS_PAGE_CTRL_SAVED
	.no_dead_strip	_editlist_save_desc
.subsections_via_symbols
