	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_siw_mr_add_mem                 ## -- Begin function siw_mr_add_mem
	.p2align	4, 0x90
_siw_mr_add_mem:                        ## @siw_mr_add_mem
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r12d
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movl	(%rsi), %edi
	callq	_to_siw_dev
	movq	%rax, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$64, %edi
	callq	_kzalloc
	movq	%rax, %rbx
	movl	$1, %edi
	movl	$16777215, %esi                 ## imm = 0xFFFFFF
	callq	_XA_LIMIT
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movq	%r13, 56(%rbx)
	movq	$0, 48(%rbx)
	movq	%r15, 40(%rbx)
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 32(%rbx)
	movl	%eax, %r13d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 24(%rbx)
	movq	%r14, 16(%rbx)
	movq	_IWARP_ACCESS_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r12d
	movl	%r12d, (%rbx)
	movq	%rbx, %rdi
	addq	$8, %rdi
	callq	_kref_init
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	%rbx, 8(%r12)
	leaq	-44(%rbp), %r14
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_get_random_bytes
	movb	$0, -41(%rbp)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	movl	%r13d, %ecx
	movq	%r14, %r8
	callq	_xa_alloc_cyclic
	testq	%rax, %rax
	js	LBB0_3
## %bb.4:
	movl	-48(%rbp), %eax
	shll	$8, %eax
	movl	%eax, 4(%rbx)
	movl	%eax, 4(%r12)
	movl	%eax, (%r12)
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_3:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IWARP_ACCESS_MASK,4,2          ## @IWARP_ACCESS_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_siw_mr_add_mem                 ; -- Begin function siw_mr_add_mem
	.p2align	2
_siw_mr_add_mem:                        ; @siw_mr_add_mem
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x5
	mov	x23, x4
	mov	x25, x3
	mov	x27, x2
	mov	x24, x1
	mov	x19, x0
	ldr	w0, [x1]
	bl	_to_siw_dev
	mov	x21, x0
Lloh0:
	adrp	x28, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x28, [x28, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x28]
	mov	w0, #64
	bl	_kzalloc
	mov	x20, x0
	mov	w0, #1
	mov	w1, #16777215
	bl	_XA_LIMIT
	cbz	x20, LBB0_4
; %bb.1:
	mov	x26, x0
	stp	xzr, x27, [x20, #48]
	stp	x25, x21, [x20, #32]
	stp	x24, x23, [x20, #16]
Lloh2:
	adrp	x8, _IWARP_ACCESS_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IWARP_ACCESS_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	and	w8, w8, w22
	str	w8, [x20]
	add	x0, x20, #8
	bl	_kref_init
	str	x20, [x19, #8]
	add	x0, sp, #8
	mov	w1, #4
	bl	_get_random_bytes
	ldr	w8, [sp, #8]
	and	w8, w8, #0xffffff
	str	w8, [sp, #8]
	ldr	w5, [x28]
	mov	w3, w26
	add	x1, sp, #12
	add	x4, sp, #8
	mov	x0, x21
	mov	x2, x20
	bl	_xa_alloc_cyclic
	tbnz	x0, #63, LBB0_3
; %bb.2:
	mov	w0, #0
	ldr	w8, [sp, #12]
	lsl	w8, w8, #8
	str	w8, [x20, #4]
	stp	w8, w8, [x19]
	b	LBB0_5
LBB0_3:
	mov	x0, x20
	bl	_kfree
LBB0_4:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IWARP_ACCESS_MASK,4,2          ; @IWARP_ACCESS_MASK
.subsections_via_symbols
