	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pl320_probe
_pl320_probe:                           ## @pl320_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	addq	$16, %rdi
	movl	16(%r15), %ebx
	callq	_resource_size
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ioremap
	movq	_ipc_base@GOTPCREL(%rip), %r13
	movq	%rax, (%r13)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	_IPC_TX_MBOX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IPCMxSEND
	cltq
	leaq	(%rbx,%rax,4), %rsi
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	callq	_writel_relaxed
	movq	8(%r15), %rax
	movl	(%rax), %ebx
	movq	_ipc_irq@GOTPCREL(%rip), %rax
	movl	%ebx, (%rax)
	movq	_ipc_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r15, %rdi
	callq	_dev_name
	movl	%ebx, %edi
	movl	%r12d, %esi
	xorl	%edx, %edx
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	callq	_request_irq
	testl	%eax, %eax
	js	LBB0_4
## %bb.3:
	movq	_A9_SOURCE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CHAN_MASK
	movl	%eax, %r15d
	movq	(%r13), %rbx
	movq	_IPC_TX_MBOX@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_IPCMxSOURCE
	cltq
	leaq	(%rbx,%rax,4), %rsi
	movl	%r15d, %edi
	callq	_writel_relaxed
	movq	_M3_SOURCE@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_CHAN_MASK
	movl	%eax, %r15d
	movq	(%r13), %rbx
	movq	_IPC_TX_MBOX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IPCMxDSET
	cltq
	leaq	(%rbx,%rax,4), %rsi
	movl	%r15d, %edi
	callq	_writel_relaxed
	movl	(%r12), %edi
	callq	_CHAN_MASK
	movl	%eax, %ebx
	movq	_A9_SOURCE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CHAN_MASK
	orl	%eax, %ebx
	movq	(%r13), %r15
	movq	_IPC_TX_MBOX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IPCMxMSET
	cltq
	leaq	(%r15,%rax,4), %rsi
	movl	%ebx, %edi
	callq	_writel_relaxed
	movl	(%r12), %edi
	callq	_CHAN_MASK
	movl	%eax, %ebx
	movq	(%r13), %r12
	movq	_IPC_RX_MBOX@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_IPCMxSOURCE
	cltq
	leaq	(%r12,%rax,4), %rsi
	movl	%ebx, %edi
	callq	_writel_relaxed
	movq	_A9_SOURCE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CHAN_MASK
	movl	%eax, %r12d
	movq	(%r13), %rbx
	movl	(%r15), %edi
	callq	_IPCMxDSET
	cltq
	leaq	(%rbx,%rax,4), %rsi
	movl	%r12d, %edi
	callq	_writel_relaxed
	movq	_M3_SOURCE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CHAN_MASK
	movl	%eax, %ebx
	movq	_A9_SOURCE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CHAN_MASK
	orl	%eax, %ebx
	movq	(%r13), %r12
	movl	(%r15), %edi
	callq	_IPCMxMSET
	cltq
	leaq	(%r12,%rax,4), %rsi
	movl	%ebx, %edi
	callq	_writel_relaxed
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_5
LBB0_4:
	movl	%eax, %ebx
	movq	(%r13), %rdi
	callq	_iounmap
	movl	%ebx, %r14d
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ipc_base,8,3                   ## @ipc_base
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IPC_TX_MBOX,4,2                ## @IPC_TX_MBOX
	.comm	_ipc_irq,4,2                    ## @ipc_irq
	.comm	_ipc_handler,4,2                ## @ipc_handler
	.comm	_A9_SOURCE,4,2                  ## @A9_SOURCE
	.comm	_M3_SOURCE,4,2                  ## @M3_SOURCE
	.comm	_IPC_RX_MBOX,4,2                ## @IPC_RX_MBOX
	.no_dead_strip	_pl320_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pl320_probe
_pl320_probe:                           ; @pl320_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	w20, [x0, #16]!
	bl	_resource_size
	mov	x1, x0
	mov	x0, x20
	bl	_ioremap
Lloh0:
	adrp	x22, _ipc_base@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ipc_base@GOTPAGEOFF]
	str	x0, [x22]
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
Lloh2:
	adrp	x23, _IPC_TX_MBOX@GOTPAGE
Lloh3:
	ldr	x23, [x23, _IPC_TX_MBOX@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_IPCMxSEND
	add	x1, x20, w0, sxtw #2
	mov	w0, #0
	bl	_writel_relaxed
	ldr	x8, [x19, #8]
	ldr	w20, [x8]
Lloh4:
	adrp	x8, _ipc_irq@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ipc_irq@GOTPAGEOFF]
Lloh6:
	str	w20, [x8]
Lloh7:
	adrp	x8, _ipc_handler@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ipc_handler@GOTPAGEOFF]
Lloh9:
	ldr	w21, [x8]
	mov	x0, x19
	bl	_dev_name
	mov	x3, x0
	mov	x0, x20
	mov	x1, x21
	mov	w2, #0
	mov	x4, #0
	bl	_request_irq
	tbnz	w0, #31, LBB0_4
; %bb.2:
Lloh10:
	adrp	x20, _A9_SOURCE@GOTPAGE
Lloh11:
	ldr	x20, [x20, _A9_SOURCE@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_CHAN_MASK
	mov	x19, x0
	ldr	x21, [x22]
	ldr	w0, [x23]
	bl	_IPCMxSOURCE
	add	x1, x21, w0, sxtw #2
	mov	x0, x19
	bl	_writel_relaxed
Lloh12:
	adrp	x21, _M3_SOURCE@GOTPAGE
Lloh13:
	ldr	x21, [x21, _M3_SOURCE@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_CHAN_MASK
	mov	x19, x0
	ldr	x24, [x22]
	ldr	w0, [x23]
	bl	_IPCMxDSET
	add	x1, x24, w0, sxtw #2
	mov	x0, x19
	bl	_writel_relaxed
	ldr	w0, [x21]
	bl	_CHAN_MASK
	mov	x19, x0
	ldr	w0, [x20]
	bl	_CHAN_MASK
	orr	w19, w0, w19
	ldr	x24, [x22]
	ldr	w0, [x23]
	bl	_IPCMxMSET
	add	x1, x24, w0, sxtw #2
	mov	x0, x19
	bl	_writel_relaxed
	ldr	w0, [x21]
	bl	_CHAN_MASK
	mov	x19, x0
	ldr	x23, [x22]
Lloh14:
	adrp	x24, _IPC_RX_MBOX@GOTPAGE
Lloh15:
	ldr	x24, [x24, _IPC_RX_MBOX@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_IPCMxSOURCE
	add	x1, x23, w0, sxtw #2
	mov	x0, x19
	bl	_writel_relaxed
	ldr	w0, [x20]
	bl	_CHAN_MASK
	mov	x19, x0
	ldr	x23, [x22]
	ldr	w0, [x24]
	bl	_IPCMxDSET
	add	x1, x23, w0, sxtw #2
	mov	x0, x19
	bl	_writel_relaxed
	ldr	w0, [x21]
	bl	_CHAN_MASK
	mov	x19, x0
	ldr	w0, [x20]
	bl	_CHAN_MASK
	orr	w19, w0, w19
	ldr	x20, [x22]
	ldr	w0, [x24]
	bl	_IPCMxMSET
	add	x1, x20, w0, sxtw #2
	mov	x0, x19
	bl	_writel_relaxed
	mov	w19, #0
	b	LBB0_5
LBB0_3:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_5
LBB0_4:
	mov	x19, x0
	ldr	x0, [x22]
	bl	_iounmap
LBB0_5:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_ipc_base,8,3                   ; @ipc_base
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IPC_TX_MBOX,4,2                ; @IPC_TX_MBOX
	.comm	_ipc_irq,4,2                    ; @ipc_irq
	.comm	_ipc_handler,4,2                ; @ipc_handler
	.comm	_A9_SOURCE,4,2                  ; @A9_SOURCE
	.comm	_M3_SOURCE,4,2                  ; @M3_SOURCE
	.comm	_IPC_RX_MBOX,4,2                ; @IPC_RX_MBOX
	.no_dead_strip	_pl320_probe
.subsections_via_symbols
