	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_umad_register_oui              ## -- Begin function umad_register_oui
	.p2align	4, 0x90
_umad_register_oui:                     ## @umad_register_oui
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r12
	movq	%rcx, %r15
	movq	%rdx, %r13
	movl	%esi, %ebx
	movl	%edi, %r14d
	movl	(%rcx), %r8d
	movl	8(%rcx), %r9d
	movl	16(%rcx), %eax
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	movl	%r13d, %ecx
	pushq	%r12
	pushq	%rax
	callq	_TRACE
	addq	$16, %rsp
	leal	-80(%rbx), %eax
	cmpl	$-33, %eax
	ja	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	xorl	%r12d, %r12d
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_DEBUG
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_2:
	movl	$1, -80(%rbp)
	movl	%ebx, -76(%rbp)
	movl	$1, -72(%rbp)
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	%r13, -64(%rbp)
	testq	%r12, %r12
	je	LBB0_4
## %bb.3:
	movq	%r12, %rsi
	movl	$4, %edx
	callq	_memcpy
	jmp	LBB0_5
LBB0_4:
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
LBB0_5:
	leaq	-80(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$40, %esi
	callq	_VALGRIND_MAKE_MEM_DEFINED
	movq	_IB_USER_MAD_REGISTER_AGENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	movq	%rbx, %rdx
	callq	_ioctl
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movl	-80(%rbp), %edx
	movl	-76(%rbp), %ecx
	movl	-72(%rbp), %r8d
	leaq	L_.str.3(%rip), %rdi
	xorl	%r12d, %r12d
	movl	%r14d, %esi
	movq	%r15, %r9
	xorl	%eax, %eax
	callq	_DEBUG
	movq	_EPERM@GOTPCREL(%rip), %rax
LBB0_8:
	subl	(%rax), %r12d
	jmp	LBB0_9
LBB0_6:
	movl	-56(%rbp), %edx
	movl	-80(%rbp), %ecx
	movl	-76(%rbp), %r8d
	leaq	L_.str.2(%rip), %rdi
	movl	%r14d, %esi
	movq	%r15, %r9
	xorl	%eax, %eax
	callq	_DEBUG
	movl	-56(%rbp), %r12d
LBB0_9:
	movl	%r12d, %eax
	addq	$40, %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	"fd %d mgmt_class %u rmpp_version %d oui 0x%x%x%x method_mask %p"

L_.str.1:                               ## @.str.1
	.asciz	"mgmt class %d not in vendor range 2"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IB_USER_MAD_REGISTER_AGENT,4,2 ## @IB_USER_MAD_REGISTER_AGENT
L_.str.2:                               ## @.str.2
	.asciz	"fd %d registered to use agent %d qp %d class 0x%x oui %p"

L_.str.3:                               ## @.str.3
	.asciz	"fd %d registering qp %d class 0x%x version %d oui %p failed: %m"

	.comm	_EPERM,4,2                      ## @EPERM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_umad_register_oui              ; -- Begin function umad_register_oui
	.p2align	2
_umad_register_oui:                     ; @umad_register_oui
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x21, x4
	mov	x20, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	ldr	w4, [x3]
	ldr	w5, [x3, #8]
	ldr	w6, [x3, #16]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x2, x23
	mov	x3, x22
	mov	x7, x21
	bl	_TRACE
	sub	w8, w23, #80
	cmn	w8, #33
	b.hi	LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x23
	bl	_DEBUG
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_2:
	mov	w8, #1
	stp	w8, w23, [sp, #40]
	str	w8, [sp, #48]
	mov	x1, x20
	mov	w2, #4
	bl	_memcpy
	str	x22, [sp, #56]
	cbz	x21, LBB0_4
; %bb.3:
	mov	x1, x21
	mov	w2, #4
	bl	_memcpy
	b	LBB0_5
LBB0_4:
	mov	w1, #0
	mov	w2, #4
	bl	_memset
LBB0_5:
	add	x0, sp, #40
	mov	w1, #40
	bl	_VALGRIND_MAKE_MEM_DEFINED
Lloh6:
	adrp	x8, _IB_USER_MAD_REGISTER_AGENT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IB_USER_MAD_REGISTER_AGENT@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #40
	mov	x0, x19
	bl	_ioctl
	cbz	w0, LBB0_8
; %bb.6:
	ldp	w8, w9, [sp, #40]
	ldr	w10, [sp, #48]
	stp	x10, x20, [sp, #16]
	stp	x8, x9, [sp]
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x19
	bl	_DEBUG
Lloh11:
	adrp	x8, _EPERM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_8:
	ldr	w8, [sp, #64]
	ldp	w9, w10, [sp, #40]
	stp	x10, x20, [sp, #16]
	stp	x8, x9, [sp]
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	bl	_DEBUG
	ldr	w0, [sp, #64]
LBB0_9:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fd %d mgmt_class %u rmpp_version %d oui 0x%x%x%x method_mask %p"

l_.str.1:                               ; @.str.1
	.asciz	"mgmt class %d not in vendor range 2"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IB_USER_MAD_REGISTER_AGENT,4,2 ; @IB_USER_MAD_REGISTER_AGENT
l_.str.2:                               ; @.str.2
	.asciz	"fd %d registered to use agent %d qp %d class 0x%x oui %p"

l_.str.3:                               ; @.str.3
	.asciz	"fd %d registering qp %d class 0x%x version %d oui %p failed: %m"

	.comm	_EPERM,4,2                      ; @EPERM
.subsections_via_symbols
