	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function editlist_save
_editlist_save:                         ## @editlist_save
	.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, -56(%rbp)                  ## 8-byte Spill
	movl	%r8d, -72(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r12d
	movl	%edx, %r15d
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	%esi, -60(%rbp)
	movq	_MAX_DATA_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	shlq	$2, %r13
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	_editlist_changed@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_16
## %bb.1:
	movl	32(%rbp), %eax
	movl	24(%rbp), %r10d
	movl	16(%rbp), %r11d
	leaq	-60(%rbp), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	movl	%r12d, %r8d
	movl	-72(%rbp), %r9d                 ## 4-byte Reload
	pushq	%r13
	pushq	%rbx
	pushq	%rax
	pushq	%r10
	pushq	%r11
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	callq	_mode_sense
	addq	$48, %rsp
	cmpl	$6, -60(%rbp)
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movl	%r12d, -76(%rbp)                ## 4-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jne	LBB0_7
## %bb.2:
	cmpq	$0, (%rbx)
	jle	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_find_mode_page_6
	leaq	24(%rbx), %rdi
	movl	8(%rbx), %ecx
	subq	(%rbx), %rcx
	movl	$4294967273, %edx               ## imm = 0xFFFFFFE9
	addq	%rcx, %rdx
	movq	%rax, %rsi
	callq	_memmove
	movq	$0, (%rbx)
LBB0_4:
	movl	$0, 8(%rbx)
	movq	(%r14), %rax
	movq	_T_SEQUENTIAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.5:
	movq	$0, 16(%rbx)
LBB0_6:
	movq	%rbx, %rdi
	callq	_find_mode_page_6
	jmp	LBB0_12
LBB0_7:
	movl	(%rbx), %edi
	callq	_scsi_2btoul
	testl	%eax, %eax
	jle	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	callq	_find_mode_page_10
	movq	%rax, %r14
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	24(%rax), %r15
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %edi
	callq	_scsi_2btoul
	movl	%eax, %r12d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_scsi_2btoul
	subl	%eax, %r12d
	addl	$-23, %r12d
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%r12, %rdx
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	callq	_memmove
	movl	(%rbx), %esi
	xorl	%edi, %edi
	callq	_scsi_ulto2b
LBB0_9:
	movl	8(%rbx), %esi
	xorl	%edi, %edi
	callq	_scsi_ulto2b
	movq	(%r14), %rax
	movq	_T_SEQUENTIAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_11
## %bb.10:
	movq	$0, 16(%rbx)
LBB0_11:
	movq	%rbx, %rdi
	callq	_find_mode_page_10
LBB0_12:
	movq	%rax, %r12
	movl	(%rax), %edi
	movq	_SMPH_SPF@GOTPCREL(%rip), %rax
	testl	%edi, (%rax)
	je	LBB0_13
## %bb.14:
	leaq	4(%r12), %r14
	callq	_scsi_2btoul
	movslq	%eax, %rdi
	movl	$28, %r15d
	jmp	LBB0_15
LBB0_13:
	leaq	16(%r12), %r14
	movq	8(%r12), %rdi
	movl	$40, %r15d
LBB0_15:
	movq	%r14, %rax
	subq	-56(%rbp), %rax                 ## 8-byte Folded Reload
	shrq	$2, %rax
	subl	%eax, %r13d
	movl	%r13d, %esi
	callq	_MIN
	movq	%rax, %rbx
	movq	_format@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_editentry_save@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%r8d, %r8d
	callq	_buff_encode_visit
	movq	_SMPH_PS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%r12)
	movq	_PAGE_CTRL_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	-76(%rbp), %eax                 ## 4-byte Reload
	shll	%cl, %eax
	movl	-60(%rbp), %esi
	cltq
	movq	_SMS_PAGE_CTRL_SAVED@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	%rax, (%rcx)
	sete	%dl
	addq	%rbx, %r15
	movq	-72(%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	%r15
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	callq	_mode_select
	addq	$16, %rsp
LBB0_16:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_18
## %bb.17:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	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	_SMPH_SPF,4,2                   ## @SMPH_SPF
	.comm	_format,4,2                     ## @format
	.comm	_editentry_save,4,2             ## @editentry_save
	.comm	_SMPH_PS,4,2                    ## @SMPH_PS
	.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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function editlist_save
_editlist_save:                         ; @editlist_save
	.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	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_16
; %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	w3, #0
	mov	x4, x22
	mov	x7, x20
	bl	_mode_sense
	add	sp, sp, #32
	ldur	w8, [x29, #-92]
	cmp	w8, #6
	b.ne	LBB0_7
; %bb.2:
	ldr	x8, [x23]
	cmp	x8, #1
	b.lt	LBB0_4
; %bb.3:
	mov	x0, x23
	bl	_find_mode_page_6
	mov	x1, x0
	add	x0, x23, #24
	ldr	w8, [x23, #8]
	ldr	x9, [x23]
	mov	w10, #-23
	sub	x8, x8, x9
	add	x2, x8, x10
	bl	_memmove
	str	xzr, [x23]
LBB0_4:
	str	wzr, [x23, #8]
	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_6
; %bb.5:
	str	xzr, [x23, #16]
LBB0_6:
	mov	x0, x23
	bl	_find_mode_page_6
	b	LBB0_12
LBB0_7:
	ldr	w0, [x23]
	bl	_scsi_2btoul
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.8:
	mov	x0, x23
	bl	_find_mode_page_10
	mov	x26, x0
	add	x27, x23, #24
	ldr	w0, [x23, #8]
	bl	_scsi_2btoul
	mov	x28, x0
	ldr	w0, [x23]
	bl	_scsi_2btoul
	sub	w8, w28, w0
	sub	w2, w8, #23
	mov	x0, x27
	mov	x1, x26
	bl	_memmove
	ldr	w1, [x23]
	mov	w0, #0
	bl	_scsi_ulto2b
LBB0_9:
	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_11
; %bb.10:
	str	xzr, [x23, #16]
LBB0_11:
	mov	x0, x23
	bl	_find_mode_page_10
LBB0_12:
	mov	x26, x0
	ldr	w0, [x0]
Lloh17:
	adrp	x8, _SMPH_SPF@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SMPH_SPF@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_14
; %bb.13:
	add	x27, x26, #4
	bl	_scsi_2btoul
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x0, w0
	mov	w28, #28
	b	LBB0_15
LBB0_14:
	add	x27, x26, #16
	ldr	x0, [x26, #8]
	mov	w28, #40
LBB0_15:
	sub	x8, x27, x23
	lsr	x8, x8, #2
	sub	w1, w25, w8
	bl	_MIN
	mov	x25, x0
Lloh20:
	adrp	x8, _format@GOTPAGE
Lloh21:
	ldr	x8, [x8, _format@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
Lloh23:
	adrp	x8, _editentry_save@GOTPAGE
Lloh24:
	ldr	x8, [x8, _editentry_save@GOTPAGEOFF]
Lloh25:
	ldr	w3, [x8]
	mov	x0, x27
	mov	x1, x25
	mov	w4, #0
	bl	_buff_encode_visit
Lloh26:
	adrp	x8, _SMPH_PS@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SMPH_PS@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	ldr	w9, [x26]
	bic	w8, w9, w8
	str	w8, [x26]
	ldur	w1, [x29, #-92]
Lloh29:
	adrp	x8, _PAGE_CTRL_SHIFT@GOTPAGE
Lloh30:
	ldr	x8, [x8, _PAGE_CTRL_SHIFT@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	lsl	w8, w22, w8
Lloh32:
	adrp	x9, _SMS_PAGE_CTRL_SAVED@GOTPAGE
Lloh33:
	ldr	x9, [x9, _SMS_PAGE_CTRL_SAVED@GOTPAGEOFF]
Lloh34:
	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_16:
	ldur	x8, [x29, #-88]
Lloh35:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh36:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	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_18:
	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	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.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	_SMPH_SPF,4,2                   ; @SMPH_SPF
	.comm	_format,4,2                     ; @format
	.comm	_editentry_save,4,2             ; @editentry_save
	.comm	_SMPH_PS,4,2                    ; @SMPH_PS
	.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
.subsections_via_symbols
