	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_loadhist                       ## -- Begin function loadhist
	.p2align	4, 0x90
_loadhist:                              ## @loadhist
	.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
	movl	%esi, %ebx
	testl	%esi, %esi
	jne	LBB0_1
## %bb.2:
	movq	_STRmh@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_STRmm@GOTPCREL(%rip), %rax
LBB0_3:
	movq	(%rax), %rax
	movq	%rax, _loadhist.loadhist_cmd+8(%rip)
	testq	%rdi, %rdi
	jne	LBB0_6
## %bb.4:
	movq	_STRhistfile@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_varval
	movq	%rax, %rdi
	movq	_STRNULL@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_6
## %bb.5:
	movq	_STRtildothist@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
LBB0_6:
	movq	%rdi, _loadhist.loadhist_cmd+16(%rip)
	leaq	_loadhist.loadhist_cmd(%rip), %rdi
	xorl	%esi, %esi
	callq	_dosource
	testl	%ebx, %ebx
	je	LBB0_10
## %bb.7:
	movq	_Histlist@GOTPCREL(%rip), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	_eventno@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, (%rax)
	movl	%ecx, 4(%rax)
	decl	%ecx
	movq	8(%rax), %rax
                                        ## kill: def $ecx killed $ecx def $rcx
	testq	%rax, %rax
	jne	LBB0_9
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__data
	.p2align	4                               ## @loadhist.loadhist_cmd
_loadhist.loadhist_cmd:
	.quad	128
	.quad	0
	.quad	0
	.quad	0

	.comm	_STRmm,8,3                      ## @STRmm
	.comm	_STRmh,8,3                      ## @STRmh
	.comm	_STRhistfile,4,2                ## @STRhistfile
	.comm	_STRNULL,8,3                    ## @STRNULL
	.comm	_STRtildothist,8,3              ## @STRtildothist
	.comm	_eventno,4,2                    ## @eventno
	.comm	_Histlist,16,3                  ## @Histlist
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_loadhist                       ; -- Begin function loadhist
	.p2align	2
_loadhist:                              ; @loadhist
	.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
	mov	x19, x1
Lloh0:
	adrp	x8, _STRmm@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRmm@GOTPAGEOFF]
Lloh2:
	adrp	x9, _STRmh@GOTPAGE
Lloh3:
	ldr	x9, [x9, _STRmh@GOTPAGEOFF]
	cmp	w1, #0
	csel	x8, x9, x8, eq
	ldr	x8, [x8]
	adrp	x9, _loadhist.loadhist_cmd@PAGE+8
	str	x8, [x9, _loadhist.loadhist_cmd@PAGEOFF+8]
	cbnz	x0, LBB0_2
; %bb.1:
Lloh4:
	adrp	x8, _STRhistfile@GOTPAGE
Lloh5:
	ldr	x8, [x8, _STRhistfile@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_varval
Lloh7:
	adrp	x8, _STRNULL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _STRNULL@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
Lloh10:
	adrp	x9, _STRtildothist@GOTPAGE
Lloh11:
	ldr	x9, [x9, _STRtildothist@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x0, x8
	csel	x0, x9, x0, eq
LBB0_2:
Lloh13:
	adrp	x8, _loadhist.loadhist_cmd@PAGE
Lloh14:
	add	x8, x8, _loadhist.loadhist_cmd@PAGEOFF
	str	x0, [x8, #16]
	mov	x0, x8
	mov	x1, #0
	bl	_dosource
	cbz	w19, LBB0_6
; %bb.3:
Lloh15:
	adrp	x8, _Histlist@GOTPAGE
Lloh16:
	ldr	x8, [x8, _Histlist@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_6
; %bb.4:
Lloh18:
	adrp	x9, _eventno@GOTPAGE
Lloh19:
	ldr	x9, [x9, _eventno@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	stp	w9, w9, [x8]
	sub	w9, w9, #1
	ldr	x8, [x8, #8]
	cbnz	x8, LBB0_5
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
	.p2align	3                               ; @loadhist.loadhist_cmd
_loadhist.loadhist_cmd:
	.quad	128
	.quad	0
	.quad	0
	.quad	0

	.comm	_STRmm,8,3                      ; @STRmm
	.comm	_STRmh,8,3                      ; @STRmh
	.comm	_STRhistfile,4,2                ; @STRhistfile
	.comm	_STRNULL,8,3                    ; @STRNULL
	.comm	_STRtildothist,8,3              ; @STRtildothist
	.comm	_eventno,4,2                    ; @eventno
	.comm	_Histlist,16,3                  ; @Histlist
.subsections_via_symbols
