	.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	$64, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movl	%edi, %ebx
	movq	_cln@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -88(%rbp)
	movq	_dmn@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -96(%rbp)
	movq	%rax, -72(%rbp)
	movq	_path@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	cmpl	$2, %edi
	jg	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_usage
LBB0_2:
	movq	8(%r12), %r14
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	_broadcast@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
                                        ## implicit-def: $r15
	jne	LBB0_7
## %bb.5:
	movq	_BOOTPARAMPROG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BOOTPARAMVERS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rcx
	movq	%r14, %rdi
	callq	_clnt_create
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	movq	%r14, %rdx
	callq	_errx
	xorl	%r15d, %r15d
	jmp	LBB0_7
LBB0_3:
	movq	_broadcast@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
                                        ## implicit-def: $r15
LBB0_7:
	cmpl	$4, %ebx
	je	LBB0_14
## %bb.8:
	cmpl	$3, %ebx
	jne	LBB0_17
## %bb.9:
	movq	_IP_ADDR_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movq	16(%r12), %rdi
	callq	_inet_addr
	movq	%rax, %rbx
	movq	_INADDR_NONE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_11
## %bb.10:
	movq	16(%r12), %rdx
	leaq	L_.str.3(%rip), %rsi
	movl	$2, %edi
	callq	_errx
LBB0_11:
	movl	%ebx, -40(%rbp)
	movq	_broadcast@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_18
## %bb.12:
	leaq	-40(%rbp), %rdi
	movq	%r15, %rsi
	callq	_bootparamproc_whoami_1
	movq	%rax, %rbx
	leaq	L_str.7(%rip), %rdi
	callq	_puts
	movq	%rbx, %rdi
	callq	_printwhoami
	testl	%eax, %eax
	je	LBB0_20
## %bb.13:
	leaq	L_.str.5(%rip), %rsi
	movl	$1, %edi
	movq	%r14, %rdx
	callq	_errx
LBB0_14:
	movups	16(%r12), %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	_broadcast@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_21
## %bb.15:
	leaq	-64(%rbp), %rdi
	movq	%r15, %rsi
	callq	_bootparamproc_getfile_1
	movq	%rax, %rbx
	leaq	L_str(%rip), %rdi
	callq	_puts
	movq	%rbx, %rdi
	callq	_printgetfile
	testl	%eax, %eax
	je	LBB0_20
## %bb.16:
	leaq	L_.str.5(%rip), %rsi
	movl	$1, %edi
	movq	%r14, %rdx
	callq	_errx
LBB0_17:
	xorl	%eax, %eax
	callq	_usage
	xorl	%eax, %eax
	addq	$64, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movq	_BOOTPARAMPROG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_BOOTPARAMVERS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BOOTPARAMPROC_GETFILE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_xdr_bp_getfile_arg@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_xdr_bp_getfile_res@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_eachres_getfile@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	-80(%rbp), %rbx
	leaq	-64(%rbp), %r8
	jmp	LBB0_19
LBB0_18:
	movq	_BOOTPARAMPROG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_BOOTPARAMVERS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BOOTPARAMPROC_WHOAMI@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_xdr_bp_whoami_arg@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_xdr_bp_whoami_res@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_eachres_whoami@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	-96(%rbp), %rbx
	leaq	-40(%rbp), %r8
LBB0_19:
	pushq	%rax
	pushq	%rbx
	callq	_clnt_broadcast
	addq	$16, %rsp
LBB0_20:
	xorl	%edi, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_cln,8,3                        ## @cln
	.comm	_dmn,4,2                        ## @dmn
	.comm	_path,4,2                       ## @path
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"all"

	.comm	_broadcast,4,2                  ## @broadcast
	.comm	_BOOTPARAMPROG,4,2              ## @BOOTPARAMPROG
	.comm	_BOOTPARAMVERS,4,2              ## @BOOTPARAMVERS
L_.str.1:                               ## @.str.1
	.asciz	"udp"

L_.str.2:                               ## @.str.2
	.asciz	"could not contact bootparam server on host %s"

	.comm	_IP_ADDR_TYPE,4,2               ## @IP_ADDR_TYPE
	.comm	_INADDR_NONE,8,3                ## @INADDR_NONE
L_.str.3:                               ## @.str.3
	.asciz	"bogus addr %s"

L_.str.5:                               ## @.str.5
	.asciz	"bad answer returned from server %s"

	.comm	_BOOTPARAMPROC_WHOAMI,4,2       ## @BOOTPARAMPROC_WHOAMI
	.comm	_xdr_bp_whoami_arg,4,2          ## @xdr_bp_whoami_arg
	.comm	_xdr_bp_whoami_res,4,2          ## @xdr_bp_whoami_res
	.comm	_eachres_whoami,4,2             ## @eachres_whoami
	.comm	_BOOTPARAMPROC_GETFILE,4,2      ## @BOOTPARAMPROC_GETFILE
	.comm	_xdr_bp_getfile_arg,4,2         ## @xdr_bp_getfile_arg
	.comm	_xdr_bp_getfile_res,4,2         ## @xdr_bp_getfile_res
	.comm	_eachres_getfile,4,2            ## @eachres_getfile
L_str:                                  ## @str
	.asciz	"getfile returning:"

L_str.7:                                ## @str.7
	.asciz	"Whoami returning:"

.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, #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, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _cln@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cln@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #48]
Lloh3:
	adrp	x9, _dmn@GOTPAGE
Lloh4:
	ldr	x9, [x9, _dmn@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	str	w9, [sp, #40]
	str	x8, [sp, #16]
Lloh6:
	adrp	x8, _path@GOTPAGE
Lloh7:
	ldr	x8, [x8, _path@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	cmp	w0, #2
	b.gt	LBB0_2
; %bb.1:
	bl	_usage
LBB0_2:
	ldr	x19, [x20, #8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_strcmp
Lloh11:
	adrp	x23, _broadcast@GOTPAGE
Lloh12:
	ldr	x23, [x23, _broadcast@GOTPAGEOFF]
	cbz	w0, LBB0_6
; %bb.3:
	ldr	w8, [x23]
                                        ; implicit-def: $x21
	cbnz	w8, LBB0_7
; %bb.4:
Lloh13:
	adrp	x8, _BOOTPARAMPROG@GOTPAGE
Lloh14:
	ldr	x8, [x8, _BOOTPARAMPROG@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x8, _BOOTPARAMVERS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _BOOTPARAMVERS@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
Lloh19:
	adrp	x3, l_.str.1@PAGE
Lloh20:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_clnt_create
	mov	x21, x0
	cbnz	x0, LBB0_7
; %bb.5:
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_errx
	b	LBB0_7
LBB0_6:
	mov	w8, #1
	str	w8, [x23]
                                        ; implicit-def: $x21
LBB0_7:
	cmp	w22, #4
	b.eq	LBB0_14
; %bb.8:
	cmp	w22, #3
	b.ne	LBB0_17
; %bb.9:
Lloh23:
	adrp	x8, _IP_ADDR_TYPE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _IP_ADDR_TYPE@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	str	w8, [sp, #60]
	ldr	x0, [x20, #16]
	bl	_inet_addr
	mov	x22, x0
Lloh26:
	adrp	x8, _INADDR_NONE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _INADDR_NONE@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.10:
	ldr	x2, [x20, #16]
Lloh29:
	adrp	x1, l_.str.3@PAGE
Lloh30:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #2
	bl	_errx
LBB0_11:
	str	w22, [sp, #56]
	ldr	w8, [x23]
	cbnz	w8, LBB0_19
; %bb.12:
	add	x0, sp, #56
	mov	x1, x21
	bl	_bootparamproc_whoami_1
	mov	x22, x0
Lloh31:
	adrp	x0, l_str.7@PAGE
Lloh32:
	add	x0, x0, l_str.7@PAGEOFF
	bl	_puts
	mov	x0, x22
	bl	_printwhoami
	cbz	w0, LBB0_21
; %bb.13:
Lloh33:
	adrp	x1, l_.str.5@PAGE
Lloh34:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_errx
LBB0_14:
	ldp	x8, x9, [x20, #16]
	stp	x8, x9, [sp, #24]
	ldr	w8, [x23]
	cbnz	w8, LBB0_18
; %bb.15:
	add	x0, sp, #24
	mov	x1, x21
	bl	_bootparamproc_getfile_1
	mov	x20, x0
Lloh35:
	adrp	x0, l_str@PAGE
Lloh36:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	mov	x0, x20
	bl	_printgetfile
	cbz	w0, LBB0_21
; %bb.16:
Lloh37:
	adrp	x1, l_.str.5@PAGE
Lloh38:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_errx
LBB0_17:
	bl	_usage
	mov	w0, #0
	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
LBB0_18:
Lloh39:
	adrp	x8, _BOOTPARAMPROG@GOTPAGE
Lloh40:
	ldr	x8, [x8, _BOOTPARAMPROG@GOTPAGEOFF]
Lloh41:
	ldr	w0, [x8]
Lloh42:
	adrp	x8, _BOOTPARAMVERS@GOTPAGE
Lloh43:
	ldr	x8, [x8, _BOOTPARAMVERS@GOTPAGEOFF]
Lloh44:
	ldr	w1, [x8]
Lloh45:
	adrp	x8, _BOOTPARAMPROC_GETFILE@GOTPAGE
Lloh46:
	ldr	x8, [x8, _BOOTPARAMPROC_GETFILE@GOTPAGEOFF]
Lloh47:
	ldr	w2, [x8]
Lloh48:
	adrp	x8, _xdr_bp_getfile_arg@GOTPAGE
Lloh49:
	ldr	x8, [x8, _xdr_bp_getfile_arg@GOTPAGEOFF]
Lloh50:
	ldr	w3, [x8]
Lloh51:
	adrp	x8, _xdr_bp_getfile_res@GOTPAGE
Lloh52:
	ldr	x8, [x8, _xdr_bp_getfile_res@GOTPAGEOFF]
Lloh53:
	ldr	w5, [x8]
Lloh54:
	adrp	x8, _eachres_getfile@GOTPAGE
Lloh55:
	ldr	x8, [x8, _eachres_getfile@GOTPAGEOFF]
Lloh56:
	ldr	w7, [x8]
	add	x4, sp, #24
	add	x6, sp, #8
	b	LBB0_20
LBB0_19:
Lloh57:
	adrp	x8, _BOOTPARAMPROG@GOTPAGE
Lloh58:
	ldr	x8, [x8, _BOOTPARAMPROG@GOTPAGEOFF]
Lloh59:
	ldr	w0, [x8]
Lloh60:
	adrp	x8, _BOOTPARAMVERS@GOTPAGE
Lloh61:
	ldr	x8, [x8, _BOOTPARAMVERS@GOTPAGEOFF]
Lloh62:
	ldr	w1, [x8]
Lloh63:
	adrp	x8, _BOOTPARAMPROC_WHOAMI@GOTPAGE
Lloh64:
	ldr	x8, [x8, _BOOTPARAMPROC_WHOAMI@GOTPAGEOFF]
Lloh65:
	ldr	w2, [x8]
Lloh66:
	adrp	x8, _xdr_bp_whoami_arg@GOTPAGE
Lloh67:
	ldr	x8, [x8, _xdr_bp_whoami_arg@GOTPAGEOFF]
Lloh68:
	ldr	w3, [x8]
Lloh69:
	adrp	x8, _xdr_bp_whoami_res@GOTPAGE
Lloh70:
	ldr	x8, [x8, _xdr_bp_whoami_res@GOTPAGEOFF]
Lloh71:
	ldr	w5, [x8]
Lloh72:
	adrp	x8, _eachres_whoami@GOTPAGE
Lloh73:
	ldr	x8, [x8, _eachres_whoami@GOTPAGEOFF]
Lloh74:
	ldr	w7, [x8]
	add	x4, sp, #56
	add	x6, sp, #40
LBB0_20:
	bl	_clnt_broadcast
	mov	w0, #0
LBB0_21:
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.cfi_endproc
                                        ; -- End function
	.comm	_cln,8,3                        ; @cln
	.comm	_dmn,4,2                        ; @dmn
	.comm	_path,4,2                       ; @path
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"all"

	.comm	_broadcast,4,2                  ; @broadcast
	.comm	_BOOTPARAMPROG,4,2              ; @BOOTPARAMPROG
	.comm	_BOOTPARAMVERS,4,2              ; @BOOTPARAMVERS
l_.str.1:                               ; @.str.1
	.asciz	"udp"

l_.str.2:                               ; @.str.2
	.asciz	"could not contact bootparam server on host %s"

	.comm	_IP_ADDR_TYPE,4,2               ; @IP_ADDR_TYPE
	.comm	_INADDR_NONE,8,3                ; @INADDR_NONE
l_.str.3:                               ; @.str.3
	.asciz	"bogus addr %s"

l_.str.5:                               ; @.str.5
	.asciz	"bad answer returned from server %s"

	.comm	_BOOTPARAMPROC_WHOAMI,4,2       ; @BOOTPARAMPROC_WHOAMI
	.comm	_xdr_bp_whoami_arg,4,2          ; @xdr_bp_whoami_arg
	.comm	_xdr_bp_whoami_res,4,2          ; @xdr_bp_whoami_res
	.comm	_eachres_whoami,4,2             ; @eachres_whoami
	.comm	_BOOTPARAMPROC_GETFILE,4,2      ; @BOOTPARAMPROC_GETFILE
	.comm	_xdr_bp_getfile_arg,4,2         ; @xdr_bp_getfile_arg
	.comm	_xdr_bp_getfile_res,4,2         ; @xdr_bp_getfile_res
	.comm	_eachres_getfile,4,2            ; @eachres_getfile
l_str:                                  ; @str
	.asciz	"getfile returning:"

l_str.7:                                ; @str.7
	.asciz	"Whoami returning:"

.subsections_via_symbols
