	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ensure_m4path
_ensure_m4path:                         ## @ensure_m4path
	.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
	cmpl	$0, _ensure_m4path.envpathdone(%rip)
	jne	LBB0_6
## %bb.1:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, _ensure_m4path.envpathdone(%rip)
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	%rax, %rdi
	callq	_xstrdup
	movq	%rax, %r14
	movq	%rax, -32(%rbp)
	leaq	L_.str.1(%rip), %rsi
	leaq	-32(%rbp), %rdi
	callq	_strsep
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	leaq	L_.str.1(%rip), %r15
	leaq	-32(%rbp), %rbx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rdi
	callq	_addtoincludepath
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_strsep
	testq	%rax, %rax
	jne	LBB0_4
LBB0_5:
	movq	%r14, %rdi
	callq	_free
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_ensure_m4path.envpathdone,4,2 ## @ensure_m4path.envpathdone
	.comm	_TRUE,4,2                       ## @TRUE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"M4PATH"

L_.str.1:                               ## @.str.1
	.asciz	":"

	.no_dead_strip	_ensure_m4path
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ensure_m4path
_ensure_m4path:                         ; @ensure_m4path
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	adrp	x8, _ensure_m4path.envpathdone@PAGE
	ldr	w9, [x8, _ensure_m4path.envpathdone@PAGEOFF]
	cbnz	w9, LBB0_6
; %bb.1:
Lloh0:
	adrp	x9, _TRUE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TRUE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	str	w9, [x8, _ensure_m4path.envpathdone@PAGEOFF]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getenv
	cbz	x0, LBB0_6
; %bb.2:
	bl	_xstrdup
	mov	x19, x0
	str	x0, [sp, #8]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #8
	bl	_strsep
	cbz	x0, LBB0_5
; %bb.3:
Lloh7:
	adrp	x20, l_.str.1@PAGE
Lloh8:
	add	x20, x20, l_.str.1@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	bl	_addtoincludepath
	add	x0, sp, #8
	mov	x1, x20
	bl	_strsep
	cbnz	x0, LBB0_4
LBB0_5:
	mov	x0, x19
	bl	_free
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_ensure_m4path.envpathdone,4,2 ; @ensure_m4path.envpathdone
	.comm	_TRUE,4,2                       ; @TRUE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"M4PATH"

l_.str.1:                               ; @.str.1
	.asciz	":"

	.no_dead_strip	_ensure_m4path
.subsections_via_symbols
