	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vpu_ipi_register               ## -- Begin function vpu_ipi_register
	.p2align	4, 0x90
_vpu_ipi_register:                      ## @vpu_ipi_register
	.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	%r8, %r14
	movq	%rcx, %r13
	movq	%rdx, %rbx
	movl	%esi, %r15d
	movq	%rdi, %r12
	callq	_platform_get_drvdata
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.3:
	movq	_IPI_MAX@GOTPCREL(%rip), %rcx
	cmpl	%r15d, (%rcx)
	jbe	LBB0_5
## %bb.4:
	movq	(%rax), %rax
	movl	%r15d, %ecx
	leaq	(%rcx,%rcx,2), %rcx
	movq	%r13, (%rax,%rcx,8)
	movq	%rbx, 16(%rax,%rcx,8)
	movq	%r14, 8(%rax,%rcx,8)
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_1:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_6:
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vpu device in not ready\n"

	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
	.comm	_IPI_MAX,4,2                    ## @IPI_MAX
L_.str.1:                               ## @.str.1
	.asciz	"register vpu ipi id %d with invalid arguments\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vpu_ipi_register               ; -- Begin function vpu_ipi_register
	.p2align	2
_vpu_ipi_register:                      ; @vpu_ipi_register
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x4
	mov	x20, x3
	mov	x23, x2
	mov	x22, x1
	mov	x21, x0
	bl	_platform_get_drvdata
	cbz	x0, LBB0_4
; %bb.1:
	cbz	x23, LBB0_5
; %bb.2:
Lloh0:
	adrp	x9, _IPI_MAX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IPI_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w9, w22
	b.ls	LBB0_5
; %bb.3:
	mov	x8, x0
	mov	w0, #0
	ldr	x8, [x8]
	mov	w9, #24
	umaddl	x8, w22, w9, x8
	stp	x19, x23, [x8, #8]
	str	x20, [x8]
	b	LBB0_7
LBB0_4:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_err
Lloh5:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
	str	x22, [sp]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_dev_err
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vpu device in not ready\n"

	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
	.comm	_IPI_MAX,4,2                    ; @IPI_MAX
l_.str.1:                               ; @.str.1
	.asciz	"register vpu ipi id %d with invalid arguments\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
