	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function resize_user
_resize_user:                           ## @resize_user
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -80(%rbp)                  ## 8-byte Spill
	movq	%r8, %r15
	movq	%rcx, %r12
	movl	%edx, %ebx
	movq	%rsi, %r13
	leaq	-64(%rbp), %rdi
	movq	%rcx, %rsi
	movl	$24, %edx
	callq	_ib_copy_from_udata
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.1:
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rax
	orq	-56(%rbp), %rax
	jne	LBB0_2
## %bb.3:
	movslq	-64(%rbp), %r8
	testq	%r8, %r8
	je	LBB0_5
## %bb.4:
	movq	_SIZE_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cltd
	idivl	%r8d
	cmpl	%ebx, %eax
	jge	LBB0_5
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_8
LBB0_5:
	movl	-60(%rbp), %esi
	movslq	%ebx, %rax
	imulq	%rax, %r8
	movq	_IB_ACCESS_LOCAL_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%r8, %rdx
	movl	$1, %r8d
	callq	_ib_umem_get
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	callq	_PTR_ERR
	movl	%eax, %r14d
	jmp	LBB0_8
LBB0_7:
	movq	16(%rbp), %r15
	movl	-60(%rbp), %esi
	movq	$0, (%rsp)
	xorl	%r14d, %r14d
	leaq	-84(%rbp), %rcx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	movq	-72(%rbp), %r9                  ## 8-byte Reload
	callq	_mlx5_ib_cont_pages
	movq	%rbx, (%r13)
	movl	-64(%rbp), %eax
	movl	%eax, (%r15)
LBB0_8:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SIZE_MAX,4,2                   ## @SIZE_MAX
	.comm	_IB_ACCESS_LOCAL_WRITE,4,2      ## @IB_ACCESS_LOCAL_WRITE
	.no_dead_strip	_resize_user
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function resize_user
_resize_user:                           ; @resize_user
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x6
	mov	x21, x5
	mov	x22, x4
	mov	x23, x3
	mov	x24, x2
	mov	x20, x1
	add	x0, sp, #8
	mov	x1, x3
	mov	w2, #24
	bl	_ib_copy_from_udata
	cbnz	w0, LBB0_8
; %bb.1:
	ldp	x9, x8, [sp, #16]
	orr	x8, x8, x9
	cbnz	x8, LBB0_4
; %bb.2:
	ldrsw	x8, [sp, #8]
	cbz	w8, LBB0_5
; %bb.3:
Lloh0:
	adrp	x9, _SIZE_MAX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SIZE_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	sdiv	w9, w9, w8
	cmp	w9, w24
	b.ge	LBB0_5
LBB0_4:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_5:
	ldr	w1, [sp, #12]
	sxtw	x9, w24
	mul	x2, x8, x9
Lloh6:
	adrp	x8, _IB_ACCESS_LOCAL_WRITE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IB_ACCESS_LOCAL_WRITE@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x0, x23
	mov	w4, #1
	bl	_ib_umem_get
	mov	x23, x0
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.6:
	mov	x0, x23
	bl	_PTR_ERR
	b	LBB0_8
LBB0_7:
	ldr	w1, [sp, #12]
	add	x3, sp, #4
	mov	x0, x23
	mov	w2, #0
	mov	x4, x21
	mov	x5, x22
	mov	x6, #0
	bl	_mlx5_ib_cont_pages
	mov	w0, #0
	str	x23, [x20]
	ldr	w8, [sp, #8]
	str	w8, [x19]
LBB0_8:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SIZE_MAX,4,2                   ; @SIZE_MAX
	.comm	_IB_ACCESS_LOCAL_WRITE,4,2      ; @IB_ACCESS_LOCAL_WRITE
	.no_dead_strip	_resize_user
.subsections_via_symbols
