	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dso__inject_build_id
_dso__inject_build_id:                  ## @dso__inject_build_id
	.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	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_PERF_RECORD_MISC_USER@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	callq	_dso__read_build_id
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	cmpq	$0, 8(%rbx)
	je	LBB0_4
## %bb.3:
	movq	_PERF_RECORD_MISC_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_4:
	movq	_perf_event__repipe@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	movq	%r14, %r8
	callq	_perf_event__synthesize_build_id
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movl	(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_err
	jmp	LBB0_7
LBB0_1:
	movl	(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	callq	_pr_debug
LBB0_7:
	movl	$-1, %eax
	jmp	LBB0_8
LBB0_5:
	xorl	%eax, %eax
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PERF_RECORD_MISC_USER,4,2      ## @PERF_RECORD_MISC_USER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no build_id found for %s\n"

	.comm	_PERF_RECORD_MISC_KERNEL,4,2    ## @PERF_RECORD_MISC_KERNEL
	.comm	_perf_event__repipe,4,2         ## @perf_event__repipe
L_.str.1:                               ## @.str.1
	.asciz	"Can't synthesize build_id event for %s\n"

	.no_dead_strip	_dso__inject_build_id
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dso__inject_build_id
_dso__inject_build_id:                  ; @dso__inject_build_id
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _PERF_RECORD_MISC_USER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PERF_RECORD_MISC_USER@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	bl	_dso__read_build_id
	tbnz	x0, #63, LBB0_3
; %bb.1:
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _PERF_RECORD_MISC_KERNEL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PERF_RECORD_MISC_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	x8, #0
	csel	w2, w22, w9, eq
Lloh6:
	adrp	x8, _perf_event__repipe@GOTPAGE
Lloh7:
	ldr	x8, [x8, _perf_event__repipe@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x1, x19
	mov	x4, x20
	bl	_perf_event__synthesize_build_id
	cbz	w0, LBB0_5
; %bb.2:
	ldr	w1, [x19]
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
	b	LBB0_4
LBB0_3:
	ldr	w1, [x19]
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
LBB0_4:
	mov	w0, #-1
LBB0_5:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_PERF_RECORD_MISC_USER,4,2      ; @PERF_RECORD_MISC_USER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no build_id found for %s\n"

	.comm	_PERF_RECORD_MISC_KERNEL,4,2    ; @PERF_RECORD_MISC_KERNEL
	.comm	_perf_event__repipe,4,2         ; @perf_event__repipe
l_.str.1:                               ; @.str.1
	.asciz	"Can't synthesize build_id event for %s\n"

	.no_dead_strip	_dso__inject_build_id
.subsections_via_symbols
