	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fwd_packet                     ## -- Begin function fwd_packet
	.p2align	4, 0x90
_fwd_packet:                            ## @fwd_packet
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	_amd_state@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_Finishing@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	jge	LBB0_1
## %bb.2:
	movl	%r9d, %r13d
	movq	%rsi, %r15
	movl	%edi, %r14d
	movq	_RPC_XID_MASK@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	andl	%edi, %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	ja	LBB0_3
## %bb.4:
	cltq
	leaq	l_reltable.fwd_packet(%rip), %rcx
	movslq	(%rcx,%rax,4), %rdi
	addq	%rcx, %rdi
	jmp	LBB0_5
LBB0_1:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_18
LBB0_3:
	leaq	L_.str.4(%rip), %rdi
LBB0_5:
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_dlog
	movl	(%r12), %eax
	notl	%eax
	testl	%r14d, %eax
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	je	LBB0_8
## %bb.6:
	movl	%r14d, %edi
	callq	_fwd_locate
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	%rax, %rbx
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_dlog
	movq	%rbx, %rdi
	callq	_fwd_free
	jmp	LBB0_9
LBB0_8:
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_dlog
	xorl	%eax, %eax
	callq	_XID_ALLOC
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_MK_RPC_XID
	movl	%eax, %r14d
LBB0_9:
	xorl	%eax, %eax
	callq	_fwd_alloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	%rax, %r12
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movq	%rax, %r13
	movl	(%r15), %edi
	callq	_ntohl
	movl	%eax, 24(%r12)
	movl	%r14d, (%r12)
	movl	%r14d, %edi
	callq	_htonl
	movl	%eax, (%r15)
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	testq	%r8, %r8
	je	LBB0_12
## %bb.13:
	movq	_fwd_sock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	xorl	%ecx, %ecx
	movl	$8, %r9d
	callq	_sendto
	movq	%rax, %rbx
	movq	_errno@GOTPCREL(%rip), %rax
	sarq	$63, %rbx
	andl	(%rax), %ebx
	jmp	LBB0_14
LBB0_10:
	movq	_ENOBUFS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_18
LBB0_12:
	movq	_AM_ERRNO_HOST_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_14:
	movq	16(%rbp), %rax
	movq	%rax, 16(%r13)
	addq	$8, %r12
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	(%rax), %rax
	movq	%rax, (%r12)
	jmp	LBB0_17
LBB0_16:
	movl	%r12d, %edi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
LBB0_17:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%r13)
LBB0_18:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_amd_state,8,3                  ## @amd_state
	.comm	_Finishing,8,3                  ## @Finishing
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_RPC_XID_MASK,4,2               ## @RPC_XID_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Sending PORTMAP request %#x"

L_.str.1:                               ## @.str.1
	.asciz	"Sending MOUNTD request %#x"

L_.str.2:                               ## @.str.2
	.asciz	"Sending NFS ping %#x"

L_.str.3:                               ## @.str.3
	.asciz	"Sending WebNFS lookup %#x"

L_.str.4:                               ## @.str.4
	.asciz	"UNKNOWN RPC XID %#x"

L_.str.5:                               ## @.str.5
	.asciz	"Discarding earlier rpc fwd handle"

L_.str.6:                               ## @.str.6
	.asciz	"Allocating a new xid..."

	.comm	_ENOBUFS,4,2                    ## @ENOBUFS
	.comm	_AM_ERRNO_HOST_DOWN,4,2         ## @AM_ERRNO_HOST_DOWN
	.comm	_fwd_sock,4,2                   ## @fwd_sock
	.comm	_errno,4,2                      ## @errno
	.comm	_XLOG_ERROR,4,2                 ## @XLOG_ERROR
	.comm	_t_errno,4,2                    ## @t_errno
	.section	__TEXT,__const
	.p2align	2                               ## @reltable.fwd_packet
l_reltable.fwd_packet:
	.long	L_.str.3-l_reltable.fwd_packet
	.long	L_.str-l_reltable.fwd_packet
	.long	L_.str.2-l_reltable.fwd_packet
	.long	L_.str.1-l_reltable.fwd_packet

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fwd_packet                     ; -- Begin function fwd_packet
	.p2align	2
_fwd_packet:                            ; @fwd_packet
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x8, _amd_state@GOTPAGE
Lloh1:
	ldr	x8, [x8, _amd_state@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _Finishing@GOTPAGE
Lloh4:
	ldr	x9, [x9, _Finishing@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_3
; %bb.1:
	mov	x21, x6
	mov	x19, x5
	mov	x20, x4
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	x25, x0
Lloh6:
	adrp	x26, _RPC_XID_MASK@GOTPAGE
Lloh7:
	ldr	x26, [x26, _RPC_XID_MASK@GOTPAGEOFF]
	ldr	w8, [x26]
	and	w8, w8, w0
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_4
; %bb.2:
Lloh8:
	adrp	x9, l_switch.table.fwd_packet@PAGE
Lloh9:
	add	x9, x9, l_switch.table.fwd_packet@PAGEOFF
	ldr	x0, [x9, w8, sxtw #3]
	b	LBB0_5
LBB0_3:
Lloh10:
	adrp	x8, _ENOENT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh12:
	ldr	w22, [x8]
	b	LBB0_18
LBB0_4:
Lloh13:
	adrp	x0, l_.str.4@PAGE
Lloh14:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_5:
	str	x25, [sp]
	bl	_dlog
	ldr	w8, [x26]
	bics	wzr, w25, w8
	b.eq	LBB0_11
; %bb.6:
	mov	x0, x25
	bl	_fwd_locate
	cbz	x0, LBB0_8
; %bb.7:
	mov	x26, x0
Lloh15:
	adrp	x0, l_.str.5@PAGE
Lloh16:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_dlog
	mov	x0, x26
	bl	_fwd_free
LBB0_8:
	bl	_fwd_alloc
	cbz	x0, LBB0_12
LBB0_9:
	mov	x26, x0
	ldr	w0, [x24]
	bl	_ntohl
	str	w0, [x26, #24]
	str	w25, [x26]
	mov	x0, x25
	bl	_htonl
	str	w0, [x24]
	cbz	x22, LBB0_13
; %bb.10:
Lloh17:
	adrp	x8, _fwd_sock@GOTPAGE
Lloh18:
	ldr	x8, [x8, _fwd_sock@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	mov	x1, x24
	mov	x2, x23
	mov	w3, #0
	mov	x4, x22
	mov	w5, #8
	bl	_sendto
Lloh20:
	adrp	x8, _errno@GOTPAGE
Lloh21:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	asr	x9, x0, #63
	and	w22, w9, w8
	b	LBB0_14
LBB0_11:
Lloh23:
	adrp	x0, l_.str.6@PAGE
Lloh24:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_dlog
	bl	_XID_ALLOC
	mov	x1, x0
	mov	x0, x25
	bl	_MK_RPC_XID
	mov	x25, x0
	bl	_fwd_alloc
	cbnz	x0, LBB0_9
LBB0_12:
Lloh25:
	adrp	x8, _ENOBUFS@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENOBUFS@GOTPAGEOFF]
Lloh27:
	ldr	w22, [x8]
	b	LBB0_18
LBB0_13:
Lloh28:
	adrp	x8, _AM_ERRNO_HOST_DOWN@GOTPAGE
Lloh29:
	ldr	x8, [x8, _AM_ERRNO_HOST_DOWN@GOTPAGEOFF]
Lloh30:
	ldr	w22, [x8]
LBB0_14:
	str	x21, [x26, #16]
	add	x0, x26, #8
	cbz	x20, LBB0_16
; %bb.15:
	ldr	x8, [x20]
	str	x8, [x0]
	b	LBB0_17
LBB0_16:
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	w1, #0
	mov	w2, #8
	bl	_memset
LBB0_17:
	str	w19, [x26, #4]
LBB0_18:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_amd_state,8,3                  ; @amd_state
	.comm	_Finishing,8,3                  ; @Finishing
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_RPC_XID_MASK,4,2               ; @RPC_XID_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Sending PORTMAP request %#x"

l_.str.1:                               ; @.str.1
	.asciz	"Sending MOUNTD request %#x"

l_.str.2:                               ; @.str.2
	.asciz	"Sending NFS ping %#x"

l_.str.3:                               ; @.str.3
	.asciz	"Sending WebNFS lookup %#x"

l_.str.4:                               ; @.str.4
	.asciz	"UNKNOWN RPC XID %#x"

l_.str.5:                               ; @.str.5
	.asciz	"Discarding earlier rpc fwd handle"

l_.str.6:                               ; @.str.6
	.asciz	"Allocating a new xid..."

	.comm	_ENOBUFS,4,2                    ; @ENOBUFS
	.comm	_AM_ERRNO_HOST_DOWN,4,2         ; @AM_ERRNO_HOST_DOWN
	.comm	_fwd_sock,4,2                   ; @fwd_sock
	.comm	_errno,4,2                      ; @errno
	.comm	_XLOG_ERROR,4,2                 ; @XLOG_ERROR
	.comm	_t_errno,4,2                    ; @t_errno
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.fwd_packet
l_switch.table.fwd_packet:
	.quad	l_.str.3
	.quad	l_.str
	.quad	l_.str.2
	.quad	l_.str.1

.subsections_via_symbols
