	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_create_rmtcall_fd              ## -- Begin function create_rmtcall_fd
	.p2align	4, 0x90
_create_rmtcall_fd:                     ## @create_rmtcall_fd
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	___rpc_nconf2fd
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.3:
	movl	%eax, %r15d
	movl	%eax, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_svc_tli_create
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	movq	%rax, %r12
	movl	$32, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %rbx
	movq	%r12, 24(%rax)
	movl	8(%r14), %edi
	callq	_strdup
	movl	%eax, 16(%rbx)
	movl	%eax, (%r12)
	movl	%r15d, (%rbx)
	movq	$0, 8(%rbx)
	movq	_rmthead@GOTPCREL(%rip), %rax
	movq	_rmttail@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	addq	$8, %rdx
	cmpq	$0, (%rax)
	cmoveq	%rax, %rdx
	movq	%rbx, (%rdx)
	movq	%rbx, (%rcx)
	movq	_svc_maxfd@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jle	LBB0_10
## %bb.9:
	movl	%r15d, (%rax)
LBB0_10:
	movq	_svc_fdset@GOTPCREL(%rip), %rsi
	movl	%r15d, %edi
	callq	_FD_SET
	jmp	LBB0_11
LBB0_1:
	movq	_debugging@GOTPCREL(%rip), %rax
	movl	$-1, %r15d
	cmpq	$0, (%rax)
	je	LBB0_11
## %bb.2:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rdx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_11
LBB0_4:
	movq	_debugging@GOTPCREL(%rip), %rax
	movl	$-1, %r15d
	cmpq	$0, (%rax)
	je	LBB0_11
## %bb.5:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_11
LBB0_7:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_syslog
	movl	$-1, %r15d
LBB0_11:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_debugging,8,3                  ## @debugging
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"create_rmtcall_fd: couldn't open \"%s\" (errno %d)\n"

	.comm	_errno,4,2                      ## @errno
L_.str.1:                               ## @.str.1
	.asciz	"create_rmtcall_fd: svc_tli_create failed\n"

	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
L_.str.2:                               ## @.str.2
	.asciz	"create_rmtcall_fd: no memory!"

	.comm	_rmthead,8,3                    ## @rmthead
	.comm	_rmttail,8,3                    ## @rmttail
	.comm	_svc_maxfd,4,2                  ## @svc_maxfd
	.comm	_svc_fdset,4,2                  ## @svc_fdset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_create_rmtcall_fd              ; -- Begin function create_rmtcall_fd
	.p2align	2
_create_rmtcall_fd:                     ; @create_rmtcall_fd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x0
	bl	___rpc_nconf2fd
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.1:
	mov	x19, x0
	mov	w1, #0
	mov	x2, #0
	mov	w3, #0
	mov	w4, #0
	bl	_svc_tli_create
	cbz	x0, LBB0_8
; %bb.2:
	mov	x22, x0
	mov	w0, #32
	bl	_malloc
	cbz	x0, LBB0_11
; %bb.3:
	mov	x21, x0
	str	x22, [x0, #24]
	ldr	w0, [x20, #8]
	bl	_strdup
	str	w0, [x21, #16]
	str	w0, [x22]
	str	w19, [x21]
	str	xzr, [x21, #8]
Lloh0:
	adrp	x8, _rmthead@GOTPAGE
Lloh1:
	ldr	x8, [x8, _rmthead@GOTPAGEOFF]
	ldr	x9, [x8]
Lloh2:
	adrp	x10, _rmttail@GOTPAGE
Lloh3:
	ldr	x10, [x10, _rmttail@GOTPAGEOFF]
	ldr	x11, [x10]
	add	x11, x11, #8
	cmp	x9, #0
	csel	x8, x8, x11, eq
	str	x21, [x8]
	str	x21, [x10]
Lloh4:
	adrp	x8, _svc_maxfd@GOTPAGE
Lloh5:
	ldr	x8, [x8, _svc_maxfd@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w19, w9
	b.le	LBB0_5
; %bb.4:
	str	w19, [x8]
LBB0_5:
Lloh6:
	adrp	x1, _svc_fdset@GOTPAGE
Lloh7:
	ldr	x1, [x1, _svc_fdset@GOTPAGEOFF]
	mov	x0, x19
	bl	_FD_SET
	b	LBB0_13
LBB0_6:
Lloh8:
	adrp	x8, _debugging@GOTPAGE
Lloh9:
	ldr	x8, [x8, _debugging@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cbz	x8, LBB0_12
; %bb.7:
Lloh11:
	adrp	x8, _stderr@GOTPAGE
Lloh12:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldr	x8, [x20]
Lloh14:
	adrp	x9, _errno@GOTPAGE
Lloh15:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	stp	x8, x9, [sp]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_10
LBB0_8:
Lloh19:
	adrp	x8, _debugging@GOTPAGE
Lloh20:
	ldr	x8, [x8, _debugging@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	cbz	x8, LBB0_12
; %bb.9:
Lloh22:
	adrp	x8, _stderr@GOTPAGE
Lloh23:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_10:
	bl	_fprintf
	b	LBB0_12
LBB0_11:
Lloh27:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh28:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
Lloh30:
	adrp	x1, l_.str.2@PAGE
Lloh31:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_syslog
LBB0_12:
	mov	w19, #-1
LBB0_13:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_debugging,8,3                  ; @debugging
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"create_rmtcall_fd: couldn't open \"%s\" (errno %d)\n"

	.comm	_errno,4,2                      ; @errno
l_.str.1:                               ; @.str.1
	.asciz	"create_rmtcall_fd: svc_tli_create failed\n"

	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
l_.str.2:                               ; @.str.2
	.asciz	"create_rmtcall_fd: no memory!"

	.comm	_rmthead,8,3                    ; @rmthead
	.comm	_rmttail,8,3                    ; @rmttail
	.comm	_svc_maxfd,4,2                  ; @svc_maxfd
	.comm	_svc_fdset,4,2                  ; @svc_fdset
.subsections_via_symbols
