	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movl	%edi, %r12d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	%edi, -180(%rbp)
	movq	_context@GOTPCREL(%rip), %rdi
	leaq	-180(%rbp), %rsi
	movq	%r15, %rdx
	callq	_client_setup
	movl	%eax, -184(%rbp)                ## 4-byte Spill
	movq	_remote_name@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	jne	LBB0_3
## %bb.1:
	xorl	%eax, %eax
	callq	_get_default_username
	movq	%rax, (%rbx)
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_3:
	movslq	-180(%rbp), %rax
	xorl	%ebx, %ebx
	cmpl	%r12d, %eax
	jge	LBB0_9
## %bb.4:
	leaq	(%r15,%rax,8), %r15
	subl	%eax, %r12d
	leaq	-176(%rbp), %r13
	xorl	%r14d, %r14d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	leaq	L_.str.2(%rip), %rdi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_warnx
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%r14
	cmpl	%r14d, %r12d
	je	LBB0_9
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15,%r14,8), %rdi
	movq	_service@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	-184(%rbp), %esi                ## 4-byte Reload
	movq	%r13, %rcx
	movl	$128, %r8d
	callq	_doit
	movl	%eax, %ebx
	movq	(%r15,%r14,8), %rsi
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_warnx
	jmp	LBB0_8
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	movl	%ebx, %eax
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_context,4,2                    ## @context
	.comm	_remote_name,8,3                ## @remote_name
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"who are you?"

	.comm	_service,4,2                    ## @service
L_.str.1:                               ## @.str.1
	.asciz	"%s: ok"

L_.str.2:                               ## @.str.2
	.asciz	"%s: failed: %s"

.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, #240
	.cfi_def_cfa_offset 240
	stp	x26, x25, [sp, #160]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #176]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #192]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #208]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #224]            ; 16-byte Folded Spill
	add	x29, sp, #224
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	str	w0, [sp, #20]
Lloh3:
	adrp	x0, _context@GOTPAGE
Lloh4:
	ldr	x0, [x0, _context@GOTPAGEOFF]
	add	x1, sp, #20
	mov	x2, x21
	bl	_client_setup
	mov	x19, x0
Lloh5:
	adrp	x22, _remote_name@GOTPAGE
Lloh6:
	ldr	x22, [x22, _remote_name@GOTPAGEOFF]
	ldr	x8, [x22]
	cbnz	x8, LBB0_3
; %bb.1:
	bl	_get_default_username
	str	x0, [x22]
	cbnz	x0, LBB0_3
; %bb.2:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_3:
	ldrsw	x8, [sp, #20]
	cmp	w8, w20
	b.ge	LBB0_9
; %bb.4:
	add	x23, x21, x8, lsl #3
Lloh9:
	adrp	x24, _service@GOTPAGE
Lloh10:
	ldr	x24, [x24, _service@GOTPAGEOFF]
	sub	w25, w20, w8
	add	x26, sp, #24
Lloh11:
	adrp	x20, l_.str.1@PAGE
Lloh12:
	add	x20, x20, l_.str.1@PAGEOFF
Lloh13:
	adrp	x21, l_.str.2@PAGE
Lloh14:
	add	x21, x21, l_.str.2@PAGEOFF
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	str	x26, [sp]
	mov	x0, x21
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	bl	_warnx
	add	x23, x23, #8
	subs	w25, w25, #1
	b.eq	LBB0_10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x23]
	ldr	w2, [x24]
	add	x3, sp, #24
	mov	x1, x19
	mov	w4, #128
	bl	_doit
	mov	x22, x0
	ldr	x1, [x23]
	cbnz	w0, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x20
	b	LBB0_6
LBB0_9:
	mov	w22, #0
LBB0_10:
	ldur	x8, [x29, #-72]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	mov	x0, x22
	ldp	x29, x30, [sp, #224]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #208]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #192]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #176]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #160]            ; 16-byte Folded Reload
	add	sp, sp, #240
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_context,4,2                    ; @context
	.comm	_remote_name,8,3                ; @remote_name
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"who are you?"

	.comm	_service,4,2                    ; @service
l_.str.1:                               ; @.str.1
	.asciz	"%s: ok"

l_.str.2:                               ; @.str.2
	.asciz	"%s: failed: %s"

.subsections_via_symbols
