	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipc_plat_probe
_ipc_plat_probe:                        ## @ipc_plat_probe
	.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
	movq	%rdi, %r15
	movq	_ipcdev@GOTPCREL(%rip), %r14
	movq	%rdi, 40(%r14)
	movq	_IPC_TRIGGER_MODE_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r14)
	leaq	28(%r14), %rdi
	callq	_init_completion
	leaq	24(%r14), %rdi
	callq	_spin_lock_init
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movq	%rax, (%r14)
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movq	%r15, %rdi
	callq	_ipc_plat_get_res
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_4
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_5:
	xorl	%eax, %eax
	callq	_ipc_create_pmc_devices
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
LBB0_4:
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	(%r14), %rsi
	movq	_ioc@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IRQF_NO_SUSPEND@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.2(%rip), %r8
	movq	%r15, %rdi
	movq	%r14, %r9
	callq	_devm_request_irq
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	leaq	L_.str.3(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EBUSY@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_9:
	movq	_intel_ipc_group@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	_sysfs_create_group
	testl	%eax, %eax
	je	LBB0_13
## %bb.10:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	(%r14), %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_devm_free_irq
LBB0_11:
	movl	20(%r14), %edi
	callq	_platform_device_unregister
	movl	16(%r14), %edi
	callq	_platform_device_unregister
	movl	12(%r14), %edi
	callq	_platform_device_unregister
	jmp	LBB0_12
LBB0_13:
	movl	$1, 8(%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_ipcdev,48,3                    ## @ipcdev
	.comm	_IPC_TRIGGER_MODE_IRQ,4,2       ## @IPC_TRIGGER_MODE_IRQ
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to request resource\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to create pmc devices\n"

	.comm	_ioc,4,2                        ## @ioc
	.comm	_IRQF_NO_SUSPEND,4,2            ## @IRQF_NO_SUSPEND
L_.str.2:                               ## @.str.2
	.asciz	"intel_pmc_ipc"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to request irq\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_intel_ipc_group,4,2            ## @intel_ipc_group
L_.str.4:                               ## @.str.4
	.asciz	"Failed to create sysfs group %d\n"

	.no_dead_strip	_ipc_plat_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipc_plat_probe
_ipc_plat_probe:                        ; @ipc_plat_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x0
Lloh0:
	adrp	x19, _ipcdev@GOTPAGE
Lloh1:
	ldr	x19, [x19, _ipcdev@GOTPAGEOFF]
	str	x0, [x19, #40]
Lloh2:
	adrp	x8, _IPC_TRIGGER_MODE_IRQ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IPC_TRIGGER_MODE_IRQ@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x19, #32]
	add	x0, x19, #28
	bl	_init_completion
	add	x0, x19, #24
	bl	_spin_lock_init
	mov	x0, x20
	mov	w1, #0
	bl	_platform_get_irq
	str	x0, [x19]
	tbnz	x0, #63, LBB0_3
; %bb.1:
	mov	x0, x20
	bl	_ipc_plat_get_res
	cbz	w0, LBB0_4
; %bb.2:
	mov	x21, x0
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_3:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_7
LBB0_4:
	bl	_ipc_create_pmc_devices
	cbz	w0, LBB0_8
; %bb.5:
	mov	x21, x0
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:
	mov	x0, x20
	bl	_dev_err
LBB0_7:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_8:
	ldr	x1, [x19]
Lloh12:
	adrp	x8, _ioc@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ioc@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
Lloh15:
	adrp	x8, _IRQF_NO_SUSPEND@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IRQF_NO_SUSPEND@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
Lloh18:
	adrp	x4, l_.str.2@PAGE
Lloh19:
	add	x4, x4, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x5, x19
	bl	_devm_request_irq
	cbz	x0, LBB0_10
; %bb.9:
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh22:
	adrp	x8, _EBUSY@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_12
LBB0_10:
Lloh25:
	adrp	x1, _intel_ipc_group@GOTPAGE
Lloh26:
	ldr	x1, [x1, _intel_ipc_group@GOTPAGEOFF]
	mov	x0, x20
	bl	_sysfs_create_group
	mov	x21, x0
	cbz	w0, LBB0_13
; %bb.11:
	str	x21, [sp]
Lloh27:
	adrp	x1, l_.str.4@PAGE
Lloh28:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	x1, [x19]
	mov	x0, x20
	mov	x2, x19
	bl	_devm_free_irq
LBB0_12:
	ldr	w0, [x19, #20]
	bl	_platform_device_unregister
	ldr	w0, [x19, #16]
	bl	_platform_device_unregister
	ldr	w0, [x19, #12]
	bl	_platform_device_unregister
	b	LBB0_7
LBB0_13:
	mov	w8, #1
	str	w8, [x19, #8]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_ipcdev,48,3                    ; @ipcdev
	.comm	_IPC_TRIGGER_MODE_IRQ,4,2       ; @IPC_TRIGGER_MODE_IRQ
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to request resource\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to create pmc devices\n"

	.comm	_ioc,4,2                        ; @ioc
	.comm	_IRQF_NO_SUSPEND,4,2            ; @IRQF_NO_SUSPEND
l_.str.2:                               ; @.str.2
	.asciz	"intel_pmc_ipc"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to request irq\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_intel_ipc_group,4,2            ; @intel_ipc_group
l_.str.4:                               ; @.str.4
	.asciz	"Failed to create sysfs group %d\n"

	.no_dead_strip	_ipc_plat_probe
.subsections_via_symbols
