	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ib_uverbs_ex_modify_wq
_ib_uverbs_ex_modify_wq:                ## @ib_uverbs_ex_modify_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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	$0, -40(%rbp)
	leaq	-64(%rbp), %rsi
	movl	$24, %edx
	callq	_uverbs_request
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.1:
	movl	-64(%rbp), %eax
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movq	_IB_WQ_STATE@GOTPCREL(%rip), %rcx
	movq	_IB_WQ_CUR_STATE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_IB_WQ_FLAGS@GOTPCREL(%rip), %rbx
	orl	(%rbx), %edx
	cmpl	%edx, %eax
	jg	LBB0_2
## %bb.4:
	movq	_UVERBS_OBJECT_WQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-44(%rbp), %edx
	movq	%r14, %rcx
	callq	_uobj_get_obj_read
	testq	%rax, %rax
	je	LBB0_2
## %bb.5:
	movq	%rax, %r15
	movq	-52(%rbp), %rax
	movq	%rax, -32(%rbp)
	movl	-64(%rbp), %edx
	testl	%edx, (%rbx)
	je	LBB0_7
## %bb.6:
	movq	-60(%rbp), %rax
	movq	%rax, -40(%rbp)
LBB0_7:
	movq	(%r15), %rax
	leaq	-40(%rbp), %rsi
	movq	%r15, %rdi
	movq	%r14, %rcx
	callq	*(%rax)
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_uobj_put_obj_read
	jmp	LBB0_8
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IB_WQ_STATE,4,2                ## @IB_WQ_STATE
	.comm	_IB_WQ_CUR_STATE,4,2            ## @IB_WQ_CUR_STATE
	.comm	_IB_WQ_FLAGS,4,2                ## @IB_WQ_FLAGS
	.comm	_UVERBS_OBJECT_WQ,4,2           ## @UVERBS_OBJECT_WQ
	.no_dead_strip	_ib_uverbs_ex_modify_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_modify_wq
_ib_uverbs_ex_modify_wq:                ; @ib_uverbs_ex_modify_wq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x0
	str	xzr, [sp, #8]
	add	x1, sp, #24
	mov	w2, #24
	bl	_uverbs_request
	mov	x21, x0
	cbnz	w0, LBB0_8
; %bb.1:
	ldr	w8, [sp, #24]
	cbz	w8, LBB0_7
; %bb.2:
Lloh0:
	adrp	x9, _IB_WQ_STATE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IB_WQ_STATE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _IB_WQ_CUR_STATE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _IB_WQ_CUR_STATE@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh6:
	adrp	x21, _IB_WQ_FLAGS@GOTPAGE
Lloh7:
	ldr	x21, [x21, _IB_WQ_FLAGS@GOTPAGEOFF]
	ldr	w10, [x21]
	orr	w9, w9, w10
	cmp	w8, w9
	b.gt	LBB0_7
; %bb.3:
Lloh8:
	adrp	x8, _UVERBS_OBJECT_WQ@GOTPAGE
Lloh9:
	ldr	x8, [x8, _UVERBS_OBJECT_WQ@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	w2, [sp, #44]
	mov	x3, x19
	bl	_uobj_get_obj_read
	cbz	x0, LBB0_7
; %bb.4:
	mov	x20, x0
	ldur	d0, [sp, #36]
	str	d0, [sp, #16]
	ldr	w2, [sp, #24]
	ldr	w8, [x21]
	tst	w8, w2
	b.eq	LBB0_6
; %bb.5:
	ldur	d0, [sp, #28]
	str	d0, [sp, #8]
LBB0_6:
	ldr	x8, [x20]
	ldr	x8, [x8]
	add	x1, sp, #8
	mov	x0, x20
	mov	x3, x19
	blr	x8
	mov	x21, x0
	mov	x0, x20
	bl	_uobj_put_obj_read
	b	LBB0_8
LBB0_7:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_8:
	mov	x0, x21
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IB_WQ_STATE,4,2                ; @IB_WQ_STATE
	.comm	_IB_WQ_CUR_STATE,4,2            ; @IB_WQ_CUR_STATE
	.comm	_IB_WQ_FLAGS,4,2                ; @IB_WQ_FLAGS
	.comm	_UVERBS_OBJECT_WQ,4,2           ; @UVERBS_OBJECT_WQ
	.no_dead_strip	_ib_uverbs_ex_modify_wq
.subsections_via_symbols
