	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ngdwrite
_ngdwrite:                              ## @ngdwrite
	.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
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	js	LBB0_6
## %bb.2:
	movq	_IP_MAXPACKET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_6
## %bb.3:
	movslq	(%rdi), %r14
	movq	_M_NOWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_M_PKTHDR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	xorl	%ebx, %ebx
	movq	%rsi, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_m_uiotombuf
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movl	(%r14), %esi
	xorl	%edi, %edi
	movq	%rax, %rdx
	callq	_NG_SEND_DATA_ONLY
	jmp	LBB0_9
LBB0_5:
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_6:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	movq	_ENOBUFS@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DBG,4,2                        ## @DBG
	.comm	_IP_MAXPACKET,8,3               ## @IP_MAXPACKET
	.comm	_EIO,4,2                        ## @EIO
	.comm	_M_NOWAIT,4,2                   ## @M_NOWAIT
	.comm	_M_PKTHDR,4,2                   ## @M_PKTHDR
	.comm	_ENOBUFS,4,2                    ## @ENOBUFS
	.no_dead_strip	_ngdwrite
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ngdwrite
_ngdwrite:                              ; @ngdwrite
	.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
	ldr	x8, [x1]
	cbz	x8, LBB0_5
; %bb.1:
	tbnz	x8, #63, LBB0_6
; %bb.2:
Lloh0:
	adrp	x9, _IP_MAXPACKET@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IP_MAXPACKET@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.gt	LBB0_6
; %bb.3:
	ldrsw	x19, [x0]
Lloh3:
	adrp	x8, _M_NOWAIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _M_NOWAIT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _M_PKTHDR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _M_PKTHDR@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x9]
	mov	x0, x1
	mov	x1, x8
	mov	w2, #0
	mov	w3, #0
	bl	_m_uiotombuf
	cbz	x0, LBB0_7
; %bb.4:
	mov	x2, x0
	ldr	w1, [x19]
	mov	w0, #0
	bl	_NG_SEND_DATA_ONLY
LBB0_5:
	mov	w0, #0
	b	LBB0_9
LBB0_6:
Lloh9:
	adrp	x8, _EIO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh11:
	adrp	x8, _ENOBUFS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOBUFS@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
LBB0_9:
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_DBG,4,2                        ; @DBG
	.comm	_IP_MAXPACKET,8,3               ; @IP_MAXPACKET
	.comm	_EIO,4,2                        ; @EIO
	.comm	_M_NOWAIT,4,2                   ; @M_NOWAIT
	.comm	_M_PKTHDR,4,2                   ; @M_PKTHDR
	.comm	_ENOBUFS,4,2                    ; @ENOBUFS
	.no_dead_strip	_ngdwrite
.subsections_via_symbols
