	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mad_register_server_via        ## -- Begin function mad_register_server_via
	.p2align	4, 0x90
_mad_register_server_via:               ## @mad_register_server_via
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r12
	movl	%ecx, -84(%rbp)                 ## 4-byte Spill
	movl	%esi, %ebx
	movl	%edi, %r15d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-64(%rbp), %rdi
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.1:
	movq	%rdx, %rsi
	movl	$16, %edx
	callq	_memcpy
	jmp	LBB0_3
LBB0_2:
	movl	$255, %esi
	movl	$16, %edx
	callq	_memset
LBB0_3:
	movl	$-1, %r14d
	testq	%r12, %r12
	je	LBB0_16
## %bb.4:
	movl	%ebx, -80(%rbp)                 ## 4-byte Spill
	movq	(%r12), %rax
	movslq	%r15d, %r13
	movl	(%rax,%r13,4), %edx
	testl	%edx, %edx
	js	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_DEBUG
	jmp	LBB0_16
LBB0_6:
	movl	%r15d, %edi
	callq	_mgmt_class_vers
	testl	%eax, %eax
	jle	LBB0_7
## %bb.9:
	movq	_IB_VENDOR_RANGE2_START_CLASS@GOTPCREL(%rip), %rcx
	cmpl	%r15d, (%rcx)
	jg	LBB0_14
## %bb.10:
	movq	_IB_VENDOR_RANGE2_END_CLASS@GOTPCREL(%rip), %rcx
	cmpl	%r15d, (%rcx)
	jl	LBB0_14
## %bb.11:
	movl	-84(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, %eax
	shrl	$16, %eax
	movzbl	%al, %eax
	movl	%eax, -76(%rbp)
	movzbl	%ch, %eax
	movl	%eax, -72(%rbp)
	movzbl	%cl, %eax
	movl	%eax, -68(%rbp)
	movl	8(%r12), %edi
	leaq	-76(%rbp), %rcx
	leaq	-64(%rbp), %r8
	movl	%r15d, %esi
	movl	-80(%rbp), %edx                 ## 4-byte Reload
	callq	_umad_register_oui
	testl	%eax, %eax
	jns	LBB0_15
LBB0_13:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str.1(%rip), %rdi
LBB0_8:
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_DEBUG
	jmp	LBB0_16
LBB0_14:
	movl	8(%r12), %edi
	leaq	-64(%rbp), %r8
	movl	%r15d, %esi
	movl	%eax, %edx
	movl	-80(%rbp), %ecx                 ## 4-byte Reload
	callq	_umad_register
	testl	%eax, %eax
	js	LBB0_13
LBB0_15:
	movq	(%r12), %rcx
	movl	%eax, (%rcx,%r13,4)
	movl	%eax, %r14d
LBB0_16:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_18
## %bb.17:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Class 0x%x already registered %d"

L_.str.1:                               ## @.str.1
	.asciz	"Unknown class 0x%x mgmt_class"

	.comm	_IB_VENDOR_RANGE2_START_CLASS,4,2 ## @IB_VENDOR_RANGE2_START_CLASS
	.comm	_IB_VENDOR_RANGE2_END_CLASS,4,2 ## @IB_VENDOR_RANGE2_END_CLASS
L_.str.2:                               ## @.str.2
	.asciz	"Can't register agent for class %d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function mad_register_server_via
lCPI0_0:
	.long	4294967280                      ; 0xfffffff0
	.long	4294967288                      ; 0xfffffff8
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_mad_register_server_via
	.p2align	2
_mad_register_server_via:               ; @mad_register_server_via
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x20, x4
	mov	x22, x3
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	add	x0, sp, #24
	cbz	x2, LBB0_2
; %bb.1:
	mov	x1, x2
	mov	w2, #16
	bl	_memcpy
	cbnz	x20, LBB0_3
	b	LBB0_6
LBB0_2:
	mov	w1, #255
	mov	w2, #16
	bl	_memset
	cbz	x20, LBB0_6
LBB0_3:
	ldr	x8, [x20]
	ldr	w8, [x8, w19, sxtw #2]
	tbnz	w8, #31, LBB0_9
; %bb.4:
	str	x8, [sp]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
LBB0_5:
	mov	x1, x19
	bl	_DEBUG
LBB0_6:
	mov	w0, #-1
LBB0_7:
	ldr	x8, [sp, #40]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.8:
	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
	add	sp, sp, #96
	ret
LBB0_9:
	mov	x0, x19
	bl	_mgmt_class_vers
	cmp	w0, #0
	b.le	LBB0_13
; %bb.10:
Lloh8:
	adrp	x8, _IB_VENDOR_RANGE2_START_CLASS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IB_VENDOR_RANGE2_START_CLASS@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _IB_VENDOR_RANGE2_END_CLASS@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IB_VENDOR_RANGE2_END_CLASS@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	cmp	w8, w19
	ccmp	w9, w19, #8, le
	b.ge	LBB0_14
; %bb.11:
	mov	x2, x0
	ldr	w0, [x20, #8]
	add	x4, sp, #24
	mov	x1, x19
	mov	x3, x21
	bl	_umad_register
	tbnz	w0, #31, LBB0_15
LBB0_12:
	sxtw	x8, w19
	ldr	x9, [x20]
	str	w0, [x9, x8, lsl #2]
	b	LBB0_7
LBB0_13:
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_14:
	dup.2s	v0, w22
Lloh16:
	adrp	x8, lCPI0_0@PAGE
Lloh17:
	ldr	d1, [x8, lCPI0_0@PAGEOFF]
	ushl.2s	v0, v0, v1
	movi	d1, #0x0000ff000000ff
	and.8b	v0, v0, v1
	str	d0, [sp, #8]
	and	w8, w22, #0xff
	str	w8, [sp, #16]
	ldr	w0, [x20, #8]
	add	x3, sp, #8
	add	x4, sp, #24
	mov	x1, x19
	mov	x2, x21
	bl	_umad_register_oui
	tbz	w0, #31, LBB0_12
LBB0_15:
Lloh18:
	adrp	x0, l_.str.2@PAGE
Lloh19:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_5
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdr	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Class 0x%x already registered %d"

l_.str.1:                               ; @.str.1
	.asciz	"Unknown class 0x%x mgmt_class"

	.comm	_IB_VENDOR_RANGE2_START_CLASS,4,2 ; @IB_VENDOR_RANGE2_START_CLASS
	.comm	_IB_VENDOR_RANGE2_END_CLASS,4,2 ; @IB_VENDOR_RANGE2_END_CLASS
l_.str.2:                               ; @.str.2
	.asciz	"Can't register agent for class %d"

.subsections_via_symbols
