	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function send_smp
_send_smp:                              ## @send_smp
	.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
	movl	$4104, %eax                     ## imm = 0x1008
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%eax, %eax
	callq	_umad_size
	movq	_IB_MAD_SIZE@GOTPCREL(%rip), %r13
	addq	(%r13), %rax
	leaq	-4144(%rbp), %rdi
	xorl	%esi, %esi
	movq	%rax, %rdx
	callq	_memset
	movq	8(%rbx), %rax
	movq	_IB_SMI_CLASS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	%r14, %rax
	jmp	LBB0_4
LBB0_2:
	movq	_IB_SMI_DIRECT_CLASS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.3:
	leaq	4(%r14), %rax
LBB0_4:
	leaq	8(%rbx), %rsi
	movl	(%rax), %r12d
	xorl	%r15d, %r15d
	leaq	-4144(%rbp), %rdi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_mad_build_pkt
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movl	16(%r14), %edi
	movq	(%r13), %rcx
	movq	8(%r14), %rax
	movl	(%rax), %r9d
	movl	4(%rax), %r8d
	leaq	-4144(%rbp), %rdx
	movl	%r12d, %esi
	callq	_umad_send
	testl	%eax, %eax
	jns	LBB0_9
## %bb.7:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_8
LBB0_5:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
LBB0_8:
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_IBND_ERROR
	movl	%ebx, %r15d
	jmp	LBB0_9
LBB0_11:
	leaq	L_.str(%rip), %rdi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_IBND_ERROR
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.10:
	movl	%r15d, %eax
	addq	$4104, %rsp                     ## imm = 0x1008
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_MAD_SIZE,8,3                ## @IB_MAD_SIZE
	.comm	_IB_SMI_CLASS,8,3               ## @IB_SMI_CLASS
	.comm	_IB_SMI_DIRECT_CLASS,8,3        ## @IB_SMI_DIRECT_CLASS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid class for RPC\n"

	.comm	_EIO,4,2                        ## @EIO
L_.str.1:                               ## @.str.1
	.asciz	"mad_build_pkt failed; %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"send failed; %d\n"

	.no_dead_strip	_send_smp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function send_smp
_send_smp:                              ; @send_smp
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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 w27, -56
	.cfi_offset w28, -64
	mov	w9, #4112
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #1, lsl #12             ; =4096
	sub	sp, sp, #16
	mov	x19, x1
	mov	x20, x0
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	bl	_umad_size
Lloh5:
	adrp	x22, _IB_MAD_SIZE@GOTPAGE
Lloh6:
	ldr	x22, [x22, _IB_MAD_SIZE@GOTPAGEOFF]
	ldr	x8, [x22]
	add	x2, x8, x0
	add	x0, sp, #8
	mov	w1, #0
	bl	_memset
	mov	x1, x20
	ldr	x8, [x1, #8]!
Lloh7:
	adrp	x9, _IB_SMI_CLASS@GOTPAGE
Lloh8:
	ldr	x9, [x9, _IB_SMI_CLASS@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x8, x19
	b	LBB0_4
LBB0_2:
Lloh10:
	adrp	x9, _IB_SMI_DIRECT_CLASS@GOTPAGE
Lloh11:
	ldr	x9, [x9, _IB_SMI_DIRECT_CLASS@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.3:
	add	x8, x19, #4
LBB0_4:
	ldr	w21, [x8]
	add	x0, sp, #8
	mov	x2, x20
	mov	x3, #0
	mov	x4, #0
	bl	_mad_build_pkt
	tbnz	w0, #31, LBB0_7
; %bb.5:
	ldr	w0, [x19, #16]
	ldr	x3, [x22]
	ldr	x8, [x19, #8]
	ldp	w5, w4, [x8]
	add	x2, sp, #8
	mov	x1, x21
	bl	_umad_send
	tbnz	w0, #31, LBB0_9
; %bb.6:
	mov	w20, #0
	b	LBB0_10
LBB0_7:
	mov	x20, x0
	str	x20, [sp]
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_IBND_ERROR
	b	LBB0_10
LBB0_8:
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_IBND_ERROR
Lloh17:
	adrp	x8, _EIO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_10
LBB0_9:
	mov	x20, x0
	str	x20, [sp]
Lloh20:
	adrp	x0, l_.str.2@PAGE
Lloh21:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_IBND_ERROR
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
LBB0_10:
	ldur	x8, [x29, #-56]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	mov	x0, x20
	add	sp, sp, #1, lsl #12             ; =4096
	add	sp, sp, #16
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_MAD_SIZE,8,3                ; @IB_MAD_SIZE
	.comm	_IB_SMI_CLASS,8,3               ; @IB_SMI_CLASS
	.comm	_IB_SMI_DIRECT_CLASS,8,3        ; @IB_SMI_DIRECT_CLASS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid class for RPC\n"

	.comm	_EIO,4,2                        ; @EIO
l_.str.1:                               ; @.str.1
	.asciz	"mad_build_pkt failed; %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"send failed; %d\n"

	.no_dead_strip	_send_smp
.subsections_via_symbols
