	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ib_uverbs_ex_create_wq
_ib_uverbs_ex_create_wq:                ## @ib_uverbs_ex_create_wq
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	movl	$0, -64(%rbp)
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -112(%rbp)
	leaq	-144(%rbp), %rsi
	movl	$32, %edx
	callq	_uverbs_request
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_17
## %bb.1:
	cmpq	$0, -120(%rbp)
	je	LBB0_3
## %bb.2:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_17
LBB0_3:
	movq	_UVERBS_OBJECT_WQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-152(%rbp), %rdx
	movq	%rbx, %rsi
	callq	_uobj_alloc
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_PTR_ERR
	movl	%eax, %r12d
	jmp	LBB0_17
LBB0_5:
	movq	_UVERBS_OBJECT_PD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-124(%rbp), %edx
	movq	%rbx, %rcx
	callq	_uobj_get_obj_read
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r15
	movq	_UVERBS_OBJECT_CQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-128(%rbp), %edx
	movq	%rbx, %rcx
	callq	_uobj_get_obj_read
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rax, %r12
	movq	%rax, -88(%rbp)
	movq	-144(%rbp), %rax
	movq	-136(%rbp), %rcx
	movq	%rcx, -112(%rbp)
	movl	4(%rbx), %ecx
	movl	%ecx, -104(%rbp)
	rolq	$32, %rax
	movq	%rax, -100(%rbp)
	movq	_ib_uverbs_wq_event_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -92(%rbp)
	movq	$0, 24(%r14)
	movq	%r14, %rdi
	addq	$16, %rdi
	callq	_INIT_LIST_HEAD
	movq	8(%r15), %rax
	leaq	-112(%rbp), %rsi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	*(%rax)
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_11
## %bb.10:
	movq	%r13, %rdi
	callq	_PTR_ERR
	movl	%eax, %r12d
	jmp	LBB0_14
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_16
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_15
LBB0_11:
	movq	%r14, 40(%r13)
	movq	%r13, 8(%r14)
	movl	-100(%rbp), %eax
	movl	%eax, 80(%r13)
	movq	%r12, 72(%r13)
	movq	%r15, 64(%r13)
	movq	8(%r15), %rax
	movq	%rax, 56(%r13)
	movl	-104(%rbp), %eax
	movl	%eax, 52(%r13)
	movq	%r13, %rdi
	addq	$48, %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	movq	%r15, %rdi
	callq	_atomic_inc
	movq	%r12, %rdi
	callq	_atomic_inc
	movq	%r14, 40(%r13)
	movq	%r13, 8(%r14)
	leaq	-80(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$20, %edx
	callq	_memset
	movl	(%r14), %eax
	movl	%eax, -64(%rbp)
	movq	-112(%rbp), %rax
	movq	%rax, -72(%rbp)
	movl	32(%r13), %eax
	movl	%eax, -76(%rbp)
	movq	%rbx, %rdi
	movl	$20, %esi
	callq	_uverbs_response_length
	movl	%eax, -80(%rbp)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	$20, %edx
	callq	_uverbs_response
	testl	%eax, %eax
	je	LBB0_12
## %bb.13:
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_uverbs_get_cleared_udata
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_ib_destroy_wq
LBB0_14:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_uobj_put_obj_read
LBB0_15:
	movq	%r15, %rdi
	callq	_uobj_put_obj_read
LBB0_16:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_uobj_alloc_abort
LBB0_17:
	movl	%r12d, %eax
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	%r15, %rdi
	callq	_uobj_put_obj_read
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_uobj_put_obj_read
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_uobj_alloc_commit
	movl	%eax, %r12d
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_UVERBS_OBJECT_WQ,4,2           ## @UVERBS_OBJECT_WQ
	.comm	_UVERBS_OBJECT_PD,4,2           ## @UVERBS_OBJECT_PD
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_UVERBS_OBJECT_CQ,4,2           ## @UVERBS_OBJECT_CQ
	.comm	_ib_uverbs_wq_event_handler,4,2 ## @ib_uverbs_wq_event_handler
	.no_dead_strip	_ib_uverbs_ex_create_wq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ib_uverbs_ex_create_wq
_ib_uverbs_ex_create_wq:                ; @ib_uverbs_ex_create_wq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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, x0
	stp	xzr, xzr, [sp, #56]
	str	wzr, [sp, #72]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #16]
	add	x1, sp, #80
	mov	w2, #32
	bl	_uverbs_request
	mov	x24, x0
	cbnz	w0, LBB0_16
; %bb.1:
	ldr	x8, [sp, #104]
	cbz	x8, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_16
LBB0_3:
Lloh3:
	adrp	x8, _UVERBS_OBJECT_WQ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _UVERBS_OBJECT_WQ@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x2, sp, #8
	mov	x1, x19
	bl	_uobj_alloc
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_PTR_ERR
	mov	x24, x0
	b	LBB0_16
LBB0_5:
Lloh6:
	adrp	x8, _UVERBS_OBJECT_PD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _UVERBS_OBJECT_PD@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	w2, [sp, #100]
	mov	x3, x19
	bl	_uobj_get_obj_read
	cbz	x0, LBB0_9
; %bb.6:
	mov	x21, x0
Lloh9:
	adrp	x8, _UVERBS_OBJECT_CQ@GOTPAGE
Lloh10:
	ldr	x8, [x8, _UVERBS_OBJECT_CQ@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	w2, [sp, #96]
	mov	x3, x19
	bl	_uobj_get_obj_read
	cbz	x0, LBB0_10
; %bb.7:
	mov	x22, x0
	str	x0, [sp, #40]
	ldp	d1, d0, [sp, #80]
	str	d0, [sp, #16]
	ldr	w8, [x19, #4]
	str	w8, [sp, #24]
Lloh12:
	adrp	x8, _ib_uverbs_wq_event_handler@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ib_uverbs_wq_event_handler@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [sp, #36]
	rev64.2s	v0, v1
	stur	d0, [sp, #28]
	str	xzr, [x20, #24]
	add	x0, x20, #16
	bl	_INIT_LIST_HEAD
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	add	x1, sp, #16
	mov	x0, x21
	mov	x2, x19
	blr	x8
	mov	x23, x0
	bl	_IS_ERR
	cbz	x0, LBB0_11
; %bb.8:
	mov	x0, x23
	bl	_PTR_ERR
	mov	x24, x0
	b	LBB0_13
LBB0_9:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_15
LBB0_10:
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_14
LBB0_11:
	str	x20, [x23, #40]
	str	x23, [x20, #8]
	ldp	w9, w8, [sp, #24]
	str	w8, [x23, #80]
	stp	x21, x22, [x23, #64]
	ldr	x8, [x21, #8]
	str	x8, [x23, #56]
	str	w9, [x23, #52]
	add	x0, x23, #48
	mov	w1, #0
	bl	_atomic_set
	mov	x0, x21
	bl	_atomic_inc
	mov	x0, x22
	bl	_atomic_inc
	str	x20, [x23, #40]
	str	x23, [x20, #8]
	add	x0, sp, #56
	mov	w1, #0
	mov	w2, #20
	bl	_memset
	ldr	w8, [x20]
	str	w8, [sp, #72]
	ldr	d0, [sp, #16]
	str	d0, [sp, #64]
	ldr	w8, [x23, #32]
	str	w8, [sp, #60]
	mov	x0, x19
	mov	w1, #20
	bl	_uverbs_response_length
	str	w0, [sp, #56]
	add	x1, sp, #56
	mov	x0, x19
	mov	w2, #20
	bl	_uverbs_response
	cbz	w0, LBB0_17
; %bb.12:
	mov	x24, x0
	mov	x0, x19
	bl	_uverbs_get_cleared_udata
	mov	x1, x0
	mov	x0, x23
	bl	_ib_destroy_wq
LBB0_13:
	mov	x0, x22
	bl	_uobj_put_obj_read
LBB0_14:
	mov	x0, x21
	bl	_uobj_put_obj_read
LBB0_15:
	mov	x0, x20
	mov	x1, x19
	bl	_uobj_alloc_abort
LBB0_16:
	mov	x0, x24
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_17:
	mov	x0, x21
	bl	_uobj_put_obj_read
	mov	x0, x22
	bl	_uobj_put_obj_read
	mov	x0, x20
	mov	x1, x19
	bl	_uobj_alloc_commit
	mov	x24, x0
	b	LBB0_16
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_UVERBS_OBJECT_WQ,4,2           ; @UVERBS_OBJECT_WQ
	.comm	_UVERBS_OBJECT_PD,4,2           ; @UVERBS_OBJECT_PD
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_UVERBS_OBJECT_CQ,4,2           ; @UVERBS_OBJECT_CQ
	.comm	_ib_uverbs_wq_event_handler,4,2 ; @ib_uverbs_wq_event_handler
	.no_dead_strip	_ib_uverbs_ex_create_wq
.subsections_via_symbols
