	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_build_id_cache__add_s          ## -- Begin function build_id_cache__add_s
	.p2align	4, 0x90
_build_id_cache__add_s:                 ## @build_id_cache__add_s
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r14d
	movl	%ecx, %r15d
	movq	%rdx, %r13
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	_PATH_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_zalloc
	movq	%rax, %r12
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_zalloc
	movq	%rax, %rbx
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	testl	%r15d, %r15d
	je	LBB0_3
## %bb.1:
	movq	_symbol_conf@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movq	%r13, %rdi
	je	LBB0_4
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_pr_debug
	xorl	%ebx, %ebx
	jmp	LBB0_23
LBB0_3:
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_realpath
	movq	%rax, %rdi
LBB0_4:
	movl	$-1, %eax
	testq	%rdi, %rdi
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_5
## %bb.6:
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movq	%r12, %r15
	testq	%r12, %r12
	je	LBB0_20
## %bb.7:
	testq	%rbx, %rbx
	je	LBB0_20
## %bb.8:
	movl	%r14d, %eax
	orl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.2(%rip), %r8
	cmoveq	%rax, %r8
	movq	%rdi, %r12
	movq	%rdi, %r9
	testl	%r14d, %r14d
	je	LBB0_10
## %bb.9:
	movq	_VDSO__MAP_NAME@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
LBB0_10:
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rcx
	xorl	%eax, %eax
	callq	_scnprintf
	movl	%eax, %ebx
	movq	%r15, %rdi
	movl	$493, %esi                      ## imm = 0x1ED
	callq	_mkdir_p
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	%r12, %rdi
	movl	$-1, %eax
	jmp	LBB0_20
LBB0_12:
	movslq	%ebx, %rax
	leaq	(%r15,%rax), %rdi
	movq	%r13, %rsi
	subq	%rax, %rsi
	leaq	L_.str.4(%rip), %rdx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	callq	_snprintf
	movq	_F_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_access
	testq	%rax, %rax
	je	LBB0_17
## %bb.13:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_15
## %bb.14:
	leaq	L_.str.5(%rip), %rdi
	movq	%r15, %rsi
	callq	_copyfile
	movl	$-1, %ebx
	testq	%rax, %rax
	jne	LBB0_22
	jmp	LBB0_17
LBB0_5:
	movq	%r12, %r15
	jmp	LBB0_20
LBB0_15:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_link
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_copyfile
	movq	%r12, %rdi
	movl	$-1, %ebx
	testq	%rax, %rax
	jne	LBB0_21
LBB0_17:
	leaq	L_.str.6(%rip), %rdx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%r14, %rcx
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	xorl	%eax, %eax
	callq	_scnprintf
	movl	%eax, %r14d
	movq	_X_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_access
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$493, %esi                      ## imm = 0x1ED
	callq	_mkdir_p
	movq	%r12, %rdi
	testq	%rax, %rax
	movl	$-1, %eax
	jne	LBB0_20
LBB0_19:
	movslq	%r14d, %rax
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	addq	%rax, %rdi
	subq	%rax, %r13
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	addq	$2, %rcx
	leaq	L_.str.4(%rip), %rdx
	movq	%r13, %rsi
	callq	_snprintf
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_strlen
	cltq
	leaq	(%r15,%rax), %rbx
	addq	$-5, %rbx
	leaq	L_.str.7(%rip), %rsi
	movq	%rbx, %rdi
	movl	$5, %edx
	callq	_memcpy
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_symlink
	movq	%r12, %rdi
	negq	%rax
	movl	$0, %eax
	sbbl	%eax, %eax
LBB0_20:
	movl	%eax, %ebx
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_22
LBB0_21:
	callq	_free
LBB0_22:
	movq	%r15, %rdi
	callq	_free
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
LBB0_23:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PATH_MAX,8,3                   ## @PATH_MAX
	.comm	_symbol_conf,8,3                ## @symbol_conf
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Not caching a kptr_restrict'ed /proc/kallsyms\n"

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

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

L_.str.3:                               ## @.str.3
	.space	1

	.comm	_VDSO__MAP_NAME,8,3             ## @VDSO__MAP_NAME
L_.str.4:                               ## @.str.4
	.asciz	"/%s"

	.comm	_F_OK,4,2                       ## @F_OK
L_.str.5:                               ## @.str.5
	.asciz	"/proc/kallsyms"

L_.str.6:                               ## @.str.6
	.asciz	"%s/.build-id/%.2s"

	.comm	_X_OK,4,2                       ## @X_OK
L_.str.7:                               ## @.str.7
	.asciz	"../.."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_build_id_cache__add_s          ; -- Begin function build_id_cache__add_s
	.p2align	2
_build_id_cache__add_s:                 ; @build_id_cache__add_s
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x28, x4
	mov	x21, x3
	mov	x26, x2
	mov	x23, x1
	mov	x24, x0
Lloh0:
	adrp	x8, _PATH_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PATH_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x25, [x8]
	mov	x0, x25
	bl	_zalloc
	mov	x19, x0
	mov	x0, x25
	bl	_zalloc
	mov	x20, x0
	cbz	w21, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _symbol_conf@GOTPAGE
Lloh4:
	ldr	x8, [x8, _symbol_conf@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	mov	x22, x26
	cbz	x8, LBB0_4
; %bb.2:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	mov	w27, #0
	b	LBB0_11
LBB0_3:
	mov	x0, x26
	mov	x1, #0
	bl	_realpath
	mov	x22, x0
LBB0_4:
	mov	w27, #-1
	cbz	x22, LBB0_8
; %bb.5:
	cmp	x19, #0
	ccmp	x20, #0, #4, ne
	b.eq	LBB0_8
; %bb.6:
	orr	w8, w28, w21
Lloh8:
	adrp	x9, l_.str.2@PAGE
Lloh9:
	add	x9, x9, l_.str.2@PAGEOFF
Lloh10:
	adrp	x10, l_.str.3@PAGE
Lloh11:
	add	x10, x10, l_.str.3@PAGEOFF
	cmp	w8, #0
	csel	x4, x10, x9, eq
Lloh12:
	adrp	x8, _VDSO__MAP_NAME@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VDSO__MAP_NAME@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	w28, #0
	csel	x8, x22, x8, eq
Lloh15:
	adrp	x2, l_.str.1@PAGE
Lloh16:
	add	x2, x2, l_.str.1@PAGEOFF
	str	x8, [sp]
	mov	x0, x19
	mov	x1, x25
	mov	x3, x23
	bl	_scnprintf
	mov	x27, x0
	mov	x0, x19
	mov	w1, #493
	bl	_mkdir_p
	cbz	x0, LBB0_12
LBB0_7:
	mov	w27, #-1
LBB0_8:
	cbnz	w21, LBB0_10
LBB0_9:
	mov	x0, x22
	bl	_free
LBB0_10:
	mov	x0, x19
	bl	_free
	mov	x0, x20
	bl	_free
LBB0_11:
	mov	x0, x27
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_12:
	sxtw	x8, w27
	add	x0, x19, x8
	sub	x1, x25, x8
Lloh17:
	adrp	x2, l_.str.4@PAGE
Lloh18:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x3, x24
	bl	_snprintf
Lloh19:
	adrp	x8, _F_OK@GOTPAGE
Lloh20:
	ldr	x8, [x8, _F_OK@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_access
	cbz	x0, LBB0_19
; %bb.13:
	cbz	w21, LBB0_16
; %bb.14:
Lloh22:
	adrp	x0, l_.str.5@PAGE
Lloh23:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	x1, x19
	bl	_copyfile
	cbz	x0, LBB0_19
; %bb.15:
	mov	w27, #-1
	b	LBB0_10
LBB0_16:
	mov	x0, x22
	mov	x1, x19
	bl	_link
	cbz	x0, LBB0_19
; %bb.17:
	mov	x0, x26
	mov	x1, x19
	bl	_copyfile
	cbz	x0, LBB0_19
; %bb.18:
	mov	w27, #-1
	b	LBB0_9
LBB0_19:
Lloh24:
	adrp	x2, l_.str.6@PAGE
Lloh25:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	x0, x20
	mov	x1, x25
	mov	x3, x23
	mov	x4, x24
	bl	_scnprintf
	mov	x26, x0
Lloh26:
	adrp	x8, _X_OK@GOTPAGE
Lloh27:
	ldr	x8, [x8, _X_OK@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_access
	cbz	x0, LBB0_21
; %bb.20:
	mov	x0, x20
	mov	w1, #493
	bl	_mkdir_p
	cbnz	x0, LBB0_7
LBB0_21:
	sxtw	x8, w26
	add	x0, x20, x8
	sub	x1, x25, x8
	add	x3, x24, #2
Lloh29:
	adrp	x2, l_.str.4@PAGE
Lloh30:
	add	x2, x2, l_.str.4@PAGEOFF
	bl	_snprintf
	mov	x0, x23
	bl	_strlen
	add	x8, x19, w0, sxtw
	sub	x23, x8, #5
Lloh31:
	adrp	x1, l_.str.7@PAGE
Lloh32:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x23
	mov	w2, #5
	bl	_memcpy
	mov	x0, x23
	mov	x1, x20
	bl	_symlink
	cmp	x0, #0
	csetm	w27, ne
	cbnz	w21, LBB0_10
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_PATH_MAX,8,3                   ; @PATH_MAX
	.comm	_symbol_conf,8,3                ; @symbol_conf
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Not caching a kptr_restrict'ed /proc/kallsyms\n"

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

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

l_.str.3:                               ; @.str.3
	.space	1

	.comm	_VDSO__MAP_NAME,8,3             ; @VDSO__MAP_NAME
l_.str.4:                               ; @.str.4
	.asciz	"/%s"

	.comm	_F_OK,4,2                       ; @F_OK
l_.str.5:                               ; @.str.5
	.asciz	"/proc/kallsyms"

l_.str.6:                               ; @.str.6
	.asciz	"%s/.build-id/%.2s"

	.comm	_X_OK,4,2                       ; @X_OK
l_.str.7:                               ; @.str.7
	.asciz	"../.."

.subsections_via_symbols
