	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_umad_register                  ## -- Begin function umad_register
	.p2align	4, 0x90
_umad_register:                         ## @umad_register
	.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	$72, %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, %r14d
	movl	%edx, %r15d
	movl	%esi, %r13d
	movl	%edi, %ebx
	movq	_IB_OPENIB_OUI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htobe32
	movl	%eax, -60(%rbp)
	leaq	L_.str(%rip), %rdi
	movl	%ebx, -56(%rbp)                 ## 4-byte Spill
	movl	%ebx, %esi
	movl	%r13d, %edx
	movl	%r15d, %ecx
	movl	%r14d, %r8d
	movq	%r12, %r9
	callq	_TRACE
	movl	%r13d, %eax
	andl	$-129, %eax
	xorl	%ecx, %ecx
	cmpl	$1, %eax
	setne	%cl
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, -104(%rbp)
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	movl	%r13d, -100(%rbp)
	movl	%r15d, -52(%rbp)                ## 4-byte Spill
	movl	%r15d, -96(%rbp)
	movl	%r14d, -72(%rbp)
	testq	%r12, %r12
	je	LBB0_2
## %bb.1:
	movl	$8, %edx
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	_memcpy
	jmp	LBB0_3
LBB0_2:
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
LBB0_3:
	leaq	-88(%rbp), %rdi
	leaq	-59(%rbp), %rsi
	xorl	%r15d, %r15d
	movl	$4, %edx
	xorl	%eax, %eax
	callq	_memcpy
	leaq	-104(%rbp), %r14
	movq	%r14, %rdi
	movl	$40, %esi
	callq	_VALGRIND_MAKE_MEM_DEFINED
	movq	_IB_USER_MAD_REGISTER_AGENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-56(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	movq	%r14, %rdx
	callq	_ioctl
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	movl	%ebx, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	-52(%rbp), %r8d                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_DEBUG
	movq	_EPERM@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_6
LBB0_4:
	movl	-92(%rbp), %edx
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_DEBUG
	movl	-92(%rbp), %r15d
LBB0_6:
	movl	%r15d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_OPENIB_OUI,4,2              ## @IB_OPENIB_OUI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fd %d mgmt_class %u mgmt_version %u rmpp_version %d method_mask %p"

	.comm	_IB_USER_MAD_REGISTER_AGENT,4,2 ## @IB_USER_MAD_REGISTER_AGENT
L_.str.1:                               ## @.str.1
	.asciz	"fd %d registered to use agent %d qp %d"

L_.str.2:                               ## @.str.2
	.asciz	"fd %d registering qp %d class 0x%x version %d 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                  ; -- Begin function umad_register
	.p2align	2
_umad_register:                         ; @umad_register
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x23, x4
	mov	x24, x3
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _IB_OPENIB_OUI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_OPENIB_OUI@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_htobe32
	str	w0, [sp, #20]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x2, x20
	mov	x3, x21
	mov	x4, x24
	mov	x5, x23
	bl	_TRACE
	and	w8, w20, #0xffffff7f
	cmp	w8, #1
	cset	w22, ne
	stp	w22, w20, [sp, #24]
	str	w21, [sp, #32]
	str	w24, [sp, #56]
	cbz	x23, LBB0_2
; %bb.1:
	mov	w8, #8
	stp	x23, x8, [sp]
	bl	_memcpy
	b	LBB0_3
LBB0_2:
	mov	w1, #0
	mov	w2, #8
	bl	_memset
LBB0_3:
	add	x8, sp, #24
	add	x0, x8, #16
	add	x8, sp, #20
	orr	x8, x8, #0x1
	mov	w9, #4
	stp	x8, x9, [sp]
	bl	_memcpy
	add	x0, sp, #24
	mov	w1, #40
	bl	_VALGRIND_MAKE_MEM_DEFINED
Lloh5:
	adrp	x8, _IB_USER_MAD_REGISTER_AGENT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IB_USER_MAD_REGISTER_AGENT@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	add	x2, sp, #24
	mov	x0, x19
	bl	_ioctl
	cbz	w0, LBB0_5
; %bb.4:
	str	x21, [sp]
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	mov	x2, x22
	mov	x3, x20
	bl	_DEBUG
Lloh10:
	adrp	x8, _EPERM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_5:
	ldr	w2, [sp, #36]
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	mov	x3, x22
	bl	_DEBUG
	ldr	w0, [sp, #36]
LBB0_6:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_OPENIB_OUI,4,2              ; @IB_OPENIB_OUI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fd %d mgmt_class %u mgmt_version %u rmpp_version %d method_mask %p"

	.comm	_IB_USER_MAD_REGISTER_AGENT,4,2 ; @IB_USER_MAD_REGISTER_AGENT
l_.str.1:                               ; @.str.1
	.asciz	"fd %d registered to use agent %d qp %d"

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

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