	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ui_read
_ui_read:                               ## @ui_read
	.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
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rsi, %rdi
	callq	_UI_get_string_type
	movl	%eax, %ecx
	movl	$1, %eax
	cmpl	$129, %ecx
	jne	LBB0_6
## %bb.1:
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	movq	_PEM_BUFSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	incl	%eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	%rbx, %rdi
	callq	_UI_get_method
	movq	_ui_method_data_index@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_UI_method_get_ex_data
	movq	%rax, %r13
	movq	%r12, %rdi
	callq	_UI_get_result_maxsize
	movq	%rbx, %rdi
	movq	(%r13), %r15
	movq	_PEM_BUFSIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	cmpl	%ebx, %eax
	cmovll	%eax, %ebx
	movl	8(%r13), %r13d
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_UI_get0_user_data
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%r13d, %edx
	movl	%eax, %ecx
	callq	*%r15
	testl	%eax, %eax
	js	LBB0_5
## %bb.2:
	movl	%eax, %ecx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movb	$0, (%rdx,%rcx)
	je	LBB0_3
## %bb.4:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movl	%eax, %ecx
	callq	_UI_set_result_ex
	notl	%eax
	shrl	$31, %eax
	jmp	LBB0_5
LBB0_3:
	xorl	%eax, %eax
LBB0_5:
	movq	-72(%rbp), %rsp                 ## 8-byte Reload
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	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	_PEM_BUFSIZE,4,2                ## @PEM_BUFSIZE
	.comm	_ui_method_data_index,4,2       ## @ui_method_data_index
	.no_dead_strip	_ui_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ui_read
_ui_read:                               ; @ui_read
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	sub	sp, sp, #16
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	mov	x0, x1
	bl	_UI_get_string_type
	cmp	w0, #129
	b.ne	LBB0_5
; %bb.1:
	mov	x24, sp
Lloh3:
	adrp	x23, _PEM_BUFSIZE@GOTPAGE
Lloh4:
	ldr	x23, [x23, _PEM_BUFSIZE@GOTPAGEOFF]
	ldr	w8, [x23]
	add	w8, w8, #1
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	mov	x0, x20
	bl	_UI_get_method
Lloh7:
	adrp	x8, _ui_method_data_index@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ui_method_data_index@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_UI_method_get_ex_data
	mov	x22, x0
	mov	x0, x19
	bl	_UI_get_result_maxsize
	ldr	x25, [x22]
	ldr	w8, [x23]
	cmp	w0, w8
	csel	w23, w0, w8, lt
	ldr	w22, [x22, #8]
	mov	x0, x20
	bl	_UI_get0_user_data
	mov	x3, x0
	mov	x0, x21
	mov	x1, x23
	mov	x2, x22
	blr	x25
	mov	x3, x0
	tbnz	w0, #31, LBB0_4
; %bb.2:
	strb	wzr, [x21, w3, uxtw]
	cbz	w3, LBB0_4
; %bb.3:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_UI_set_result_ex
	mvn	w8, w0
	lsr	w3, w8, #31
LBB0_4:
	mov	sp, x24
	b	LBB0_6
LBB0_5:
	mov	w3, #1
LBB0_6:
	ldur	x8, [x29, #-72]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x3
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_PEM_BUFSIZE,4,2                ; @PEM_BUFSIZE
	.comm	_ui_method_data_index,4,2       ; @ui_method_data_index
	.no_dead_strip	_ui_read
.subsections_via_symbols
