	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qib_send_trap
_qib_send_trap:                         ## @qib_send_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	48(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_18
## %bb.1:
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %r13
	callq	_ppd_from_ibp
	movq	_QIBL_LINKACTIVE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_18
## %bb.2:
	movq	16(%r13), %rsi
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.3:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_time_before
	testq	%rax, %rax
	jne	LBB0_18
LBB0_4:
	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), %r10d
	movq	_IB_MGMT_BASE_VERSION@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	pushq	%rax
	pushq	%r10
	callq	_ib_create_send_mad
	addq	$16, %rsp
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_18
## %bb.5:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %rbx
	movl	(%r14), %eax
	movl	%eax, 24(%rbx)
	movq	_IB_MGMT_CLASS_SUBN_LID_ROUTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movl	$1, (%rbx)
	movq	_IB_MGMT_METHOD_TRAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movl	40(%r13), %edi
	incl	%edi
	movl	%edi, 40(%r13)
	callq	_cpu_to_be64
	movl	%eax, 12(%rbx)
	movq	_IB_SMP_ATTR_NOTICE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movl	4(%rbx), %edi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_memcpy
	leaq	24(%r13), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	32(%r13), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.10:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rax, (%rbx)
LBB0_11:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
LBB0_14:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_ib_post_send_mad
	testl	%eax, %eax
	jne	LBB0_16
## %bb.15:
	movb	8(%r13), %cl
	movl	$4096, %eax                     ## imm = 0x1000
	shlq	%cl, %rax
	shrq	$3, %rax
	movabsq	$2361183241434822607, %rcx      ## imm = 0x20C49BA5E353F7CF
	mulq	%rcx
	movq	%rdx, %rdi
	shrq	$4, %rdi
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	callq	_usecs_to_jiffies
	addq	%rbx, %rax
	jmp	LBB0_17
LBB0_6:
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	(%r13), %rbx
	movq	_IB_LID_PERMISSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_be16_to_cpu
	cmpq	%rax, %rbx
	jne	LBB0_7
## %bb.12:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	movq	%r12, %rbx
	jmp	LBB0_13
LBB0_7:
	movl	(%r13), %esi
	movq	%r13, %rdi
	callq	_qib_create_qp0_ah
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	movq	%r12, %rbx
	je	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	callq	_PTR_ERR
	movl	%eax, %r14d
LBB0_13:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	testl	%r14d, %r14d
	je	LBB0_14
LBB0_16:
	movq	%rbx, %rdi
	callq	_ib_free_send_mad
	xorl	%eax, %eax
LBB0_17:
	movq	%rax, 16(%r13)
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%r14, (%rbx)
	movq	%r14, %rdi
	callq	_ibah_to_rvtah
	movq	%rax, 32(%r13)
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_QIBL_LINKACTIVE,4,2            ## @QIBL_LINKACTIVE
	.comm	_jiffies,8,3                    ## @jiffies
	.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	_IB_MGMT_CLASS_SUBN_LID_ROUTED,4,2 ## @IB_MGMT_CLASS_SUBN_LID_ROUTED
	.comm	_IB_MGMT_METHOD_TRAP,4,2        ## @IB_MGMT_METHOD_TRAP
	.comm	_IB_SMP_ATTR_NOTICE,4,2         ## @IB_SMP_ATTR_NOTICE
	.comm	_IB_LID_PERMISSIVE,4,2          ## @IB_LID_PERMISSIVE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_qib_send_trap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qib_send_trap
_qib_send_trap:                         ; @qib_send_trap
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [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 w23, -56
	.cfi_offset w24, -64
	ldr	x20, [x0, #48]
	cbz	x20, LBB0_17
; %bb.1:
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	bl	_ppd_from_ibp
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _QIBL_LINKACTIVE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _QIBL_LINKACTIVE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_17
; %bb.2:
	ldr	x1, [x19, #16]
	cbz	x1, LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _jiffies@GOTPAGE
Lloh4:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh5:
	ldr	x0, [x8]
	bl	_time_before
	cbnz	x0, LBB0_17
LBB0_4:
Lloh6:
	adrp	x8, _IB_MGMT_MAD_HDR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IB_MGMT_MAD_HDR@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
Lloh9:
	adrp	x8, _IB_MGMT_MAD_DATA@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IB_MGMT_MAD_DATA@GOTPAGEOFF]
Lloh11:
	ldr	w5, [x8]
Lloh12:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh14:
	ldr	w6, [x8]
Lloh15:
	adrp	x23, _IB_MGMT_BASE_VERSION@GOTPAGE
Lloh16:
	ldr	x23, [x23, _IB_MGMT_BASE_VERSION@GOTPAGEOFF]
	ldr	w7, [x23]
	mov	x0, x20
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	bl	_ib_create_send_mad
	mov	x20, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_17
; %bb.5:
	ldr	x24, [x20, #8]
	ldr	w8, [x23]
Lloh17:
	adrp	x9, _IB_MGMT_CLASS_SUBN_LID_ROUTED@GOTPAGE
Lloh18:
	ldr	x9, [x9, _IB_MGMT_CLASS_SUBN_LID_ROUTED@GOTPAGEOFF]
	str	w8, [x24, #24]
Lloh19:
	ldr	w8, [x9]
	mov	w9, #1
	str	w9, [x24]
Lloh20:
	adrp	x9, _IB_MGMT_METHOD_TRAP@GOTPAGE
Lloh21:
	ldr	x9, [x9, _IB_MGMT_METHOD_TRAP@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	stp	w9, w8, [x24, #16]
	ldr	w8, [x19, #40]
	add	w0, w8, #1
	str	w0, [x19, #40]
	bl	_cpu_to_be64
Lloh23:
	adrp	x8, _IB_SMP_ATTR_NOTICE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _IB_SMP_ATTR_NOTICE@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	stp	w8, w0, [x24, #8]
	ldr	w0, [x24, #4]
	mov	x1, x22
	mov	x2, x21
	bl	_memcpy
	add	x21, x19, #24
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_10
; %bb.6:
	str	x8, [x20]
LBB0_7:
	mov	x0, x21
	bl	_spin_unlock_irqrestore
LBB0_8:
	mov	x0, x20
	mov	x1, #0
	bl	_ib_post_send_mad
	cbnz	w0, LBB0_15
; %bb.9:
	ldr	x8, [x19, #8]
	mov	w9, #4096
	lsl	x8, x9, x8
	lsr	x8, x8, #3
	mov	x9, #63439
	movk	x9, #58195, lsl #16
	movk	x9, #39845, lsl #32
	movk	x9, #8388, lsl #48
	umulh	x8, x8, x9
	lsr	x0, x8, #4
Lloh26:
	adrp	x8, _jiffies@GOTPAGE
Lloh27:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh28:
	ldr	x20, [x8]
	bl	_usecs_to_jiffies
	add	x8, x0, x20
	b	LBB0_16
LBB0_10:
	ldr	x22, [x19]
Lloh29:
	adrp	x8, _IB_LID_PERMISSIVE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _IB_LID_PERMISSIVE@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	bl	_be16_to_cpu
	cmp	x22, x0
	b.ne	LBB0_12
; %bb.11:
Lloh32:
	adrp	x8, _EINVAL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_14
LBB0_12:
	ldr	w1, [x19]
	mov	x0, x19
	bl	_qib_create_qp0_ah
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_18
; %bb.13:
	mov	x0, x22
	bl	_PTR_ERR
	mov	x22, x0
LBB0_14:
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	cbz	w22, LBB0_8
LBB0_15:
	mov	x0, x20
	bl	_ib_free_send_mad
	mov	x8, #0
LBB0_16:
	str	x8, [x19, #16]
LBB0_17:
	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	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_18:
	str	x22, [x20]
	mov	x0, x22
	bl	_ibah_to_rvtah
	str	x0, [x19, #32]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_QIBL_LINKACTIVE,4,2            ; @QIBL_LINKACTIVE
	.comm	_jiffies,8,3                    ; @jiffies
	.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	_IB_MGMT_CLASS_SUBN_LID_ROUTED,4,2 ; @IB_MGMT_CLASS_SUBN_LID_ROUTED
	.comm	_IB_MGMT_METHOD_TRAP,4,2        ; @IB_MGMT_METHOD_TRAP
	.comm	_IB_SMP_ATTR_NOTICE,4,2         ; @IB_SMP_ATTR_NOTICE
	.comm	_IB_LID_PERMISSIVE,4,2          ; @IB_LID_PERMISSIVE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_qib_send_trap
.subsections_via_symbols
