	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function editlist_populate
_editlist_populate:                     ## @editlist_populate
	.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, -72(%rbp)                  ## 8-byte Spill
	movl	%r8d, %r12d
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	movl	%edx, %r13d
	movq	%rdi, %r14
	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, %rbx
	movq	_editlist@GOTPCREL(%rip), %rdi
	callq	_STAILQ_INIT
	leaq	-52(%rbp), %rsi
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movq	%rbx, %r14
	movl	%r13d, -56(%rbp)                ## 4-byte Spill
	movl	%r13d, %edx
	xorl	%ecx, %ecx
	movl	$1, %r8d
	movl	%r12d, -64(%rbp)                ## 4-byte Spill
	movl	%r12d, %r9d
	pushq	%r15
	pushq	%rbx
	movl	32(%rbp), %eax
	pushq	%rax
	movl	24(%rbp), %eax
	pushq	%rax
	movl	16(%rbp), %eax
	pushq	%rax
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	callq	_mode_sense
	addq	$48, %rsp
	cmpl	$6, -52(%rbp)
	jne	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_find_mode_page_6
	jmp	LBB0_3
LBB0_2:
	movq	%r14, %rdi
	callq	_find_mode_page_10
LBB0_3:
	movq	%rax, %r12
	movl	(%rax), %edi
	movq	_SMPH_SPF@GOTPCREL(%rip), %rax
	testl	%edi, (%rax)
	je	LBB0_4
## %bb.5:
	addq	$4, %r12
	callq	_scsi_2btoul
	movq	%rax, %rdi
	jmp	LBB0_6
LBB0_4:
	movq	8(%r12), %rdi
	addq	$16, %r12
LBB0_6:
	movq	%r12, %rax
	subq	%r14, %rax
	shrq	$2, %rax
	movl	%r15d, %esi
	subl	%eax, %esi
	callq	_MIN
	movq	%rax, %r13
	movq	_format@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	_editentry_create@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%r13, %rsi
	xorl	%r8d, %r8d
	callq	_buff_decode_visit
	leaq	-52(%rbp), %rsi
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	xorl	%ecx, %ecx
	movl	-60(%rbp), %r8d                 ## 4-byte Reload
	movl	-64(%rbp), %r9d                 ## 4-byte Reload
	pushq	%r15
	pushq	%r14
	movl	32(%rbp), %eax
	pushq	%rax
	movl	24(%rbp), %eax
	pushq	%rax
	movl	16(%rbp), %eax
	pushq	%rax
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	callq	_mode_sense
	addq	$48, %rsp
	movl	(%rbx), %edx
	movq	_editentry_update@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%r13, %rsi
	xorl	%r8d, %r8d
	callq	_buff_decode_visit
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_DATA_SIZE,4,2              ## @MAX_DATA_SIZE
	.comm	_editlist,4,2                   ## @editlist
	.comm	_SMPH_SPF,4,2                   ## @SMPH_SPF
	.comm	_format,4,2                     ## @format
	.comm	_editentry_create,4,2           ## @editentry_create
	.comm	_editentry_update,4,2           ## @editentry_update
	.no_dead_strip	_editlist_populate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function editlist_populate
_editlist_populate:                     ; @editlist_populate
	.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, #32
	mov	x22, x7
	mov	x20, x6
	mov	x23, x5
	mov	x21, x4
	stur	w3, [x29, #-104]                ; 4-byte Folded Spill
	mov	x24, x2
	mov	x25, x0
	ldr	w19, [x29, #16]
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	x26, x8, #2
	mov	x9, x26
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x26, #15
	and	x9, x9, #0x7fffffff0
	sub	x27, x8, x9
	mov	sp, x27
Lloh8:
	adrp	x0, _editlist@GOTPAGE
Lloh9:
	ldr	x0, [x0, _editlist@GOTPAGEOFF]
	bl	_STAILQ_INIT
	sub	sp, sp, #32
	str	w26, [sp, #16]
	str	x27, [sp, #8]
	sub	x1, x29, #92
	stp	w22, w19, [sp]
	mov	x0, x25
	mov	x2, x24
	mov	w3, #0
	mov	w4, #1
	mov	x5, x21
	stp	w23, w20, [x29, #-100]          ; 8-byte Folded Spill
	mov	x6, x23
	mov	x7, x20
	bl	_mode_sense
	add	sp, sp, #32
	ldur	w8, [x29, #-92]
	mov	x0, x27
	cmp	w8, #6
	b.ne	LBB0_2
; %bb.1:
	bl	_find_mode_page_6
	b	LBB0_3
LBB0_2:
	bl	_find_mode_page_10
LBB0_3:
	ldr	w8, [x0]
Lloh10:
	adrp	x9, _SMPH_SPF@GOTPAGE
Lloh11:
	ldr	x9, [x9, _SMPH_SPF@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	add	x28, x0, #4
	mov	x0, x8
	bl	_scsi_2btoul
	b	LBB0_6
LBB0_5:
	add	x28, x0, #16
	ldr	x0, [x0, #8]
LBB0_6:
	sub	x8, x28, x27
	lsr	x8, x8, #2
	sub	w1, w26, w8
	bl	_MIN
	mov	x23, x0
Lloh13:
	adrp	x20, _format@GOTPAGE
Lloh14:
	ldr	x20, [x20, _format@GOTPAGEOFF]
	ldr	w2, [x20]
Lloh15:
	adrp	x8, _editentry_create@GOTPAGE
Lloh16:
	ldr	x8, [x8, _editentry_create@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
	mov	x0, x28
	mov	x1, x23
	mov	w4, #0
	bl	_buff_decode_visit
	sub	sp, sp, #32
	str	w26, [sp, #16]
	str	x27, [sp, #8]
	sub	x1, x29, #92
	stp	w22, w19, [sp]
	mov	x0, x25
	mov	x2, x24
	mov	w3, #0
	ldp	w4, w6, [x29, #-104]            ; 8-byte Folded Reload
	mov	x5, x21
	ldur	w7, [x29, #-96]                 ; 4-byte Folded Reload
	bl	_mode_sense
	add	sp, sp, #32
	ldr	w2, [x20]
Lloh18:
	adrp	x8, _editentry_update@GOTPAGE
Lloh19:
	ldr	x8, [x8, _editentry_update@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
	mov	x0, x28
	mov	x1, x23
	mov	w4, #0
	bl	_buff_decode_visit
	ldur	x8, [x29, #-88]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	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_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_DATA_SIZE,4,2              ; @MAX_DATA_SIZE
	.comm	_editlist,4,2                   ; @editlist
	.comm	_SMPH_SPF,4,2                   ; @SMPH_SPF
	.comm	_format,4,2                     ; @format
	.comm	_editentry_create,4,2           ; @editentry_create
	.comm	_editentry_update,4,2           ; @editentry_update
	.no_dead_strip	_editlist_populate
.subsections_via_symbols
