	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function perf_evsel__test_field
_perf_evsel__test_field:                ## @perf_evsel__test_field
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r13d
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %r12
	callq	_perf_evsel__field
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	xorl	%eax, %eax
	testl	%r13d, %r13d
	je	LBB0_5
## %bb.3:
	movq	_FIELD_IS_SIGNED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rbx), %ecx
	jne	LBB0_5
## %bb.4:
	movl	(%r12), %esi
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	movl	%r13d, %r8d
	xorl	%eax, %eax
	callq	_pr_debug
	movl	$-1, %eax
LBB0_5:
	movl	4(%rbx), %ecx
	cmpl	%r14d, %ecx
	je	LBB0_8
## %bb.6:
	movl	(%r12), %esi
	leaq	L_.str.2(%rip), %rdi
	movq	%r15, %rdx
	movl	%r14d, %r8d
	xorl	%eax, %eax
	callq	_pr_debug
	jmp	LBB0_7
LBB0_1:
	movl	(%r12), %esi
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_pr_debug
LBB0_7:
	movl	$-1, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: \"%s\" field not found!\n"

	.comm	_FIELD_IS_SIGNED,4,2            ## @FIELD_IS_SIGNED
L_.str.1:                               ## @.str.1
	.asciz	"%s: \"%s\" signedness(%d) is wrong, should be %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"%s: \"%s\" size (%d) should be %d!\n"

	.no_dead_strip	_perf_evsel__test_field
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function perf_evsel__test_field
_perf_evsel__test_field:                ; @perf_evsel__test_field
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x23, x3
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	bl	_perf_evsel__field
	cbz	x0, LBB0_6
; %bb.1:
	mov	x22, x0
	mov	w0, #0
	cbz	w23, LBB0_4
; %bb.2:
	ldr	w8, [x22]
Lloh0:
	adrp	x9, _FIELD_IS_SIGNED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FIELD_IS_SIGNED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	orr	w8, w9, w8
	cbnz	w8, LBB0_4
; %bb.3:
	ldr	w1, [x21]
	stp	xzr, x23, [sp]
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_pr_debug
	mov	w0, #-1
LBB0_4:
	ldr	w8, [x22, #4]
	cmp	w8, w20
	b.eq	LBB0_8
; %bb.5:
	ldr	w1, [x21]
	stp	x8, x20, [sp]
Lloh5:
	adrp	x0, l_.str.2@PAGE
Lloh6:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_7
LBB0_6:
	ldr	w1, [x21]
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
LBB0_7:
	mov	x2, x19
	bl	_pr_debug
	mov	w0, #-1
LBB0_8:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: \"%s\" field not found!\n"

	.comm	_FIELD_IS_SIGNED,4,2            ; @FIELD_IS_SIGNED
l_.str.1:                               ; @.str.1
	.asciz	"%s: \"%s\" signedness(%d) is wrong, should be %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"%s: \"%s\" size (%d) should be %d!\n"

	.no_dead_strip	_perf_evsel__test_field
.subsections_via_symbols
