	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cm_alloc_msg
_cm_alloc_msg:                          ## @cm_alloc_msg
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movq	(%rax), %r12
	movq	(%r12), %rax
	movl	(%rax), %edi
	leaq	12(%rbx), %rsi
	callq	_ib_create_ah
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%r15, %rdi
	jmp	LBB0_2
LBB0_3:
	movl	8(%rbx), %edx
	movl	24(%rbx), %esi
	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
	movl	%eax, (%rsp)
	movq	%r12, %rdi
	xorl	%ecx, %ecx
	callq	_ib_create_send_mad
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	callq	_ib_destroy_ah
	movq	%r12, %rdi
LBB0_2:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_5:
	movq	%r15, 16(%r12)
	movl	4(%rbx), %eax
	movl	%eax, 8(%r12)
	movq	%rbx, %rdi
	callq	_atomic_inc
	movq	(%r12), %rax
	movq	%rbx, (%rax)
	movq	%r12, (%r14)
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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
	.no_dead_strip	_cm_alloc_msg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cm_alloc_msg
_cm_alloc_msg:                          ; @cm_alloc_msg
	.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, x1
	mov	x20, x0
	ldr	x8, [x0, #16]
	ldr	x22, [x8]
	ldr	x8, [x22]
	ldr	w0, [x8]
	add	x1, x20, #12
	bl	_ib_create_ah
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x21
	b	LBB0_4
LBB0_2:
	ldr	w1, [x20, #24]
	ldr	w2, [x20, #8]
Lloh0:
	adrp	x8, _IB_MGMT_MAD_HDR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_MGMT_MAD_HDR@GOTPAGEOFF]
Lloh2:
	ldr	w4, [x8]
Lloh3:
	adrp	x8, _IB_MGMT_MAD_DATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IB_MGMT_MAD_DATA@GOTPAGEOFF]
Lloh5:
	ldr	w5, [x8]
Lloh6:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh8:
	ldr	w6, [x8]
	mov	x0, x22
	mov	w3, #0
	bl	_ib_create_send_mad
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.3:
	mov	x0, x21
	bl	_ib_destroy_ah
	mov	x0, x22
LBB0_4:
	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	_PTR_ERR
LBB0_5:
	str	x21, [x22, #16]
	ldr	w8, [x20, #4]
	str	w8, [x22, #8]
	mov	x0, x20
	bl	_atomic_inc
	ldr	x8, [x22]
	str	x20, [x8]
	str	x22, [x19]
	mov	w0, #0
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.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
	.no_dead_strip	_cm_alloc_msg
.subsections_via_symbols
