	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zynqmp_ipi_shutdown
_zynqmp_ipi_shutdown:                   ## @zynqmp_ipi_shutdown
	.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, %rbx
	movq	8(%rdi), %rax
	movq	(%rax), %rdi
	callq	_dev_get_drvdata
	movq	(%rbx), %r15
	cmpq	$0, 8(%r15)
	je	LBB0_6
## %bb.1:
	movq	%rax, %r14
	movl	(%r15), %ebx
	movq	_IPI_MB_CHNL_RX@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_3
## %bb.2:
	movq	_SMC_IPI_MAILBOX_DISABLE_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rcx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_zynqmp_ipi_fw_call
LBB0_3:
	notl	%ebx
	andl	$1, %ebx
	movq	(%r14), %rax
	cmpl	$0, (%rax,%rbx,4)
	jne	LBB0_5
## %bb.4:
	movq	_SMC_IPI_MAILBOX_RELEASE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rcx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_zynqmp_ipi_fw_call
LBB0_5:
	movq	$0, 8(%r15)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IPI_MB_CHNL_RX,4,2             ## @IPI_MB_CHNL_RX
	.comm	_SMC_IPI_MAILBOX_DISABLE_IRQ,4,2 ## @SMC_IPI_MAILBOX_DISABLE_IRQ
	.comm	_SMC_IPI_MAILBOX_RELEASE,4,2    ## @SMC_IPI_MAILBOX_RELEASE
	.no_dead_strip	_zynqmp_ipi_shutdown
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zynqmp_ipi_shutdown
_zynqmp_ipi_shutdown:                   ; @zynqmp_ipi_shutdown
	.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
	ldr	x8, [x0, #8]
	ldr	x0, [x8]
	bl	_dev_get_drvdata
	ldr	x20, [x20]
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_6
; %bb.1:
	mov	x19, x0
	ldr	w21, [x20]
Lloh0:
	adrp	x8, _IPI_MB_CHNL_RX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IPI_MB_CHNL_RX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w21, w8
	b.ne	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _SMC_IPI_MAILBOX_DISABLE_IRQ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SMC_IPI_MAILBOX_DISABLE_IRQ@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x3, sp, #8
	mov	x0, x19
	mov	w2, #0
	bl	_zynqmp_ipi_fw_call
LBB0_3:
	mvn	w8, w21
	and	x8, x8, #0x1
	ldr	x9, [x19]
	ldr	w8, [x9, x8, lsl #2]
	cbnz	w8, LBB0_5
; %bb.4:
Lloh6:
	adrp	x8, _SMC_IPI_MAILBOX_RELEASE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SMC_IPI_MAILBOX_RELEASE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x3, sp, #8
	mov	x0, x19
	mov	w2, #0
	bl	_zynqmp_ipi_fw_call
LBB0_5:
	str	xzr, [x20, #8]
LBB0_6:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IPI_MB_CHNL_RX,4,2             ; @IPI_MB_CHNL_RX
	.comm	_SMC_IPI_MAILBOX_DISABLE_IRQ,4,2 ; @SMC_IPI_MAILBOX_DISABLE_IRQ
	.comm	_SMC_IPI_MAILBOX_RELEASE,4,2    ; @SMC_IPI_MAILBOX_RELEASE
	.no_dead_strip	_zynqmp_ipi_shutdown
.subsections_via_symbols
