	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function editentry_set
_editentry_set:                         ## @editentry_set
	.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
	movl	%edx, %ebx
	movq	%rsi, %r12
	movq	%rdi, %r14
	xorl	%edi, %edi
	testq	%rsi, %rsi
	setne	%dil
	callq	_assert
	cmpb	$0, (%r12)
	je	LBB0_31
## %bb.1:
	movq	%r14, %rdi
	callq	_editentry_lookup
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_returnerr
LBB0_3:
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.4:
	cmpl	$0, 28(%r15)
	jne	LBB0_6
## %bb.5:
	movq	_EPERM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_returnerr
LBB0_6:
	movl	(%r15), %eax
	leal	-98(%rax), %ecx
	cmpl	$24, %ecx
	ja	LBB0_31
## %bb.7:
	movl	$262273, %edx                   ## imm = 0x40081
	btl	%ecx, %edx
	jae	LBB0_8
## %bb.20:
	cmpl	$105, %eax
	movl	$8, %eax
	movl	$1, %r13d
	cmovel	%eax, %r13d
	leaq	-48(%rbp), %rsi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_strtoll
	movq	%rax, %r12
	movq	-48(%rbp), %rax
	cmpb	$0, (%rax)
	je	LBB0_22
## %bb.21:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_returnerr
LBB0_22:
	imull	24(%r15), %r13d
	movq	$-1, %rbx
	movl	%r13d, %ecx
	shlq	%cl, %rbx
	notq	%rbx
	testq	%r12, %r12
	js	LBB0_24
## %bb.23:
	cmpq	%rbx, %r12
	jle	LBB0_25
LBB0_24:
	xorl	%eax, %eax
	testq	%r12, %r12
	cmovsq	%rax, %rbx
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	movq	%rbx, %rcx
	callq	_warnx
	movq	%rbx, %r12
LBB0_25:
	cmpq	%r12, 8(%r15)
	je	LBB0_27
## %bb.26:
	movq	_editlist_changed@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_27:
	movq	%r12, 8(%r15)
	jmp	LBB0_31
LBB0_8:
	movl	$16777218, %eax                 ## imm = 0x1000002
	btl	%ecx, %eax
	jae	LBB0_31
## %bb.9:
	movl	24(%r15), %edi
	incl	%edi
	callq	_malloc
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:
	movq	_EX_OSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_err
LBB0_11:
	movl	24(%r15), %esi
	incl	%esi
	movq	%r14, %rdi
	callq	_bzero
	movl	24(%r15), %edx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_strncpy
	cmpl	$122, (%r15)
	jne	LBB0_18
## %bb.12:
	movl	24(%r15), %eax
	testl	%eax, %eax
	js	LBB0_18
## %bb.13:
	addq	%r14, %rax
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_14 Depth=1
	decq	%rax
	cmpq	%r14, %rax
	jb	LBB0_18
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rax), %ecx
	testb	%cl, %cl
	je	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	cmpb	$32, %cl
	jne	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	movb	$0, (%rax)
	jmp	LBB0_17
LBB0_18:
	movq	16(%r15), %rdi
	movl	24(%r15), %edx
	movq	%r14, %rsi
	callq	_strncmp
	testl	%eax, %eax
	je	LBB0_19
## %bb.28:
	movq	16(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_30
## %bb.29:
	callq	_free
	movq	$0, 16(%r15)
LBB0_30:
	movq	%r14, 16(%r15)
	movq	_editlist_changed@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	jmp	LBB0_31
LBB0_19:
	movq	%r14, %rdi
	callq	_free
LBB0_31:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"value %lld is out of range for entry %s; clipping to %lld"

	.comm	_editlist_changed,4,2           ## @editlist_changed
	.comm	_EX_OSERR,4,2                   ## @EX_OSERR
	.no_dead_strip	_editentry_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function editentry_set
_editentry_set:                         ; @editentry_set
	.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
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
	cmp	x1, #0
	cset	w0, ne
	bl	_assert
	ldrb	w8, [x21]
	cbz	w8, LBB0_31
; %bb.1:
	mov	x0, x20
	bl	_editentry_lookup
	mov	x19, x0
	cbnz	x0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _ENOENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_returnerr
LBB0_3:
	cbz	w22, LBB0_6
; %bb.4:
	ldr	w8, [x19, #28]
	cbnz	w8, LBB0_6
; %bb.5:
Lloh3:
	adrp	x8, _EPERM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_returnerr
LBB0_6:
	ldr	w8, [x19]
	sub	w9, w8, #98
	cmp	w9, #24
	b.hi	LBB0_31
; %bb.7:
	mov	w10, #1
	lsl	w9, w10, w9
	mov	w10, #129
	movk	w10, #4, lsl #16
	tst	w9, w10
	b.eq	LBB0_16
; %bb.8:
	cmp	w8, #105
	mov	w8, #8
	csinc	w22, w8, wzr, eq
	add	x1, sp, #8
	mov	x0, x21
	mov	w2, #0
	bl	_strtoll
	mov	x21, x0
	ldr	x8, [sp, #8]
	ldrb	w8, [x8]
	cbz	w8, LBB0_10
; %bb.9:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_returnerr
LBB0_10:
	ldr	w8, [x19, #24]
	mul	w8, w8, w22
	mov	x9, #-1
	lsl	x8, x9, x8
	mvn	x8, x8
	tbnz	x21, #63, LBB0_12
; %bb.11:
	cmp	x21, x8
	b.le	LBB0_13
LBB0_12:
	cmp	x21, #0
	csel	x22, xzr, x8, lt
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	mov	x2, x20
	mov	x3, x22
	bl	_warnx
	mov	x21, x22
LBB0_13:
	ldr	x8, [x19, #8]
	cmp	x8, x21
	b.eq	LBB0_15
; %bb.14:
Lloh11:
	adrp	x8, _editlist_changed@GOTPAGE
Lloh12:
	ldr	x8, [x8, _editlist_changed@GOTPAGEOFF]
	mov	w9, #1
Lloh13:
	str	w9, [x8]
LBB0_15:
	str	x21, [x19, #8]
	b	LBB0_31
LBB0_16:
	mov	w8, #2
	movk	w8, #256, lsl #16
	tst	w9, w8
	b.eq	LBB0_31
; %bb.17:
	ldr	w8, [x19, #24]
	add	w0, w8, #1
	bl	_malloc
	mov	x20, x0
	cbnz	x0, LBB0_19
; %bb.18:
Lloh14:
	adrp	x8, _EX_OSERR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EX_OSERR@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_err
LBB0_19:
	ldr	w8, [x19, #24]
	add	w1, w8, #1
	mov	x0, x20
	bl	_bzero
	ldr	w2, [x19, #24]
	mov	x0, x20
	mov	x1, x21
	bl	_strncpy
	ldr	w8, [x19]
	cmp	w8, #122
	b.ne	LBB0_26
; %bb.20:
	ldr	w8, [x19, #24]
	tbnz	w8, #31, LBB0_26
; %bb.21:
	add	x8, x20, x8
	b	LBB0_23
LBB0_22:                                ;   in Loop: Header=BB0_23 Depth=1
	sub	x8, x8, #1
	cmp	x8, x20
	b.lo	LBB0_26
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x8]
	cbz	w9, LBB0_22
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	cmp	w9, #32
	b.ne	LBB0_26
; %bb.25:                               ;   in Loop: Header=BB0_23 Depth=1
	strb	wzr, [x8]
	b	LBB0_22
LBB0_26:
	ldr	x0, [x19, #16]
	ldr	w2, [x19, #24]
	mov	x1, x20
	bl	_strncmp
	cbz	w0, LBB0_30
; %bb.27:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_29
; %bb.28:
	bl	_free
	str	xzr, [x19, #16]
LBB0_29:
	str	x20, [x19, #16]
Lloh17:
	adrp	x8, _editlist_changed@GOTPAGE
Lloh18:
	ldr	x8, [x8, _editlist_changed@GOTPAGEOFF]
	mov	w9, #1
Lloh19:
	str	w9, [x8]
	b	LBB0_31
LBB0_30:
	mov	x0, x20
	bl	_free
LBB0_31:
	mov	w0, #0
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotStr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"value %lld is out of range for entry %s; clipping to %lld"

	.comm	_editlist_changed,4,2           ; @editlist_changed
	.comm	_EX_OSERR,4,2                   ; @EX_OSERR
	.no_dead_strip	_editentry_set
.subsections_via_symbols
