	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_umem_release                ## -- Begin function ib_umem_release
	.p2align	4, 0x90
_ib_umem_release:                       ## @ib_umem_release
	.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	%rdi, %rbx
	cmpq	$0, 40(%rdi)
	je	LBB0_1
## %bb.9:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ib_umem_odp_release            ## TAILCALL
LBB0_1:
	movq	32(%rbx), %r13
	movl	8(%r13), %edi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	___ib_umem_release
	movl	24(%rbx), %edi
	movq	_PIDTYPE_PID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_get_pid_task
	movq	%rax, %r15
	movl	24(%rbx), %edi
	callq	_put_pid
	testq	%r15, %r15
	je	LBB0_8
## %bb.2:
	movq	%r15, %rdi
	callq	_get_task_mm
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_put_task_struct
	testq	%r14, %r14
	je	LBB0_8
## %bb.3:
	movq	%rbx, %rdi
	callq	_ib_umem_num_pages
	movq	%rax, %r15
	movq	%r14, %r12
	addq	$8, %r12
	cmpq	$0, (%r13)
	je	LBB0_6
## %bb.4:
	movq	%r12, %rdi
	callq	_down_write_trylock
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	leaq	8(%rbx), %r12
	movq	_ib_umem_account@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_INIT_WORK
	movq	%r14, 16(%rbx)
	movq	%r15, (%rbx)
	movq	_ib_wq@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_queue_work                     ## TAILCALL
LBB0_6:
	movq	%r12, %rdi
	callq	_down_write
LBB0_7:
	subq	%r15, (%r14)
	movq	%r12, %rdi
	callq	_up_write
	movq	%r14, %rdi
	callq	_mmput
LBB0_8:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PIDTYPE_PID,4,2                ## @PIDTYPE_PID
	.comm	_ib_umem_account,4,2            ## @ib_umem_account
	.comm	_ib_wq,4,2                      ## @ib_wq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_umem_release                ; -- Begin function ib_umem_release
	.p2align	2
_ib_umem_release:                       ; @ib_umem_release
	.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, x0
	ldr	x8, [x0, #40]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	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	_ib_umem_odp_release
LBB0_2:
	ldr	x22, [x19, #32]
	ldr	w0, [x22, #8]
	mov	x1, x19
	mov	w2, #1
	bl	___ib_umem_release
	ldr	w0, [x19, #24]
Lloh0:
	adrp	x8, _PIDTYPE_PID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PIDTYPE_PID@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_get_pid_task
	mov	x21, x0
	ldr	w0, [x19, #24]
	bl	_put_pid
	cbz	x21, LBB0_9
; %bb.3:
	mov	x0, x21
	bl	_get_task_mm
	mov	x20, x0
	mov	x0, x21
	bl	_put_task_struct
	cbz	x20, LBB0_9
; %bb.4:
	mov	x0, x19
	bl	_ib_umem_num_pages
	mov	x21, x0
	ldr	x8, [x22]
	add	x22, x20, #8
	mov	x0, x22
	cbz	x8, LBB0_7
; %bb.5:
	bl	_down_write_trylock
	cbnz	w0, LBB0_8
; %bb.6:
	add	x22, x19, #8
Lloh3:
	adrp	x8, _ib_umem_account@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ib_umem_account@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_INIT_WORK
	str	x20, [x19, #16]
	str	x21, [x19]
Lloh6:
	adrp	x8, _ib_wq@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ib_wq@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x22
	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	_queue_work
LBB0_7:
	bl	_down_write
LBB0_8:
	ldr	x8, [x20]
	sub	x8, x8, x21
	str	x8, [x20]
	mov	x0, x22
	bl	_up_write
	mov	x0, x20
	bl	_mmput
LBB0_9:
	mov	x0, x19
	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	_kfree
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PIDTYPE_PID,4,2                ; @PIDTYPE_PID
	.comm	_ib_umem_account,4,2            ; @ib_umem_account
	.comm	_ib_wq,4,2                      ; @ib_wq
.subsections_via_symbols
