	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function forward_trap
_forward_trap:                          ## @forward_trap
	.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	%rdx, %r12
	movq	%rdi, %r14
	movq	(%rdx), %rax
	movq	_IB_MGMT_CLASS_SUBN_LID_ROUTED@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	xorl	%edx, %edx
	cmpq	%rcx, %rax
	setne	%dl
	movq	16(%rdi), %rdi
	movslq	%esi, %r13
	movq	-8(%rdi,%r13,8), %rsi
	movq	(%rsi,%rdx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.1:
	xorl	%esi, %esi
	cmpq	%rcx, %rax
	setne	%sil
	movq	_IB_MGMT_MAD_HDR@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_IB_MGMT_MAD_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_IB_MGMT_BASE_VERSION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	pushq	%rbx
	pushq	%rax
	callq	_ib_create_send_mad
	addq	$16, %rsp
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	decq	%r13
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movl	4(%r15), %edi
	movq	%r12, %rsi
	movl	$8, %edx
	callq	_memcpy
	movq	8(%r14), %rax
	movl	(%rax,%r13,4), %eax
	movl	%eax, (%r15)
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_ib_post_send_mad
	movl	%eax, %ebx
	jmp	LBB0_5
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_5:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.7:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ib_free_send_mad               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_MGMT_CLASS_SUBN_LID_ROUTED,8,3 ## @IB_MGMT_CLASS_SUBN_LID_ROUTED
	.comm	_IB_MGMT_MAD_HDR,4,2            ## @IB_MGMT_MAD_HDR
	.comm	_IB_MGMT_MAD_DATA,4,2           ## @IB_MGMT_MAD_DATA
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_IB_MGMT_BASE_VERSION,4,2       ## @IB_MGMT_BASE_VERSION
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_forward_trap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function forward_trap
_forward_trap:                          ; @forward_trap
	.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
	mov	x19, x0
	ldr	x8, [x2]
Lloh0:
	adrp	x9, _IB_MGMT_CLASS_SUBN_LID_ROUTED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IB_MGMT_CLASS_SUBN_LID_ROUTED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w10, ne
	ldr	x11, [x0, #16]
	sub	w22, w1, #1
	ldr	x11, [x11, w22, sxtw #3]
	ldr	x0, [x11, w10, uxtw #3]
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x2
	cmp	x8, x9
	cset	w1, ne
Lloh3:
	adrp	x8, _IB_MGMT_MAD_HDR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IB_MGMT_MAD_HDR@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
Lloh6:
	adrp	x8, _IB_MGMT_MAD_DATA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IB_MGMT_MAD_DATA@GOTPAGEOFF]
Lloh8:
	ldr	w5, [x8]
Lloh9:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh11:
	ldr	w6, [x8]
Lloh12:
	adrp	x8, _IB_MGMT_BASE_VERSION@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IB_MGMT_BASE_VERSION@GOTPAGEOFF]
Lloh14:
	ldr	w7, [x8]
	mov	w2, #0
	mov	w3, #0
	bl	_ib_create_send_mad
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_3
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
LBB0_3:
	sxtw	x22, w22
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	w0, [x21, #4]
	mov	x1, x20
	mov	w2, #8
	bl	_memcpy
	ldr	x8, [x19, #8]
	ldr	w8, [x8, x22, lsl #2]
	str	w8, [x21]
	cbz	w8, LBB0_5
; %bb.4:
	mov	x0, x21
	mov	x1, #0
	bl	_ib_post_send_mad
	mov	x20, x0
	b	LBB0_6
LBB0_5:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_6:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	cbz	w20, LBB0_2
; %bb.7:
	mov	x0, x21
	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
	b	_ib_free_send_mad
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_MGMT_CLASS_SUBN_LID_ROUTED,8,3 ; @IB_MGMT_CLASS_SUBN_LID_ROUTED
	.comm	_IB_MGMT_MAD_HDR,4,2            ; @IB_MGMT_MAD_HDR
	.comm	_IB_MGMT_MAD_DATA,4,2           ; @IB_MGMT_MAD_DATA
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_IB_MGMT_BASE_VERSION,4,2       ; @IB_MGMT_BASE_VERSION
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_forward_trap
.subsections_via_symbols
