	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function readline_cmd_handler
_readline_cmd_handler:                  ## @readline_cmd_handler
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.1:
	movq	%rdi, %rbx
	cmpb	$0, (%rdi)
	je	LBB0_7
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_next_history
	testq	%rax, %rax
	jne	LBB0_2
## %bb.3:
	xorl	%eax, %eax
	callq	_previous_history
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_os_strcmp
	testq	%rax, %rax
	je	LBB0_6
LBB0_5:
	movq	%rbx, %rdi
	callq	_add_history
LBB0_6:
	xorl	%eax, %eax
	callq	_next_history
LBB0_7:
	movq	%rbx, %rdi
	callq	_trunc_nl
	movq	_edit_cb_ctx@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_edit_cmd_cb                    ## TAILCALL
LBB0_8:
	movq	_edit_cb_ctx@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_edit_eof_cb                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_edit_cb_ctx,4,2                ## @edit_cb_ctx
	.no_dead_strip	_readline_cmd_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function readline_cmd_handler
_readline_cmd_handler:                  ; @readline_cmd_handler
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_8
; %bb.1:
	mov	x19, x0
	ldrb	w8, [x0]
	cbz	w8, LBB0_7
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	bl	_next_history
	cbnz	x0, LBB0_2
; %bb.3:
	bl	_previous_history
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w1, [x0]
	mov	x0, x19
	bl	_os_strcmp
	cbz	x0, LBB0_6
LBB0_5:
	mov	x0, x19
	bl	_add_history
LBB0_6:
	bl	_next_history
LBB0_7:
	mov	x0, x19
	bl	_trunc_nl
Lloh0:
	adrp	x8, _edit_cb_ctx@GOTPAGE
Lloh1:
	ldr	x8, [x8, _edit_cb_ctx@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_edit_cmd_cb
LBB0_8:
Lloh3:
	adrp	x8, _edit_cb_ctx@GOTPAGE
Lloh4:
	ldr	x8, [x8, _edit_cb_ctx@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_edit_eof_cb
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_edit_cb_ctx,4,2                ; @edit_cb_ctx
	.no_dead_strip	_readline_cmd_handler
.subsections_via_symbols
