	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tegra_bpmp_init_debugfs        ## -- Begin function tegra_bpmp_init_debugfs
	.p2align	4, 0x90
_tegra_bpmp_init_debugfs:               ## @tegra_bpmp_init_debugfs
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	_SZ_256K@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_MRQ_DEBUGFS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_tegra_bpmp_mrq_is_supported
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_debugfs_create_dir
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r14
	movl	(%r12), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movq	_GFP_DMA32@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	leaq	-44(%rbp), %rdx
	movq	%r15, %rsi
	callq	_dma_alloc_coherent
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r13
	movl	-44(%rbp), %esi
	leaq	-56(%rbp), %rcx
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	_mrq_debugfs_dumpdir
	testl	%eax, %eax
	js	LBB0_8
## %bb.7:
	movq	-56(%rbp), %rdx
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%r14, %rcx
	callq	_create_debugfs_mirror
LBB0_8:
	movl	%eax, %ebx
	movl	(%r12), %edi
	movl	-44(%rbp), %ecx
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_dma_free_coherent
	testl	%ebx, %ebx
	jns	LBB0_11
	jmp	LBB0_10
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	testl	%ebx, %ebx
	jns	LBB0_11
LBB0_10:
	movq	%r14, %rdi
	callq	_debugfs_remove
LBB0_11:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SZ_256K,8,3                    ## @SZ_256K
	.comm	_MRQ_DEBUGFS,4,2                ## @MRQ_DEBUGFS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bpmp"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_GFP_DMA32,4,2                  ## @GFP_DMA32
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tegra_bpmp_init_debugfs        ; -- Begin function tegra_bpmp_init_debugfs
	.p2align	2
_tegra_bpmp_init_debugfs:               ; @tegra_bpmp_init_debugfs
	.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	x21, x0
Lloh0:
	adrp	x8, _SZ_256K@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SZ_256K@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
Lloh3:
	adrp	x8, _MRQ_DEBUGFS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MRQ_DEBUGFS@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_tegra_bpmp_mrq_is_supported
	cbz	w0, LBB0_6
; %bb.1:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, #0
	bl	_debugfs_create_dir
	cbz	x0, LBB0_7
; %bb.2:
	mov	x19, x0
Lloh8:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _GFP_DMA32@GOTPAGE
Lloh12:
	ldr	x9, [x9, _GFP_DMA32@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w3, w9, w8
	add	x2, sp, #12
	mov	x1, x20
	bl	_dma_alloc_coherent
	cbz	x0, LBB0_8
; %bb.3:
	mov	x23, x0
	ldr	w1, [sp, #12]
	mov	x3, sp
	mov	x0, x21
	mov	x2, x20
	bl	_mrq_debugfs_dumpdir
	tbnz	w0, #31, LBB0_5
; %bb.4:
	ldr	x2, [sp]
	mov	x0, x21
	mov	x1, x23
	mov	x3, x19
	bl	_create_debugfs_mirror
LBB0_5:
	mov	x22, x0
	ldr	w0, [x21]
	ldr	w3, [sp, #12]
	mov	x1, x20
	mov	x2, x23
	bl	_dma_free_coherent
	tbz	w22, #31, LBB0_10
	b	LBB0_9
LBB0_6:
	mov	w22, #0
	b	LBB0_10
LBB0_7:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_10
LBB0_8:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w22, w8
	tbz	w22, #31, LBB0_10
LBB0_9:
	mov	x0, x19
	bl	_debugfs_remove
LBB0_10:
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_SZ_256K,8,3                    ; @SZ_256K
	.comm	_MRQ_DEBUGFS,4,2                ; @MRQ_DEBUGFS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bpmp"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_GFP_DMA32,4,2                  ; @GFP_DMA32
.subsections_via_symbols
