	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pn_identify
_pn_identify:                           ## @pn_identify
	.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
	movq	_amd_pminfo@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_AMDPM_FID@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.1:
	movq	_AMDPM_VID@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.2:
	movl	%esi, %ebx
	movq	_cpu_id@GOTPCREL(%rip), %rcx
	movl	$3840, %eax                     ## imm = 0xF00
	andl	(%rcx), %eax
	cmpl	$3840, %eax                     ## imm = 0xF00
	je	LBB0_4
## %bb.3:
	cmpl	$1536, %eax                     ## imm = 0x600
	jne	LBB0_6
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	$-1, %edx
	callq	_device_find_child
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rdx
	movl	%ebx, %edi
	movl	$10, %esi
	movl	$-1, %ecx
	callq	_BUS_ADD_CHILD
	testq	%rax, %rax
	je	LBB0_7
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_7:
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_device_printf                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_amd_pminfo,4,2                 ## @amd_pminfo
	.comm	_AMDPM_FID,4,2                  ## @AMDPM_FID
	.comm	_AMDPM_VID,4,2                  ## @AMDPM_VID
	.comm	_cpu_id,4,2                     ## @cpu_id
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"powernow"

L_.str.1:                               ## @.str.1
	.asciz	"powernow: add child failed\n"

	.no_dead_strip	_pn_identify
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pn_identify
_pn_identify:                           ; @pn_identify
	.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
Lloh0:
	adrp	x8, _amd_pminfo@GOTPAGE
Lloh1:
	ldr	x8, [x8, _amd_pminfo@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _AMDPM_FID@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AMDPM_FID@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.1:
Lloh6:
	adrp	x9, _AMDPM_VID@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AMDPM_VID@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.2:
	mov	x19, x1
Lloh9:
	adrp	x8, _cpu_id@GOTPAGE
Lloh10:
	ldr	x8, [x8, _cpu_id@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	and	w8, w8, #0xf00
	cmp	w8, #3840
	b.eq	LBB0_4
; %bb.3:
	cmp	w8, #1536
	b.ne	LBB0_6
LBB0_4:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	w2, #-1
	bl	_device_find_child
	cbnz	x0, LBB0_6
; %bb.5:
Lloh14:
	adrp	x2, l_.str@PAGE
Lloh15:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	w1, #10
	mov	w3, #-1
	bl	_BUS_ADD_CHILD
	cbz	x0, LBB0_7
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_device_printf
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_amd_pminfo,4,2                 ; @amd_pminfo
	.comm	_AMDPM_FID,4,2                  ; @AMDPM_FID
	.comm	_AMDPM_VID,4,2                  ; @AMDPM_VID
	.comm	_cpu_id,4,2                     ; @cpu_id
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"powernow"

l_.str.1:                               ; @.str.1
	.asciz	"powernow: add child failed\n"

	.no_dead_strip	_pn_identify
.subsections_via_symbols
