	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function coresight_validate_source
_coresight_validate_source:             ## @coresight_validate_source
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rsi, %rdx
	movq	(%rdi), %rax
	movq	_CORESIGHT_DEV_TYPE_SOURCE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	16(%rdi), %rcx
	movq	_CORESIGHT_DEV_SUBTYPE_SOURCE_PROC@GOTPCREL(%rip), %rsi
	xorl	%eax, %eax
	cmpq	(%rsi), %rcx
	je	LBB0_6
## %bb.3:
	movq	_CORESIGHT_DEV_SUBTYPE_SOURCE_SOFTWARE@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	je	LBB0_6
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str(%rip), %rsi
LBB0_5:
	addq	$8, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CORESIGHT_DEV_TYPE_SOURCE,8,3  ## @CORESIGHT_DEV_TYPE_SOURCE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wrong device type in %s\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CORESIGHT_DEV_SUBTYPE_SOURCE_PROC,8,3 ## @CORESIGHT_DEV_SUBTYPE_SOURCE_PROC
	.comm	_CORESIGHT_DEV_SUBTYPE_SOURCE_SOFTWARE,8,3 ## @CORESIGHT_DEV_SUBTYPE_SOURCE_SOFTWARE
L_.str.1:                               ## @.str.1
	.asciz	"wrong device subtype in %s\n"

	.no_dead_strip	_coresight_validate_source
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function coresight_validate_source
_coresight_validate_source:             ; @coresight_validate_source
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x2, x1
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _CORESIGHT_DEV_TYPE_SOURCE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CORESIGHT_DEV_TYPE_SOURCE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x0, #16]
Lloh3:
	adrp	x9, _CORESIGHT_DEV_SUBTYPE_SOURCE_PROC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CORESIGHT_DEV_SUBTYPE_SOURCE_PROC@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _CORESIGHT_DEV_SUBTYPE_SOURCE_SOFTWARE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _CORESIGHT_DEV_SUBTYPE_SOURCE_SOFTWARE@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_4
; %bb.2:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_5
LBB0_4:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_5:
	add	x0, x0, #8
	bl	_dev_err
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 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
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_CORESIGHT_DEV_TYPE_SOURCE,8,3  ; @CORESIGHT_DEV_TYPE_SOURCE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wrong device type in %s\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CORESIGHT_DEV_SUBTYPE_SOURCE_PROC,8,3 ; @CORESIGHT_DEV_SUBTYPE_SOURCE_PROC
	.comm	_CORESIGHT_DEV_SUBTYPE_SOURCE_SOFTWARE,8,3 ; @CORESIGHT_DEV_SUBTYPE_SOURCE_SOFTWARE
l_.str.1:                               ; @.str.1
	.asciz	"wrong device subtype in %s\n"

	.no_dead_strip	_coresight_validate_source
.subsections_via_symbols
