	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nv_ntoh                        ## -- Begin function nv_ntoh
	.p2align	4, 0x90
_nv_ntoh:                               ## @nv_ntoh
	.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	%rdi, %r14
	xorl	%edi, %edi
	testq	%r14, %r14
	setne	%dil
	callq	_PJDLOG_ASSERT
	movl	$24, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	movq	$0, 16(%rax)
	movq	%r14, 8(%rax)
	movq	_NV_MAGIC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_nv_validate
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.2:
	movq	-32(%rbp), %rsi
	movq	%r14, %rdi
	callq	_ebuf_del_tail
	jmp	LBB0_6
LBB0_4:
	movq	_errno@GOTPCREL(%rip), %r14
	movl	(%r14), %r15d
	movq	$0, (%rbx)
	movq	%rbx, %rdi
	callq	_free
	movl	%r15d, (%r14)
LBB0_5:
	xorl	%ebx, %ebx
LBB0_6:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NV_MAGIC,8,3                   ## @NV_MAGIC
	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nv_ntoh                        ; -- Begin function nv_ntoh
	.p2align	2
_nv_ntoh:                               ; @nv_ntoh
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_PJDLOG_ASSERT
	mov	w0, #24
	bl	_malloc
	mov	x19, x0
	cbz	x0, LBB0_4
; %bb.1:
	str	xzr, [x19, #16]
Lloh0:
	adrp	x8, _NV_MAGIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NV_MAGIC@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stp	x8, x20, [x19]
	add	x1, sp, #8
	mov	x0, x19
	bl	_nv_validate
	cmn	w0, #1
	b.eq	LBB0_3
; %bb.2:
	ldr	x1, [sp, #8]
	mov	x0, x20
	bl	_ebuf_del_tail
	b	LBB0_4
LBB0_3:
Lloh3:
	adrp	x20, _errno@GOTPAGE
Lloh4:
	ldr	x20, [x20, _errno@GOTPAGEOFF]
	ldr	w21, [x20]
	str	xzr, [x19]
	mov	x0, x19
	bl	_free
	mov	x19, #0
	str	w21, [x20]
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_NV_MAGIC,8,3                   ; @NV_MAGIC
	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
