	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %ebx
	cmpl	$2, %edi
	jne	LBB0_3
## %bb.1:
	movq	8(%rsi), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	_nodaemon@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_3:
	movq	_nodaemon@GOTPCREL(%rip), %r14
	cmpl	$1, %ebx
	je	LBB0_6
## %bb.4:
	cmpl	$0, (%r14)
	jne	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	callq	_usage
LBB0_6:
	xorl	%eax, %eax
	callq	_geteuid
	testq	%rax, %rax
	jne	LBB0_11
## %bb.7:
	leaq	L_.str.1(%rip), %rdi
	callq	_getpwnam
	testq	%rax, %rax
	jne	LBB0_8
## %bb.9:
	xorl	%eax, %eax
	callq	_getuid
	movl	%eax, %edi
	jmp	LBB0_10
LBB0_8:
	movl	(%rax), %edi
LBB0_10:
	callq	_setuid
LBB0_11:
	movl	$4, -20(%rbp)
	leaq	-24(%rbp), %rsi
	leaq	-20(%rbp), %rdx
	xorl	%edi, %edi
	callq	_getsockname
	testq	%rax, %rax
	jns	LBB0_13
## %bb.12:
	movq	_from_inetd@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	jmp	LBB0_14
LBB0_13:
	movq	_from_inetd@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_17
LBB0_14:
	cmpl	$0, (%r14)
	jne	LBB0_16
## %bb.15:
	xorl	%eax, %eax
	callq	_possess
LBB0_16:
	movq	_WALLPROG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_WALLVERS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_rpcb_unset
LBB0_17:
	movq	_SIGCHLD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_killkids@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_signal
	movq	_LOG_CONS@GOTPCREL(%rip), %rax
	movq	_LOG_PID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_LOG_DAEMON@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rdi
	callq	_openlog
	movq	_from_inetd@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	jne	LBB0_18
## %bb.22:
	movq	_wallprog_1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_WALLPROG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_WALLVERS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.4(%rip), %rcx
	callq	_svc_create
	testl	%eax, %eax
	jne	LBB0_24
LBB0_25:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	cmpq	$0, (%rbx)
	leaq	L_.str.4(%rip), %rax
	leaq	L_.str.6(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_syslog
	movl	$1, %edi
	callq	_exit
LBB0_18:
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_svc_tli_create
	testq	%rax, %rax
	jne	LBB0_21
## %bb.19:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_20
LBB0_21:
	movq	_WALLPROG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_WALLVERS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_wallprog_1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%rax, %rdi
	xorl	%r8d, %r8d
	callq	_svc_reg
	testl	%eax, %eax
	je	LBB0_25
LBB0_24:
	xorl	%eax, %eax
	callq	_svc_run
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.7(%rip), %rsi
LBB0_20:
	xorl	%eax, %eax
	callq	_syslog
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"-n"

	.comm	_nodaemon,4,2                   ## @nodaemon
L_.str.1:                               ## @.str.1
	.asciz	"nobody"

	.comm	_from_inetd,8,3                 ## @from_inetd
	.comm	_WALLPROG,4,2                   ## @WALLPROG
	.comm	_WALLVERS,4,2                   ## @WALLVERS
	.comm	_SIGCHLD,4,2                    ## @SIGCHLD
	.comm	_killkids,4,2                   ## @killkids
L_.str.2:                               ## @.str.2
	.asciz	"rpc.rwalld"

	.comm	_LOG_CONS,4,2                   ## @LOG_CONS
	.comm	_LOG_PID,4,2                    ## @LOG_PID
	.comm	_LOG_DAEMON,4,2                 ## @LOG_DAEMON
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
L_.str.3:                               ## @.str.3
	.asciz	"couldn't create udp service."

	.comm	_wallprog_1,4,2                 ## @wallprog_1
L_.str.4:                               ## @.str.4
	.asciz	"udp"

L_.str.5:                               ## @.str.5
	.asciz	"unable to register (WALLPROG, WALLVERS, %s)"

L_.str.6:                               ## @.str.6
	.asciz	"(inetd)"

L_.str.7:                               ## @.str.7
	.asciz	"svc_run returned"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.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	x19, x0
Lloh0:
	adrp	x20, _nodaemon@GOTPAGE
Lloh1:
	ldr	x20, [x20, _nodaemon@GOTPAGEOFF]
	cmp	w0, #2
	b.ne	LBB0_3
; %bb.1:
	ldr	x0, [x1, #8]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbnz	w0, LBB0_3
; %bb.2:
	mov	w8, #1
	str	w8, [x20]
LBB0_3:
	cmp	w19, #1
	b.eq	LBB0_6
; %bb.4:
	ldr	w8, [x20]
	cbnz	w8, LBB0_6
; %bb.5:
	bl	_usage
LBB0_6:
	bl	_geteuid
	cbnz	x0, LBB0_11
; %bb.7:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_getpwnam
	cbnz	x0, LBB0_9
; %bb.8:
	bl	_getuid
	b	LBB0_10
LBB0_9:
	ldr	w0, [x0]
LBB0_10:
	bl	_setuid
LBB0_11:
	mov	w8, #4
	str	w8, [sp, #12]
	add	x1, sp, #8
	add	x2, sp, #12
	mov	w0, #0
	bl	_getsockname
Lloh6:
	adrp	x19, _from_inetd@GOTPAGE
Lloh7:
	ldr	x19, [x19, _from_inetd@GOTPAGEOFF]
Lloh8:
	adrp	x22, _WALLPROG@GOTPAGE
Lloh9:
	ldr	x22, [x22, _WALLPROG@GOTPAGEOFF]
Lloh10:
	adrp	x21, _WALLVERS@GOTPAGE
Lloh11:
	ldr	x21, [x21, _WALLVERS@GOTPAGEOFF]
	tbz	x0, #63, LBB0_13
; %bb.12:
	str	xzr, [x19]
	b	LBB0_14
LBB0_13:
	ldr	x8, [x19]
	cbnz	x8, LBB0_17
LBB0_14:
	ldr	w8, [x20]
	cbnz	w8, LBB0_16
; %bb.15:
	bl	_possess
LBB0_16:
	ldr	w0, [x22]
	ldr	w1, [x21]
	mov	x2, #0
	bl	_rpcb_unset
LBB0_17:
Lloh12:
	adrp	x8, _SIGCHLD@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SIGCHLD@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x8, _killkids@GOTPAGE
Lloh16:
	ldr	x8, [x8, _killkids@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_signal
Lloh18:
	adrp	x8, _LOG_CONS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _LOG_CONS@GOTPAGEOFF]
Lloh20:
	adrp	x9, _LOG_PID@GOTPAGE
Lloh21:
	ldr	x9, [x9, _LOG_PID@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	ldr	w9, [x9]
	orr	w1, w9, w8
Lloh24:
	adrp	x8, _LOG_DAEMON@GOTPAGE
Lloh25:
	ldr	x8, [x8, _LOG_DAEMON@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
Lloh27:
	adrp	x0, l_.str.2@PAGE
Lloh28:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_openlog
	ldr	x8, [x19]
	cbnz	x8, LBB0_20
; %bb.18:
Lloh29:
	adrp	x8, _wallprog_1@GOTPAGE
Lloh30:
	ldr	x8, [x8, _wallprog_1@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	ldr	w1, [x22]
	ldr	w2, [x21]
Lloh32:
	adrp	x3, l_.str.4@PAGE
Lloh33:
	add	x3, x3, l_.str.4@PAGEOFF
	bl	_svc_create
	cbnz	w0, LBB0_23
LBB0_19:
Lloh34:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh35:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
	ldr	x8, [x19]
Lloh37:
	adrp	x9, l_.str.6@PAGE
Lloh38:
	add	x9, x9, l_.str.6@PAGEOFF
Lloh39:
	adrp	x10, l_.str.4@PAGE
Lloh40:
	add	x10, x10, l_.str.4@PAGEOFF
	cmp	x8, #0
	csel	x8, x10, x9, eq
	str	x8, [sp]
Lloh41:
	adrp	x1, l_.str.5@PAGE
Lloh42:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_24
LBB0_20:
	mov	w0, #0
	mov	x1, #0
	mov	x2, #0
	mov	w3, #0
	mov	w4, #0
	bl	_svc_tli_create
	cbnz	x0, LBB0_22
; %bb.21:
Lloh43:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh44:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh45:
	ldr	w0, [x8]
Lloh46:
	adrp	x1, l_.str.3@PAGE
Lloh47:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_24
LBB0_22:
	ldr	w1, [x22]
	ldr	w2, [x21]
Lloh48:
	adrp	x8, _wallprog_1@GOTPAGE
Lloh49:
	ldr	x8, [x8, _wallprog_1@GOTPAGEOFF]
Lloh50:
	ldr	w3, [x8]
	mov	x4, #0
	bl	_svc_reg
	cbz	w0, LBB0_19
LBB0_23:
	bl	_svc_run
Lloh51:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh52:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh53:
	ldr	w0, [x8]
Lloh54:
	adrp	x1, l_.str.7@PAGE
Lloh55:
	add	x1, x1, l_.str.7@PAGEOFF
LBB0_24:
	bl	_syslog
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh22
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"-n"

	.comm	_nodaemon,4,2                   ; @nodaemon
l_.str.1:                               ; @.str.1
	.asciz	"nobody"

	.comm	_from_inetd,8,3                 ; @from_inetd
	.comm	_WALLPROG,4,2                   ; @WALLPROG
	.comm	_WALLVERS,4,2                   ; @WALLVERS
	.comm	_SIGCHLD,4,2                    ; @SIGCHLD
	.comm	_killkids,4,2                   ; @killkids
l_.str.2:                               ; @.str.2
	.asciz	"rpc.rwalld"

	.comm	_LOG_CONS,4,2                   ; @LOG_CONS
	.comm	_LOG_PID,4,2                    ; @LOG_PID
	.comm	_LOG_DAEMON,4,2                 ; @LOG_DAEMON
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
l_.str.3:                               ; @.str.3
	.asciz	"couldn't create udp service."

	.comm	_wallprog_1,4,2                 ; @wallprog_1
l_.str.4:                               ; @.str.4
	.asciz	"udp"

l_.str.5:                               ; @.str.5
	.asciz	"unable to register (WALLPROG, WALLVERS, %s)"

l_.str.6:                               ; @.str.6
	.asciz	"(inetd)"

l_.str.7:                               ; @.str.7
	.asciz	"svc_run returned"

.subsections_via_symbols
