	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_init_history                   ## -- Begin function init_history
	.p2align	4, 0x90
_init_history:                          ## @init_history
	.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
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rdi
	callq	_atoi
	movl	%eax, %edi
LBB0_4:
	movq	_history_size@GOTPCREL(%rip), %rax
	movl	%edi, (%rax)
	jmp	LBB0_5
LBB0_2:
	movq	_history_size@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	testl	%edi, %edi
	je	LBB0_3
LBB0_5:
	callq	_stifle_history
	leaq	L_.str.1(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_strlen
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_savestring
LBB0_9:
	movq	%rax, %rdi
	movq	_history_filename@GOTPCREL(%rip), %rax
	movq	%rdi, (%rax)
	jmp	LBB0_10
LBB0_7:
	movq	_history_filename@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_read_history                   ## TAILCALL
LBB0_3:
	movl	$256, %edi                      ## imm = 0x100
	jmp	LBB0_4
LBB0_8:
	movq	_current_directory@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%edx, %edx
	callq	_concat
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HISTSIZE"

	.comm	_history_size,4,2               ## @history_size
L_.str.1:                               ## @.str.1
	.asciz	"GDBHISTFILE"

	.comm	_history_filename,8,3           ## @history_filename
	.comm	_current_directory,4,2          ## @current_directory
L_.str.2:                               ## @.str.2
	.asciz	"/.gdb_history"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_init_history                   ; -- Begin function init_history
	.p2align	2
_init_history:                          ; @init_history
	.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
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getenv
Lloh2:
	adrp	x19, _history_size@GOTPAGE
Lloh3:
	ldr	x19, [x19, _history_size@GOTPAGEOFF]
	cbz	x0, LBB0_3
; %bb.1:
	bl	_atoi
LBB0_2:
	str	w0, [x19]
	b	LBB0_4
LBB0_3:
	ldr	w0, [x19]
	cbz	w0, LBB0_9
LBB0_4:
	bl	_stifle_history
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_getenv
Lloh6:
	adrp	x20, _history_filename@GOTPAGE
Lloh7:
	ldr	x20, [x20, _history_filename@GOTPAGEOFF]
	cbz	x0, LBB0_7
; %bb.5:
	mov	x19, x0
	bl	_strlen
	mov	x1, x0
	mov	x0, x19
	bl	_savestring
LBB0_6:
	str	x0, [x20]
	b	LBB0_8
LBB0_7:
	ldr	x0, [x20]
	cbz	x0, LBB0_10
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_read_history
LBB0_9:
	mov	w0, #256
	b	LBB0_2
LBB0_10:
Lloh8:
	adrp	x8, _current_directory@GOTPAGE
Lloh9:
	ldr	x8, [x8, _current_directory@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, #0
	bl	_concat
	b	LBB0_6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HISTSIZE"

	.comm	_history_size,4,2               ; @history_size
l_.str.1:                               ; @.str.1
	.asciz	"GDBHISTFILE"

	.comm	_history_filename,8,3           ; @history_filename
	.comm	_current_directory,4,2          ; @current_directory
l_.str.2:                               ; @.str.2
	.asciz	"/.gdb_history"

.subsections_via_symbols
