	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_keymap_path
_add_keymap_path:                       ## @add_keymap_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
	movq	%rdi, %r15
	callq	_strlen
	movq	%rax, %r12
	movl	$8, %edi
	callq	_malloc
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	2(%r12), %rdi
	callq	_malloc
	movq	%rax, %rbx
	movq	%rax, (%r14)
	testq	%rax, %rax
	jne	LBB0_3
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
	xorl	%ebx, %ebx
LBB0_3:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_memcpy
	testq	%r12, %r12
	je	LBB0_4
## %bb.5:
	cmpb	$47, -1(%r12,%r15)
	je	LBB0_7
## %bb.6:
	movb	$47, (%rbx,%r12)
	incq	%r12
	jmp	LBB0_7
LBB0_4:
	xorl	%r12d, %r12d
LBB0_7:
	movb	$0, (%rbx,%r12)
	movq	_next@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_pathlist@GOTPCREL(%rip), %rdi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_STAILQ_INSERT_TAIL             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"malloc"

	.comm	_pathlist,4,2                   ## @pathlist
	.comm	_next,4,2                       ## @next
	.no_dead_strip	_add_keymap_path
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_keymap_path
_add_keymap_path:                       ; @add_keymap_path
	.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	x21, x0
	bl	_strlen
	mov	x20, x0
	mov	w0, #8
	bl	_malloc
	mov	x19, x0
	cbz	x0, LBB0_2
; %bb.1:
	add	x0, x20, #2
	bl	_malloc
	mov	x22, x0
	str	x0, [x19]
	cbnz	x0, LBB0_3
LBB0_2:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
	mov	x22, #0
LBB0_3:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_memcpy
	cbz	x20, LBB0_6
; %bb.4:
	add	x8, x20, x21
	ldurb	w8, [x8, #-1]
	cmp	w8, #47
	b.eq	LBB0_6
; %bb.5:
	mov	w8, #47
	strb	w8, [x22, x20]
	add	x20, x20, #1
LBB0_6:
	strb	wzr, [x22, x20]
Lloh2:
	adrp	x8, _next@GOTPAGE
Lloh3:
	ldr	x8, [x8, _next@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x0, _pathlist@GOTPAGE
Lloh6:
	ldr	x0, [x0, _pathlist@GOTPAGEOFF]
	mov	x1, x19
	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
	b	_STAILQ_INSERT_TAIL
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"malloc"

	.comm	_pathlist,4,2                   ; @pathlist
	.comm	_next,4,2                       ; @next
	.no_dead_strip	_add_keymap_path
.subsections_via_symbols
