	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function send_local_dest
_send_local_dest:                       ## @send_local_dest
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movl	%edi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MSG_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	_ctx@GOTPCREL(%rip), %r12
	movq	(%r12), %rdx
	testq	%rdx, %rdx
	js	LBB0_3
## %bb.1:
	movl	40(%r12), %esi
	movl	44(%r12), %edi
	leaq	-104(%rbp), %rcx
	callq	_ibv_query_gid
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r12), %rdx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_9
LBB0_3:
	leaq	-104(%rbp), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
LBB0_4:
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_lrand48
	andl	$16777215, %eax                 ## imm = 0xFFFFFF
	movq	8(%r12), %rcx
	movslq	%ebx, %rbx
	movl	%eax, (%rcx,%rbx,4)
	movl	36(%r12), %edi
	leaq	-108(%rbp), %rsi
	callq	_ibv_get_srq_num
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_8
LBB0_6:
	movq	_AF_INET6@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-104(%rbp), %rsi
	leaq	-96(%rbp), %rdx
	movl	%r14d, -112(%rbp)               ## 4-byte Spill
	movq	%rdx, %r14
	movl	$33, %ecx
	callq	_inet_ntop
	movq	_ADDR_FORMAT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	32(%r12), %edx
	movq	24(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	movl	(%rax), %ecx
	movq	8(%r12), %rax
	movq	16(%r12), %rsi
	movq	(%rsi,%rbx,8), %rsi
	movl	(%rsi), %r8d
	movl	(%rax,%rbx,4), %r9d
	movl	-108(%rbp), %eax
	leaq	L_.str.2(%rip), %rsi
	pushq	%r14
	pushq	%rax
	callq	_printf
	addq	$16, %rsp
	leaq	-104(%rbp), %rdi
	movq	%r14, %rsi
	callq	_gid_to_wire_gid
	movq	_MSG_FORMAT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	32(%r12), %edx
	movq	24(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	movl	(%rax), %ecx
	movq	8(%r12), %rax
	movq	16(%r12), %rdi
	movq	(%rdi,%rbx,8), %rdi
	movl	(%rdi), %r8d
	movl	(%rax,%rbx,4), %r9d
	movl	-108(%rbp), %eax
	movq	%r15, %rdi
	pushq	%r14
	pushq	%rax
	callq	_sprintf
	addq	$16, %rsp
	movq	_MSG_SIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movl	-112(%rbp), %edi                ## 4-byte Reload
	movq	%r15, %rsi
	callq	_write
	cmpl	(%rbx), %eax
	je	LBB0_10
## %bb.7:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
LBB0_8:
	xorl	%eax, %eax
	callq	_fprintf
LBB0_9:
	movl	$-1, %r13d
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	movl	%r13d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_SIZE,4,2                   ## @MSG_SIZE
	.comm	_ctx,48,3                       ## @ctx
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't read sgid of index %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Couldn't get SRQ num\n"

	.comm	_AF_INET6,4,2                   ## @AF_INET6
	.comm	_ADDR_FORMAT,8,3                ## @ADDR_FORMAT
L_.str.2:                               ## @.str.2
	.asciz	"local"

	.comm	_MSG_FORMAT,8,3                 ## @MSG_FORMAT
L_.str.3:                               ## @.str.3
	.asciz	"Couldn't send local address\n"

	.no_dead_strip	_send_local_dest
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function send_local_dest
_send_local_dest:                       ; @send_local_dest
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #64
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x22, _MSG_SIZE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _MSG_SIZE@GOTPAGEOFF]
	ldr	w8, [x22]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x20, x9, x8
	mov	sp, x20
Lloh7:
	adrp	x23, _ctx@GOTPAGE
Lloh8:
	ldr	x23, [x23, _ctx@GOTPAGEOFF]
	ldr	x2, [x23]
	tbnz	x2, #63, LBB0_3
; %bb.1:
	ldp	w1, w0, [x23, #40]
	sub	x3, x29, #104
	bl	_ibv_query_gid
	cbz	x0, LBB0_4
; %bb.2:
Lloh9:
	adrp	x8, _stderr@GOTPAGE
Lloh10:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldr	x8, [x23]
	str	x8, [sp, #-16]!
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	add	sp, sp, #16
	b	LBB0_10
LBB0_3:
	sub	x0, x29, #104
	mov	w1, #0
	mov	w2, #4
	bl	_memset
LBB0_4:
	bl	_lrand48
	and	w8, w0, #0xffffff
	ldr	x9, [x23, #8]
	str	w8, [x9, w21, sxtw #2]
	ldr	w0, [x23, #36]
	sub	x1, x29, #96
	bl	_ibv_get_srq_num
	cbz	x0, LBB0_6
; %bb.5:
Lloh14:
	adrp	x8, _stderr@GOTPAGE
Lloh15:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_6:
	sxtw	x21, w21
Lloh19:
	adrp	x8, _AF_INET6@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AF_INET6@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	sub	x1, x29, #104
	sub	x2, x29, #89
	mov	w3, #33
	bl	_inet_ntop
Lloh22:
	adrp	x8, _ADDR_FORMAT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ADDR_FORMAT@GOTPAGEOFF]
Lloh24:
	ldr	x0, [x8]
	ldr	w2, [x23, #32]
	ldp	x9, x8, [x23, #16]
	lsl	x24, x21, #3
	ldr	x8, [x8, x24]
	ldr	x10, [x23, #8]
	ldr	x9, [x9, x24]
	ldr	w3, [x8]
	ldr	w4, [x9]
	lsl	x21, x21, #2
	ldr	w5, [x10, x21]
	ldur	w6, [x29, #-96]
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
	sub	x7, x29, #89
	bl	_printf
	sub	x0, x29, #104
	sub	x1, x29, #89
	bl	_gid_to_wire_gid
Lloh27:
	adrp	x8, _MSG_FORMAT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MSG_FORMAT@GOTPAGEOFF]
Lloh29:
	ldr	x1, [x8]
	ldr	w2, [x23, #32]
	ldr	x8, [x23, #24]
	ldr	x8, [x8, x24]
	ldr	w3, [x8]
	ldp	x9, x8, [x23, #8]
	ldr	x8, [x8, x24]
	ldr	w4, [x8]
	ldr	w5, [x9, x21]
	ldur	w6, [x29, #-96]
	sub	x7, x29, #89
	mov	x0, x20
	bl	_sprintf
	ldr	w2, [x22]
	mov	x0, x19
	mov	x1, x20
	bl	_write
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_8
; %bb.7:
	mov	w0, #0
	b	LBB0_11
LBB0_8:
Lloh30:
	adrp	x8, _stderr@GOTPAGE
Lloh31:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
Lloh33:
	adrp	x1, l_.str.3@PAGE
Lloh34:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_9:
	bl	_fprintf
LBB0_10:
	mov	w0, #-1
LBB0_11:
	ldur	x8, [x29, #-56]
Lloh35:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh36:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	sub	sp, x29, #48
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_SIZE,4,2                   ; @MSG_SIZE
	.comm	_ctx,48,3                       ; @ctx
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't read sgid of index %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Couldn't get SRQ num\n"

	.comm	_AF_INET6,4,2                   ; @AF_INET6
	.comm	_ADDR_FORMAT,8,3                ; @ADDR_FORMAT
l_.str.2:                               ; @.str.2
	.asciz	"local"

	.comm	_MSG_FORMAT,8,3                 ; @MSG_FORMAT
l_.str.3:                               ; @.str.3
	.asciz	"Couldn't send local address\n"

	.no_dead_strip	_send_local_dest
.subsections_via_symbols
