	.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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$1, %edi
	jle	LBB0_6
## %bb.1:
	movq	%rsi, %r14
	leaq	L_str(%rip), %rdi
	callq	_puts
	movq	_SM_PROG@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_SM_VERS@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	leaq	L_.str.3(%rip), %rdi
	leaq	L_.str.4(%rip), %rcx
	callq	_clnt_create
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	%rax, %rbx
	movq	8(%r14), %rdi
	movq	%rdi, -72(%rbp)
	movq	%rdi, -64(%rbp)
	movl	(%r15), %eax
	movl	%eax, -48(%rbp)
	movl	(%r12), %eax
	movl	%eax, -52(%rbp)
	movl	$1, -56(%rbp)
	leaq	L_.str.6(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	-72(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_sm_mon_1
	jmp	LBB0_5
LBB0_4:
	leaq	-33(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_sm_simu_crash_1
LBB0_5:
	testq	%rax, %rax
	leaq	L_str.12(%rip), %rax
	leaq	L_str.13(%rip), %rdi
	cmoveq	%rax, %rdi
	callq	_puts
	xorl	%eax, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_stderr@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
LBB0_7:
	leaq	L_str.9(%rip), %rdi
	callq	_puts
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"usage: test <hostname> | crash\n"

L_.str.1:                               ## @.str.1
	.asciz	"always talks to statd at localhost\n"

L_.str.3:                               ## @.str.3
	.asciz	"localhost"

	.comm	_SM_PROG,4,2                    ## @SM_PROG
	.comm	_SM_VERS,4,2                    ## @SM_VERS
L_.str.4:                               ## @.str.4
	.asciz	"udp"

L_.str.6:                               ## @.str.6
	.asciz	"crash"

L_str:                                  ## @str
	.asciz	"Creating client for localhost"

L_str.9:                                ## @str.9
	.asciz	"Failed to create client"

L_str.12:                               ## @str.12
	.asciz	"Fail"

L_str.13:                               ## @str.13
	.asciz	"Success!"

.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, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	cmp	w0, #1
	b.le	LBB0_6
; %bb.1:
	mov	x20, x1
Lloh0:
	adrp	x0, l_str@PAGE
Lloh1:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
Lloh2:
	adrp	x21, _SM_PROG@GOTPAGE
Lloh3:
	ldr	x21, [x21, _SM_PROG@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh4:
	adrp	x22, _SM_VERS@GOTPAGE
Lloh5:
	ldr	x22, [x22, _SM_VERS@GOTPAGEOFF]
	ldr	w2, [x22]
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
Lloh8:
	adrp	x3, l_.str.4@PAGE
Lloh9:
	add	x3, x3, l_.str.4@PAGEOFF
	bl	_clnt_create
	cbz	x0, LBB0_7
; %bb.2:
	mov	x19, x0
	ldr	x0, [x20, #8]
	stp	x0, x0, [sp, #8]
	ldr	w10, [x21]
	ldr	w8, [x22]
	mov	w9, #1
	stp	w8, w10, [sp, #28]
	str	w9, [sp, #24]
Lloh10:
	adrp	x1, l_.str.6@PAGE
Lloh11:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_4
; %bb.3:
	add	x0, sp, #8
	mov	x1, x19
	bl	_sm_mon_1
	b	LBB0_5
LBB0_4:
	sub	x0, x29, #33
	mov	x1, x19
	bl	_sm_simu_crash_1
LBB0_5:
	cmp	x0, #0
	cset	w8, eq
Lloh12:
	adrp	x9, l_str.13@PAGE
Lloh13:
	add	x9, x9, l_str.13@PAGEOFF
Lloh14:
	adrp	x10, l_str.12@PAGE
Lloh15:
	add	x10, x10, l_str.12@PAGEOFF
	cmp	w8, #0
	csel	x0, x10, x9, ne
	bl	_puts
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_6:
Lloh16:
	adrp	x19, _stderr@GOTPAGE
Lloh17:
	ldr	x19, [x19, _stderr@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	ldr	w0, [x19]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
	mov	w0, #1
	bl	_exit
LBB0_7:
Lloh22:
	adrp	x0, l_str.9@PAGE
Lloh23:
	add	x0, x0, l_str.9@PAGEOFF
	bl	_puts
	mov	w0, #1
	bl	_exit
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"usage: test <hostname> | crash\n"

l_.str.1:                               ; @.str.1
	.asciz	"always talks to statd at localhost\n"

l_.str.3:                               ; @.str.3
	.asciz	"localhost"

	.comm	_SM_PROG,4,2                    ; @SM_PROG
	.comm	_SM_VERS,4,2                    ; @SM_VERS
l_.str.4:                               ; @.str.4
	.asciz	"udp"

l_.str.6:                               ; @.str.6
	.asciz	"crash"

l_str:                                  ; @str
	.asciz	"Creating client for localhost"

l_str.9:                                ; @str.9
	.asciz	"Failed to create client"

l_str.12:                               ; @str.12
	.asciz	"Fail"

l_str.13:                               ; @str.13
	.asciz	"Success!"

.subsections_via_symbols
