	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_coresight_get_sink_by_id       ## -- Begin function coresight_get_sink_by_id
	.p2align	4, 0x90
_coresight_get_sink_by_id:              ## @coresight_get_sink_by_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%edi, -12(%rbp)
	movq	_coresight_sink_by_id@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_coresight_bustype@GOTPCREL(%rip), %rdi
	xorl	%ebx, %ebx
	leaq	-12(%rbp), %rdx
	xorl	%esi, %esi
	callq	_bus_find_device
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rdi
	callq	_to_coresight_device
	movq	%rax, %rbx
LBB0_2:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_coresight_bustype,4,2          ## @coresight_bustype
	.comm	_coresight_sink_by_id,4,2       ## @coresight_sink_by_id
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_coresight_get_sink_by_id       ; -- Begin function coresight_get_sink_by_id
	.p2align	2
_coresight_get_sink_by_id:              ; @coresight_get_sink_by_id
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	stur	w0, [x29, #-4]
Lloh0:
	adrp	x8, _coresight_sink_by_id@GOTPAGE
Lloh1:
	ldr	x8, [x8, _coresight_sink_by_id@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
Lloh3:
	adrp	x0, _coresight_bustype@GOTPAGE
Lloh4:
	ldr	x0, [x0, _coresight_bustype@GOTPAGEOFF]
	sub	x2, x29, #4
	mov	x1, #0
	bl	_bus_find_device
	cbz	x0, LBB0_2
; %bb.1:
	bl	_to_coresight_device
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_coresight_bustype,4,2          ; @coresight_bustype
	.comm	_coresight_sink_by_id,4,2       ; @coresight_sink_by_id
.subsections_via_symbols
