	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra210_bpmp_init
_tegra210_bpmp_init:                    ## @tegra210_bpmp_init
	.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, %r13
	movl	48(%rdi), %edi
	callq	_to_platform_device
	movq	%rax, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %r12
	movq	%rax, 40(%r13)
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movq	%rax, 16(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	16(%r12), %rdi
	jmp	LBB0_7
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_4:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_platform_get_resource
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movq	%rax, 8(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	8(%r12), %rdi
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_8:
	movq	8(%r13), %rax
	movq	32(%r13), %rdi
	movl	8(%rax), %edx
	movq	%r13, %rsi
	callq	_tegra210_bpmp_channel_init
	testl	%eax, %eax
	js	LBB0_19
## %bb.9:
	movq	8(%r13), %rax
	movq	24(%r13), %rdi
	movl	4(%rax), %edx
	movq	%r13, %rsi
	callq	_tegra210_bpmp_channel_init
	testl	%eax, %eax
	js	LBB0_19
## %bb.10:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	cmpl	$0, 16(%r13)
	je	LBB0_14
## %bb.11:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rax
	movl	(%rax), %edx
	addl	%r14d, %edx
	movq	(%r13), %rdi
	addq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_tegra210_bpmp_channel_init
	testl	%eax, %eax
	js	LBB0_19
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	incq	%r14
	movl	16(%r13), %eax
	addq	$4, %rbx
	cmpq	%rax, %r14
	jb	LBB0_12
LBB0_14:
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_platform_get_irq_byname
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_22
## %bb.15:
	movl	%r15d, %edi
	callq	_irq_get_irq_data
	movl	%eax, (%r12)
	testl	%eax, %eax
	je	LBB0_23
## %bb.16:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_platform_get_irq_byname
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_24
## %bb.17:
	movq	_rx_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_IRQF_NO_SUSPEND@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	callq	_dev_name
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	movl	%r14d, %ecx
	movl	%eax, %r8d
	movq	%r13, %r9
	callq	_devm_request_irq
	xorl	%r15d, %r15d
	testl	%eax, %eax
	jns	LBB0_4
## %bb.18:
	movl	%eax, %r14d
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movl	%r14d, %r15d
	jmp	LBB0_4
LBB0_19:
	movl	%eax, %r15d
	jmp	LBB0_4
LBB0_22:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_25
LBB0_23:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_4
LBB0_24:
	leaq	L_.str.4(%rip), %rsi
LBB0_25:
	movq	%rbx, %rdi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tx"

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

L_.str.2:                               ## @.str.2
	.asciz	"failed to get IRQ data for TX IRQ\n"

L_.str.3:                               ## @.str.3
	.asciz	"rx"

L_.str.4:                               ## @.str.4
	.asciz	"failed to get rx IRQ: %d\n"

	.comm	_rx_irq,4,2                     ## @rx_irq
	.comm	_IRQF_NO_SUSPEND,4,2            ## @IRQF_NO_SUSPEND
L_.str.5:                               ## @.str.5
	.asciz	"failed to request IRQ: %d\n"

	.no_dead_strip	_tegra210_bpmp_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tegra210_bpmp_init
_tegra210_bpmp_init:                    ; @tegra210_bpmp_init
	.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	x20, x0
	ldr	w0, [x0, #48]
	bl	_to_platform_device
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	str	x0, [x20, #40]
Lloh3:
	adrp	x22, _IORESOURCE_MEM@GOTPAGE
Lloh4:
	ldr	x22, [x22, _IORESOURCE_MEM@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	mov	x1, x0
	mov	x0, x19
	bl	_devm_ioremap_resource
	str	x0, [x21, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.2:
	ldr	x0, [x21, #16]
	b	LBB0_7
LBB0_3:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_4:
	mov	x0, x22
	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
LBB0_5:
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #1
	bl	_platform_get_resource
	mov	x1, x0
	mov	x0, x19
	bl	_devm_ioremap_resource
	str	x0, [x21, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.6:
	ldr	x0, [x21, #8]
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
	b	_PTR_ERR
LBB0_8:
	ldr	x0, [x20, #32]
	ldr	x8, [x20, #8]
	ldr	w2, [x8, #8]
	mov	x1, x20
	bl	_tegra210_bpmp_channel_init
	tbnz	w0, #31, LBB0_19
; %bb.9:
	ldr	x0, [x20, #24]
	ldr	x8, [x20, #8]
	ldr	w2, [x8, #4]
	mov	x1, x20
	bl	_tegra210_bpmp_channel_init
	tbnz	w0, #31, LBB0_19
; %bb.10:
	ldr	w8, [x20, #16]
	cbz	w8, LBB0_14
; %bb.11:
	mov	x23, #0
	mov	x24, #0
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldp	x9, x8, [x20]
	ldr	w8, [x8]
	add	w2, w24, w8
	add	x0, x9, x23
	mov	x1, x20
	bl	_tegra210_bpmp_channel_init
	tbnz	w0, #31, LBB0_19
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x24, x24, #1
	ldr	w8, [x20, #16]
	add	x23, x23, #4
	cmp	x24, x8
	b.lo	LBB0_12
LBB0_14:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_platform_get_irq_byname
	mov	x22, x0
	tbnz	w0, #31, LBB0_20
; %bb.15:
	mov	x0, x22
	bl	_irq_get_irq_data
	str	w0, [x21]
	cbz	w0, LBB0_21
; %bb.16:
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_platform_get_irq_byname
	mov	x22, x0
	tbnz	w0, #31, LBB0_22
; %bb.17:
Lloh12:
	adrp	x8, _rx_irq@GOTPAGE
Lloh13:
	ldr	x8, [x8, _rx_irq@GOTPAGEOFF]
Lloh14:
	ldr	w21, [x8]
Lloh15:
	adrp	x8, _IRQF_NO_SUSPEND@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IRQF_NO_SUSPEND@GOTPAGEOFF]
Lloh17:
	ldr	w23, [x8]
	mov	x0, x19
	bl	_dev_name
	mov	x4, x0
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	mov	x3, x23
	mov	x5, x20
	bl	_devm_request_irq
	tbnz	w0, #31, LBB0_24
; %bb.18:
	mov	w22, #0
	b	LBB0_4
LBB0_19:
	mov	x22, x0
	b	LBB0_4
LBB0_20:
	str	x22, [sp]
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_23
LBB0_21:
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_23
LBB0_22:
	mov	x8, x22
	str	x8, [sp]
Lloh22:
	adrp	x1, l_.str.4@PAGE
Lloh23:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_23:
	mov	x0, x19
	bl	_dev_err
	b	LBB0_4
LBB0_24:
	mov	x22, x0
	str	x22, [sp]
Lloh24:
	adrp	x1, l_.str.5@PAGE
Lloh25:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_err
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tx"

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

l_.str.2:                               ; @.str.2
	.asciz	"failed to get IRQ data for TX IRQ\n"

l_.str.3:                               ; @.str.3
	.asciz	"rx"

l_.str.4:                               ; @.str.4
	.asciz	"failed to get rx IRQ: %d\n"

	.comm	_rx_irq,4,2                     ; @rx_irq
	.comm	_IRQF_NO_SUSPEND,4,2            ; @IRQF_NO_SUSPEND
l_.str.5:                               ; @.str.5
	.asciz	"failed to request IRQ: %d\n"

	.no_dead_strip	_tegra210_bpmp_init
.subsections_via_symbols
