	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function margin_edit_notification
_margin_edit_notification:              ## @margin_edit_notification
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movq	%rsi, %r15
	movl	%edi, %r12d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	cmpl	$128, %edx
	je	LBB0_12
## %bb.1:
	cmpl	$129, %edx
	jne	LBB0_10
## %bb.2:
	movq	%r15, %rdi
	callq	_pagesetup_get_margin_rect
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_element_from_margin_id
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	leaq	-96(%rbp), %r13
	movq	%r13, %rdi
	callq	_ARRAY_SIZE
	movl	%r12d, %edi
	movl	%ebx, %esi
	movq	%r13, %rdx
	movl	%eax, %ecx
	callq	_GetDlgItemTextW
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	xorl	%eax, %eax
	callq	_get_decimal_sep
	movl	%eax, %r12d
	leaq	-104(%rbp), %rsi
	movq	%r13, %rdi
	movl	$10, %edx
	callq	_wcstol
	movl	%eax, %r14d
	cmpq	%r13, -104(%rbp)
	jne	LBB0_6
## %bb.5:
	cmpl	%r12d, -96(%rbp)
	jne	LBB0_9
LBB0_6:
	movq	%r15, %rdi
	callq	_is_metric
	testl	%eax, %eax
	movl	$1000, %eax                     ## imm = 0x3E8
	movl	$100, %ebx
	cmovel	%eax, %ebx
	imull	%ebx, %r14d
	movq	-104(%rbp), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	leaq	4(%rax), %rcx
	movq	%rcx, -104(%rbp)
	movl	4(%rax), %edi
	callq	_iswdigit
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movslq	%ebx, %rcx
	imulq	$1717986919, %rcx, %rbx         ## imm = 0x66666667
	movq	%rbx, %rax
	shrq	$63, %rax
	sarq	$34, %rbx
	addl	%eax, %ebx
	movq	-104(%rbp), %rax
	movl	(%rax), %edx
	addl	$-48, %edx
	imull	%ebx, %edx
	addl	%edx, %r14d
	cmpl	$19, %ecx
	jg	LBB0_7
	jmp	LBB0_9
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	movl	%r12d, %edi
	movq	%r15, %rsi
	movl	%ebx, %edx
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_update_margin_edits            ## TAILCALL
LBB0_3:
	xorl	%r14d, %r14d
LBB0_9:
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movl	%r14d, (%rax)
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.11:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_margin_edit_notification
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function margin_edit_notification
_margin_edit_notification:              ; @margin_edit_notification
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x20, x3
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	cmp	w2, #128
	b.eq	LBB0_9
; %bb.1:
	cmp	w2, #129
	b.ne	LBB0_13
; %bb.2:
	mov	x0, x21
	bl	_pagesetup_get_margin_rect
	mov	x1, x20
	bl	_element_from_margin_id
	mov	x19, x0
	add	x23, sp, #16
	add	x0, sp, #16
	bl	_ARRAY_SIZE
	mov	x3, x0
	add	x2, sp, #16
	mov	x0, x22
	mov	x1, x20
	bl	_GetDlgItemTextW
	cbz	w0, LBB0_11
; %bb.3:
	bl	_get_decimal_sep
	mov	x22, x0
	add	x0, sp, #16
	add	x1, sp, #8
	mov	w2, #10
	bl	_wcstol
	mov	x20, x0
	ldr	x8, [sp, #8]
	cmp	x8, x23
	b.ne	LBB0_5
; %bb.4:
	ldr	w8, [sp, #16]
	cmp	w8, w22
	b.ne	LBB0_12
LBB0_5:
	mov	x0, x21
	bl	_is_metric
	mov	w8, #100
	mov	w9, #1000
	cmp	w0, #0
	csel	w21, w9, w8, eq
	mul	w20, w21, w20
	ldr	x8, [sp, #8]
	ldr	w9, [x8]
	cmp	w9, w22
	b.ne	LBB0_12
; %bb.6:
	mov	w22, #26215
	movk	w22, #26214, lsl #16
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x8, #4]!
	str	x8, [sp, #8]
	bl	_iswdigit
	cbz	w0, LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	smull	x8, w21, w22
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w9, w8, w9
	ldr	x8, [sp, #8]
	ldr	w10, [x8]
	sub	w10, w10, #48
	madd	w20, w10, w9, w20
	cmp	w21, #19
	mov	x21, x9
	b.gt	LBB0_7
	b	LBB0_12
LBB0_9:
	ldr	x8, [sp, #56]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.10:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_update_margin_edits
LBB0_11:
	mov	w20, #0
LBB0_12:
	str	w20, [x19]
LBB0_13:
	ldr	x8, [sp, #56]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_margin_edit_notification
.subsections_via_symbols
