	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zynqmp_ipi_startup
_zynqmp_ipi_startup:                    ## @zynqmp_ipi_startup
	.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, %rbx
	movq	8(%rdi), %rax
	movq	(%rax), %r12
	movq	%r12, %rdi
	callq	_dev_get_drvdata
	movq	(%rbx), %rbx
	xorl	%r15d, %r15d
	cmpl	$0, (%rbx)
	jne	LBB0_7
## %bb.1:
	movq	%rax, %r14
	movl	4(%rbx), %eax
	leal	1(%rax), %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	incl	%ecx
	andl	$-2, %ecx
	negl	%ecx
	addl	%eax, %ecx
	incl	%ecx
	movq	(%r14), %rdx
	cmpl	$0, (%rdx,%rcx,4)
	jne	LBB0_4
## %bb.2:
	movq	_SMC_IPI_MAILBOX_OPEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rcx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_zynqmp_ipi_fw_call
	movl	-48(%rbp), %r13d
	testl	%r13d, %r13d
	js	LBB0_8
## %bb.3:
	movl	4(%rbx), %eax
LBB0_4:
	movq	_IPI_MB_CHNL_RX@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_6
## %bb.5:
	movq	_SMC_IPI_MAILBOX_ENABLE_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rcx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_zynqmp_ipi_fw_call
LBB0_6:
	movl	$1, (%rbx)
LBB0_7:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	movl	%r13d, %r15d
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_SMC_IPI_MAILBOX_OPEN,4,2       ## @SMC_IPI_MAILBOX_OPEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SMC to open the IPI channel failed.\n"

	.comm	_IPI_MB_CHNL_RX,4,2             ## @IPI_MB_CHNL_RX
	.comm	_SMC_IPI_MAILBOX_ENABLE_IRQ,4,2 ## @SMC_IPI_MAILBOX_ENABLE_IRQ
	.no_dead_strip	_zynqmp_ipi_startup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zynqmp_ipi_startup
_zynqmp_ipi_startup:                    ; @zynqmp_ipi_startup
	.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	x21, x0
	ldr	x8, [x0, #8]
	ldr	x20, [x8]
	mov	x0, x20
	bl	_dev_get_drvdata
	ldr	x22, [x21]
	ldr	w8, [x22]
	cbz	w8, LBB0_2
; %bb.1:
	mov	w21, #0
	b	LBB0_8
LBB0_2:
	mov	x19, x0
	ldr	w8, [x22, #4]
	add	w9, w8, #1
	and	w10, w9, #0x1
	cmp	w9, #0
	cneg	w9, w10, lt
	ldr	x10, [x0]
	ldr	w9, [x10, w9, uxtw #2]
	cbnz	w9, LBB0_5
; %bb.3:
Lloh0:
	adrp	x8, _SMC_IPI_MAILBOX_OPEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SMC_IPI_MAILBOX_OPEN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x3, sp, #8
	mov	x0, x19
	mov	w2, #0
	bl	_zynqmp_ipi_fw_call
	ldr	w21, [sp, #8]
	tbnz	w21, #31, LBB0_9
; %bb.4:
	ldr	w8, [x22, #4]
LBB0_5:
Lloh3:
	adrp	x9, _IPI_MB_CHNL_RX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IPI_MB_CHNL_RX@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_7
; %bb.6:
Lloh6:
	adrp	x8, _SMC_IPI_MAILBOX_ENABLE_IRQ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SMC_IPI_MAILBOX_ENABLE_IRQ@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x3, sp, #8
	mov	x0, x19
	mov	w2, #0
	bl	_zynqmp_ipi_fw_call
LBB0_7:
	mov	w21, #0
	mov	w8, #1
	str	w8, [x22]
LBB0_8:
	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_9:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_SMC_IPI_MAILBOX_OPEN,4,2       ; @SMC_IPI_MAILBOX_OPEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SMC to open the IPI channel failed.\n"

	.comm	_IPI_MB_CHNL_RX,4,2             ; @IPI_MB_CHNL_RX
	.comm	_SMC_IPI_MAILBOX_ENABLE_IRQ,4,2 ; @SMC_IPI_MAILBOX_ENABLE_IRQ
	.no_dead_strip	_zynqmp_ipi_startup
.subsections_via_symbols
