	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smp_engine_init                ## -- Begin function smp_engine_init
	.p2align	4, 0x90
_smp_engine_init:                       ## @smp_engine_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r12
	movl	%edx, %r13d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	xorl	%eax, %eax
	callq	_umad_init
	testq	%rax, %rax
	js	LBB0_1
## %bb.3:
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_umad_open_port
	movq	%rax, (%rbx)
	testq	%rax, %rax
	js	LBB0_4
## %bb.5:
	movq	_IB_SMI_CLASS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	xorl	%r15d, %r15d
	movq	%rax, %rdi
	movl	$1, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_umad_register
	movq	%rax, 40(%rbx)
	movq	(%rbx), %rdi
	movq	_IB_SMI_DIRECT_CLASS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_umad_register
	movq	%rax, 32(%rbx)
	movq	%r12, 24(%rbx)
	leaq	16(%rbx), %rdi
	callq	_cl_qmap_init
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%rbx)
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_IBND_ERROR
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	xorl	%r15d, %r15d
	movq	%r14, %rsi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_IBND_ERROR
LBB0_2:
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
LBB0_6:
	movl	%r15d, %eax
	addq	$8, %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	"umad_init failed\n"

	.comm	_EIO,4,2                        ## @EIO
L_.str.1:                               ## @.str.1
	.asciz	"can't open UMAD port (%s:%d)\n"

	.comm	_IB_SMI_CLASS,4,2               ## @IB_SMI_CLASS
	.comm	_IB_SMI_DIRECT_CLASS,4,2        ## @IB_SMI_DIRECT_CLASS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smp_engine_init                ; -- Begin function smp_engine_init
	.p2align	2
_smp_engine_init:                       ; @smp_engine_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x4
	mov	x21, x3
	mov	x23, x2
	mov	x22, x1
	mov	x20, x0
	mov	w1, #0
	mov	w2, #48
	bl	_memset
	bl	_umad_init
	tbnz	x0, #63, LBB0_3
; %bb.1:
	mov	x0, x22
	mov	x1, x23
	bl	_umad_open_port
	str	x0, [x20]
	tbnz	x0, #63, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _IB_SMI_CLASS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_SMI_CLASS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #1
	mov	w3, #0
	mov	w4, #0
	bl	_umad_register
	str	x0, [x20, #40]
	ldr	x0, [x20]
Lloh3:
	adrp	x8, _IB_SMI_DIRECT_CLASS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IB_SMI_DIRECT_CLASS@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w2, #1
	mov	w3, #0
	mov	w4, #0
	bl	_umad_register
	stp	x21, x0, [x20, #24]
	add	x0, x20, #16
	bl	_cl_qmap_init
	mov	w0, #0
	str	x19, [x20, #8]
	b	LBB0_6
LBB0_3:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_5
LBB0_4:
	stp	x22, x23, [sp]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_5:
	bl	_IBND_ERROR
Lloh10:
	adrp	x8, _EIO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"umad_init failed\n"

	.comm	_EIO,4,2                        ; @EIO
l_.str.1:                               ; @.str.1
	.asciz	"can't open UMAD port (%s:%d)\n"

	.comm	_IB_SMI_CLASS,4,2               ; @IB_SMI_CLASS
	.comm	_IB_SMI_DIRECT_CLASS,4,2        ; @IB_SMI_DIRECT_CLASS
.subsections_via_symbols
