	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mad_encode                     ## -- Begin function mad_encode
	.p2align	4, 0x90
_mad_encode:                            ## @mad_encode
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	(%rsi), %ebx
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	_IB_MAD_RESPONSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_IB_MAD_METHOD_F@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	movl	%ebx, %ecx
	callq	_mad_set_field
	movq	_IB_MAD_RESPONSE_F@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r12d, %r12d
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	testl	%ebx, %r13d
	setne	%r12b
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	%r12d, %ecx
	callq	_mad_set_field
	movzbl	4(%r14), %eax
	movq	_IB_SA_CLASS@GOTPCREL(%rip), %r13
	cmpl	(%r13), %eax
	sete	%cl
	movq	_IB_CC_CLASS@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	sete	%al
	orb	%cl, %al
	movq	_IB_MAD_CLASSVER_F@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movzbl	%al, %ecx
	incl	%ecx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_mad_set_field
	movq	_IB_MAD_MGMTCLASS_F@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movzbl	4(%r14), %ecx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_mad_set_field
	movq	_IB_MAD_BASEVER_F@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$1, %ecx
	callq	_mad_set_field
	movzbl	4(%r14), %eax
	movq	_IB_SMI_DIRECT_CLASS@GOTPCREL(%rip), %rbx
	cmpl	(%rbx), %eax
	jne	LBB0_9
## %bb.1:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movq	(%rax), %rcx
	movq	_IB_SUBNET_PATH_HOPS_MAX@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jge	LBB0_5
## %bb.6:
	movq	_IB_DRSMP_HOPCNT_F@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_mad_set_field
	movq	_IB_DRSMP_HOPPTR_F@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, -48(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_8
## %bb.7:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %ebx
	incl	%ebx
LBB0_8:
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	%ebx, %ecx
	callq	_mad_set_field
	movq	_IB_DRSMP_STATUS_F@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	8(%r14), %ecx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_mad_set_field
	movq	_IB_DRSMP_DIRECTION_F@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	%r12d, %ecx
	callq	_mad_set_field
	movq	_IB_SA_CLASS@GOTPCREL(%rip), %r13
	movq	_IB_SMI_DIRECT_CLASS@GOTPCREL(%rip), %rbx
	jmp	LBB0_10
LBB0_9:
	movq	_IB_MAD_STATUS_F@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	8(%r14), %ecx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_mad_set_field
LBB0_10:
	movq	48(%r14), %rcx
	testq	%rcx, %rcx
	jne	LBB0_12
## %bb.11:
	xorl	%eax, %eax
	callq	_mad_trid
	movq	%rax, %rcx
	movq	%rax, 48(%r14)
LBB0_12:
	movq	_IB_MAD_TRID_F@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_mad_set_field64
	movq	_IB_MAD_ATTRID_F@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	40(%r14), %ecx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_mad_set_field
	movq	_IB_MAD_ATTRMOD_F@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	44(%r14), %ecx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_mad_set_field
	movq	_IB_MAD_MKEY_F@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	32(%r14), %rcx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_mad_set_field64
	movzbl	4(%r14), %eax
	cmpl	(%rbx), %eax
	jne	LBB0_17
## %bb.13:
	movq	_IB_DRSMP_DRDLID_F@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movl	8(%r12), %ecx
	testl	%ecx, %ecx
	movl	$65535, %eax                    ## imm = 0xFFFF
	cmovel	%eax, %ecx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_mad_set_field
	movq	_IB_DRSMP_DRSLID_F@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rbx
	movl	12(%r12), %ecx
	testl	%ecx, %ecx
	movl	$65535, %eax                    ## imm = 0xFFFF
	cmovel	%eax, %ecx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_mad_set_field
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, -48(%rbp)                 ## 4-byte Folded Reload
	jne	LBB0_14
## %bb.15:
	movq	_IB_DRSMP_PATH_F@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_2:
	leaq	L_.str(%rip), %rdi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_IBWARN
	jmp	LBB0_3
LBB0_14:
	movq	_IB_DRSMP_RPATH_F@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %edx
	movl	16(%rbx), %ecx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_mad_set_array
LBB0_17:
	movzbl	4(%r14), %eax
	cmpl	(%r13), %eax
	jne	LBB0_19
## %bb.18:
	movq	_IB_SA_COMPMASK_F@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	24(%r14), %rcx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_mad_set_field64
	movzbl	4(%r14), %eax
LBB0_19:
	movq	_IB_CC_CLASS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_21
## %bb.20:
	movq	_IB_CC_CCKEY_F@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	(%r14), %rcx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_mad_set_field64
LBB0_21:
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_23
## %bb.22:
	movslq	12(%r14), %rdi
	addq	%r15, %rdi
	movl	20(%r14), %edx
	callq	_memcpy
LBB0_23:
	movzbl	4(%r14), %edi
	callq	_mad_is_vendor_range2
	testq	%rax, %rax
	je	LBB0_25
## %bb.24:
	movq	_IB_VEND2_OUI_F@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	16(%r14), %ecx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_mad_set_field
LBB0_25:
	movq	_IB_MAD_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	%rax, %r15
	jmp	LBB0_26
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
	xorl	%r15d, %r15d
	movq	%rcx, %rsi
	xorl	%eax, %eax
	callq	_IBWARN
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_26:
	movq	%r15, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_MAD_RESPONSE,4,2            ## @IB_MAD_RESPONSE
	.comm	_IB_MAD_METHOD_F,4,2            ## @IB_MAD_METHOD_F
	.comm	_IB_MAD_RESPONSE_F,4,2          ## @IB_MAD_RESPONSE_F
	.comm	_IB_SA_CLASS,4,2                ## @IB_SA_CLASS
	.comm	_IB_CC_CLASS,4,2                ## @IB_CC_CLASS
	.comm	_IB_MAD_CLASSVER_F,4,2          ## @IB_MAD_CLASSVER_F
	.comm	_IB_MAD_MGMTCLASS_F,4,2         ## @IB_MAD_MGMTCLASS_F
	.comm	_IB_MAD_BASEVER_F,4,2           ## @IB_MAD_BASEVER_F
	.comm	_IB_SMI_DIRECT_CLASS,4,2        ## @IB_SMI_DIRECT_CLASS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"encoding dr mad without drpath (null)"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
	.comm	_IB_SUBNET_PATH_HOPS_MAX,8,3    ## @IB_SUBNET_PATH_HOPS_MAX
L_.str.1:                               ## @.str.1
	.asciz	"dr path with hop count %d"

	.comm	_IB_DRSMP_HOPCNT_F,4,2          ## @IB_DRSMP_HOPCNT_F
	.comm	_IB_DRSMP_HOPPTR_F,4,2          ## @IB_DRSMP_HOPPTR_F
	.comm	_IB_DRSMP_STATUS_F,4,2          ## @IB_DRSMP_STATUS_F
	.comm	_IB_DRSMP_DIRECTION_F,4,2       ## @IB_DRSMP_DIRECTION_F
	.comm	_IB_MAD_STATUS_F,4,2            ## @IB_MAD_STATUS_F
	.comm	_IB_MAD_TRID_F,4,2              ## @IB_MAD_TRID_F
	.comm	_IB_MAD_ATTRID_F,4,2            ## @IB_MAD_ATTRID_F
	.comm	_IB_MAD_ATTRMOD_F,4,2           ## @IB_MAD_ATTRMOD_F
	.comm	_IB_MAD_MKEY_F,4,2              ## @IB_MAD_MKEY_F
	.comm	_IB_DRSMP_DRDLID_F,4,2          ## @IB_DRSMP_DRDLID_F
	.comm	_IB_DRSMP_DRSLID_F,4,2          ## @IB_DRSMP_DRSLID_F
	.comm	_IB_DRSMP_RPATH_F,4,2           ## @IB_DRSMP_RPATH_F
	.comm	_IB_DRSMP_PATH_F,4,2            ## @IB_DRSMP_PATH_F
	.comm	_IB_SA_COMPMASK_F,4,2           ## @IB_SA_COMPMASK_F
	.comm	_IB_CC_CCKEY_F,4,2              ## @IB_CC_CCKEY_F
	.comm	_IB_VEND2_OUI_F,4,2             ## @IB_VEND2_OUI_F
	.comm	_IB_MAD_SIZE,4,2                ## @IB_MAD_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mad_encode                     ; -- Begin function mad_encode
	.p2align	2
_mad_encode:                            ; @mad_encode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x3
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	ldr	w23, [x1]
Lloh0:
	adrp	x8, _IB_MAD_RESPONSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_MAD_RESPONSE@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
Lloh3:
	adrp	x8, _IB_MAD_METHOD_F@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IB_MAD_METHOD_F@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	w1, #0
	mov	x3, x23
	bl	_mad_set_field
	ands	w26, w24, w23
Lloh6:
	adrp	x8, _IB_MAD_RESPONSE_F@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IB_MAD_RESPONSE_F@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	cset	w23, ne
	mov	x0, x19
	mov	w1, #0
	mov	x3, x23
	bl	_mad_set_field
Lloh9:
	adrp	x25, _IB_SA_CLASS@GOTPAGE
Lloh10:
	ldr	x25, [x25, _IB_SA_CLASS@GOTPAGEOFF]
	ldrb	w8, [x20, #4]
	ldr	w9, [x25]
Lloh11:
	adrp	x24, _IB_CC_CLASS@GOTPAGE
Lloh12:
	ldr	x24, [x24, _IB_CC_CLASS@GOTPAGEOFF]
	ldr	w10, [x24]
	cmp	w8, w10
	ccmp	w8, w9, #4, ne
Lloh13:
	adrp	x8, _IB_MAD_CLASSVER_F@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IB_MAD_CLASSVER_F@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	w8, #1
	cinc	w3, w8, eq
	mov	x0, x19
	mov	w1, #0
	bl	_mad_set_field
Lloh16:
	adrp	x8, _IB_MAD_MGMTCLASS_F@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IB_MAD_MGMTCLASS_F@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	ldrb	w3, [x20, #4]
	mov	x0, x19
	mov	w1, #0
	bl	_mad_set_field
Lloh19:
	adrp	x8, _IB_MAD_BASEVER_F@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IB_MAD_BASEVER_F@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	mov	w3, #1
	bl	_mad_set_field
	ldrb	w8, [x20, #4]
Lloh22:
	adrp	x27, _IB_SMI_DIRECT_CLASS@GOTPAGE
Lloh23:
	ldr	x27, [x27, _IB_SMI_DIRECT_CLASS@GOTPAGEOFF]
	ldr	w9, [x27]
	cmp	w8, w9
	b.ne	LBB0_5
; %bb.1:
	cbz	x22, LBB0_6
; %bb.2:
	ldr	x3, [x22]
Lloh24:
	adrp	x8, _IB_SUBNET_PATH_HOPS_MAX@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IB_SUBNET_PATH_HOPS_MAX@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	cmp	x3, x8
	b.ge	LBB0_7
; %bb.3:
Lloh27:
	adrp	x8, _IB_DRSMP_HOPCNT_F@GOTPAGE
Lloh28:
	ldr	x8, [x8, _IB_DRSMP_HOPCNT_F@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_mad_set_field
Lloh30:
	adrp	x8, _IB_DRSMP_HOPPTR_F@GOTPAGE
Lloh31:
	ldr	x8, [x8, _IB_DRSMP_HOPPTR_F@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	cbz	w26, LBB0_9
; %bb.4:
	ldr	w8, [x22]
	add	w3, w8, #1
	b	LBB0_10
LBB0_5:
Lloh33:
	adrp	x8, _IB_MAD_STATUS_F@GOTPAGE
Lloh34:
	ldr	x8, [x8, _IB_MAD_STATUS_F@GOTPAGEOFF]
Lloh35:
	ldr	w2, [x8]
	ldr	w3, [x20, #8]
	mov	x0, x19
	mov	w1, #0
	b	LBB0_11
LBB0_6:
Lloh36:
	adrp	x0, l_.str@PAGE
Lloh37:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_8
LBB0_7:
	str	x3, [sp]
Lloh38:
	adrp	x0, l_.str.1@PAGE
Lloh39:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_8:
	bl	_IBWARN
	mov	x0, #0
Lloh40:
	adrp	x8, _EINVAL@GOTPAGE
Lloh41:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
Lloh43:
	adrp	x9, _errno@GOTPAGE
Lloh44:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh45:
	str	w8, [x9]
	b	LBB0_24
LBB0_9:
	mov	w3, #0
LBB0_10:
	mov	x0, x19
	mov	w1, #0
	bl	_mad_set_field
Lloh46:
	adrp	x8, _IB_DRSMP_STATUS_F@GOTPAGE
Lloh47:
	ldr	x8, [x8, _IB_DRSMP_STATUS_F@GOTPAGEOFF]
Lloh48:
	ldr	w2, [x8]
	ldr	w3, [x20, #8]
	mov	x0, x19
	mov	w1, #0
	bl	_mad_set_field
Lloh49:
	adrp	x8, _IB_DRSMP_DIRECTION_F@GOTPAGE
Lloh50:
	ldr	x8, [x8, _IB_DRSMP_DIRECTION_F@GOTPAGEOFF]
Lloh51:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	mov	x3, x23
LBB0_11:
	bl	_mad_set_field
	ldr	x3, [x20, #48]
	cbnz	x3, LBB0_13
; %bb.12:
	bl	_mad_trid
	mov	x3, x0
	str	x0, [x20, #48]
LBB0_13:
Lloh52:
	adrp	x8, _IB_MAD_TRID_F@GOTPAGE
Lloh53:
	ldr	x8, [x8, _IB_MAD_TRID_F@GOTPAGEOFF]
Lloh54:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_mad_set_field64
Lloh55:
	adrp	x8, _IB_MAD_ATTRID_F@GOTPAGE
Lloh56:
	ldr	x8, [x8, _IB_MAD_ATTRID_F@GOTPAGEOFF]
Lloh57:
	ldr	w2, [x8]
	ldr	w3, [x20, #40]
	mov	x0, x19
	mov	w1, #0
	bl	_mad_set_field
Lloh58:
	adrp	x8, _IB_MAD_ATTRMOD_F@GOTPAGE
Lloh59:
	ldr	x8, [x8, _IB_MAD_ATTRMOD_F@GOTPAGEOFF]
Lloh60:
	ldr	w2, [x8]
	ldr	w3, [x20, #44]
	mov	x0, x19
	mov	w1, #0
	bl	_mad_set_field
Lloh61:
	adrp	x8, _IB_MAD_MKEY_F@GOTPAGE
Lloh62:
	ldr	x8, [x8, _IB_MAD_MKEY_F@GOTPAGEOFF]
Lloh63:
	ldr	w2, [x8]
	ldr	x3, [x20, #32]
	mov	x0, x19
	mov	w1, #0
	bl	_mad_set_field64
	ldrb	w8, [x20, #4]
	ldr	w9, [x27]
	cmp	w8, w9
	b.ne	LBB0_15
; %bb.14:
Lloh64:
	adrp	x8, _IB_DRSMP_DRDLID_F@GOTPAGE
Lloh65:
	ldr	x8, [x8, _IB_DRSMP_DRDLID_F@GOTPAGEOFF]
Lloh66:
	ldr	w2, [x8]
	ldr	w8, [x22, #8]
	mov	w23, #65535
	cmp	w8, #0
	csel	w3, w23, w8, eq
	mov	x0, x19
	mov	w1, #0
	bl	_mad_set_field
Lloh67:
	adrp	x8, _IB_DRSMP_DRSLID_F@GOTPAGE
Lloh68:
	ldr	x8, [x8, _IB_DRSMP_DRSLID_F@GOTPAGEOFF]
Lloh69:
	ldr	w2, [x8]
	ldr	w8, [x22, #12]
	cmp	w8, #0
	csel	w3, w23, w8, eq
	mov	x0, x19
	mov	w1, #0
	bl	_mad_set_field
Lloh70:
	adrp	x8, _IB_DRSMP_PATH_F@GOTPAGE
Lloh71:
	ldr	x8, [x8, _IB_DRSMP_PATH_F@GOTPAGEOFF]
Lloh72:
	adrp	x9, _IB_DRSMP_RPATH_F@GOTPAGE
Lloh73:
	ldr	x9, [x9, _IB_DRSMP_RPATH_F@GOTPAGEOFF]
	cmp	w26, #0
	csel	x8, x8, x9, eq
	ldr	w2, [x8]
	ldr	w3, [x22, #16]
	mov	x0, x19
	mov	w1, #0
	bl	_mad_set_array
LBB0_15:
	ldrb	w8, [x20, #4]
	ldr	w9, [x25]
	cmp	w8, w9
	b.ne	LBB0_17
; %bb.16:
Lloh74:
	adrp	x8, _IB_SA_COMPMASK_F@GOTPAGE
Lloh75:
	ldr	x8, [x8, _IB_SA_COMPMASK_F@GOTPAGEOFF]
Lloh76:
	ldr	w2, [x8]
	ldr	x3, [x20, #24]
	mov	x0, x19
	mov	w1, #0
	bl	_mad_set_field64
	ldrb	w8, [x20, #4]
LBB0_17:
	ldr	w9, [x24]
	cmp	w8, w9
	b.ne	LBB0_19
; %bb.18:
Lloh77:
	adrp	x8, _IB_CC_CCKEY_F@GOTPAGE
Lloh78:
	ldr	x8, [x8, _IB_CC_CCKEY_F@GOTPAGEOFF]
Lloh79:
	ldr	w2, [x8]
	ldr	x3, [x20]
	mov	x0, x19
	mov	w1, #0
	bl	_mad_set_field64
LBB0_19:
	cbz	x21, LBB0_21
; %bb.20:
	ldrsw	x8, [x20, #12]
	add	x0, x19, x8
	ldr	w2, [x20, #20]
	mov	x1, x21
	bl	_memcpy
LBB0_21:
	ldrb	w0, [x20, #4]
	bl	_mad_is_vendor_range2
	cbz	x0, LBB0_23
; %bb.22:
Lloh80:
	adrp	x8, _IB_VEND2_OUI_F@GOTPAGE
Lloh81:
	ldr	x8, [x8, _IB_VEND2_OUI_F@GOTPAGEOFF]
Lloh82:
	ldr	w2, [x8]
	ldr	w3, [x20, #16]
	mov	x0, x19
	mov	w1, #0
	bl	_mad_set_field
LBB0_23:
Lloh83:
	adrp	x8, _IB_MAD_SIZE@GOTPAGE
Lloh84:
	ldr	x8, [x8, _IB_MAD_SIZE@GOTPAGEOFF]
Lloh85:
	ldrsw	x8, [x8]
	add	x0, x19, x8
LBB0_24:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotStr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh72, Lloh73
	.loh AdrpLdrGot	Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_MAD_RESPONSE,4,2            ; @IB_MAD_RESPONSE
	.comm	_IB_MAD_METHOD_F,4,2            ; @IB_MAD_METHOD_F
	.comm	_IB_MAD_RESPONSE_F,4,2          ; @IB_MAD_RESPONSE_F
	.comm	_IB_SA_CLASS,4,2                ; @IB_SA_CLASS
	.comm	_IB_CC_CLASS,4,2                ; @IB_CC_CLASS
	.comm	_IB_MAD_CLASSVER_F,4,2          ; @IB_MAD_CLASSVER_F
	.comm	_IB_MAD_MGMTCLASS_F,4,2         ; @IB_MAD_MGMTCLASS_F
	.comm	_IB_MAD_BASEVER_F,4,2           ; @IB_MAD_BASEVER_F
	.comm	_IB_SMI_DIRECT_CLASS,4,2        ; @IB_SMI_DIRECT_CLASS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"encoding dr mad without drpath (null)"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
	.comm	_IB_SUBNET_PATH_HOPS_MAX,8,3    ; @IB_SUBNET_PATH_HOPS_MAX
l_.str.1:                               ; @.str.1
	.asciz	"dr path with hop count %d"

	.comm	_IB_DRSMP_HOPCNT_F,4,2          ; @IB_DRSMP_HOPCNT_F
	.comm	_IB_DRSMP_HOPPTR_F,4,2          ; @IB_DRSMP_HOPPTR_F
	.comm	_IB_DRSMP_STATUS_F,4,2          ; @IB_DRSMP_STATUS_F
	.comm	_IB_DRSMP_DIRECTION_F,4,2       ; @IB_DRSMP_DIRECTION_F
	.comm	_IB_MAD_STATUS_F,4,2            ; @IB_MAD_STATUS_F
	.comm	_IB_MAD_TRID_F,4,2              ; @IB_MAD_TRID_F
	.comm	_IB_MAD_ATTRID_F,4,2            ; @IB_MAD_ATTRID_F
	.comm	_IB_MAD_ATTRMOD_F,4,2           ; @IB_MAD_ATTRMOD_F
	.comm	_IB_MAD_MKEY_F,4,2              ; @IB_MAD_MKEY_F
	.comm	_IB_DRSMP_DRDLID_F,4,2          ; @IB_DRSMP_DRDLID_F
	.comm	_IB_DRSMP_DRSLID_F,4,2          ; @IB_DRSMP_DRSLID_F
	.comm	_IB_DRSMP_RPATH_F,4,2           ; @IB_DRSMP_RPATH_F
	.comm	_IB_DRSMP_PATH_F,4,2            ; @IB_DRSMP_PATH_F
	.comm	_IB_SA_COMPMASK_F,4,2           ; @IB_SA_COMPMASK_F
	.comm	_IB_CC_CCKEY_F,4,2              ; @IB_CC_CCKEY_F
	.comm	_IB_VEND2_OUI_F,4,2             ; @IB_VEND2_OUI_F
	.comm	_IB_MAD_SIZE,4,2                ; @IB_MAD_SIZE
.subsections_via_symbols
