	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_input
_handle_input:                          ## @handle_input
	.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
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_FALSE@GOTPCREL(%rip), %rbx
	movq	_MY_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	incl	%eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	_dialog_state@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	testq	%rsi, %rsi
	je	LBB0_21
## %bb.1:
	movl	(%rbx), %r13d
	movq	%r15, %rdi
	callq	_read_data
	testl	%eax, %eax
	jle	LBB0_18
## %bb.2:
	movq	%r15, %rdi
	callq	_isMarker
	testq	%rax, %rax
	je	LBB0_15
## %bb.3:
	movq	(%r12), %rsi
	movq	%r15, %rdi
	callq	_read_data
	testl	%eax, %eax
	jle	LBB0_22
## %bb.4:
	movq	(%r14), %rax
	movb	$0, (%rax)
	movq	%r15, %rdi
	callq	_decode_percent
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	callq	_atoi
	movq	%rax, 16(%r14)
	jmp	LBB0_7
LBB0_18:
	movq	(%r12), %rdi
	callq	_feof
	testq	%rax, %rax
	je	LBB0_19
LBB0_21:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_22:
	movq	%r14, %rdi
	callq	_repaint_text
LBB0_23:
	movl	(%rbx), %ebx
	testl	%r13d, %r13d
	je	LBB0_25
## %bb.24:
	movq	%r14, %rdi
	callq	_dlg_remove_callback
	movq	%r14, %rdi
	callq	_delink
	jmp	LBB0_25
LBB0_15:
	movq	%r15, %rdi
	callq	_decode_percent
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	%r15, %rdi
	callq	_atoi
	movq	%rax, 16(%r14)
LBB0_17:
	movq	%r14, %rdi
	callq	_repaint_text
	jmp	LBB0_14
LBB0_19:
	movq	(%r12), %rdi
	callq	_ferror
	testq	%rax, %rax
	je	LBB0_22
## %bb.20:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EINTR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_21
	jmp	LBB0_22
LBB0_6:
	movq	(%r14), %rdi
	movq	%r15, %rsi
	callq	_strcpy
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rsi
	movq	%r15, %rdi
	callq	_read_data
	movl	%eax, %ebx
	testl	%eax, %eax
	jle	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%r15, %rdi
	callq	_isMarker
	testq	%rax, %rax
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r14), %rdi
	callq	_strlen
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_strlen
	addl	%ebx, %eax
	cmpl	$6, %eax
	ja	LBB0_7
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r14), %rdi
	movq	%r15, %rsi
	callq	_strcat
	jmp	LBB0_7
LBB0_11:
	movq	8(%r14), %rdi
	cmpq	(%r14), %rdi
	je	LBB0_13
## %bb.12:
	callq	_free
	movq	(%r14), %rdi
LBB0_13:
	movq	%rdi, 8(%r14)
	movq	%r14, %rdi
	callq	_repaint_text
	testl	%ebx, %ebx
	movq	_FALSE@GOTPCREL(%rip), %rbx
	jle	LBB0_23
LBB0_14:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_25:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_27
## %bb.26:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_MY_LEN,4,2                     ## @MY_LEN
	.comm	_dialog_state,8,3               ## @dialog_state
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_errno,8,3                      ## @errno
	.comm	_EINTR,8,3                      ## @EINTR
	.no_dead_strip	_handle_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_input
_handle_input:                          ; @handle_input
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x22, _FALSE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _FALSE@GOTPAGEOFF]
	stur	x8, [x29, #-56]
	ldr	w23, [x22]
Lloh5:
	adrp	x8, _MY_LEN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MY_LEN@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	add	w8, w8, #1
	mov	x9, x8
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x20, x9, x8
	mov	sp, x20
Lloh10:
	adrp	x24, _dialog_state@GOTPAGE
Lloh11:
	ldr	x24, [x24, _dialog_state@GOTPAGEOFF]
	ldr	x1, [x24]
	cbz	x1, LBB0_7
; %bb.1:
	mov	x0, x20
	bl	_read_data
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.2:
	mov	x0, x20
	bl	_isMarker
	cbz	x0, LBB0_11
; %bb.3:
	ldr	x1, [x24]
	mov	x0, x20
	bl	_read_data
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.4:
	ldr	x8, [x19]
	strb	wzr, [x8]
	mov	x0, x20
	bl	_decode_percent
	cbz	x0, LBB0_16
; %bb.5:
	mov	x0, x20
	bl	_atoi
	str	x0, [x19, #16]
	b	LBB0_17
LBB0_6:
	ldr	x0, [x24]
	bl	_feof
	cbz	x0, LBB0_14
LBB0_7:
Lloh12:
	adrp	x8, _TRUE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh14:
	ldr	w23, [x8]
LBB0_8:
	mov	x0, x19
	bl	_repaint_text
LBB0_9:
	ldr	w20, [x22]
	cbz	w23, LBB0_22
; %bb.10:
	mov	x0, x19
	bl	_dlg_remove_callback
	mov	x0, x19
	bl	_delink
	b	LBB0_22
LBB0_11:
	mov	x0, x20
	bl	_decode_percent
	cbz	x0, LBB0_13
; %bb.12:
	mov	x0, x20
	bl	_atoi
	str	x0, [x19, #16]
LBB0_13:
	mov	x0, x19
	bl	_repaint_text
	b	LBB0_21
LBB0_14:
	ldr	x0, [x24]
	bl	_ferror
	cbz	x0, LBB0_8
; %bb.15:
Lloh15:
	adrp	x8, _errno@GOTPAGE
Lloh16:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
Lloh18:
	adrp	x9, _EINTR@GOTPAGE
Lloh19:
	ldr	x9, [x9, _EINTR@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
	b	LBB0_8
LBB0_16:
	ldr	x0, [x19]
	mov	x1, x20
	bl	_strcpy
LBB0_17:
	ldr	x1, [x24]
	mov	x0, x20
	bl	_read_data
	mov	x21, x0
	cmp	w0, #1
	b.ge	LBB0_25
LBB0_18:
	ldp	x8, x0, [x19]
	cmp	x0, x8
	b.eq	LBB0_20
; %bb.19:
	bl	_free
	ldr	x0, [x19]
LBB0_20:
	str	x0, [x19, #8]
	mov	x0, x19
	bl	_repaint_text
	cmp	w21, #1
	b.lt	LBB0_9
LBB0_21:
Lloh21:
	adrp	x8, _TRUE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh23:
	ldr	w20, [x8]
LBB0_22:
	ldur	x8, [x29, #-56]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_28
; %bb.23:
	mov	x0, x20
	sub	sp, x29, #48
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_24:                                ;   in Loop: Header=BB0_25 Depth=1
	ldr	x1, [x24]
	mov	x0, x20
	bl	_read_data
	mov	x21, x0
	cmp	w0, #0
	b.le	LBB0_18
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_isMarker
	cbnz	x0, LBB0_18
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=1
	ldr	x0, [x19]
	bl	_strlen
	mov	x21, x0
	mov	x0, x20
	bl	_strlen
	add	w8, w0, w21
	cmp	w8, #6
	b.hi	LBB0_24
; %bb.27:                               ;   in Loop: Header=BB0_25 Depth=1
	ldr	x0, [x19]
	mov	x1, x20
	bl	_strcat
	b	LBB0_24
LBB0_28:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_MY_LEN,4,2                     ; @MY_LEN
	.comm	_dialog_state,8,3               ; @dialog_state
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_errno,8,3                      ; @errno
	.comm	_EINTR,8,3                      ; @EINTR
	.no_dead_strip	_handle_input
.subsections_via_symbols
