	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_mad
_init_mad:                              ## @init_mad
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	_IB_SA_QUERY_OPA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r14), %eax
	movq	_OPA_SA_CLASS_VERSION@GOTPCREL(%rip), %rax
	cmoveq	_IB_SA_CLASS_VERSION@GOTPCREL(%rip), %rax
	movq	_OPA_MGMT_BASE_VERSION@GOTPCREL(%rip), %rcx
	cmoveq	_IB_MGMT_BASE_VERSION@GOTPCREL(%rip), %rcx
	movl	(%rax), %eax
	movl	(%rcx), %ecx
	movl	%ecx, 12(%rbx)
	movl	%eax, 8(%rbx)
	movq	_IB_MGMT_CLASS_SUBN_ADM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	_tid_lock@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_tid@GOTPCREL(%rip), %rax
	incl	(%rax)
	callq	_cpu_to_be64
	movl	%eax, (%rbx)
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_SA_QUERY_OPA,4,2            ## @IB_SA_QUERY_OPA
	.comm	_OPA_MGMT_BASE_VERSION,4,2      ## @OPA_MGMT_BASE_VERSION
	.comm	_OPA_SA_CLASS_VERSION,4,2       ## @OPA_SA_CLASS_VERSION
	.comm	_IB_MGMT_BASE_VERSION,4,2       ## @IB_MGMT_BASE_VERSION
	.comm	_IB_SA_CLASS_VERSION,4,2        ## @IB_SA_CLASS_VERSION
	.comm	_IB_MGMT_CLASS_SUBN_ADM,4,2     ## @IB_MGMT_CLASS_SUBN_ADM
	.comm	_tid_lock,4,2                   ## @tid_lock
	.comm	_tid,4,2                        ## @tid
	.no_dead_strip	_init_mad
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_mad
_init_mad:                              ; @init_mad
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x20, [x8]
	mov	x0, x20
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _IB_SA_QUERY_OPA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IB_SA_QUERY_OPA@GOTPAGEOFF]
Lloh2:
	adrp	x10, _IB_SA_CLASS_VERSION@GOTPAGE
Lloh3:
	ldr	x10, [x10, _IB_SA_CLASS_VERSION@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	adrp	x11, _OPA_SA_CLASS_VERSION@GOTPAGE
Lloh6:
	ldr	x11, [x11, _OPA_SA_CLASS_VERSION@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x10, x11, eq
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _IB_MGMT_BASE_VERSION@GOTPAGE
Lloh8:
	ldr	x9, [x9, _IB_MGMT_BASE_VERSION@GOTPAGEOFF]
Lloh9:
	adrp	x10, _OPA_MGMT_BASE_VERSION@GOTPAGE
Lloh10:
	ldr	x10, [x10, _OPA_MGMT_BASE_VERSION@GOTPAGEOFF]
	csel	x9, x9, x10, eq
	ldr	w9, [x9]
	str	w9, [x20, #12]
Lloh11:
	adrp	x9, _IB_MGMT_CLASS_SUBN_ADM@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IB_MGMT_CLASS_SUBN_ADM@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #4]
Lloh14:
	adrp	x19, _tid_lock@GOTPAGE
Lloh15:
	ldr	x19, [x19, _tid_lock@GOTPAGEOFF]
	mov	x0, x19
	bl	_spin_lock_irqsave
Lloh16:
	adrp	x8, _tid@GOTPAGE
Lloh17:
	ldr	x8, [x8, _tid@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	bl	_cpu_to_be64
	str	w0, [x20]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_SA_QUERY_OPA,4,2            ; @IB_SA_QUERY_OPA
	.comm	_OPA_MGMT_BASE_VERSION,4,2      ; @OPA_MGMT_BASE_VERSION
	.comm	_OPA_SA_CLASS_VERSION,4,2       ; @OPA_SA_CLASS_VERSION
	.comm	_IB_MGMT_BASE_VERSION,4,2       ; @IB_MGMT_BASE_VERSION
	.comm	_IB_SA_CLASS_VERSION,4,2        ; @IB_SA_CLASS_VERSION
	.comm	_IB_MGMT_CLASS_SUBN_ADM,4,2     ; @IB_MGMT_CLASS_SUBN_ADM
	.comm	_tid_lock,4,2                   ; @tid_lock
	.comm	_tid,4,2                        ; @tid
	.no_dead_strip	_init_mad
.subsections_via_symbols
