	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function join_handler
_join_handler:                          ## @join_handler
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_AF_INET6@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%rsi), %esi
	leaq	-80(%rbp), %r12
	movq	%r12, %rdx
	movl	$40, %ecx
	callq	_inet_ntop
	movl	(%rbx), %edx
	movl	4(%rbx), %ecx
	leaq	L_.str(%rip), %rdi
	xorl	%r14d, %r14d
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	_printf
	movl	16(%rbx), %eax
	movl	%eax, 16(%r15)
	movl	12(%rbx), %eax
	movl	%eax, 12(%r15)
	movl	8(%r15), %edi
	movq	%rbx, %rsi
	callq	_ibv_create_ah
	movl	%eax, 4(%r15)
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	$1, (%r15)
	movq	_test@GOTPCREL(%rip), %rax
	decl	(%rax)
	jmp	LBB0_3
LBB0_1:
	leaq	L_str(%rip), %rdi
	callq	_puts
	xorl	%eax, %eax
	callq	_connect_error
	movl	$-1, %r14d
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	movl	%r14d, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_INET6,4,2                   ## @AF_INET6
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mckey: joined dgid: %s mlid 0x%x sl %d\n"

	.comm	_test,4,2                       ## @test
L_str:                                  ## @str
	.asciz	"mckey: failure creating address handle"

	.no_dead_strip	_join_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function join_handler
_join_handler:                          ; @join_handler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	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
	mov	x20, 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, #-40]
Lloh3:
	adrp	x8, _AF_INET6@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AF_INET6@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	w1, [x1, #8]
	add	x21, sp, #32
	add	x2, sp, #32
	mov	w3, #40
	bl	_inet_ntop
	ldp	w8, w9, [x20]
	stp	x8, x9, [sp, #8]
	str	x21, [sp]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	ldur	d0, [x20, #12]
	stur	d0, [x19, #12]
	ldr	w0, [x19, #8]
	mov	x1, x20
	bl	_ibv_create_ah
	str	w0, [x19, #4]
	cbz	w0, LBB0_2
; %bb.1:
	mov	w0, #0
	mov	w8, #1
	str	w8, [x19]
Lloh8:
	adrp	x8, _test@GOTPAGE
Lloh9:
	ldr	x8, [x8, _test@GOTPAGEOFF]
	ldr	w9, [x8]
	sub	w9, w9, #1
	str	w9, [x8]
	b	LBB0_3
LBB0_2:
Lloh10:
	adrp	x0, l_str@PAGE
Lloh11:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	bl	_connect_error
	mov	w0, #-1
LBB0_3:
	ldur	x8, [x29, #-40]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	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
	add	sp, sp, #128
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_INET6,4,2                   ; @AF_INET6
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mckey: joined dgid: %s mlid 0x%x sl %d\n"

	.comm	_test,4,2                       ; @test
l_str:                                  ; @str
	.asciz	"mckey: failure creating address handle"

	.no_dead_strip	_join_handler
.subsections_via_symbols
