	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function server_respond
_server_respond:                        ## @server_respond
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r12
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -128(%rbp)
	movaps	%xmm0, -144(%rbp)
	movaps	%xmm0, -160(%rbp)
	movq	$0, -112(%rbp)
	movq	$0, -56(%rbp)
	callq	_umad_get_mad
	movq	%rax, %r13
	movq	%r12, %rdi
	callq	_umad_get_mad_addr
	movl	$-1, %r14d
	testq	%rax, %rax
	je	LBB0_14
## %bb.1:
	movq	%rax, %rbx
	leaq	-96(%rbp), %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movl	28(%rbx), %edi
	callq	_ntohs
	movl	%eax, -60(%rbp)
	movl	24(%rbx), %edi
	callq	_ntohl
	movl	%eax, -96(%rbp)
	movl	20(%rbx), %edi
	callq	_ntohl
	movq	%rax, -88(%rbp)
	movl	16(%rbx), %ecx
	movl	%ecx, -64(%rbp)
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	cmpl	$1, -96(%rbp)
	jne	LBB0_4
## %bb.3:
	movq	_IB_DEFAULT_QP1_QKEY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -88(%rbp)
LBB0_4:
	movq	8(%rbx), %rax
	movq	%rax, -72(%rbp)
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	-80(%rbp), %edi
	movl	(%rbx), %esi
	movl	$16, %edx
	callq	_memcpy
LBB0_6:
	movq	_IB_MAD_MGMTCLASS_F@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_mad_get_field
	movq	_IB_MAD_METHOD_GET@GOTPCREL(%rip), %rcx
	movq	_IB_MAD_RESPONSE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	%rax, -152(%rbp)
	movl	%edx, -160(%rbp)
	movq	_IB_MAD_ATTRID_F@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_mad_get_field
	movq	%rax, %rbx
	movq	%rax, -136(%rbp)
	movq	_IB_MAD_ATTRMOD_F@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_mad_get_field
	movq	%rax, %r14
	movq	%rax, -144(%rbp)
	movq	_IB_VEND2_OUI_F@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_mad_get_field
	movq	%rax, -120(%rbp)
	movq	_IB_MAD_TRID_F@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_mad_get_field64
	movl	%eax, -128(%rbp)
	movq	_IB_MAD_SIZE@GOTPCREL(%rip), %rax
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	cmpl	%r15d, (%rax)
	jge	LBB0_8
## %bb.7:
	movq	_IB_RMPP_FLAG_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
LBB0_8:
	leaq	-96(%rbp), %r15
	movq	%r15, %rdi
	callq	_portid2str
	movq	-88(%rbp), %r9
	leaq	L_.str(%rip), %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%eax, %edx
	movq	%rbx, %rcx
	movq	%r14, %r8
	xorl	%eax, %eax
	callq	_DEBUG
	leaq	-160(%rbp), %rsi
	leaq	-56(%rbp), %rcx
	movq	%r12, %rdi
	movq	%r15, %rdx
	xorl	%r8d, %r8d
	callq	_mad_build_pkt
	testq	%rax, %rax
	js	LBB0_13
## %bb.9:
	movq	_ibdebug@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_11
## %bb.10:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_IB_MAD_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdx
	callq	_xdump
LBB0_11:
	movq	_srcport@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_mad_rpc_portid
	movl	%eax, %ebx
	movl	(%r14), %edi
	movq	-152(%rbp), %rsi
	callq	_mad_rpc_class_agent
	movl	-156(%rbp), %r8d
	xorl	%r14d, %r14d
	movl	%ebx, %edi
	movl	%eax, %esi
	movq	%r12, %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	xorl	%r9d, %r9d
	callq	_umad_send
	testq	%rax, %rax
	jns	LBB0_14
## %bb.12:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_DEBUG
LBB0_13:
	movl	$-1, %r14d
LBB0_14:
	movl	%r14d, %eax
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_DEFAULT_QP1_QKEY,8,3        ## @IB_DEFAULT_QP1_QKEY
	.comm	_IB_MAD_MGMTCLASS_F,4,2         ## @IB_MAD_MGMTCLASS_F
	.comm	_IB_MAD_METHOD_GET,4,2          ## @IB_MAD_METHOD_GET
	.comm	_IB_MAD_RESPONSE,4,2            ## @IB_MAD_RESPONSE
	.comm	_IB_MAD_ATTRID_F,4,2            ## @IB_MAD_ATTRID_F
	.comm	_IB_MAD_ATTRMOD_F,4,2           ## @IB_MAD_ATTRMOD_F
	.comm	_IB_VEND2_OUI_F,4,2             ## @IB_VEND2_OUI_F
	.comm	_IB_MAD_TRID_F,4,2              ## @IB_MAD_TRID_F
	.comm	_IB_MAD_SIZE,4,2                ## @IB_MAD_SIZE
	.comm	_IB_RMPP_FLAG_ACTIVE,4,2        ## @IB_RMPP_FLAG_ACTIVE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"responding %d bytes to %s, attr 0x%x mod 0x%x qkey %x"

	.comm	_ibdebug,4,2                    ## @ibdebug
	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"mad respond pkt\n"

	.comm	_srcport,4,2                    ## @srcport
L_.str.2:                               ## @.str.2
	.asciz	"send failed; %m"

	.no_dead_strip	_server_respond
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function server_respond
_server_respond:                        ; @server_respond
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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	x19, x1
	mov	x20, x0
	str	xzr, [sp, #144]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #112]
	str	q0, [sp, #96]
	str	xzr, [sp, #88]
	bl	_umad_get_mad
	mov	x21, x0
	mov	x0, x20
	bl	_umad_get_mad_addr
	cbz	x0, LBB0_13
; %bb.1:
	mov	x22, x0
	add	x0, sp, #48
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	ldr	w0, [x22, #28]
	bl	_ntohs
	str	w0, [sp, #84]
	ldr	w0, [x22, #24]
	bl	_ntohl
	str	w0, [sp, #48]
	ldr	w0, [x22, #20]
	bl	_ntohl
	str	x0, [sp, #56]
	ldr	w8, [x22, #16]
	str	w8, [sp, #80]
	cbnz	x0, LBB0_4
; %bb.2:
	ldr	w8, [sp, #48]
	cmp	w8, #1
	b.ne	LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _IB_DEFAULT_QP1_QKEY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_DEFAULT_QP1_QKEY@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
LBB0_4:
	ldr	x8, [x22, #8]
	str	x8, [sp, #72]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	w0, [sp, #64]
	ldr	w1, [x22]
	mov	w2, #16
	bl	_memcpy
LBB0_6:
Lloh3:
	adrp	x8, _IB_MAD_MGMTCLASS_F@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IB_MAD_MGMTCLASS_F@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x21
	mov	w1, #0
	bl	_mad_get_field
	str	x0, [sp, #104]
Lloh6:
	adrp	x8, _IB_MAD_METHOD_GET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IB_MAD_METHOD_GET@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _IB_MAD_RESPONSE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IB_MAD_RESPONSE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [sp, #96]
Lloh12:
	adrp	x8, _IB_MAD_ATTRID_F@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IB_MAD_ATTRID_F@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x21
	mov	w1, #0
	bl	_mad_get_field
	mov	x22, x0
	str	x0, [sp, #120]
Lloh15:
	adrp	x8, _IB_MAD_ATTRMOD_F@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IB_MAD_ATTRMOD_F@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x21
	mov	w1, #0
	bl	_mad_get_field
	mov	x23, x0
	str	x0, [sp, #112]
Lloh18:
	adrp	x8, _IB_VEND2_OUI_F@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IB_VEND2_OUI_F@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x21
	mov	w1, #0
	bl	_mad_get_field
	str	x0, [sp, #136]
Lloh21:
	adrp	x8, _IB_MAD_TRID_F@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IB_MAD_TRID_F@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x0, x21
	mov	w1, #0
	bl	_mad_get_field64
	str	w0, [sp, #128]
Lloh24:
	adrp	x24, _IB_MAD_SIZE@GOTPAGE
Lloh25:
	ldr	x24, [x24, _IB_MAD_SIZE@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, w19
	b.ge	LBB0_8
; %bb.7:
Lloh26:
	adrp	x8, _IB_RMPP_FLAG_ACTIVE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _IB_RMPP_FLAG_ACTIVE@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	str	w8, [sp, #88]
LBB0_8:
	add	x0, sp, #48
	bl	_portid2str
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x8, [sp, #56]
	stp	x23, x8, [sp, #24]
	stp	x0, x22, [sp, #8]
	str	x19, [sp]
Lloh29:
	adrp	x0, l_.str@PAGE
Lloh30:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DEBUG
	add	x1, sp, #96
	add	x2, sp, #48
	add	x3, sp, #88
	mov	x0, x20
	mov	w4, #0
	bl	_mad_build_pkt
	tbnz	x0, #63, LBB0_13
; %bb.9:
Lloh31:
	adrp	x8, _ibdebug@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ibdebug@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	cmp	w8, #2
	b.lt	LBB0_11
; %bb.10:
Lloh34:
	adrp	x8, _stderr@GOTPAGE
Lloh35:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
	ldr	w3, [x24]
Lloh37:
	adrp	x1, l_.str.1@PAGE
Lloh38:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x21
	bl	_xdump
LBB0_11:
Lloh39:
	adrp	x22, _srcport@GOTPAGE
Lloh40:
	ldr	x22, [x22, _srcport@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_mad_rpc_portid
	mov	x21, x0
	ldr	w0, [x22]
	ldr	x1, [sp, #104]
	bl	_mad_rpc_class_agent
	mov	x1, x0
	ldr	w4, [sp, #100]
	mov	x0, x21
	mov	x2, x20
	mov	x3, x19
	mov	w5, #0
	bl	_umad_send
	mov	x8, x0
	mov	w0, #0
	tbz	x8, #63, LBB0_14
; %bb.12:
Lloh41:
	adrp	x0, l_.str.2@PAGE
Lloh42:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DEBUG
LBB0_13:
	mov	w0, #-1
LBB0_14:
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_DEFAULT_QP1_QKEY,8,3        ; @IB_DEFAULT_QP1_QKEY
	.comm	_IB_MAD_MGMTCLASS_F,4,2         ; @IB_MAD_MGMTCLASS_F
	.comm	_IB_MAD_METHOD_GET,4,2          ; @IB_MAD_METHOD_GET
	.comm	_IB_MAD_RESPONSE,4,2            ; @IB_MAD_RESPONSE
	.comm	_IB_MAD_ATTRID_F,4,2            ; @IB_MAD_ATTRID_F
	.comm	_IB_MAD_ATTRMOD_F,4,2           ; @IB_MAD_ATTRMOD_F
	.comm	_IB_VEND2_OUI_F,4,2             ; @IB_VEND2_OUI_F
	.comm	_IB_MAD_TRID_F,4,2              ; @IB_MAD_TRID_F
	.comm	_IB_MAD_SIZE,4,2                ; @IB_MAD_SIZE
	.comm	_IB_RMPP_FLAG_ACTIVE,4,2        ; @IB_RMPP_FLAG_ACTIVE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"responding %d bytes to %s, attr 0x%x mod 0x%x qkey %x"

	.comm	_ibdebug,4,2                    ; @ibdebug
	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"mad respond pkt\n"

	.comm	_srcport,4,2                    ; @srcport
l_.str.2:                               ; @.str.2
	.asciz	"send failed; %m"

	.no_dead_strip	_server_respond
.subsections_via_symbols
