	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_UI_UTIL_read_pw                ## -- Begin function UI_UTIL_read_pw
	.p2align	4, 0x90
_UI_UTIL_read_pw:                       ## @UI_UTIL_read_pw
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	testl	%edx, %edx
	jle	LBB0_9
## %bb.1:
	movl	%r8d, %r12d
	movl	%edx, %r13d
	movq	%rdi, %r15
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_UI_new
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	%rax, %r14
	decl	%r13d
	movq	%rax, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	xorl	%edx, %edx
	movq	%r15, %rcx
	xorl	%r8d, %r8d
	movl	%r13d, %r9d
	callq	_UI_add_input_string
	movl	%eax, %ebx
	testl	%r12d, %r12d
	je	LBB0_5
## %bb.3:
	testl	%ebx, %ebx
	js	LBB0_5
## %bb.4:
	movq	%r15, (%rsp)
	movq	%r14, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	xorl	%edx, %edx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	xorl	%r8d, %r8d
	movl	%r13d, %r9d
	callq	_UI_add_verify_string
	movl	%eax, %ebx
LBB0_5:
	testl	%ebx, %ebx
	js	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	callq	_UI_process
	movl	%eax, %ebx
LBB0_7:
	movq	%r14, %rdi
	callq	_UI_free
LBB0_8:
	movl	%ebx, %eax
	sarl	$31, %eax
	andl	%ebx, %eax
	jmp	LBB0_10
LBB0_9:
	movl	$-1, %eax
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_UI_UTIL_read_pw                ; -- Begin function UI_UTIL_read_pw
	.p2align	2
_UI_UTIL_read_pw:                       ; @UI_UTIL_read_pw
	.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
	subs	w23, w2, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x25, x4
	mov	x22, x3
	mov	x21, x1
	mov	x20, x0
	bl	_UI_new
	cbz	x0, LBB0_9
; %bb.2:
	mov	x19, x0
	mov	x1, x22
	mov	w2, #0
	mov	x3, x20
	mov	w4, #0
	mov	x5, x23
	bl	_UI_add_input_string
	mov	x24, x0
	cbz	w25, LBB0_5
; %bb.3:
	tbnz	w24, #31, LBB0_5
; %bb.4:
	mov	x0, x19
	mov	x1, x22
	mov	w2, #0
	mov	x3, x21
	mov	w4, #0
	mov	x5, x23
	mov	x6, x20
	bl	_UI_add_verify_string
	mov	x24, x0
LBB0_5:
	tbnz	w24, #31, LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_UI_process
	mov	x24, x0
LBB0_7:
	mov	x0, x19
	bl	_UI_free
	b	LBB0_10
LBB0_8:
	mov	w0, #-1
	b	LBB0_11
LBB0_9:
	mov	w24, #0
LBB0_10:
	cmp	w24, #0
	csel	w0, w24, wzr, lt
LBB0_11:
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
