	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra210_bpmp_channel_init
_tegra210_bpmp_channel_init:            ## @tegra210_bpmp_channel_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	_TRIGGER_ID_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	%edx, %edi
	shll	%cl, %edi
	movq	8(%rsi), %rbx
	movq	_TRIGGER_CMD_GET@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_TRIGGER_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	callq	_writel
	movq	(%rbx), %rbx
	movl	%r15d, %edi
	callq	_RESULT_OFFSET
	addq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_readl
	movl	(%r14), %edi
	movl	%eax, %esi
	movl	$128, %edx
	callq	_devm_ioremap
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, 32(%r12)
	movq	%rax, 24(%r12)
	movl	%r15d, (%r12)
	leaq	16(%r12), %rdi
	callq	_init_completion
	movq	%r14, 8(%r12)
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TRIGGER_ID_SHIFT,4,2           ## @TRIGGER_ID_SHIFT
	.comm	_TRIGGER_CMD_GET,4,2            ## @TRIGGER_CMD_GET
	.comm	_TRIGGER_OFFSET,8,3             ## @TRIGGER_OFFSET
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_tegra210_bpmp_channel_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_channel_init
_tegra210_bpmp_channel_init:            ; @tegra210_bpmp_channel_init
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _TRIGGER_ID_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TRIGGER_ID_SHIFT@GOTPAGEOFF]
	ldr	x22, [x1, #8]
Lloh2:
	ldr	w8, [x8]
	lsl	w8, w2, w8
Lloh3:
	adrp	x9, _TRIGGER_CMD_GET@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TRIGGER_CMD_GET@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w0, w8, w9
	ldr	x8, [x22]
Lloh6:
	adrp	x9, _TRIGGER_OFFSET@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TRIGGER_OFFSET@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x22, [x22]
	mov	x0, x21
	bl	_RESULT_OFFSET
	add	x0, x0, x22
	bl	_readl
	mov	x1, x0
	ldr	w0, [x19]
	mov	w2, #128
	bl	_devm_ioremap
	cbz	x0, LBB0_2
; %bb.1:
	stp	x0, x0, [x20, #24]
	add	x0, x20, #16
	str	w21, [x20]
	bl	_init_completion
	mov	w0, #0
	str	x19, [x20, #8]
	b	LBB0_3
LBB0_2:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_TRIGGER_ID_SHIFT,4,2           ; @TRIGGER_ID_SHIFT
	.comm	_TRIGGER_CMD_GET,4,2            ; @TRIGGER_CMD_GET
	.comm	_TRIGGER_OFFSET,8,3             ; @TRIGGER_OFFSET
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_tegra210_bpmp_channel_init
.subsections_via_symbols
