	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rpc_call                       ## -- Begin function rpc_call
	.p2align	4, 0x90
_rpc_call:                              ## @rpc_call
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r15
	movq	%r8, %rbx
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	movl	%edx, %r14d
	movl	%esi, %r13d
	movq	%rdi, %r12
	callq	_rpc_getport
	movl	$-1, %ecx
	cmpl	$-1, %eax
	je	LBB0_8
## %bb.1:
	movl	%eax, %edi
	callq	_htons
	movl	%eax, (%r12)
	movq	_RPCAUTH_NULL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htonl
	movq	%rax, -8(%rbx)
	movq	$0, -16(%rbx)
	leaq	-20(%rbx), %rdi
	movl	$4, %esi
	callq	_bzero
	movq	_RPCAUTH_UNIX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htonl
	movq	%rax, -28(%rbx)
	movl	$4, %edi
	callq	_htonl
	movq	%rax, -36(%rbx)
	leaq	-84(%rbx), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	_rpc_xid@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	incl	%edi
	movl	%edi, (%rax)
	callq	_htonl
	movq	%rax, -44(%rbx)
	movq	_RPC_CALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htonl
	movq	%rax, -52(%rbx)
	movq	_RPC_VER2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htonl
	movq	%rax, -60(%rbx)
	movl	%r13d, %edi
	callq	_htonl
	movq	%rax, -68(%rbx)
	movl	%r14d, %edi
	callq	_htonl
	movq	%rax, -76(%rbx)
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	callq	_htonl
	movq	%rax, -84(%rbx)
	movq	$0, -48(%rbp)
	movq	_sendudp@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	$84, %r15d
	movq	_recvrpc@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-56(%rbp), %rax
	leaq	-48(%rbp), %r9
	movq	%r12, %rdi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	%r15d, %ecx
	pushq	$0
	pushq	%rax
	callq	_sendrecv
	addq	$16, %rsp
	cmpl	$-1, %eax
	je	LBB0_7
## %bb.2:
	movl	%eax, %ebx
	cmpl	$24, %eax
	jbe	LBB0_6
## %bb.3:
	movq	-56(%rbp), %rax
	movq	8(%rax), %rdi
	callq	_ntohl
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	movq	-56(%rbp), %rax
	movq	(%rax), %rdi
	callq	_ntohl
	testl	%eax, %eax
	je	LBB0_9
## %bb.5:
	movslq	%eax, %rsi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
LBB0_6:
	movq	_EBADRPC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	-48(%rbp), %rdi
	callq	_free
LBB0_7:
	movl	$-1, %ecx
LBB0_8:
	movl	%ecx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	24(%rbp), %rax
	movq	16(%rbp), %rcx
	addl	$-24, %ebx
	movq	-56(%rbp), %rdx
	addq	$24, %rdx
	movq	%rdx, (%rcx)
	movq	-48(%rbp), %rcx
	movq	%rcx, (%rax)
	movl	%ebx, %ecx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_RPCAUTH_NULL,4,2               ## @RPCAUTH_NULL
	.comm	_RPCAUTH_UNIX,4,2               ## @RPCAUTH_UNIX
	.comm	_rpc_xid,4,2                    ## @rpc_xid
	.comm	_RPC_CALL,4,2                   ## @RPC_CALL
	.comm	_RPC_VER2,4,2                   ## @RPC_VER2
	.comm	_sendudp,4,2                    ## @sendudp
	.comm	_recvrpc,4,2                    ## @recvrpc
	.comm	_EBADRPC,4,2                    ## @EBADRPC
	.comm	_errno,4,2                      ## @errno
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"callrpc: error = %ld\n"

	.comm	_debug,8,3                      ## @debug
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rpc_call                       ; -- Begin function rpc_call
	.p2align	2
_rpc_call:                              ; @rpc_call
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x7
	mov	x20, x6
	mov	x23, x5
	mov	x21, x4
	mov	x24, x3
	mov	x25, x2
	mov	x26, x1
	mov	x22, x0
	bl	_rpc_getport
	cmn	w0, #1
	b.eq	LBB0_7
; %bb.1:
	bl	_htons
	str	w0, [x22]
Lloh0:
	adrp	x8, _RPCAUTH_NULL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RPCAUTH_NULL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_htonl
	stp	xzr, x0, [x21, #-16]
	sub	x0, x21, #20
	mov	w1, #4
	bl	_bzero
Lloh3:
	adrp	x8, _RPCAUTH_UNIX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RPCAUTH_UNIX@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_htonl
	stur	x0, [x21, #-28]
	mov	w0, #4
	bl	_htonl
	stur	x0, [x21, #-36]
Lloh6:
	adrp	x8, _rpc_xid@GOTPAGE
Lloh7:
	ldr	x8, [x8, _rpc_xid@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w0, w9, #1
	str	w0, [x8]
	bl	_htonl
	stur	x0, [x21, #-44]
Lloh8:
	adrp	x8, _RPC_CALL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RPC_CALL@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_htonl
	stur	x0, [x21, #-52]
Lloh11:
	adrp	x8, _RPC_VER2@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RPC_VER2@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_htonl
	stur	x0, [x21, #-60]
	mov	x0, x26
	bl	_htonl
	stur	x0, [x21, #-68]
	mov	x0, x25
	bl	_htonl
	stur	x0, [x21, #-76]
	mov	x0, x24
	bl	_htonl
	str	x0, [x21, #-84]!
Lloh14:
	adrp	x8, _sendudp@GOTPAGE
Lloh15:
	ldr	x8, [x8, _sendudp@GOTPAGEOFF]
	str	xzr, [sp, #16]
Lloh16:
	ldr	w1, [x8]
	add	w3, w23, #84
Lloh17:
	adrp	x8, _recvrpc@GOTPAGE
Lloh18:
	ldr	x8, [x8, _recvrpc@GOTPAGEOFF]
Lloh19:
	ldr	w4, [x8]
	add	x5, sp, #16
	add	x6, sp, #24
	mov	x0, x22
	mov	x2, x21
	mov	x7, #0
	bl	_sendrecv
	cmn	w0, #1
	b.eq	LBB0_7
; %bb.2:
	subs	w21, w0, #24
	b.ls	LBB0_6
; %bb.3:
	ldr	x8, [sp, #24]
	ldr	x0, [x8, #8]
	bl	_ntohl
	cbnz	w0, LBB0_6
; %bb.4:
	ldr	x8, [sp, #24]
	ldr	x0, [x8]
	bl	_ntohl
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_9
; %bb.5:
	sxtw	x8, w0
	str	x8, [sp]
Lloh20:
	adrp	x0, l_.str@PAGE
Lloh21:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
LBB0_6:
Lloh22:
	adrp	x8, _EBADRPC@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EBADRPC@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _errno@GOTPAGE
Lloh26:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh27:
	str	w8, [x9]
	ldr	x0, [sp, #16]
	bl	_free
LBB0_7:
	mov	w21, #-1
LBB0_8:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_9:
	ldr	x8, [sp, #24]
	add	x8, x8, #24
	str	x8, [x20]
	ldr	x8, [sp, #16]
	str	x8, [x19]
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotStr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_RPCAUTH_NULL,4,2               ; @RPCAUTH_NULL
	.comm	_RPCAUTH_UNIX,4,2               ; @RPCAUTH_UNIX
	.comm	_rpc_xid,4,2                    ; @rpc_xid
	.comm	_RPC_CALL,4,2                   ; @RPC_CALL
	.comm	_RPC_VER2,4,2                   ; @RPC_VER2
	.comm	_sendudp,4,2                    ; @sendudp
	.comm	_recvrpc,4,2                    ; @recvrpc
	.comm	_EBADRPC,4,2                    ; @EBADRPC
	.comm	_errno,4,2                      ; @errno
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"callrpc: error = %ld\n"

	.comm	_debug,8,3                      ; @debug
.subsections_via_symbols
