	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_mad_init                    ## -- Begin function ib_mad_init
	.p2align	4, 0x90
_ib_mad_init:                           ## @ib_mad_init
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_mad_recvq_size@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_IB_MAD_QP_MAX_SIZE@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_min
	movl	%eax, (%rbx)
	movq	_IB_MAD_QP_MIN_SIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	%eax, %edi
	callq	_max
	movl	%eax, (%rbx)
	movq	_mad_sendq_size@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	(%r14), %esi
	callq	_min
	movl	%eax, (%rbx)
	movl	(%r15), %esi
	movl	%eax, %edi
	callq	_max
	movl	%eax, (%rbx)
	movq	_ib_mad_port_list@GOTPCREL(%rip), %rdi
	callq	_INIT_LIST_HEAD
	movq	_mad_client@GOTPCREL(%rip), %rdi
	callq	_ib_register_client
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mad_recvq_size,4,2             ## @mad_recvq_size
	.comm	_IB_MAD_QP_MAX_SIZE,4,2         ## @IB_MAD_QP_MAX_SIZE
	.comm	_IB_MAD_QP_MIN_SIZE,4,2         ## @IB_MAD_QP_MIN_SIZE
	.comm	_mad_sendq_size,4,2             ## @mad_sendq_size
	.comm	_ib_mad_port_list,4,2           ## @ib_mad_port_list
	.comm	_mad_client,4,2                 ## @mad_client
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Couldn't register ib_mad client\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_mad_init                    ; -- Begin function ib_mad_init
	.p2align	2
_ib_mad_init:                           ; @ib_mad_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x19, _mad_recvq_size@GOTPAGE
Lloh1:
	ldr	x19, [x19, _mad_recvq_size@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh2:
	adrp	x20, _IB_MAD_QP_MAX_SIZE@GOTPAGE
Lloh3:
	ldr	x20, [x20, _IB_MAD_QP_MAX_SIZE@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_min
	str	w0, [x19]
Lloh4:
	adrp	x21, _IB_MAD_QP_MIN_SIZE@GOTPAGE
Lloh5:
	ldr	x21, [x21, _IB_MAD_QP_MIN_SIZE@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_max
	str	w0, [x19]
Lloh6:
	adrp	x19, _mad_sendq_size@GOTPAGE
Lloh7:
	ldr	x19, [x19, _mad_sendq_size@GOTPAGEOFF]
	ldr	w0, [x19]
	ldr	w1, [x20]
	bl	_min
	str	w0, [x19]
	ldr	w1, [x21]
	bl	_max
	str	w0, [x19]
Lloh8:
	adrp	x0, _ib_mad_port_list@GOTPAGE
Lloh9:
	ldr	x0, [x0, _ib_mad_port_list@GOTPAGEOFF]
	bl	_INIT_LIST_HEAD
Lloh10:
	adrp	x0, _mad_client@GOTPAGE
Lloh11:
	ldr	x0, [x0, _mad_client@GOTPAGEOFF]
	bl	_ib_register_client
	cbz	x0, LBB0_2
; %bb.1:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_mad_recvq_size,4,2             ; @mad_recvq_size
	.comm	_IB_MAD_QP_MAX_SIZE,4,2         ; @IB_MAD_QP_MAX_SIZE
	.comm	_IB_MAD_QP_MIN_SIZE,4,2         ; @IB_MAD_QP_MIN_SIZE
	.comm	_mad_sendq_size,4,2             ; @mad_sendq_size
	.comm	_ib_mad_port_list,4,2           ; @ib_mad_port_list
	.comm	_mad_client,4,2                 ; @mad_client
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Couldn't register ib_mad client\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
