	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rockchip_mbox_probe
_rockchip_mbox_probe:                   ## @rockchip_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %esi
	testl	%esi, %esi
	je	LBB0_8
## %bb.1:
	movq	%rdi, %r15
	movq	_rockchip_mbox_of_match@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_of_match_node
	movq	(%rax), %r13
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r15, %rdi
	movl	$56, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	%rax, %r14
	movl	(%r13), %esi
	movl	(%rbx), %ecx
	movq	%r15, %rdi
	movl	$24, %edx
	callq	_devm_kcalloc
	movq	%rax, 40(%r14)
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movl	(%r13), %esi
	movl	(%rbx), %ecx
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_devm_kcalloc
	movq	%rax, 32(%r14)
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	movq	%r15, 24(%r14)
	movl	(%r13), %eax
	movl	%eax, 8(%r14)
	movq	_rockchip_mbox_chan_ops@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r14)
	movl	$1, 12(%r14)
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_12
## %bb.5:
	movq	%rax, %r12
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movl	%eax, 52(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_13
## %bb.6:
	movl	52(%r14), %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_8:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_9:
	xorl	%ebx, %ebx
LBB0_10:
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_13:
	movq	%r12, %rdi
	callq	_resource_size
	movslq	(%r13), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	addq	%rcx, %rcx
	shrq	$32, %rdx
	je	LBB0_15
## %bb.14:
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_16
LBB0_15:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_16:
	movq	%rax, (%r14)
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_clk_get
	movl	%eax, 48(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	movl	48(%r14), %edi
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	jmp	LBB0_21
LBB0_18:
	callq	_clk_prepare_enable
	testl	%eax, %eax
	je	LBB0_22
## %bb.19:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
LBB0_20:
	movq	%r15, %rdi
	movl	%ebx, %edx
LBB0_21:
	callq	_dev_err
	jmp	LBB0_11
LBB0_22:
	movq	%r14, %rax
	addq	$8, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%rax)
	jle	LBB0_27
## %bb.23:
	movl	$16, %r12d
	xorl	%r13d, %r13d
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_platform_get_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_11
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	_rockchip_mbox_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_rockchip_mbox_isr@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	callq	_dev_name
	movq	%r14, (%rsp)
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	%eax, %r9d
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	js	LBB0_29
## %bb.26:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	40(%r14), %rax
	movl	%r13d, -16(%rax,%r12)
	movl	%ebx, -12(%rax,%r12)
	movq	%r14, (%rax,%r12)
	movq	$0, -8(%rax,%r12)
	incq	%r13
	movslq	8(%r14), %rax
	addq	$24, %r12
	cmpq	%rax, %r13
	jl	LBB0_24
LBB0_27:
	movq	%r15, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_devm_mbox_controller_register
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_11
## %bb.28:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_20
LBB0_29:
	movl	%eax, %ebx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_rockchip_mbox_of_match,4,2     ## @rockchip_mbox_of_match
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_rockchip_mbox_chan_ops,4,2     ## @rockchip_mbox_chan_ops
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pclk_mailbox"

L_.str.1:                               ## @.str.1
	.asciz	"failed to get pclk_mailbox clock: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed to enable pclk: %d\n"

	.comm	_rockchip_mbox_irq,4,2          ## @rockchip_mbox_irq
	.comm	_rockchip_mbox_isr,4,2          ## @rockchip_mbox_isr
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
L_.str.3:                               ## @.str.3
	.asciz	"Failed to register mailbox: %d\n"

	.no_dead_strip	_rockchip_mbox_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rockchip_mbox_probe
_rockchip_mbox_probe:                   ; @rockchip_mbox_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	w1, [x0]
	cbz	w1, LBB0_8
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _rockchip_mbox_of_match@GOTPAGE
Lloh1:
	ldr	x8, [x8, _rockchip_mbox_of_match@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_of_match_node
	ldr	x22, [x0]
Lloh3:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x19
	mov	w1, #56
	bl	_devm_kzalloc
	cbz	x0, LBB0_7
; %bb.2:
	mov	x20, x0
	ldr	w1, [x22]
	ldr	w3, [x21]
	mov	x0, x19
	mov	w2, #24
	bl	_devm_kcalloc
	str	x0, [x20, #40]
	cbz	x0, LBB0_7
; %bb.3:
	ldr	w1, [x22]
	ldr	w3, [x21]
	mov	w21, #1
	mov	x0, x19
	mov	w2, #1
	bl	_devm_kcalloc
	str	x0, [x20, #32]
	cbz	x0, LBB0_7
; %bb.4:
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	ldr	w8, [x22]
Lloh5:
	adrp	x9, _rockchip_mbox_chan_ops@GOTPAGE
Lloh6:
	ldr	x9, [x9, _rockchip_mbox_chan_ops@GOTPAGEOFF]
	stp	x9, x19, [x20, #16]
	stp	w8, w21, [x20, #8]
Lloh7:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	cbz	x0, LBB0_8
; %bb.5:
	mov	x21, x0
	mov	x0, x19
	mov	x1, x21
	bl	_devm_ioremap_resource
	str	w0, [x20, #52]
	bl	_IS_ERR
	cbz	x0, LBB0_11
; %bb.6:
	ldr	w0, [x20, #52]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_PTR_ERR
LBB0_7:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh12:
	adrp	x8, _ENODEV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_10:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_11:
	mov	x0, x21
	bl	_resource_size
	ldrsw	x8, [x22]
	lsl	x8, x8, #1
	udiv	x8, x0, x8
	str	x8, [x20]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	str	w0, [x20, #48]
	bl	_IS_ERR
	mov	x8, x0
	ldr	w0, [x20, #48]
	cbz	x8, LBB0_13
; %bb.12:
	bl	_PTR_ERR
	mov	x21, x0
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_15
LBB0_13:
	bl	_clk_prepare_enable
	cbz	w0, LBB0_16
; %bb.14:
	mov	x21, x0
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_15:
	mov	x0, x19
	mov	x2, x21
	bl	_dev_err
	b	LBB0_10
LBB0_16:
	add	x8, x20, #8
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_21
; %bb.17:
	mov	x27, #0
	mov	x23, #0
Lloh20:
	adrp	x22, _rockchip_mbox_isr@GOTPAGE
Lloh21:
	ldr	x22, [x22, _rockchip_mbox_isr@GOTPAGEOFF]
Lloh22:
	adrp	x28, _IRQF_ONESHOT@GOTPAGE
Lloh23:
	ldr	x28, [x28, _IRQF_ONESHOT@GOTPAGEOFF]
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x23
	bl	_platform_get_irq
	mov	x21, x0
	tbnz	w0, #31, LBB0_10
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
Lloh24:
	adrp	x8, _rockchip_mbox_irq@GOTPAGE
Lloh25:
	ldr	x8, [x8, _rockchip_mbox_irq@GOTPAGEOFF]
Lloh26:
	ldr	w24, [x8]
	ldr	w25, [x22]
	ldr	w26, [x28]
	mov	x0, x19
	bl	_dev_name
	mov	x5, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, x24
	mov	x3, x25
	mov	x4, x26
	mov	x6, x20
	bl	_devm_request_threaded_irq
	tbnz	w0, #31, LBB0_23
; %bb.20:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	x8, [x20, #40]
	add	x8, x8, x27
	stp	w23, w21, [x8]
	stp	xzr, x20, [x8, #8]
	add	x23, x23, #1
	ldrsw	x8, [x20, #8]
	add	x27, x27, #24
	cmp	x23, x8
	b.lt	LBB0_18
LBB0_21:
	mov	x0, x19
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	bl	_devm_mbox_controller_register
	mov	x21, x0
	tbz	w0, #31, LBB0_10
; %bb.22:
Lloh27:
	adrp	x1, l_.str.3@PAGE
Lloh28:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_15
LBB0_23:
	mov	x21, x0
	b	LBB0_10
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_rockchip_mbox_of_match,4,2     ; @rockchip_mbox_of_match
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_rockchip_mbox_chan_ops,4,2     ; @rockchip_mbox_chan_ops
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pclk_mailbox"

l_.str.1:                               ; @.str.1
	.asciz	"failed to get pclk_mailbox clock: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed to enable pclk: %d\n"

	.comm	_rockchip_mbox_irq,4,2          ; @rockchip_mbox_irq
	.comm	_rockchip_mbox_isr,4,2          ; @rockchip_mbox_isr
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
l_.str.3:                               ; @.str.3
	.asciz	"Failed to register mailbox: %d\n"

	.no_dead_strip	_rockchip_mbox_probe
.subsections_via_symbols
