	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_c4iw_get_dma_mr                ## -- Begin function c4iw_get_dma_mr
	.p2align	4, 0x90
_c4iw_get_dma_mr:                       ## @c4iw_get_dma_mr
	.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
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	_T4_STAG_UNSET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_pr_debug
	movq	%rbx, %rdi
	callq	_to_c4iw_pd
	movq	%rax, %r12
	movq	8(%rax), %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	$96, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_13
## %bb.1:
	movq	%rax, %rbx
	movl	(%r13), %edi
	callq	_c4iw_alloc_wr_wait
	movl	%eax, (%rbx)
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movl	%eax, %edi
	callq	_c4iw_init_wr_wait
	movq	_SGE_MAX_WR_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r13), %esi
	callq	_alloc_skb
	movl	%eax, 4(%rbx)
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movq	%r14, 88(%rbx)
	movl	(%r12), %eax
	movl	%eax, 72(%rbx)
	movl	%r15d, %edi
	callq	_c4iw_ib_to_tpt_access
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, 44(%rbx)
	movq	_IB_ACCESS_MW_BIND@GOTPCREL(%rip), %rcx
	notl	%r15d
	xorl	%r10d, %r10d
	andl	(%rcx), %r15d
	sete	%r10b
	movl	%r10d, 8(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 48(%rbx)
	movq	$0, 64(%rbx)
	movq	$-1, 16(%rbx)
	movq	$0, 32(%rbx)
	movl	(%r12), %r8d
	movq	_FW_RI_STAG_NSMR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movl	(%rbx), %r11d
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$1, %ecx
	pushq	%r11
	pushq	$0
	pushq	$0
	pushq	$0
	pushq	$0
	pushq	$-1
	pushq	$0
	pushq	$0
	pushq	%r10
	pushq	%rax
	callq	_write_tpt_entry
	addq	$80, %rsp
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.6:
	movl	-44(%rbp), %esi
	movq	%rbx, %rdi
	callq	_finish_mem_reg
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movl	%eax, %r15d
	movl	40(%rbx), %esi
	movq	32(%rbx), %rdx
	movl	24(%rbx), %ecx
	movl	(%rbx), %r9d
	movl	4(%rbx), %r8d
	movq	%r14, %rdi
	callq	_dereg_mem
LBB0_9:
	movl	4(%rbx), %edi
	callq	_kfree_skb
	jmp	LBB0_10
LBB0_13:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_11
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_10:
	movl	(%rbx), %edi
	callq	_c4iw_put_wr_wait
LBB0_11:
	movq	%rbx, %rdi
	callq	_kfree
	movl	%r15d, %edi
	callq	_ERR_PTR
	movq	%rax, %rbx
LBB0_12:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	addq	$80, %rbx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_T4_STAG_UNSET,4,2              ## @T4_STAG_UNSET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ib_pd %p\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_SGE_MAX_WR_LEN,4,2             ## @SGE_MAX_WR_LEN
	.comm	_IB_ACCESS_MW_BIND,4,2          ## @IB_ACCESS_MW_BIND
	.comm	_FW_RI_STAG_NSMR,4,2            ## @FW_RI_STAG_NSMR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_c4iw_get_dma_mr                ; -- Begin function c4iw_get_dma_mr
	.p2align	2
_c4iw_get_dma_mr:                       ; @c4iw_get_dma_mr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _T4_STAG_UNSET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _T4_STAG_UNSET@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #44]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_pr_debug
	mov	x0, x19
	bl	_to_c4iw_pd
	mov	x22, x0
	ldr	x20, [x0, #8]
Lloh5:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	w0, #96
	bl	_kzalloc
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	ldr	w0, [x23]
	bl	_c4iw_alloc_wr_wait
	str	w0, [x19]
	cbz	w0, LBB0_8
; %bb.2:
	bl	_c4iw_init_wr_wait
Lloh7:
	adrp	x8, _SGE_MAX_WR_LEN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SGE_MAX_WR_LEN@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	ldr	w1, [x23]
	bl	_alloc_skb
	str	w0, [x19, #4]
	cbz	w0, LBB0_9
; %bb.3:
	str	x20, [x19, #88]
	ldr	w8, [x22]
	str	w8, [x19, #72]
	mov	x0, x21
	bl	_c4iw_ib_to_tpt_access
	mov	x6, x0
	str	w0, [x19, #44]
Lloh10:
	adrp	x8, _IB_ACCESS_MW_BIND@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IB_ACCESS_MW_BIND@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	bics	wzr, w8, w21
	cset	w7, eq
	str	w7, [x19, #8]
	stp	xzr, xzr, [x19, #56]
	str	xzr, [x19, #48]
	mov	x8, #-1
	str	x8, [x19, #16]
	str	xzr, [x19, #32]
	ldr	w4, [x22]
Lloh13:
	adrp	x9, _FW_RI_STAG_NSMR@GOTPAGE
Lloh14:
	ldr	x9, [x9, _FW_RI_STAG_NSMR@GOTPAGEOFF]
Lloh15:
	ldr	w5, [x9]
	ldr	w9, [x19]
	str	w9, [sp, #40]
	str	xzr, [sp, #32]
	add	x2, sp, #44
	str	wzr, [sp, #24]
	stp	x8, xzr, [sp, #8]
	str	xzr, [sp]
	mov	x0, x20
	mov	w1, #0
	mov	w3, #1
	bl	_write_tpt_entry
	mov	x21, x0
	cbnz	w0, LBB0_6
; %bb.4:
	ldr	w1, [sp, #44]
	mov	x0, x19
	bl	_finish_mem_reg
	cbz	w0, LBB0_13
; %bb.5:
	mov	x21, x0
	ldr	w1, [x19, #40]
	ldr	x2, [x19, #32]
	ldr	w3, [x19, #24]
	ldp	w5, w4, [x19]
	mov	x0, x20
	bl	_dereg_mem
LBB0_6:
	ldr	w0, [x19, #4]
	bl	_kfree_skb
	b	LBB0_10
LBB0_7:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_ERR_PTR
LBB0_8:
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_11
LBB0_9:
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_10:
	ldr	w0, [x19]
	bl	_c4iw_put_wr_wait
LBB0_11:
	mov	x0, x19
	bl	_kfree
	mov	x0, x21
	bl	_ERR_PTR
LBB0_12:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_13:
	add	x0, x19, #80
	b	LBB0_12
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_T4_STAG_UNSET,4,2              ; @T4_STAG_UNSET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ib_pd %p\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_SGE_MAX_WR_LEN,4,2             ; @SGE_MAX_WR_LEN
	.comm	_IB_ACCESS_MW_BIND,4,2          ; @IB_ACCESS_MW_BIND
	.comm	_FW_RI_STAG_NSMR,4,2            ; @FW_RI_STAG_NSMR
.subsections_via_symbols
