	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function hi3660_mbox_probe
LCPI0_0:
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	1                               ## 0x1
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
LCPI0_1:
	.quad	2                               ## 0x2
	.quad	2                               ## 0x2
LCPI0_2:
	.quad	4                               ## 0x4
	.quad	4                               ## 0x4
LCPI0_3:
	.quad	6                               ## 0x6
	.quad	6                               ## 0x6
LCPI0_4:
	.quad	8                               ## 0x8
	.quad	8                               ## 0x8
LCPI0_5:
	.quad	10                              ## 0xa
	.quad	10                              ## 0xa
LCPI0_6:
	.quad	12                              ## 0xc
	.quad	12                              ## 0xc
LCPI0_7:
	.quad	14                              ## 0xe
	.quad	14                              ## 0xe
LCPI0_8:
	.quad	16                              ## 0x10
	.quad	16                              ## 0x10
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_hi3660_mbox_probe:                     ## @hi3660_mbox_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$64, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movl	%eax, 56(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.19:
	movl	56(%r15), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_18
LBB0_3:
	movq	%r14, 48(%r15)
	movq	%r14, 32(%r15)
	movq	40(%r15), %rax
	movq	%rax, 24(%r15)
	movq	_MBOX_CHAN_MAX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	%rdx, (%r15)
	movq	_hi3660_mbox_ops@GOTPCREL(%rip), %rdx
	movq	%rdx, 16(%r15)
	movq	_hi3660_mbox_xlate@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 8(%r15)
	movq	(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_15
## %bb.4:
	cmpq	$4, %rcx
	jae	LBB0_7
## %bb.5:
	xorl	%edx, %edx
	jmp	LBB0_6
LBB0_7:
	movq	%rcx, %rdx
	andq	$-4, %rdx
	leaq	-4(%rdx), %rbx
	movq	%rbx, %rdi
	shrq	$2, %rdi
	incq	%rdi
	movl	%edi, %esi
	andl	$3, %esi
	cmpq	$12, %rbx
	jae	LBB0_9
## %bb.8:
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0]
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_9:
	andq	$-4, %rdi
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0]
	xorl	%ebx, %ebx
	movdqa	LCPI0_1(%rip), %xmm8            ## xmm8 = [2,2]
	movdqa	LCPI0_2(%rip), %xmm9            ## xmm9 = [4,4]
	movdqa	LCPI0_3(%rip), %xmm10           ## xmm10 = [6,6]
	movdqa	LCPI0_4(%rip), %xmm4            ## xmm4 = [8,8]
	movdqa	LCPI0_5(%rip), %xmm5            ## xmm5 = [10,10]
	movdqa	LCPI0_6(%rip), %xmm6            ## xmm6 = [12,12]
	movdqa	LCPI0_7(%rip), %xmm7            ## xmm7 = [14,14]
	movdqa	LCPI0_8(%rip), %xmm1            ## xmm1 = [16,16]
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm0, %xmm2
	paddq	%xmm8, %xmm2
	movdqu	%xmm0, (%rax,%rbx,8)
	movdqu	%xmm2, 16(%rax,%rbx,8)
	movdqa	%xmm0, %xmm2
	paddq	%xmm9, %xmm2
	movdqa	%xmm0, %xmm3
	paddq	%xmm10, %xmm3
	movdqu	%xmm2, 32(%rax,%rbx,8)
	movdqu	%xmm3, 48(%rax,%rbx,8)
	movdqa	%xmm0, %xmm2
	paddq	%xmm4, %xmm2
	movdqa	%xmm0, %xmm3
	paddq	%xmm5, %xmm3
	movdqu	%xmm2, 64(%rax,%rbx,8)
	movdqu	%xmm3, 80(%rax,%rbx,8)
	movdqa	%xmm0, %xmm2
	paddq	%xmm6, %xmm2
	movdqa	%xmm0, %xmm3
	paddq	%xmm7, %xmm3
	movdqu	%xmm2, 96(%rax,%rbx,8)
	movdqu	%xmm3, 112(%rax,%rbx,8)
	addq	$16, %rbx
	paddq	%xmm1, %xmm0
	addq	$-4, %rdi
	jne	LBB0_10
LBB0_11:
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.12:
	leaq	(%rax,%rbx,8), %rdi
	addq	$16, %rdi
	shlq	$5, %rsi
	xorl	%ebx, %ebx
	movdqa	LCPI0_1(%rip), %xmm1            ## xmm1 = [2,2]
	movdqa	LCPI0_2(%rip), %xmm2            ## xmm2 = [4,4]
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm0, %xmm3
	paddq	%xmm1, %xmm3
	movdqu	%xmm0, -16(%rdi,%rbx)
	movdqu	%xmm3, (%rdi,%rbx)
	paddq	%xmm2, %xmm0
	addq	$32, %rbx
	cmpq	%rbx, %rsi
	jne	LBB0_13
	jmp	LBB0_14
LBB0_6:
	movq	%rdx, (%rax,%rdx,8)
	incq	%rdx
LBB0_14:
	cmpq	%rdx, %rcx
	jne	LBB0_6
LBB0_15:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_devm_mbox_controller_register
	testl	%eax, %eax
	je	LBB0_17
## %bb.16:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_18
LBB0_17:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_platform_set_drvdata
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	xorl	%ebx, %ebx
LBB0_18:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_MBOX_CHAN_MAX,8,3              ## @MBOX_CHAN_MAX
	.comm	_hi3660_mbox_ops,4,2            ## @hi3660_mbox_ops
	.comm	_hi3660_mbox_xlate,4,2          ## @hi3660_mbox_xlate
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to register mailbox %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Mailbox enabled\n"

	.no_dead_strip	_hi3660_mbox_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function hi3660_mbox_probe
lCPI0_0:
	.quad	0                               ; 0x0
	.quad	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_hi3660_mbox_probe:                     ; @hi3660_mbox_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
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #64
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	mov	x1, x0
	mov	x0, x19
	bl	_devm_ioremap_resource
	str	w0, [x20, #56]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w0, [x20, #56]
	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
	b	_PTR_ERR
LBB0_3:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_14
LBB0_4:
	str	x19, [x20, #48]
	str	x19, [x20, #32]
Lloh9:
	adrp	x9, _MBOX_CHAN_MAX@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MBOX_CHAN_MAX@GOTPAGEOFF]
	ldr	x8, [x20, #40]
	ldr	x10, [x9]
	str	x10, [x20]
Lloh11:
	adrp	x10, _hi3660_mbox_ops@GOTPAGE
Lloh12:
	ldr	x10, [x10, _hi3660_mbox_ops@GOTPAGEOFF]
	stp	x10, x8, [x20, #16]
Lloh13:
	adrp	x10, _hi3660_mbox_xlate@GOTPAGE
Lloh14:
	ldr	x10, [x10, _hi3660_mbox_xlate@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
	str	w10, [x20, #8]
	ldr	x9, [x9]
	cbz	x9, LBB0_11
; %bb.5:
	cmp	x9, #8
	b.hs	LBB0_7
; %bb.6:
	mov	x10, #0
	b	LBB0_9
LBB0_7:
	and	x10, x9, #0xfffffffffffffff8
Lloh16:
	adrp	x11, lCPI0_0@PAGE
Lloh17:
	ldr	q0, [x11, lCPI0_0@PAGEOFF]
	add	x11, x8, #32
	mov	w12, #2
	dup.2d	v1, x12
	mov	w12, #4
	dup.2d	v2, x12
	mov	w12, #6
	dup.2d	v3, x12
	mov	w12, #8
	dup.2d	v4, x12
	mov	x12, x10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	add.2d	v5, v0, v1
	add.2d	v6, v0, v2
	add.2d	v7, v0, v3
	stp	q0, q5, [x11, #-32]
	stp	q6, q7, [x11], #64
	add.2d	v0, v0, v4
	subs	x12, x12, #8
	b.ne	LBB0_8
	b	LBB0_10
LBB0_9:
	str	x10, [x8, x10, lsl #3]
	add	x10, x10, #1
LBB0_10:
	cmp	x9, x10
	b.ne	LBB0_9
LBB0_11:
	mov	x0, x19
	mov	x1, x20
	bl	_devm_mbox_controller_register
	mov	x21, x0
	cbz	w0, LBB0_13
; %bb.12:
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_dev_err
	b	LBB0_14
LBB0_13:
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_info
LBB0_14:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdr	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_MBOX_CHAN_MAX,8,3              ; @MBOX_CHAN_MAX
	.comm	_hi3660_mbox_ops,4,2            ; @hi3660_mbox_ops
	.comm	_hi3660_mbox_xlate,4,2          ; @hi3660_mbox_xlate
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to register mailbox %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Mailbox enabled\n"

	.no_dead_strip	_hi3660_mbox_probe
.subsections_via_symbols
