	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ibping_serv
_ibping_serv:                           ## @ibping_serv
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_DEBUG
	movq	_srcport@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	xorl	%edi, %edi
	movl	$-1, %esi
	callq	_mad_receive_via
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %rbx
	movq	_IB_VENDOR_RANGE2_DATA_SIZE@GOTPCREL(%rip), %r15
	leaq	L_.str.1(%rip), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_mad_free
	movl	(%r13), %edx
	xorl	%edi, %edi
	movl	$-1, %esi
	callq	_mad_receive_via
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_umad_status
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_umad_get_mad
	movq	_IB_VENDOR_RANGE2_DATA_OFFS@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %r12
	addq	%rax, %r12
	movq	_host_and_domain@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	movq	%r12, %rdi
	callq	_memcpy
	movq	%r14, %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	_DEBUG
	movl	(%r13), %ecx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_mad_respond_via
	testq	%rax, %rax
	jns	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_DEBUG
	jmp	LBB0_5
LBB0_6:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_DEBUG
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"starting to serve..."

	.comm	_srcport,4,2                    ## @srcport
	.comm	_IB_VENDOR_RANGE2_DATA_OFFS,4,2 ## @IB_VENDOR_RANGE2_DATA_OFFS
	.comm	_host_and_domain,4,2            ## @host_and_domain
	.comm	_IB_VENDOR_RANGE2_DATA_SIZE,4,2 ## @IB_VENDOR_RANGE2_DATA_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"Pong: %s"

L_.str.2:                               ## @.str.2
	.asciz	"respond failed"

L_.str.3:                               ## @.str.3
	.asciz	"server out"

	.no_dead_strip	_ibping_serv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ibping_serv
_ibping_serv:                           ; @ibping_serv
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DEBUG
Lloh2:
	adrp	x23, _srcport@GOTPAGE
Lloh3:
	ldr	x23, [x23, _srcport@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	w0, #0
	mov	w1, #-1
	bl	_mad_receive_via
	cbz	x0, LBB0_6
; %bb.1:
	mov	x21, x0
Lloh4:
	adrp	x24, _IB_VENDOR_RANGE2_DATA_OFFS@GOTPAGE
Lloh5:
	ldr	x24, [x24, _IB_VENDOR_RANGE2_DATA_OFFS@GOTPAGEOFF]
Lloh6:
	adrp	x25, _host_and_domain@GOTPAGE
Lloh7:
	ldr	x25, [x25, _host_and_domain@GOTPAGEOFF]
Lloh8:
	adrp	x19, l_.str.1@PAGE
Lloh9:
	add	x19, x19, l_.str.1@PAGEOFF
Lloh10:
	adrp	x26, _IB_VENDOR_RANGE2_DATA_SIZE@GOTPAGE
Lloh11:
	ldr	x26, [x26, _IB_VENDOR_RANGE2_DATA_SIZE@GOTPAGEOFF]
Lloh12:
	adrp	x20, l_.str.2@PAGE
Lloh13:
	add	x20, x20, l_.str.2@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_mad_free
	ldr	w2, [x23]
	mov	w0, #0
	mov	w1, #-1
	bl	_mad_receive_via
	mov	x21, x0
	cbz	x0, LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_umad_status
	cbnz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_umad_get_mad
	ldrsw	x8, [x24]
	add	x22, x0, x8
	ldr	w1, [x25]
	ldr	w2, [x26]
	mov	x0, x22
	bl	_memcpy
	str	x22, [sp]
	mov	x0, x19
	bl	_DEBUG
	ldr	w3, [x23]
	mov	x0, x21
	mov	w1, #0
	mov	w2, #0
	bl	_mad_respond_via
	tbz	x0, #63, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_DEBUG
	b	LBB0_2
LBB0_6:
Lloh14:
	adrp	x0, l_.str.3@PAGE
Lloh15:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_DEBUG
	mov	x0, #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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"starting to serve..."

	.comm	_srcport,4,2                    ; @srcport
	.comm	_IB_VENDOR_RANGE2_DATA_OFFS,4,2 ; @IB_VENDOR_RANGE2_DATA_OFFS
	.comm	_host_and_domain,4,2            ; @host_and_domain
	.comm	_IB_VENDOR_RANGE2_DATA_SIZE,4,2 ; @IB_VENDOR_RANGE2_DATA_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"Pong: %s"

l_.str.2:                               ; @.str.2
	.asciz	"respond failed"

l_.str.3:                               ; @.str.3
	.asciz	"server out"

	.no_dead_strip	_ibping_serv
.subsections_via_symbols
