	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bind_tohost
_bind_tohost:                           ## @bind_tohost
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_YPPROG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_YPPROC_NULL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IPPROTO_UDP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	callq	_getrpcport
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movq	%r12, %rdx
	callq	_errx
LBB0_2:
	movl	%ebx, %edi
	callq	_htons
	movl	%eax, %r13d
	leaq	-80(%rbp), %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	leaq	-48(%rbp), %rsi
	movq	%r12, %rdi
	callq	_inet_aton
	testq	%rax, %rax
	jne	LBB0_6
## %bb.3:
	movq	%r12, %rdi
	callq	_gethostbyname
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	movq	%r12, %rdx
	callq	_errx
LBB0_5:
	movl	(%rbx), %esi
	leaq	-48(%rbp), %rdi
	movl	$4, %edx
	callq	_memmove
LBB0_6:
	movq	%r14, -80(%rbp)
	movl	-48(%rbp), %eax
	movl	%eax, -64(%rbp)
	movl	%r13d, -68(%rbp)
	movq	_YPVERS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movl	$15, -96(%rbp)
	movq	$0, -88(%rbp)
	movq	_RPC_ANYSOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movq	_YPBINDPROG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_YPBINDVERS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-52(%rbp), %r9
	movq	%r15, %rdi
	movl	$15, %ecx
	xorl	%r8d, %r8d
	callq	_clntudp_create
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %rbx
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_authunix_create_default
	movl	%eax, (%rbx)
	movq	_YPBINDPROC_SETDOM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_xdr_ypbind_setdom@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_xdr_void@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movups	-96(%rbp), %xmm0
	movups	%xmm0, (%rsp)
	leaq	-80(%rbp), %rcx
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	callq	_clnt_call
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %edi
	callq	_clnt_sperrno
	leaq	L_.str.3(%rip), %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_warnx
	movq	%rbx, %rdi
	callq	_clnt_destroy
	movq	_YPERR_YPBIND@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_11
LBB0_7:
	movq	_YPERR_YPBIND@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_yperr_string
	movslq	%eax, %rsi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_warnx
	movl	(%rbx), %r15d
	jmp	LBB0_11
LBB0_10:
	movq	%rbx, %rdi
	callq	_clnt_destroy
LBB0_11:
	movl	%r15d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_YPPROG,4,2                     ## @YPPROG
	.comm	_YPPROC_NULL,4,2                ## @YPPROC_NULL
	.comm	_IPPROTO_UDP,4,2                ## @IPPROTO_UDP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s not running ypserv"

L_.str.1:                               ## @.str.1
	.asciz	"can't find address for %s"

	.comm	_YPVERS,4,2                     ## @YPVERS
	.comm	_RPC_ANYSOCK,4,2                ## @RPC_ANYSOCK
	.comm	_YPBINDPROG,4,2                 ## @YPBINDPROG
	.comm	_YPBINDVERS,4,2                 ## @YPBINDVERS
L_.str.2:                               ## @.str.2
	.asciz	"can't yp_bind, reason: %s"

	.comm	_YPERR_YPBIND,4,2               ## @YPERR_YPBIND
	.comm	_YPBINDPROC_SETDOM,4,2          ## @YPBINDPROC_SETDOM
	.comm	_xdr_ypbind_setdom,8,3          ## @xdr_ypbind_setdom
	.comm	_xdr_void,8,3                   ## @xdr_void
L_.str.3:                               ## @.str.3
	.asciz	"cannot ypset for domain %s on host %s: %s - make sure ypbind was started with -ypset or -ypsetme"

	.no_dead_strip	_bind_tohost
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bind_tohost
_bind_tohost:                           ; @bind_tohost
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x20, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _YPPROG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _YPPROG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _YPPROC_NULL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _YPPROC_NULL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _IPPROTO_UDP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IPPROTO_UDP@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x0, x20
	bl	_getrpcport
	mov	x22, x0
	cbnz	w0, LBB0_2
; %bb.1:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x20
	bl	_errx
LBB0_2:
	mov	x0, x22
	bl	_htons
	mov	x22, x0
	add	x0, sp, #40
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	add	x1, sp, #32
	mov	x0, x20
	bl	_inet_aton
	cbnz	x0, LBB0_6
; %bb.3:
	mov	x0, x20
	bl	_gethostbyname
	mov	x23, x0
	cbnz	x0, LBB0_5
; %bb.4:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	mov	x2, x20
	bl	_errx
LBB0_5:
	ldr	w1, [x23]
	add	x0, sp, #32
	mov	w2, #4
	bl	_memmove
LBB0_6:
	str	x19, [sp, #40]
	ldr	w8, [sp, #32]
	str	w8, [sp, #56]
Lloh13:
	adrp	x8, _YPVERS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _YPVERS@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	stp	w8, w22, [sp, #48]
Lloh16:
	adrp	x8, _RPC_ANYSOCK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _RPC_ANYSOCK@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [sp, #28]
Lloh19:
	adrp	x8, _YPBINDPROG@GOTPAGE
Lloh20:
	ldr	x8, [x8, _YPBINDPROG@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x8, _YPBINDVERS@GOTPAGE
Lloh23:
	ldr	x8, [x8, _YPBINDVERS@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	add	x5, sp, #28
	mov	x0, x21
	mov	w3, #15
	mov	x4, #0
	bl	_clntudp_create
	cbz	x0, LBB0_9
; %bb.7:
	mov	x21, x0
	bl	_authunix_create_default
	str	w0, [x21]
Lloh25:
	adrp	x8, _YPBINDPROC_SETDOM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _YPBINDPROC_SETDOM@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
Lloh28:
	adrp	x8, _xdr_ypbind_setdom@GOTPAGE
Lloh29:
	ldr	x8, [x8, _xdr_ypbind_setdom@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
Lloh31:
	adrp	x8, _xdr_void@GOTPAGE
Lloh32:
	ldr	x8, [x8, _xdr_void@GOTPAGEOFF]
Lloh33:
	ldr	w4, [x8]
	add	x3, sp, #40
	mov	x0, x21
	mov	x5, #0
	mov	w6, #15
	mov	x7, #0
	bl	_clnt_call
	cbz	w0, LBB0_10
; %bb.8:
	bl	_clnt_sperrno
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x20, x0, [sp]
Lloh34:
	adrp	x0, l_.str.3@PAGE
Lloh35:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x19
	bl	_warnx
	mov	x0, x21
	bl	_clnt_destroy
Lloh36:
	adrp	x8, _YPERR_YPBIND@GOTPAGE
Lloh37:
	ldr	x8, [x8, _YPERR_YPBIND@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
	b	LBB0_11
LBB0_9:
Lloh39:
	adrp	x19, _YPERR_YPBIND@GOTPAGE
Lloh40:
	ldr	x19, [x19, _YPERR_YPBIND@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_yperr_string
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x1, w0
Lloh41:
	adrp	x0, l_.str.2@PAGE
Lloh42:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_warnx
	ldr	w0, [x19]
	b	LBB0_11
LBB0_10:
	mov	x0, x21
	bl	_clnt_destroy
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_YPPROG,4,2                     ; @YPPROG
	.comm	_YPPROC_NULL,4,2                ; @YPPROC_NULL
	.comm	_IPPROTO_UDP,4,2                ; @IPPROTO_UDP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s not running ypserv"

l_.str.1:                               ; @.str.1
	.asciz	"can't find address for %s"

	.comm	_YPVERS,4,2                     ; @YPVERS
	.comm	_RPC_ANYSOCK,4,2                ; @RPC_ANYSOCK
	.comm	_YPBINDPROG,4,2                 ; @YPBINDPROG
	.comm	_YPBINDVERS,4,2                 ; @YPBINDVERS
l_.str.2:                               ; @.str.2
	.asciz	"can't yp_bind, reason: %s"

	.comm	_YPERR_YPBIND,4,2               ; @YPERR_YPBIND
	.comm	_YPBINDPROC_SETDOM,4,2          ; @YPBINDPROC_SETDOM
	.comm	_xdr_ypbind_setdom,8,3          ; @xdr_ypbind_setdom
	.comm	_xdr_void,8,3                   ; @xdr_void
l_.str.3:                               ; @.str.3
	.asciz	"cannot ypset for domain %s on host %s: %s - make sure ypbind was started with -ypset or -ypsetme"

	.no_dead_strip	_bind_tohost
.subsections_via_symbols
