	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipc_pci_probe
_ipc_pci_probe:                         ## @ipc_pci_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_ipcdev@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	je	LBB0_2
## %bb.1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_2:
	movq	%rdi, %r15
	movq	_IPC_TRIGGER_MODE_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r14)
	leaq	16(%r14), %rdi
	callq	_spin_lock_init
	movq	%r15, %rdi
	callq	_pcim_enable_device
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:
	movq	%r15, %rdi
	callq	_pci_name
	movq	%r15, %rdi
	movl	$1, %esi
	movl	%eax, %edx
	callq	_pcim_iomap_regions
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:
	leaq	12(%r14), %rdi
	callq	_init_completion
	movq	%r15, %rdi
	callq	_pcim_iomap_table
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movl	4(%r15), %esi
	movq	_ioc@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %r8
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	movq	%r14, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %r12d
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movl	%r12d, %ebx
	jmp	LBB0_7
LBB0_6:
	movq	%r15, (%r14)
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_pci_set_drvdata
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ipcdev,24,3                    ## @ipcdev
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_IPC_TRIGGER_MODE_IRQ,4,2       ## @IPC_TRIGGER_MODE_IRQ
	.comm	_ioc,4,2                        ## @ioc
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"intel_pmc_ipc"

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

	.no_dead_strip	_ipc_pci_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipc_pci_probe
_ipc_pci_probe:                         ; @ipc_pci_probe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x20, _ipcdev@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ipcdev@GOTPAGEOFF]
	ldr	x8, [x20]
	cbz	x8, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _EBUSY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_7
LBB0_2:
	mov	x19, x0
Lloh5:
	adrp	x8, _IPC_TRIGGER_MODE_IRQ@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IPC_TRIGGER_MODE_IRQ@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x20, #20]
	add	x0, x20, #16
	bl	_spin_lock_init
	mov	x0, x19
	bl	_pcim_enable_device
	mov	x21, x0
	cbnz	w0, LBB0_7
; %bb.3:
	mov	x0, x19
	bl	_pci_name
	mov	x2, x0
	mov	x0, x19
	mov	w1, #1
	bl	_pcim_iomap_regions
	mov	x21, x0
	cbnz	w0, LBB0_7
; %bb.4:
	add	x0, x20, #12
	bl	_init_completion
	mov	x0, x19
	bl	_pcim_iomap_table
	ldr	w8, [x0]
	str	w8, [x20, #8]
	ldr	w1, [x19, #4]
Lloh8:
	adrp	x8, _ioc@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ioc@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x4, l_.str@PAGE
Lloh12:
	add	x4, x4, l_.str@PAGEOFF
	mov	x0, x19
	mov	w3, #0
	mov	x5, x20
	bl	_devm_request_irq
	mov	x21, x0
	cbz	w0, LBB0_6
; %bb.5:
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_7
LBB0_6:
	str	x19, [x20]
	mov	x0, x19
	mov	x1, x20
	bl	_pci_set_drvdata
LBB0_7:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ipcdev,24,3                    ; @ipcdev
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_IPC_TRIGGER_MODE_IRQ,4,2       ; @IPC_TRIGGER_MODE_IRQ
	.comm	_ioc,4,2                        ; @ioc
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"intel_pmc_ipc"

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

	.no_dead_strip	_ipc_pci_probe
.subsections_via_symbols
