	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __pmap_getport
___pmap_getport:                        ## @__pmap_getport
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	$0, -56(%rbp)
	movl	$-1, -44(%rbp)
	movq	_PMAPPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	movq	%rax, (%r14)
	movq	_PMAPPROG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PMAPVERS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_timeout@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_RPCSMALLMSGSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	%r9d, (%rsp)
	leaq	-44(%rbp), %r8
	movq	%r14, %rdi
	callq	_clntudp_bufcreate
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %rbx
	movq	%r13, -64(%rbp)
	movq	%r12, -72(%rbp)
	movl	%r15d, -80(%rbp)
	movq	$0, -88(%rbp)
	movq	_PMAPPROC_GETPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_xdr_pmap@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_xdr_u_short@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_tottimeout@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	leaq	-88(%rbp), %rcx
	leaq	-56(%rbp), %r9
	movq	%rbx, %rdi
	callq	_CLNT_CALL
	movq	_RPC_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.3:
	cmpq	$0, -56(%rbp)
	jne	LBB0_5
## %bb.4:
	movq	_RPC_PROGNOTREGISTERED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_rpc_createerr@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_5
LBB0_2:
	movq	_RPC_PMAPFAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_rpc_createerr@GOTPCREL(%rip), %rsi
	movl	%eax, (%rsi)
	addq	$4, %rsi
	movq	%rbx, %rdi
	callq	_clnt_geterr
LBB0_5:
	movq	%rbx, %rdi
	callq	_CLNT_DESTROY
LBB0_6:
	movl	-44(%rbp), %edi
	cmpl	$-1, %edi
	je	LBB0_8
## %bb.7:
	callq	_close
LBB0_8:
	movq	$0, (%r14)
	movq	-56(%rbp), %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PMAPPORT,4,2                   ## @PMAPPORT
	.comm	_PMAPPROG,4,2                   ## @PMAPPROG
	.comm	_PMAPVERS,4,2                   ## @PMAPVERS
	.comm	_timeout,4,2                    ## @timeout
	.comm	_RPCSMALLMSGSIZE,4,2            ## @RPCSMALLMSGSIZE
	.comm	_PMAPPROC_GETPORT,4,2           ## @PMAPPROC_GETPORT
	.comm	_xdr_pmap,8,3                   ## @xdr_pmap
	.comm	_xdr_u_short,8,3                ## @xdr_u_short
	.comm	_tottimeout,4,2                 ## @tottimeout
	.comm	_RPC_SUCCESS,8,3                ## @RPC_SUCCESS
	.comm	_RPC_PMAPFAILURE,4,2            ## @RPC_PMAPFAILURE
	.comm	_rpc_createerr,8,2              ## @rpc_createerr
	.comm	_RPC_PROGNOTREGISTERED,4,2      ## @RPC_PROGNOTREGISTERED
	.no_dead_strip	___pmap_getport
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __pmap_getport
___pmap_getport:                        ; @__pmap_getport
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	str	xzr, [sp, #40]
	mov	w8, #-1
	str	w8, [sp, #36]
Lloh0:
	adrp	x8, _PMAPPORT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PMAPPORT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_htons
	str	x0, [x19]
Lloh3:
	adrp	x8, _PMAPPROG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PMAPPROG@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _PMAPVERS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PMAPVERS@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x8, _timeout@GOTPAGE
Lloh10:
	ldr	x8, [x8, _timeout@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
Lloh12:
	adrp	x8, _RPCSMALLMSGSIZE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RPCSMALLMSGSIZE@GOTPAGEOFF]
Lloh14:
	ldr	w5, [x8]
	add	x4, sp, #36
	mov	x0, x19
	mov	x6, x5
	bl	_clntudp_bufcreate
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
	stp	x22, x23, [sp, #16]
	str	w21, [sp, #8]
	str	xzr, [sp]
Lloh15:
	adrp	x8, _PMAPPROC_GETPORT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PMAPPROC_GETPORT@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _xdr_pmap@GOTPAGE
Lloh19:
	ldr	x8, [x8, _xdr_pmap@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
Lloh21:
	adrp	x8, _xdr_u_short@GOTPAGE
Lloh22:
	ldr	x8, [x8, _xdr_u_short@GOTPAGEOFF]
Lloh23:
	ldr	w4, [x8]
Lloh24:
	adrp	x8, _tottimeout@GOTPAGE
Lloh25:
	ldr	x8, [x8, _tottimeout@GOTPAGEOFF]
Lloh26:
	ldr	w6, [x8]
	mov	x3, sp
	add	x5, sp, #40
	bl	_CLNT_CALL
Lloh27:
	adrp	x8, _RPC_SUCCESS@GOTPAGE
Lloh28:
	ldr	x8, [x8, _RPC_SUCCESS@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.2:
	ldr	x8, [sp, #40]
	cbnz	x8, LBB0_5
; %bb.3:
Lloh30:
	adrp	x8, _RPC_PROGNOTREGISTERED@GOTPAGE
Lloh31:
	ldr	x8, [x8, _RPC_PROGNOTREGISTERED@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
Lloh33:
	adrp	x9, _rpc_createerr@GOTPAGE
Lloh34:
	ldr	x9, [x9, _rpc_createerr@GOTPAGEOFF]
Lloh35:
	str	w8, [x9]
	b	LBB0_5
LBB0_4:
Lloh36:
	adrp	x8, _RPC_PMAPFAILURE@GOTPAGE
Lloh37:
	ldr	x8, [x8, _RPC_PMAPFAILURE@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
Lloh39:
	adrp	x1, _rpc_createerr@GOTPAGE
Lloh40:
	ldr	x1, [x1, _rpc_createerr@GOTPAGEOFF]
	str	w8, [x1], #4
	mov	x0, x20
	bl	_clnt_geterr
LBB0_5:
	mov	x0, x20
	bl	_CLNT_DESTROY
LBB0_6:
	ldr	w0, [sp, #36]
	cmn	w0, #1
	b.eq	LBB0_8
; %bb.7:
	bl	_close
LBB0_8:
	str	xzr, [x19]
	ldr	x0, [sp, #40]
	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
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotStr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_PMAPPORT,4,2                   ; @PMAPPORT
	.comm	_PMAPPROG,4,2                   ; @PMAPPROG
	.comm	_PMAPVERS,4,2                   ; @PMAPVERS
	.comm	_timeout,4,2                    ; @timeout
	.comm	_RPCSMALLMSGSIZE,4,2            ; @RPCSMALLMSGSIZE
	.comm	_PMAPPROC_GETPORT,4,2           ; @PMAPPROC_GETPORT
	.comm	_xdr_pmap,8,3                   ; @xdr_pmap
	.comm	_xdr_u_short,8,3                ; @xdr_u_short
	.comm	_tottimeout,4,2                 ; @tottimeout
	.comm	_RPC_SUCCESS,8,3                ; @RPC_SUCCESS
	.comm	_RPC_PMAPFAILURE,4,2            ; @RPC_PMAPFAILURE
	.comm	_rpc_createerr,8,2              ; @rpc_createerr
	.comm	_RPC_PROGNOTREGISTERED,4,2      ; @RPC_PROGNOTREGISTERED
	.no_dead_strip	___pmap_getport
.subsections_via_symbols
