	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_siw_cm_queue_work              ## -- Begin function siw_cm_queue_work
	.p2align	4, 0x90
_siw_cm_queue_work:                     ## @siw_cm_queue_work
	.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
	movl	%esi, %r14d
	movq	%rdi, %r12
	callq	_siw_get_work
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movl	%r14d, (%rax)
	movq	%r12, 8(%rax)
	movq	%r12, %rdi
	callq	_siw_cep_get
	movq	%rbx, %r15
	addq	$4, %r15
	movq	_siw_cm_work_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_INIT_DELAYED_WORK
	movq	_SIW_CM_WORK_MPATIMEOUT@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_3
## %bb.4:
	movq	%rbx, 16(%r12)
	movq	(%r12), %rax
	movq	_SIW_EPSTATE_AWAIT_MPAREP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movq	_MPAREQ_TIMEOUT@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_1:
	leaq	L_.str(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_siw_dbg_cep
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_12
LBB0_3:
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_6:
	movq	_MPAREP_TIMEOUT@GOTPCREL(%rip), %rax
LBB0_7:
	movq	(%rax), %rbx
LBB0_8:
	movq	8(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.10:
	callq	_qp_id
	movl	%eax, %edx
	jmp	LBB0_11
LBB0_9:
	movl	$-1, %edx
LBB0_11:
	leaq	L_.str.1(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r12, %rdi
	movl	%r14d, %ecx
	movq	%rbx, %r8
	xorl	%eax, %eax
	callq	_siw_dbg_cep
	movq	_siw_cm_wq@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_queue_delayed_work
LBB0_12:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed with no work available\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_siw_cm_work_handler,4,2        ## @siw_cm_work_handler
	.comm	_SIW_CM_WORK_MPATIMEOUT,4,2     ## @SIW_CM_WORK_MPATIMEOUT
	.comm	_SIW_EPSTATE_AWAIT_MPAREP,8,3   ## @SIW_EPSTATE_AWAIT_MPAREP
	.comm	_MPAREQ_TIMEOUT,8,3             ## @MPAREQ_TIMEOUT
	.comm	_MPAREP_TIMEOUT,8,3             ## @MPAREP_TIMEOUT
L_.str.1:                               ## @.str.1
	.asciz	"[QP %u]: work type: %d, timeout %lu\n"

	.comm	_siw_cm_wq,4,2                  ## @siw_cm_wq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_siw_cm_queue_work              ; -- Begin function siw_cm_queue_work
	.p2align	2
_siw_cm_queue_work:                     ; @siw_cm_queue_work
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x1
	mov	x19, x0
	bl	_siw_get_work
	cbz	x0, LBB0_4
; %bb.1:
	mov	x22, x0
	str	w20, [x0]
	str	x19, [x0, #8]
	mov	x0, x19
	bl	_siw_cep_get
	add	x21, x22, #4
Lloh0:
	adrp	x8, _siw_cm_work_handler@GOTPAGE
Lloh1:
	ldr	x8, [x8, _siw_cm_work_handler@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_INIT_DELAYED_WORK
Lloh3:
	adrp	x8, _SIW_CM_WORK_MPATIMEOUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SIW_CM_WORK_MPATIMEOUT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_5
; %bb.2:
	str	x22, [x19, #16]
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _SIW_EPSTATE_AWAIT_MPAREP@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SIW_EPSTATE_AWAIT_MPAREP@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.3:
Lloh9:
	adrp	x8, _MPAREQ_TIMEOUT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MPAREQ_TIMEOUT@GOTPAGEOFF]
	b	LBB0_8
LBB0_4:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_siw_dbg_cep
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_5:
	mov	x22, #0
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_9
LBB0_6:
	bl	_qp_id
                                        ; kill: def $w0 killed $w0 def $x0
	b	LBB0_10
LBB0_7:
Lloh16:
	adrp	x8, _MPAREP_TIMEOUT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MPAREP_TIMEOUT@GOTPAGEOFF]
LBB0_8:
	ldr	x22, [x8]
	ldr	x0, [x19, #8]
	cbnz	x0, LBB0_6
LBB0_9:
	mov	w0, #-1
LBB0_10:
	stp	x20, x22, [sp, #8]
	str	x0, [sp]
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_siw_dbg_cep
Lloh20:
	adrp	x8, _siw_cm_wq@GOTPAGE
Lloh21:
	ldr	x8, [x8, _siw_cm_wq@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	mov	x1, x21
	mov	x2, x22
	bl	_queue_delayed_work
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed with no work available\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_siw_cm_work_handler,4,2        ; @siw_cm_work_handler
	.comm	_SIW_CM_WORK_MPATIMEOUT,4,2     ; @SIW_CM_WORK_MPATIMEOUT
	.comm	_SIW_EPSTATE_AWAIT_MPAREP,8,3   ; @SIW_EPSTATE_AWAIT_MPAREP
	.comm	_MPAREQ_TIMEOUT,8,3             ; @MPAREQ_TIMEOUT
	.comm	_MPAREP_TIMEOUT,8,3             ; @MPAREP_TIMEOUT
l_.str.1:                               ; @.str.1
	.asciz	"[QP %u]: work type: %d, timeout %lu\n"

	.comm	_siw_cm_wq,4,2                  ; @siw_cm_wq
.subsections_via_symbols
