	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_perf_event__synthesize_attr    ## -- Begin function perf_event__synthesize_attr
	.p2align	4, 0x90
_perf_event__synthesize_attr:           ## @perf_event__synthesize_attr
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r12
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	$4, %edi
	movl	$4, %esi
	callq	_PERF_ALIGN
	movslq	%ebx, %r15
	leaq	(%rax,%r15,4), %r13
	addq	$4, %r13
	movq	%r13, %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	shlq	$2, %r15
	movl	(%r14), %eax
	movl	%eax, 20(%rbx)
	movl	16(%rbx), %edi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_memcpy
	movq	_PERF_RECORD_HEADER_ATTR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	%r13, (%rbx)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	*-56(%rbp)                      ## 8-byte Folded Reload
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_free
	movl	%r14d, %eax
	jmp	LBB0_2
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_2:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_PERF_RECORD_HEADER_ATTR,4,2    ## @PERF_RECORD_HEADER_ATTR
	.comm	_E2BIG,4,2                      ## @E2BIG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_perf_event__synthesize_attr    ; -- Begin function perf_event__synthesize_attr
	.p2align	2
_perf_event__synthesize_attr:           ; @perf_event__synthesize_attr
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x20, x0
	mov	w0, #4
	mov	w1, #4
	bl	_PERF_ALIGN
	sbfiz	x25, x22, #2, #32
	add	x8, x25, x0
	add	x24, x8, #4
	mov	x0, x24
	bl	_malloc
	cbz	x0, LBB0_2
; %bb.1:
	mov	x22, x0
	ldr	w8, [x23]
	str	w8, [x0, #20]
	ldr	w0, [x0, #16]
	mov	x1, x21
	mov	x2, x25
	bl	_memcpy
Lloh0:
	adrp	x8, _PERF_RECORD_HEADER_ATTR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PERF_RECORD_HEADER_ATTR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x22, #8]
	str	x24, [x22]
	mov	x0, x20
	mov	x1, x22
	mov	x2, #0
	mov	x3, #0
	blr	x19
	mov	x19, x0
	mov	x0, x22
	bl	_free
	mov	x0, x19
	b	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_PERF_RECORD_HEADER_ATTR,4,2    ; @PERF_RECORD_HEADER_ATTR
	.comm	_E2BIG,4,2                      ; @E2BIG
.subsections_via_symbols
