	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra_hsp_add_mailboxes
_tegra_hsp_add_mailboxes:               ## @tegra_hsp_add_mailboxes
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rax
	movq	%rdi, %r14
	movl	(%rdi), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%rax, %rdi
	movl	$32, %edx
	callq	_devm_kcalloc
	movq	%rax, 24(%r14)
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movl	(%r14), %edx
	testl	%edx, %edx
	jle	LBB0_2
## %bb.4:
	movq	8(%r14), %rsi
	movq	16(%r14), %r11
	xorl	%r8d, %r8d
	movq	_SZ_64K@GOTPCREL(%rip), %r9
	movq	_SZ_32K@GOTPCREL(%rip), %r10
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, (%rax)
	movq	%r14, 24(%rax)
	movq	(%r9), %rbx
	addq	%r11, %rbx
	movslq	(%r10), %rdi
	movslq	%ecx, %rcx
	imulq	%rcx, %rdi
	addq	%rbx, %rdi
	movq	%rdi, 16(%rax)
	movq	%rsi, 8(%rax)
	movq	%rax, (%rsi)
	incl	%ecx
	addq	$8, %rsi
	addq	$32, %rax
	decq	%rdx
	jne	LBB0_5
	jmp	LBB0_6
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r8d, %r8d
	subl	(%rax), %r8d
	jmp	LBB0_6
LBB0_2:
	xorl	%r8d, %r8d
LBB0_6:
	movl	%r8d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_SZ_64K,8,3                     ## @SZ_64K
	.comm	_SZ_32K,4,2                     ## @SZ_32K
	.no_dead_strip	_tegra_hsp_add_mailboxes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tegra_hsp_add_mailboxes
_tegra_hsp_add_mailboxes:               ; @tegra_hsp_add_mailboxes
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x8, x1
	mov	x19, x0
	ldr	w1, [x0]
Lloh0:
	adrp	x9, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x9]
	mov	x0, x8
	mov	w2, #32
	bl	_devm_kcalloc
	str	x0, [x19, #24]
	cbz	x0, LBB0_5
; %bb.1:
	ldr	w12, [x19]
	cmp	w12, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x8, #0
	mov	w9, #0
	ldp	x11, x10, [x19, #8]
	lsl	x12, x12, #5
Lloh3:
	adrp	x13, _SZ_64K@GOTPAGE
Lloh4:
	ldr	x13, [x13, _SZ_64K@GOTPAGEOFF]
Lloh5:
	adrp	x14, _SZ_32K@GOTPAGE
Lloh6:
	ldr	x14, [x14, _SZ_32K@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x15, x0, x8
	str	w9, [x15]
	str	x19, [x15, #24]
	ldr	x16, [x13]
	add	x16, x16, x10
	ldrsw	x17, [x14]
	sxtw	x1, w9
	madd	x16, x17, x1, x16
	stp	x11, x16, [x15, #8]
	str	x15, [x11], #8
	add	w9, w9, #1
	add	x8, x8, #32
	cmp	x12, x8
	b.ne	LBB0_3
LBB0_4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_SZ_64K,8,3                     ; @SZ_64K
	.comm	_SZ_32K,4,2                     ; @SZ_32K
	.no_dead_strip	_tegra_hsp_add_mailboxes
.subsections_via_symbols
