	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_UI_set_result_ex               ## -- Begin function UI_set_result_ex
	.p2align	4, 0x90
_UI_set_result_ex:                      ## @UI_set_result_ex
	.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
	movl	%ecx, %r12d
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_UI_FLAG_REDOABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%rdi)
	movl	(%rsi), %eax
	xorl	%r14d, %r14d
	leal	-128(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_1
## %bb.5:
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movl	40(%r15), %edi
	callq	_DECIMAL_SIZE
                                        ## kill: def $eax killed $eax def $rax
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movl	%r12d, -52(%rbp)                ## 4-byte Spill
	leal	1(%rax), %r12d
	movq	%r12, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movl	44(%r15), %edi
	callq	_DECIMAL_SIZE
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %r14d
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rax
	movl	40(%r15), %ecx
	leaq	L_.str(%rip), %rdx
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movq	%rax, %r13
	movl	%r12d, %esi
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	callq	_BIO_snprintf
	movl	44(%r15), %ecx
	movq	%r13, %rdi
	movl	%r14d, %esi
	leaq	L_.str(%rip), %rdx
	callq	_BIO_snprintf
	cmpl	%r12d, 40(%r15)
	jle	LBB0_7
## %bb.6:
	movq	_UI_R_RESULT_TOO_SMALL@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_1:
	cmpl	$133, %eax
	jne	LBB0_21
## %bb.2:
	movq	8(%r15), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.3:
	movb	$0, (%rax)
	movb	(%rbx), %al
	testb	%al, %al
	je	LBB0_21
## %bb.4:
	incq	%rbx
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r15), %rdi
	movsbl	%al, %esi
	callq	_strchr
	testl	%eax, %eax
	jne	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	32(%r15), %rdi
	movsbl	-1(%rbx), %esi
	callq	_strchr
	testl	%eax, %eax
	jne	LBB0_19
## %bb.15:                              ##   in Loop: Header=BB0_16 Depth=1
	movzbl	(%rbx), %eax
	incq	%rbx
	testb	%al, %al
	jne	LBB0_16
	jmp	LBB0_21
LBB0_7:
	cmpl	%r12d, 44(%r15)
	jge	LBB0_10
## %bb.8:
	movq	_UI_R_RESULT_TOO_LARGE@GOTPCREL(%rip), %rax
LBB0_9:
	movq	_UI_FLAG_REDOABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	orl	%ecx, (%rdx)
	movq	_UI_F_UI_SET_RESULT_EX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	(%rax), %esi
	callq	_UIerr
	leaq	L_.str.1(%rip), %rsi
	leaq	L_.str.2(%rip), %rcx
	leaq	L_.str.3(%rip), %r9
	movl	$5, %edi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	%r13, %r8
	callq	_ERR_add_error_data
	movl	$-1, %r14d
	movq	-64(%rbp), %rsp                 ## 8-byte Reload
	jmp	LBB0_21
LBB0_10:
	movq	-64(%rbp), %rsp                 ## 8-byte Reload
	movq	8(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.12:
	movq	%rbx, %rsi
	movl	%r12d, %edx
	callq	_memcpy
	cmpl	%r12d, 44(%r15)
	jl	LBB0_14
## %bb.13:
	movq	8(%r15), %rax
	movslq	%r12d, %rcx
	movb	$0, (%rax,%rcx)
LBB0_14:
	movl	%r12d, 16(%r15)
	xorl	%r14d, %r14d
	jmp	LBB0_21
LBB0_11:
	movq	_UI_F_UI_SET_RESULT_EX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_UI_R_NO_RESULT_BUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_UIerr
	movl	$-1, %r14d
	jmp	LBB0_21
LBB0_17:
	movq	8(%r15), %rax
	movq	24(%r15), %rcx
	jmp	LBB0_20
LBB0_19:
	movq	8(%r15), %rax
	movq	32(%r15), %rcx
LBB0_20:
	movb	(%rcx), %cl
	movb	%cl, (%rax)
LBB0_21:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_23
## %bb.22:
	movl	%r14d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_UI_FLAG_REDOABLE,4,2           ## @UI_FLAG_REDOABLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d"

	.comm	_UI_F_UI_SET_RESULT_EX,4,2      ## @UI_F_UI_SET_RESULT_EX
	.comm	_UI_R_RESULT_TOO_SMALL,4,2      ## @UI_R_RESULT_TOO_SMALL
L_.str.1:                               ## @.str.1
	.asciz	"You must type in "

L_.str.2:                               ## @.str.2
	.asciz	" to "

L_.str.3:                               ## @.str.3
	.asciz	" characters"

	.comm	_UI_R_RESULT_TOO_LARGE,4,2      ## @UI_R_RESULT_TOO_LARGE
	.comm	_UI_R_NO_RESULT_BUFFER,4,2      ## @UI_R_NO_RESULT_BUFFER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_UI_set_result_ex               ; -- Begin function UI_set_result_ex
	.p2align	2
_UI_set_result_ex:                      ; @UI_set_result_ex
	.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	x20, x2
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x28, _UI_FLAG_REDOABLE@GOTPAGE
Lloh4:
	ldr	x28, [x28, _UI_FLAG_REDOABLE@GOTPAGEOFF]
	ldr	w8, [x28]
	ldr	w9, [x0]
	bic	w8, w9, w8
	str	w8, [x0]
	ldr	w8, [x1]
	sub	w9, w8, #128
	cmp	w9, #2
	b.hs	LBB0_3
; %bb.1:
	mov	x21, x3
	mov	x22, x0
	ldr	w0, [x19, #40]
	bl	_DECIMAL_SIZE
	mov	x8, sp
	stur	x8, [x29, #-96]                 ; 8-byte Folded Spill
	add	w25, w0, #1
	mov	x9, x25
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x25, #15
	and	x9, x9, #0x1fffffff0
	sub	x23, x8, x9
	mov	sp, x23
	ldr	w0, [x19, #44]
	bl	_DECIMAL_SIZE
	add	w26, w0, #1
	mov	x9, x26
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x26, #15
	and	x9, x9, #0x1fffffff0
	sub	x24, x8, x9
	mov	sp, x24
	ldr	w3, [x19, #40]
Lloh9:
	adrp	x27, l_.str@PAGE
Lloh10:
	add	x27, x27, l_.str@PAGEOFF
	mov	x0, x23
	mov	x1, x25
	mov	x2, x27
	bl	_BIO_snprintf
	ldr	w3, [x19, #44]
	mov	x0, x24
	mov	x1, x26
	mov	x2, x27
	bl	_BIO_snprintf
	ldr	w8, [x19, #40]
	cmp	w8, w21
	b.le	LBB0_11
; %bb.2:
Lloh11:
	adrp	x8, _UI_R_RESULT_TOO_SMALL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _UI_R_RESULT_TOO_SMALL@GOTPAGEOFF]
	b	LBB0_13
LBB0_3:
	cmp	w8, #133
	b.ne	LBB0_10
; %bb.4:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_18
; %bb.5:
	strb	wzr, [x8]
	ldrb	w8, [x20]
	cbz	w8, LBB0_10
; %bb.6:
	add	x20, x20, #1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, #24]
	sxtb	w1, w8
	bl	_strchr
	cbnz	w0, LBB0_19
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x0, [x19, #32]
	ldursb	w1, [x20, #-1]
	bl	_strchr
	cbnz	w0, LBB0_20
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldrb	w8, [x20], #1
	cbnz	w8, LBB0_7
LBB0_10:
	mov	w0, #0
	b	LBB0_22
LBB0_11:
	ldr	w8, [x19, #44]
	cmp	w8, w21
	b.ge	LBB0_14
; %bb.12:
Lloh13:
	adrp	x8, _UI_R_RESULT_TOO_LARGE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _UI_R_RESULT_TOO_LARGE@GOTPAGEOFF]
LBB0_13:
	ldr	w9, [x28]
	ldr	w10, [x22]
	orr	w9, w10, w9
	str	w9, [x22]
Lloh15:
	adrp	x9, _UI_F_UI_SET_RESULT_EX@GOTPAGE
Lloh16:
	ldr	x9, [x9, _UI_F_UI_SET_RESULT_EX@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x9]
	ldr	w1, [x8]
	bl	_UIerr
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
Lloh20:
	adrp	x3, l_.str.2@PAGE
Lloh21:
	add	x3, x3, l_.str.2@PAGEOFF
Lloh22:
	adrp	x5, l_.str.3@PAGE
Lloh23:
	add	x5, x5, l_.str.3@PAGEOFF
	mov	w0, #5
	mov	x2, x23
	mov	x4, x24
	bl	_ERR_add_error_data
	mov	w0, #-1
	ldur	x8, [x29, #-96]                 ; 8-byte Folded Reload
	mov	sp, x8
	b	LBB0_22
LBB0_14:
	ldur	x8, [x29, #-96]                 ; 8-byte Folded Reload
	mov	sp, x8
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_18
; %bb.15:
	mov	x1, x20
	mov	x2, x21
	bl	_memcpy
	ldr	w8, [x19, #44]
	cmp	w8, w21
	b.lt	LBB0_17
; %bb.16:
	ldr	x8, [x19, #8]
	strb	wzr, [x8, w21, sxtw]
LBB0_17:
	mov	w0, #0
	str	w21, [x19, #16]
	b	LBB0_22
LBB0_18:
Lloh24:
	adrp	x8, _UI_F_UI_SET_RESULT_EX@GOTPAGE
Lloh25:
	ldr	x8, [x8, _UI_F_UI_SET_RESULT_EX@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
Lloh27:
	adrp	x8, _UI_R_NO_RESULT_BUFFER@GOTPAGE
Lloh28:
	ldr	x8, [x8, _UI_R_NO_RESULT_BUFFER@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	bl	_UIerr
	mov	w0, #-1
	b	LBB0_22
LBB0_19:
	mov	w0, #0
	ldr	x8, [x19, #24]
	b	LBB0_21
LBB0_20:
	mov	w0, #0
	ldr	x8, [x19, #32]
LBB0_21:
	ldrb	w8, [x8]
	ldr	x9, [x19, #8]
	strb	w8, [x9]
LBB0_22:
	ldur	x8, [x29, #-88]
Lloh30:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh31:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_24
; %bb.23:
	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_24:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_UI_FLAG_REDOABLE,4,2           ; @UI_FLAG_REDOABLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d"

	.comm	_UI_F_UI_SET_RESULT_EX,4,2      ; @UI_F_UI_SET_RESULT_EX
	.comm	_UI_R_RESULT_TOO_SMALL,4,2      ; @UI_R_RESULT_TOO_SMALL
l_.str.1:                               ; @.str.1
	.asciz	"You must type in "

l_.str.2:                               ; @.str.2
	.asciz	" to "

l_.str.3:                               ; @.str.3
	.asciz	" characters"

	.comm	_UI_R_RESULT_TOO_LARGE,4,2      ; @UI_R_RESULT_TOO_LARGE
	.comm	_UI_R_NO_RESULT_BUFFER,4,2      ; @UI_R_NO_RESULT_BUFFER
.subsections_via_symbols
