	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_capp_unit_id
_get_capp_unit_id:                      ## @get_capp_unit_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_cxl_is_power8
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	_PVR_POWER8NVL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_pvr_version_is
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	cmpl	$1, %ebx
	je	LBB0_12
## %bb.4:
	testl	%ebx, %ebx
	jne	LBB0_5
LBB0_2:
	movq	_P8_CAPP_UNIT0_ID@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_5:
	xorl	%eax, %eax
	callq	_cxl_is_power9
	testq	%rax, %rax
	je	LBB0_11
## %bb.6:
	cmpl	$3, %ebx
	je	LBB0_9
## %bb.7:
	testl	%ebx, %ebx
	jne	LBB0_11
## %bb.8:
	movq	_P9_CAPP_UNIT0_ID@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_12:
	movq	_P8_CAPP_UNIT1_ID@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_9:
	movq	_P9_CAPP_UNIT1_ID@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %r14d
LBB0_11:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PVR_POWER8NVL,4,2              ## @PVR_POWER8NVL
	.comm	_P8_CAPP_UNIT0_ID,4,2           ## @P8_CAPP_UNIT0_ID
	.comm	_P8_CAPP_UNIT1_ID,4,2           ## @P8_CAPP_UNIT1_ID
	.comm	_P9_CAPP_UNIT0_ID,4,2           ## @P9_CAPP_UNIT0_ID
	.comm	_P9_CAPP_UNIT1_ID,4,2           ## @P9_CAPP_UNIT1_ID
	.no_dead_strip	_get_capp_unit_id
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_capp_unit_id
_get_capp_unit_id:                      ; @get_capp_unit_id
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	bl	_cxl_is_power8
	cbz	x0, LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _PVR_POWER8NVL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PVR_POWER8NVL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_pvr_version_is
	cbz	w0, LBB0_4
; %bb.2:
	cmp	w19, #1
	b.eq	LBB0_9
; %bb.3:
	cbnz	w19, LBB0_5
LBB0_4:
Lloh3:
	adrp	x8, _P8_CAPP_UNIT0_ID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _P8_CAPP_UNIT0_ID@GOTPAGEOFF]
	b	LBB0_11
LBB0_5:
	bl	_cxl_is_power9
	cbz	x0, LBB0_12
; %bb.6:
	cmp	w19, #3
	b.eq	LBB0_10
; %bb.7:
	cbnz	w19, LBB0_13
; %bb.8:
Lloh5:
	adrp	x8, _P9_CAPP_UNIT0_ID@GOTPAGE
Lloh6:
	ldr	x8, [x8, _P9_CAPP_UNIT0_ID@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:
Lloh7:
	adrp	x8, _P8_CAPP_UNIT1_ID@GOTPAGE
Lloh8:
	ldr	x8, [x8, _P8_CAPP_UNIT1_ID@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh9:
	adrp	x8, _P9_CAPP_UNIT1_ID@GOTPAGE
Lloh10:
	ldr	x8, [x8, _P9_CAPP_UNIT1_ID@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
LBB0_12:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_13:
	mov	w0, #0
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_PVR_POWER8NVL,4,2              ; @PVR_POWER8NVL
	.comm	_P8_CAPP_UNIT0_ID,4,2           ; @P8_CAPP_UNIT0_ID
	.comm	_P8_CAPP_UNIT1_ID,4,2           ; @P8_CAPP_UNIT1_ID
	.comm	_P9_CAPP_UNIT0_ID,4,2           ; @P9_CAPP_UNIT0_ID
	.comm	_P9_CAPP_UNIT1_ID,4,2           ; @P9_CAPP_UNIT1_ID
	.no_dead_strip	_get_capp_unit_id
.subsections_via_symbols
