	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function PushDirectory
_PushDirectory:                         ## @PushDirectory
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movq	_DIRENTRY@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_szPath@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	callq	__tcslen
	cltq
	movl	4(%rbx,%rax,4), %esi
	movl	%r15d, %edi
	callq	_FIELD_OFFSET
	movl	%eax, %edi
	callq	_cmd_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	$0, 8(%rax)
	movq	_lpStackTop@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	%rdx, 16(%rax)
	testq	%rdx, %rdx
	jne	LBB0_3
## %bb.4:
	movq	_lpStackBottom@GOTPCREL(%rip), %rdx
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_WARN
	xorl	%eax, %eax
	callq	_error_out_of_memory
	movl	$-1, %eax
	jmp	LBB0_6
LBB0_3:
	addq	$8, %rdx
LBB0_5:
	movq	%rax, (%rdx)
	movq	%rax, (%rcx)
	movl	(%rax), %edi
	movl	%r14d, %esi
	callq	__tcscpy
	movq	_nStackDepth@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	_nErrorLevel@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DIRENTRY,4,2                   ## @DIRENTRY
	.comm	_szPath,8,3                     ## @szPath
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot allocate memory for lpDir\n"

	.comm	_lpStackTop,8,3                 ## @lpStackTop
	.comm	_lpStackBottom,8,3              ## @lpStackBottom
	.comm	_nStackDepth,4,2                ## @nStackDepth
	.comm	_nErrorLevel,4,2                ## @nErrorLevel
	.no_dead_strip	_PushDirectory
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function PushDirectory
_PushDirectory:                         ; @PushDirectory
	.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	x19, x0
Lloh0:
	adrp	x8, _DIRENTRY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DIRENTRY@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
Lloh3:
	adrp	x8, _szPath@GOTPAGE
Lloh4:
	ldr	x8, [x8, _szPath@GOTPAGEOFF]
Lloh5:
	ldr	x21, [x8]
	bl	__tcslen
	add	w8, w0, #1
	ldr	w1, [x21, w8, sxtw #2]
	mov	x0, x20
	bl	_FIELD_OFFSET
	bl	_cmd_alloc
	cbz	x0, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _lpStackTop@GOTPAGE
Lloh7:
	ldr	x8, [x8, _lpStackTop@GOTPAGEOFF]
	ldr	x9, [x8]
	stp	xzr, x9, [x0, #8]
Lloh8:
	adrp	x10, _lpStackBottom@GOTPAGE
Lloh9:
	ldr	x10, [x10, _lpStackBottom@GOTPAGEOFF]
	add	x11, x9, #8
	cmp	x9, #0
	csel	x9, x10, x11, eq
	str	x0, [x9]
	str	x0, [x8]
	ldr	w0, [x0]
	mov	x1, x19
	bl	__tcscpy
	mov	w0, #0
Lloh10:
	adrp	x8, _nStackDepth@GOTPAGE
Lloh11:
	ldr	x8, [x8, _nStackDepth@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
Lloh12:
	adrp	x8, _nErrorLevel@GOTPAGE
Lloh13:
	ldr	x8, [x8, _nErrorLevel@GOTPAGEOFF]
Lloh14:
	str	wzr, [x8]
	b	LBB0_3
LBB0_2:
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_WARN
	bl	_error_out_of_memory
	mov	w0, #-1
LBB0_3:
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_DIRENTRY,4,2                   ; @DIRENTRY
	.comm	_szPath,8,3                     ; @szPath
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot allocate memory for lpDir\n"

	.comm	_lpStackTop,8,3                 ; @lpStackTop
	.comm	_lpStackBottom,8,3              ; @lpStackBottom
	.comm	_nStackDepth,4,2                ; @nStackDepth
	.comm	_nErrorLevel,4,2                ; @nErrorLevel
	.no_dead_strip	_PushDirectory
.subsections_via_symbols
