	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function make_path
_make_path:                             ## @make_path
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movl	%edi, %r14d
	movq	_PATH_MAX@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_zalloc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	(%r12), %esi
	testl	%r15d, %r15d
	jne	LBB0_3
## %bb.4:
	movq	_READ_PATH_FMT@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_7
LBB0_3:
	movq	_WRITE_PATH_FMT@GOTPCREL(%rip), %rax
LBB0_5:
	movq	(%rax), %rdx
	movq	%rbx, %rdi
	movl	%r14d, %ecx
	callq	_snprintf
	testl	%eax, %eax
	jg	LBB0_8
## %bb.6:
	testl	%r15d, %r15d
	leaq	L_.str.3(%rip), %rcx
	leaq	L_.str.2(%rip), %rsi
	cmoveq	%rcx, %rsi
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_pr_err
LBB0_7:
	movq	%rbx, %rdi
	callq	_free
	xorl	%ebx, %ebx
LBB0_8:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PATH_MAX,4,2                   ## @PATH_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not allocate buffer\n"

	.comm	_WRITE_PATH_FMT,8,3             ## @WRITE_PATH_FMT
	.comm	_READ_PATH_FMT,8,3              ## @READ_PATH_FMT
L_.str.1:                               ## @.str.1
	.asciz	"Failed to generate %s path(CPU#%d):%d\n"

L_.str.2:                               ## @.str.2
	.asciz	"read"

L_.str.3:                               ## @.str.3
	.asciz	"write"

	.no_dead_strip	_make_path
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function make_path
_make_path:                             ; @make_path
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _PATH_MAX@GOTPAGE
Lloh1:
	ldr	x22, [x22, _PATH_MAX@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_zalloc
	mov	x19, x0
	cbz	x0, LBB0_3
; %bb.1:
Lloh2:
	adrp	x8, _READ_PATH_FMT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _READ_PATH_FMT@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh4:
	adrp	x9, _WRITE_PATH_FMT@GOTPAGE
Lloh5:
	ldr	x9, [x9, _WRITE_PATH_FMT@GOTPAGEOFF]
	cmp	w21, #0
	csel	x8, x8, x9, eq
	ldr	x2, [x8]
	mov	x0, x19
	mov	x3, x20
	bl	_snprintf
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w0, #0
	b.gt	LBB0_5
; %bb.2:
Lloh6:
	adrp	x8, l_.str.2@PAGE
Lloh7:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh8:
	adrp	x9, l_.str.3@PAGE
Lloh9:
	add	x9, x9, l_.str.3@PAGEOFF
	cmp	w21, #0
	csel	x8, x9, x8, eq
	stp	x20, x0, [sp, #8]
	str	x8, [sp]
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_3:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
LBB0_4:
	bl	_pr_err
	mov	x0, x19
	bl	_free
	mov	x19, #0
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_PATH_MAX,4,2                   ; @PATH_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not allocate buffer\n"

	.comm	_WRITE_PATH_FMT,8,3             ; @WRITE_PATH_FMT
	.comm	_READ_PATH_FMT,8,3              ; @READ_PATH_FMT
l_.str.1:                               ; @.str.1
	.asciz	"Failed to generate %s path(CPU#%d):%d\n"

l_.str.2:                               ; @.str.2
	.asciz	"read"

l_.str.3:                               ; @.str.3
	.asciz	"write"

	.no_dead_strip	_make_path
.subsections_via_symbols
