	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra_hsp_mailbox_send_data
_tegra_hsp_mailbox_send_data:           ## @tegra_hsp_mailbox_send_data
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	(%rdi), %rbx
	movq	8(%rbx), %r14
	xorl	%edi, %edi
	cmpl	$0, 16(%rbx)
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EPERM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_3
LBB0_2:
	leaq	8(%rbx), %rdi
	movq	_HSP_SM_SHRD_MBOX_FULL@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movq	_HSP_SM_SHRD_MBOX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %esi
	callq	_tegra_hsp_channel_writel
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_HSP_INT_EMPTY_SHIFT@GOTPCREL(%rip), %rax
	movq	(%rbx), %rdi
	addq	(%rax), %rdi
	callq	_BIT
	movl	%eax, %ebx
	orl	8(%r14), %ebx
	movl	%ebx, 8(%r14)
	movl	4(%r14), %edi
	callq	_HSP_INT_IE
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_tegra_hsp_writel
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_HSP_SM_SHRD_MBOX_FULL,4,2      ## @HSP_SM_SHRD_MBOX_FULL
	.comm	_HSP_SM_SHRD_MBOX,4,2           ## @HSP_SM_SHRD_MBOX
	.comm	_HSP_INT_EMPTY_SHIFT,8,3        ## @HSP_INT_EMPTY_SHIFT
	.no_dead_strip	_tegra_hsp_mailbox_send_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tegra_hsp_mailbox_send_data
_tegra_hsp_mailbox_send_data:           ; @tegra_hsp_mailbox_send_data
	.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, x1
	ldr	x22, [x0]
	mov	x20, x22
	ldr	x19, [x20, #8]!
	ldr	w8, [x22, #16]
	cmp	w8, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EPERM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _HSP_SM_SHRD_MBOX_FULL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HSP_SM_SHRD_MBOX_FULL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	orr	w1, w8, w21
Lloh6:
	adrp	x8, _HSP_SM_SHRD_MBOX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HSP_SM_SHRD_MBOX@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_tegra_hsp_channel_writel
	mov	x0, x19
	bl	_spin_lock_irqsave
Lloh9:
	adrp	x8, _HSP_INT_EMPTY_SHIFT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HSP_INT_EMPTY_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_BIT
	ldp	w8, w9, [x19, #4]
	orr	w20, w9, w0
	str	w20, [x19, #8]
	mov	x0, x8
	bl	_HSP_INT_IE
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_tegra_hsp_writel
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	w0, #0
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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_HSP_SM_SHRD_MBOX_FULL,4,2      ; @HSP_SM_SHRD_MBOX_FULL
	.comm	_HSP_SM_SHRD_MBOX,4,2           ; @HSP_SM_SHRD_MBOX
	.comm	_HSP_INT_EMPTY_SHIFT,8,3        ; @HSP_INT_EMPTY_SHIFT
	.no_dead_strip	_tegra_hsp_mailbox_send_data
.subsections_via_symbols
