	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra_bpmp_ping
_tegra_bpmp_ping:                       ## @tegra_bpmp_ping
	.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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	leaq	-144(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movl	$1, -144(%rbp)
	leaq	-192(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	leaq	-96(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movq	_MRQ_PING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	%r15, -64(%rbp)
	movl	$48, -72(%rbp)
	movq	%rbx, -80(%rbp)
	movl	$48, -88(%rbp)
	callq	_local_irq_save
	xorl	%eax, %eax
	callq	_ktime_get
	movl	%eax, %r15d
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_tegra_bpmp_transfer_atomic
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_ktime_get
	movl	%eax, %r12d
	callq	_local_irq_restore
	testl	%ebx, %ebx
	jne	LBB0_2
## %bb.1:
	movl	(%r14), %r14d
	movl	-144(%rbp), %r13d
	movl	-188(%rbp), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%r12d, %edi
	movl	%r15d, %esi
	callq	_ktime_sub
	movl	%eax, %edi
	callq	_ktime_to_us
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	movl	%r13d, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%eax, %r8d
	callq	_dev_dbg
LBB0_2:
	movl	%ebx, %eax
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MRQ_PING,4,2                   ## @MRQ_PING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ping ok: challenge: %u, response: %u, time: %lld\n"

	.no_dead_strip	_tegra_bpmp_ping
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tegra_bpmp_ping
_tegra_bpmp_ping:                       ; @tegra_bpmp_ping
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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	x19, x0
	add	x20, sp, #48
	mov	w21, #48
	add	x0, sp, #48
	mov	w1, #0
	mov	w2, #48
	bl	_memset
	mov	w8, #1
	str	w8, [sp, #48]
	add	x22, sp, #96
	add	x0, sp, #96
	mov	w1, #0
	mov	w2, #48
	bl	_memset
	mov	x0, sp
	mov	w1, #0
	mov	w2, #48
	bl	_memset
Lloh0:
	adrp	x8, _MRQ_PING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MRQ_PING@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #40]
	str	x20, [sp, #32]
	str	w21, [sp, #24]
	str	x22, [sp, #16]
	str	w21, [sp, #8]
	bl	_local_irq_save
	bl	_ktime_get
	mov	x21, x0
	mov	x1, sp
	mov	x0, x19
	bl	_tegra_bpmp_transfer_atomic
	mov	x20, x0
	bl	_ktime_get
	mov	x22, x0
	bl	_local_irq_restore
	cbnz	w20, LBB0_2
; %bb.1:
	ldr	w19, [x19]
	ldr	w23, [sp, #48]
	ldr	w24, [sp, #100]
	mov	x0, x22
	mov	x1, x21
	bl	_ktime_sub
	bl	_ktime_to_us
	mov	x4, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x23
	mov	x3, x24
	bl	_dev_dbg
LBB0_2:
	mov	x0, x20
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MRQ_PING,4,2                   ; @MRQ_PING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ping ok: challenge: %u, response: %u, time: %lld\n"

	.no_dead_strip	_tegra_bpmp_ping
.subsections_via_symbols
