	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipc_create_pmc_devices
_ipc_create_pmc_devices:                ## @ipc_create_pmc_devices
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	callq	_acpi_has_watchdog
	testl	%eax, %eax
	je	LBB0_1
LBB0_3:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_ipc_create_punit_device
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %ebx
	movq	_ipcdev@GOTPCREL(%rip), %r14
	movl	8(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	movl	(%r14), %edi
	callq	_platform_device_unregister
	movl	%ebx, %r15d
	jmp	LBB0_8
LBB0_1:
	xorl	%eax, %eax
	callq	_ipc_create_tco_device
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %r15d
	movq	_ipcdev@GOTPCREL(%rip), %rax
	movl	8(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_8
LBB0_5:
	movq	_ipcdev@GOTPCREL(%rip), %rbx
	cmpl	$0, 12(%rbx)
	jne	LBB0_8
## %bb.6:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_ipc_create_telemetry_device
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %r14d
	movl	8(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_warn
	movl	4(%rbx), %edi
	callq	_platform_device_unregister
	movl	(%rbx), %edi
	callq	_platform_device_unregister
	movl	%r14d, %r15d
LBB0_8:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ipcdev,16,2                    ## @ipcdev
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to add tco platform device\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to add punit platform device\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to add telemetry platform device\n"

	.no_dead_strip	_ipc_create_pmc_devices
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipc_create_pmc_devices
_ipc_create_pmc_devices:                ; @ipc_create_pmc_devices
	.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
	bl	_acpi_has_watchdog
	cbz	w0, LBB0_4
LBB0_1:
	bl	_ipc_create_punit_device
	cbz	w0, LBB0_6
; %bb.2:
	mov	x19, x0
Lloh0:
	adrp	x20, _ipcdev@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ipcdev@GOTPAGEOFF]
	ldr	w0, [x20, #8]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
LBB0_3:
	ldr	w0, [x20]
	bl	_platform_device_unregister
	b	LBB0_8
LBB0_4:
	bl	_ipc_create_tco_device
	cbz	w0, LBB0_1
; %bb.5:
	mov	x19, x0
Lloh4:
	adrp	x8, _ipcdev@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ipcdev@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8, #8]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_8
LBB0_6:
Lloh9:
	adrp	x20, _ipcdev@GOTPAGE
Lloh10:
	ldr	x20, [x20, _ipcdev@GOTPAGEOFF]
	ldr	w8, [x20, #12]
	cbz	w8, LBB0_9
; %bb.7:
	mov	w19, #0
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
	bl	_ipc_create_telemetry_device
	mov	x19, x0
	cbz	w0, LBB0_8
; %bb.10:
	ldr	w0, [x20, #8]
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_warn
	ldr	w0, [x20, #4]
	bl	_platform_device_unregister
	b	LBB0_3
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ipcdev,16,2                    ; @ipcdev
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to add tco platform device\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to add punit platform device\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to add telemetry platform device\n"

	.no_dead_strip	_ipc_create_pmc_devices
.subsections_via_symbols
