	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra_hsp_doorbell_create
_tegra_hsp_doorbell_create:             ## @tegra_hsp_doorbell_create
	.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
	movl	%ecx, %r14d
	movl	%edx, %r15d
	movq	%rsi, %r13
	movq	%rdi, %r12
	movl	20(%rdi), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$32, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	movl	(%r12), %eax
	movl	8(%r12), %ecx
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
	addl	4(%r12), %edx
	leal	(%rcx,%rdx), %eax
	incl	%eax
	movq	_SZ_64K@GOTPCREL(%rip), %rcx
	imull	(%rcx), %eax
	movl	%r14d, %ecx
	shll	$8, %ecx
	addl	%eax, %ecx
	addq	24(%r12), %rcx
	leaq	8(%rbx), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rcx, 16(%rbx)
	movq	%r12, 8(%rbx)
	movl	20(%r12), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rsi
	callq	_devm_kstrdup_const
	movl	%eax, 28(%rbx)
	movl	%r15d, (%rbx)
	movl	%r14d, 4(%rbx)
	leaq	12(%r12), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	addq	$24, %rbx
	addq	$16, %r12
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_list_add_tail
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_SZ_64K,4,2                     ## @SZ_64K
	.no_dead_strip	_tegra_hsp_doorbell_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tegra_hsp_doorbell_create
_tegra_hsp_doorbell_create:             ; @tegra_hsp_doorbell_create
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x3
	mov	x21, x2
	mov	x23, x1
	mov	x19, x0
	ldr	w0, [x0, #20]
Lloh0:
	adrp	x25, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x25, [x25, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x25]
	mov	w1, #32
	bl	_devm_kzalloc
	cbz	x0, LBB0_2
; %bb.1:
	mov	x22, x0
	ldp	w8, w9, [x19]
	cmp	w8, #0
	cinc	w8, w8, lt
	add	w8, w9, w8, asr #1
	ldr	w9, [x19, #8]
Lloh2:
	adrp	x10, _SZ_64K@GOTPAGE
Lloh3:
	ldr	x10, [x10, _SZ_64K@GOTPAGEOFF]
	add	w8, w8, w9
Lloh4:
	ldr	w9, [x10]
	madd	w8, w9, w8, w9
	add	w8, w8, w20, lsl #8
	ldr	x9, [x19, #24]
	add	x8, x9, x8
	str	x8, [x0, #16]
	mov	x24, x0
	str	x19, [x24, #8]!
	ldr	w0, [x19, #20]
	ldr	w2, [x25]
	mov	x1, x23
	bl	_devm_kstrdup_const
	str	w0, [x22, #28]
	stp	w21, w20, [x22]
	add	x20, x19, #12
	mov	x0, x20
	bl	_spin_lock_irqsave
	add	x0, x22, #24
	add	x1, x19, #16
	bl	_list_add_tail
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	mov	x0, x24
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_ERR_PTR
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_SZ_64K,4,2                     ; @SZ_64K
	.no_dead_strip	_tegra_hsp_doorbell_create
.subsections_via_symbols
