	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_update_history_extended     ## -- Begin function do_update_history_extended
	.p2align	4, 0x90
_do_update_history_extended:            ## @do_update_history_extended
	.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
	movl	$-1, %r15d
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.1:
	movl	%ecx, %r14d
	leal	-100(%r14), %eax
	cmpl	$99, %eax
	ja	LBB0_7
## %bb.2:
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movl	%edi, %r13d
	testq	%rdx, %rdx
	jns	LBB0_4
## %bb.3:
	movq	%r12, %rdi
	callq	_strlen
	movq	%rax, %rbx
LBB0_4:
	cmpq	$65535, %rbx                    ## imm = 0xFFFF
	ja	LBB0_7
## %bb.5:
	movl	%r13d, %edi
	callq	_get_user_f
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%rax, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	movl	%r14d, %ecx
	callq	_update_history_extended
	movl	$1, %r15d
LBB0_7:
	movl	%r15d, %eax
	addq	$8, %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	_do_update_history_extended     ; -- Begin function do_update_history_extended
	.p2align	2
_do_update_history_extended:            ; @do_update_history_extended
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x22, x0
	mov	w0, #-1
	cbz	x1, LBB0_8
; %bb.1:
	mov	x19, x3
	sub	w8, w3, #100
	cmp	w8, #99
	b.hi	LBB0_8
; %bb.2:
	mov	x21, x2
	mov	x20, x1
	tbnz	x2, #63, LBB0_4
; %bb.3:
	lsr	x8, x21, #16
	cbnz	x8, LBB0_7
	b	LBB0_5
LBB0_4:
	mov	x0, x20
	bl	_strlen
	mov	x21, x0
	lsr	x8, x21, #16
	cbnz	x8, LBB0_7
LBB0_5:
	mov	x0, x22
	bl	_get_user_f
	cbz	x0, LBB0_7
; %bb.6:
	mov	x1, x20
	mov	x2, x21
	mov	x3, x19
	bl	_update_history_extended
	mov	w0, #1
	b	LBB0_8
LBB0_7:
	mov	w0, #-1
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
