	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40iw_reg_phys_mr              ## -- Begin function i40iw_reg_phys_mr
	.p2align	4, 0x90
_i40iw_reg_phys_mr:                     ## @i40iw_reg_phys_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r13
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	callq	_to_iwpd
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	(%r12), %edi
	callq	_to_iwdev
	movq	%rax, %r15
	movq	_I40IW_ACCESS_FLAGS_LOCALREAD@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$88, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	movq	%r12, 32(%rax)
	movl	(%r12), %eax
	movl	%eax, 24(%rbx)
	movq	%rbx, 80(%rbx)
	movq	_IW_MEMREG_TYPE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%rbx)
	movq	(%r13), %rax
	movq	%rax, 72(%rbx)
	movq	%r15, %rdi
	callq	_i40iw_create_stag
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r13
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_i40iw_get_user_access
	orl	%eax, %r14d
	movq	%r13, 56(%rbx)
	movq	%r13, 16(%rbx)
	movq	%r13, 8(%rbx)
	movl	$1, (%rbx)
	movq	48(%rbx), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, (%rax)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 40(%rbx)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_i40iw_hwreg_mr
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_i40iw_free_stag
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	jmp	LBB0_2
LBB0_4:
	movq	_EOVERFLOW@GOTPCREL(%rip), %rax
LBB0_7:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	movq	%rbx, %rdi
	callq	_kfree
	movl	%r14d, %edi
LBB0_2:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_8:
	addq	$8, %rbx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_i40iw_add_pdusecount
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I40IW_ACCESS_FLAGS_LOCALREAD,4,2 ## @I40IW_ACCESS_FLAGS_LOCALREAD
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IW_MEMREG_TYPE_MEM,4,2         ## @IW_MEMREG_TYPE_MEM
	.comm	_EOVERFLOW,4,2                  ## @EOVERFLOW
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40iw_reg_phys_mr              ; -- Begin function i40iw_reg_phys_mr
	.p2align	2
_i40iw_reg_phys_mr:                     ; @i40iw_reg_phys_mr
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x25, x4
	mov	x24, x3
	mov	x21, x2
	mov	x23, x1
	mov	x26, x0
	bl	_to_iwpd
	mov	x20, x0
	ldr	w0, [x26]
	bl	_to_iwdev
	mov	x22, x0
Lloh0:
	adrp	x8, _I40IW_ACCESS_FLAGS_LOCALREAD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I40IW_ACCESS_FLAGS_LOCALREAD@GOTPAGEOFF]
Lloh2:
	ldr	w27, [x8]
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #88
	bl	_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	str	x26, [x0, #32]
	ldr	w8, [x26]
	str	w8, [x0, #24]
	str	x0, [x0, #80]
Lloh6:
	adrp	x8, _IW_MEMREG_TYPE_MEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IW_MEMREG_TYPE_MEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x0, #64]
	ldr	x8, [x25]
	str	x8, [x0, #72]
	mov	x0, x22
	bl	_i40iw_create_stag
	cbz	x0, LBB0_5
; %bb.2:
	mov	x25, x0
	mov	x0, x24
	bl	_i40iw_get_user_access
	orr	w2, w0, w27
	str	x25, [x19, #56]
	stp	x25, x25, [x19, #8]
	mov	w8, #1
	str	w8, [x19]
	ldr	x8, [x19, #48]
	str	x23, [x8]
	str	x21, [x19, #40]
	mov	x0, x22
	mov	x1, x19
	bl	_i40iw_hwreg_mr
	cbz	w0, LBB0_8
; %bb.3:
	mov	x0, x22
	mov	x1, x25
	bl	_i40iw_free_stag
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_5:
Lloh14:
	adrp	x8, _EOVERFLOW@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EOVERFLOW@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w20, w8
	mov	x0, x19
	bl	_kfree
	mov	x0, x20
LBB0_7:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_ERR_PTR
LBB0_8:
	add	x19, x19, #8
	mov	x0, x20
	bl	_i40iw_add_pdusecount
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_I40IW_ACCESS_FLAGS_LOCALREAD,4,2 ; @I40IW_ACCESS_FLAGS_LOCALREAD
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IW_MEMREG_TYPE_MEM,4,2         ; @IW_MEMREG_TYPE_MEM
	.comm	_EOVERFLOW,4,2                  ; @EOVERFLOW
.subsections_via_symbols
